Service Virtualization

Expand all | Collapse all

Executing Selenium Testcases (UI based)  with DevTest 9.5 on server?

Jump to Best Answer
  • 1.  Executing Selenium Testcases (UI based)  with DevTest 9.5 on server?

    Posted 01-31-2017 04:48 AM

    Hi All,

     

    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.

     

    Regards,

    Mohan



  • 2.  Re: Executing Selenium Testcases (UI based)  with DevTest 9.5 on server?
    Best Answer

    Broadcom Employee
    Posted 02-01-2017 05:26 PM

    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:

    Run a Selenium Integration Test Case - DevTest Solutions - 9.5 - CA Technologies Documentation 


    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:

    Run a Selenium Integration Test Case - DevTest Solutions - 9.5 - CA Technologies Documentation 

     


    Selenium 2.53 Server files can be found here:

    http://selenium-release.storage.googleapis.com/index.html?path=2.53/

     

    Also refer to these links:


    https://docops.ca.com/devtest-solutions/9-5/en/reference/test-step-descriptions/selenium-integration-steps

    https://docops.ca.com/devtest-solutions/9-5/en/using/using-ca-application-test/using-devtest-workstation-with-ca-application-test/running-test-cases-and-suites/run-a-selenium-integration-test-case

     

    Hope this information helps.



  • 3.  Re: Executing Selenium Testcases (UI based)  with DevTest 9.5 on server?

    Posted 02-03-2017 03:27 AM

    Thanks Marcy for your inputs.