- This repo contains example code of running web automation tests using Selenium WebDriver for ServiceNow Demo website on LambdaTest Cloud platform
- This project uses Maven as build tool and TestNG framework to run the tests.
By default, tests would be running on LambdaTest Platform on Chrome and Firefox Browsers.
-
To run the test from command line use the following command:
mvn test -DLT_USERNAME=<LambdaTest username> -DLT_ACCESS_KEY=<LambdaTest_Access_Key> -Dwebsite_username=<ServiceNow app username> -Dwebsite_password=<ServiceNow app password>
-
To run the tests using TestNG in intelliJ:
- Right click on
testng.xml
and selectRun '...\testng.xml
username and access key in the VM option as follows:-DLT_USERNAME=<LambdaTest username> -DLT_ACCESS_KEY=<LambdaTest_Access_Key> -Dwebsite_username=<ServiceNow app username> -Dwebsite_password=<ServiceNow app password>
- Right click on
🧬 Need Assistance?
- Discuss your queries by writing to me @
mohammadfaisalkhatri@gmail.com
OR ping me on any of the social media sites using the below link: