Проверьте, работает ли веб-сайт без открытия ⇐ Python
-
Гость
Проверьте, работает ли веб-сайт без открытия
Is it possible to test if my site is running using PowerShell or Python (not using selenium)?
I have web site hosted in Azure Web App service. I tried to test with simple request requests.get('https://testsite.azurewebsites.net'). It returns 200, what is fine.
But when I make some configuration changes, or for example I stop my backend service, If I run the same command, it will still return 200. It will be like that until try to open web site in browser.
Is actually possible to have tests like this so I can fix potential issues before users are face site down?
Источник: https://stackoverflow.com/questions/781 ... ut-opening
Is it possible to test if my site is running using PowerShell or Python (not using selenium)?
I have web site hosted in Azure Web App service. I tried to test with simple request requests.get('https://testsite.azurewebsites.net'). It returns 200, what is fine.
But when I make some configuration changes, or for example I stop my backend service, If I run the same command, it will still return 200. It will be like that until try to open web site in browser.
Is actually possible to have tests like this so I can fix potential issues before users are face site down?
Источник: https://stackoverflow.com/questions/781 ... ut-opening