TestNG | Parallel execution (Maven-based web project)
Referenced here is a Maven-based Web project that runs on 4 devices (2 iOS and 2 android). It runs on Safari for iOS and Chrome on Android. Execution can be triggered from TestNG or from Maven.
Important: This document includes references to third-party products, TestNG, Eclipse, and Maven. The user interface and usage of third-party products are subject to change without notice. For the latest published information about TestNG, see https://testng.org/doc/documentation-main.html. For the latest published information about Eclipse, see https://www.eclipse.org/documentation. For the latest published information about Maven, see https://maven.apache.org/guides/index.html.
To run this project:
- Download the attached zip project.
- Unzip the project.
- Make sure you have installed Maven and TestNG in your Eclipse IDE.
- Import the project as an "Existing Maven project" into your existing workspace.
- Open the "Utilities.Java" file that is part of the "com.perfecto.demo.utils" package.
- Set the cloud host name, your Perfecto cloud user ID, and the password in lines 32, 33 and 34.
- Double-click "testng.xml" in the project folder. Change the device IDs as per your devices.
- Right-click testng.xml and select the option Run as > TestNG Suite.
OR
Right-the pom.xml and select the option Run as > Maven test.
https://github.com/PerfectoCode/Community-Samples/tree/master/eBayWebAppProject