Skip to content

TestNG is an open-source next-generation automated testing framework developed to eliminate the inadequacies in Junit. This automated test framework comes with new functionalities and systematic approaches to make it easier for software testers and developers to perform automated testing.

Notifications You must be signed in to change notification settings

Majhar-98/Web-Automation-SeleniumTestNG-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website-Automation-SeleniumTestNG-Project

TestNG Framework:

TestNG is an open-source test automation framework for Java. It is developed on the same lines as JUnit and NUnit. A few advanced and useful features provided by TestNG make it a more robust framework compared to its peers. The NG in TestNG stands for ‘Next Generation.’ Created by Cedric Beust, it is used more frequently by developers and testers in test case creation, owing to its ease of using multiple annotations, grouping, dependence, prioritization, and parametrization features.

Benefits of TestNG with Selenium:

One of the drawbacks of Selenium is that it does not have a proper format for the test results. By using TestNG framework in Selenium, Tester can:

  1. Generate the report in a proper format.
  2. Include the number of test cases run; tests passed, failed, and skipped in the report.
  3. Group test cases by converting them to testing.xml
  4. Use invocation count and execute multiple tests without using loops
  5. Perform cross browser testing
  6. Easily understand annotations

Technologies Used:

  • Java
  • Selenium
  • TestNG
  • Allure
  • Faker Library

Flow of Automation Scenarios:

  1. Login to orange hrm demo site https://opensource-demo.orangehrmlive.com/

  2. Create 2 new employees and save it to a JSON list

  3. Now go to PIM dashboard and search by 1st user name. Assert that the user is found.

  4. Now click on the user from the search table and update id by random userid

  5. Now again search the user by new user id from the PIM dashboard menu and assert that the user is found

  6. Now logout from admin and login with the 2nd user from your JSON list

  7. Now click on My Info menu

  8. Select Gender and Blood Type and save it

  9. Click on contact details and input address and email

  10. Logout the user

Requirement:

Java needs to be installed in device

How to run this project

  • Clone the repo

  • Open cmd in the root folder

  • Give following commands:

      gradle clean test
      
      allure generate allure-results --clean -o allure-report
      
      allure serve allure-results
    

Allure Report:

image

About

TestNG is an open-source next-generation automated testing framework developed to eliminate the inadequacies in Junit. This automated test framework comes with new functionalities and systematic approaches to make it easier for software testers and developers to perform automated testing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages