Skip to content
Aseem Yadav edited this page May 27, 2018 · 8 revisions

Welcome to the web-test wiki!


SOURCE

Project features 5 classes, namely:

  1. PageSetup.Java - Covers up all the testcases for different browser the web application needs to be tested on.
  2. PageObjects -
    • BasePageObjects.java - Contains all the page objects, locators for the components that are required while testing the website functionality. 3.InputGenerator -
    • RandomInput.java - Class for generating random input data for user's personal information, complying to the standard i.e email ID is generated in format "xxxxxx@xxx.xxx" .
  3. Actions -
    • Login.java - Performs the action of Logging in by getting user's credentials.
    • Logout.java - Performs the actions of Logging out when the user is already logged in.

POM.xml

  • A MAVEN dependency file, containing the configuration details for the project.

TESTNG.xml

  • The testsuite reprsentation in testng, encompasses the details like URL and browsername for running the test.

LIBRARIES

  1. Selenium - Automates web browsers for creating automation suites for testing web applications
    • Supports running the test suite on Firefox, Chrome and MS Edge browsers.
  2. TestNG - Testing framework
    • Support added for making test configuration flexible, creating human readable reports (in HTML) and for providing parameters to testcases.
  3. Log4J - Logging framework, for adding and configuring custom components
    • Support added to display loggin info on standard output while the tests are running.
  4. Apache POI - provides support for reading and writing files in MS office formats
    • Support added in this project for writing random user data to Excel file and getting the data back to run specific tests

DIRECTORIES

Resources:

  • Contains the webdriver executables for Chrome, Edge and InternetExplorer browsers

Input:

  • Contains the Excel files for the input generated using InputGenerator class
  • The files are separated by names, to make sure there will be no ambiguity while running same tests for generated users.

Screenshots

  • Contains the screenshots of web application when a testcase fails.

TestOutput

  • Contains the human readable report generated (using TestNG) after test execution.

Clone this wiki locally