- Login as a admin to https://opensource-demo.orangehrmlive.com/
- Go to PIM menu and create a new employee. Save the employee firstname, lastname, employeeid, username and password into JSONArray file. Generate random password which meets following criteria: For a strong password, please use a hard to guess combination of text with upper- and lower-case characters, symbols and numbers. Assert if employee is created successfully.
- Now go to the dashboard again and search by the employee id to check if the employee is found
- Now go to the Directory menu and search by employee name and check if the employee is found
- Logout the session.
- Now login with the newly created employee creds
- Assert your full name is showing besides the profile icon.
- Go to my info
- Scroll down and select Gender and Blood Type as O+ and save it. Then logout the user.
- Create a smoke suite configuration which will run only following features (positive cases only):
- Login to admin
- search by the employee id if found
- logout admin and login to the employee id you created last
- Update the blood Group as AB-
- Logout the user
- Selenium Webdriver
- TestNG
- Gradle
- Java
- JavaFaker
- Simple JSON
- Allure Report
- Intellij idea
- JDK 11 or higher
- java IDE
- Configure environment variable for Java, Gradle and Allure Report
https://opensource-demo.orangehrmlive.com/
- Clone the project
- Execute the following command on the project directory
gradle clean test -Pusername="Admin" -Ppassword="admin123" -PsuiteName="masterRegressionSuite"
gradle clean test -Pusername="Admin" -Ppassword="admin123" -PsuiteName="masterSmokeSuite"
or
gradle clean test -PsuiteName="masterRegressionSuite"
gradle clean test -PsuiteName="masterSmokeSuite"
- Execute the following commands (after finishing the project run)
allure generate allure-results --clean
allure serve allure-results --clean