CASE STUDY – AUTOMATE END-TO-END FUNCTIONAL
TESTING FOR TESTME APP
SCENARIO 1:
Step 1: Create a Maven project (CaseStudyTestMeApp) along with two TestNG classes
OnlineShoppingTest.java in testmeapp.tests package and Drivers.java in testmeapp.utility
package. Add the required priority and data members.
Step 2: Add the required dependencies and plugins in pom.xml file.
Step 3: Design Drivers utility class to launch Chrome, Firefox, Internet Explorer, and Edge
browsers by WebDriver.
SCENARIO 2:
Step 1: Create Instance for all the data members declared in the OnlineShoppingTest.java in
the pre-condition step.
Step 2: Design post-condition steps to capture screenshot for the failed test methods and
attach the captured screen to the test report.
Step 3: Design post-condition steps to clean all the resources.
SCENARIO 3:
Step 1: Create test method (test Registration()) to automate and verify registration process
in TestMe App.
Step 2: Run test as TestNG test and observe the report.
SCENARIO 4:
Step 1: Create test method (testLogin()) to automate and verify login process in TestMeApp.
Step 2: Run the test as TestNG test and observe the report.
SCENARIO 5:
Step 1: Create test method (testCart()) to automate and verify add products to the cart in
TestMe App.
Step 2: Run the test as TestNG test and observe the report.
SCENARIO 6:
Step 1: Create test method (testPayment()) to automate the payment page and purchase the
products in the cart.
Step 2: Run the test as TestNG test and observe the report.
Report:
SCENARIO 7:
Step 1: Create a new repository in the inner source.
Step 2: Commit & Push the codes to the inner source by creating a new repository.
Step 3: Start the Jenkins server.
Step 4: Open the Jenkins dashboard in the browser by entering the URL for Jenkins.
Step 5: Create a maven project in Jenkins by clicking on a new item.
Step 6: Configure the project from the git repository and trigger the build using pom.xml
from the repository.
Step 7: Refactor the code till the build is success and observe the test reports.