Please provide me some inputs on executing my UI testcases, created with selenium + DevTest by staging it and running in the server machine.
Whether UI interactive testcases can be run in server. What are the pre-requisites?
Thanks in advance.
Selenium 2.53 (is what is delivered with DevTest 9.5.1) - will run with Firefox 45 and 46
Running locally through ITR:
I would run Firefox 46 with DevTest 9.5.1.
If your version of Firefox happens to be 64-bit it is installed in "C:\Program Files\Mozilla Firefox" folder, so in order for DevTest to find it, it needs to be in the %PATH%. If it was 32-bit, it would be installed in the "C:\Program Files (x86)\Mozilla Firefox".
Add the appropriate path to your System Environment variable PATH.
Staging to a Remote Simulator:
Same as with the local machine, on the remote machine if your version of Firefox happens to be 64-bit it is installed in "C:\Program Files\Mozilla Firefox" folder, so in order for DevTest to find it, it needs to be in the %PATH%. If it was 32-bit, it would be installed in the "C:\Program Files (x86)\Mozilla Firefox".
Also update your PATH System Environment variable to have the folder of where your IE and Chrome drivers are on the remote machine in the path. Have them match the same location a defined in the Project config file.
Selenium requires interactivity with the desktop, so the only way you can run your Selenium test against a Simulator Service is to run it headless (browser runs in the background and will not interact with user).
On the Simulator Service, update the Properties, chose the Log On tab, Check the "Allow the service to interact with desktop" box, but to do this you will need to use a Local System as Logon. Restart the Simulator Service.
You will now be able to run your Selenium test against the remote Simulator service.
Running with Chrome:
Run a Selenium Integration Test Case - DevTest Solutions - 9.5 - CA Technologies Documentation
Running with IE:
If you require to run a remote browser with your test, follow the steps as described in our documentation:
For running on a remote browser:
Selenium 2.53 Server files can be found here:
Also refer to these links:
Hope this information helps.
Thanks Marcy for your inputs.