I'm trying to setup a job in Bamboo to run some function tests written in Visual Studio 2015 with C# and Webdriver and I can[t find any specific documentation on how to run this tests in Bamboo. I have the sln file I build it on my machine and a playlist is generated with all the tests, how can I do this steps in Atlassian Bamboo? Does anyone have one information / tips I can use?
You should have three steps to configure what you are asking for:
Use Selenium Grid . The goal is to have a hub (and at least one node). You can find the documentation on seleniumhq.github.io : Suppose you are using Selenium Grid on http://abcd:4444/ ;
You can run the selenium's hub:
java -jar selenium-server-standalone.jar -role hub
You can run the selenium's node (connected to the hub). For example, if you want to use the IEDriver , you can run your node using
java -Dwebdriver.ie.driver=IEDriverServer.exe -jar selenium-server-standalone-2.53.1.jar -port 5555 -role node -hub http://abcd:4444/grid/register -browser "browserName=internet explorer,version=11,platform=WINDOWS,maxInstances=10"
You need to have NUnit tests using a remote web driver. For example:
DesiredCapabilities capability = DesiredCapabilities.InternetExplorer(); var driver = new RemoteWebDriver(new Uri("http://abcd:4444/wd/hub"), capability); driver.Navigate().GoToUrl("http://www.google.ch");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.