Reputation: 101
we use VSTS to build apps but this all is not on remote machine but in cloud. I need to run selenium grid on this cloud to run my tests on nodes, how can i do it?If it was a remote machine that's ok login remotly and run grid hub from cmd but it's a cloud so is it possible to run grid hub?
Upvotes: 1
Views: 1470
Reputation: 24148
Based on my understanding, it seems that you want to run selenium grid on Azure to run your test. If you are using Azure Web App, you can install Selenium Grid Hub as site extension on Azure via Kudu tool, please see below.
Site extensions
via the url https://<your-webapp-name>.scm.azurewebsites.net/SiteExtensions/?#gallery
, as follow the steps of the figure below.README.md
of selenium grid hub site extension on GitHub to know how to use it and do your test.Selenium-Grid Hub site extension for Azure
Once installed, navigate to http://.azurewebsites.net/grid/console to see the grid console
(you may need to stop and start the web app to get it to pick up the applicaitonhost.config changes)
limitations
- if you enable HTTPS the hub runs but I cannot get nodes to join over HTTPS :(
- authentication seems important when running a hub in the cloud, but I don't know how to add support for this
Hope it helps.
Upvotes: 3