How to Run a Selenium test from a DevTest Portal running on Linux

Document ID : KB000010162
Last Modified Date : 14/02/2018
Show Technical Document Details

These are the steps to run a Selenium test from a DevTest Portal running on Linux. 

This is just an example, is DevTest 9.5.1, to show how it is done. The GUI interface to use is up to the user. 

This example is using TightVNC viewer. 


Support DevTest releases and Linux Platforms.Software installed: TightVNC Viewer installed on a Windows 7 64-bit client machine. Vncserver installed on Linux Redhat 64-bit server machine and running. Firefox 38.0.6 installed on Linux machine. DevTest 9.5.1 Server installed on client Windows machine. DevTest 9.5.1 Server installed on server Linux machine. DevTest 9.5.1 Demoserver installed on Linux machine.

Copied $LISA_HOME/examples to $LISA_HOME/Projects 

Logged on with TightVNC Viewer. 

Linux Desktop comes up. 

Open a Terminal from the Desktop to setup your display. 

Setup DISPLAY for the Desktop. 

Tested with xclock to make sure the DISPLAY environment variable is set properly. 

Start the DevTest Services after DISPLAY is set. 

cd /opt/CA/DevTest9.5.1/bin 

./EnterpriseDashboardService start 

./RegistryService start 

./BrokerService start 

./PortalService start 

./CoordinatorService start 

./SimulatorService start 


Using the DemoServer for this test, so need to set that up: 

export LISA_JAVA_HOME=/opt/CA/DevTest9.5.1/jre 

export JAVA_HOME=/opt/CA/DevTest9.5.1/jre 

export PATH=$JAVA_HOME/bin:$PATH 


Kick off the DemoServer: 

cd /opt/CA/DevTest9.5.1/DemoServer/lisa-demo-server 



Bring up Firefox browser and verify your version. Version 36 of Firefox works with DevTest 9.5.1. 

Bring up the Portal and login: 

Set your current Project. Using examples, so copied it to the Projects folder so the Portal can get access to it. Go to Manage -> Tests. Scroll down to your test case. Running multi-tier-combo-selenium. Then Run. 

Firefox Browser comes up and runs through LISA Bank: 

Test case Passed. 

Want to also view my test from a browser on client Windows machine: 

Can see a screenshot of the test step that has a browser. 

Now run the test case again, but this time from the Windows browser. The Firefox browser will not display on the windows machine, but it comes up from the Linux machine TighVNC Viewer desktop. 

Chrome has not been tested, only Firefox. 

This can also be run headless.


Additional Information:

Internet Explorer is not supported on Linux.


Although example is 9.5.1, would be the same steps for 10.x