This project consists of testNG test written for the EriBank application, and designed to show a demo for SeeTest Cloud Grid feature, please use this example as a refernce when attempting to use the Grid feature.
This project was written with page-object-design-pattern.
The idea behind the Grid is that we are able to execute one testNG suite, which will launch 5 tests on 5 iOS devices and 5 android devices, by reserving a device using the os query, and the grid will automatically assign a device to the test, and run the test, if the license includes less than 10 grid nodes, or the cloud has less than the required devices, then the test will be queued untill a device is available.
The project consists of the following files:
1.pages directory - should include a page object for each page in your application:
(*
) BasePage - this page should act as a base class for your application pages.
(*
) HomePage - page object that represents our home page.
(*
) LoginPage - page object that represents our login page.
2.test package - should include all your tests:
(*
) VerifyPagesTest - this test will perfrom Login and Logout, and verify expected elements are found in the Home and Login pages
3.Logger package:
(*
) LoggerClass - includes a logger class that will record the test actions to a local file.
4.GridDemoDir:
(*
) SeeTest object repository used in our test
The project used few SeeTest commands, you are advised to visit this page for exploring the wide range of commands available in SeeTest
- setProjectBaseDirectory
- setReporter
- install
- launch
- click
- elementSendText
- waitForElement
- isElementFound
- lockDeviceForExecution
Please follow the guide Setting up
- Create new maven project using Java IDE.(Eclipse neon was used for this project)
- Fork this project.
- use the pom file, or create your own but make sure to add the following dependency:
<dependencies>
<dependency>
<groupId>com.experitest</groupId>
<artifactId>SeeTestClient</artifactId>
<version>10.2.46</version>
</dependency>
</dependencies>
- Run the command maven update project, to fetch the dependencies.
- Add the testNG plugin to your java IDE.