This project aims to identify car wash services based on specific criteria such as location, rating, and customer votes. The goal is to display the top five car washing services along with their names and phone numbers. The following requirements should be met:
- The Car Washing services should be located near the user's location.
- The services should have a rating higher than 4 stars.
- The customer votes for each service should be more than 20.
To accomplish the task, the suggested website for reference is Justdial.com, although any legitimate website can be used for this purpose.
The automation script should perform the following actions:
- Search for car washing services near the user's location and sort them based on the highest rating.
- Filter out the services that do not meet the specified criteria (rating > 4, customer votes > 20).
- Display the names and phone numbers of the top five car washing services that satisfy the criteria.
To demonstrate error handling, the automation script should also perform the following tasks:
- Register for Free Listing on the website.
- Fill the registration form with one invalid input, such as an incorrect phone number.
- Capture the error message displayed due to the invalid input and display it.
As an additional task, the automation script should navigate to the Fitness section of the website and retrieve all the sub-menu items under the Gym category. The retrieved sub-menu items should be stored in a list and then displayed.
The automation script should cover the following key aspects:
- Handling alerts and search options on the website.
- Implementing multiple navigation paths to access the desired page.
- Filling out forms with different objects on the web page.
- Capturing warning messages and displaying them.
- Extracting menu items and storing them in collections.
- Navigating back to the home page after completing the required tasks.
Please note that while the suggested website is Justdial.com, any other legitimate website can be used for this project.
✅ Eclipse IDE for Enterprise Java and Web Developers 2023
- TestNG (can be installed from Eclipse Marketplace)
- In the project directory, a xml file named
testng.xml
is present. - Right-click the file and Run As -> TestNG Suite. The sequence of the test pages will execute accordingly
- From there, after the execution, you can view the Extent Report from testreport ->
TESTREPORT1.HTML
,TESTREPORT2.HTML
,TESTREPORT3.HTML