Skip to content

khaledAbbasExperitest/gridExample

Repository files navigation

ScreenShot

GridExample

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.

Grid Feature

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.

Concept

The project consists of the following files:
ScreenShot

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

Used SeeTest commands:

The project used few SeeTest commands, you are advised to visit this page for exploring the wide range of commands available in SeeTest

  1. setProjectBaseDirectory
  2. setReporter
  3. install
  4. launch
  5. click
  6. elementSendText
  7. waitForElement
  8. isElementFound
  9. lockDeviceForExecution

Installing SeeTest cloud

Please follow the guide Setting up

Project Setup

  1. Create new maven project using Java IDE.(Eclipse neon was used for this project)
  2. Fork this project.
  3. 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>
  1. Run the command maven update project, to fetch the dependencies.
  2. Add the testNG plugin to your java IDE.

Running the test

  1. Ensure that you have SeeTest cloud version >= 10.2
  2. Ensure you have the following dependencies:
    ScreenShot
  3. Enter your credentials in the verifyPagesTest
  4. Right Click on the file testng.seetestGrid.xml file, and run as TestNGSuite.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages