Pages in Para Bank:
- Home Page
- Accounts Overview
- Open New Account
- Transfer Funds
- Bill Pay
- Find Transactions
- Update Contact Info
- Request Loan
- Log Out
Create Test NG class for Each Module/Page
Each Test NG class should contain @Test belonging to the same page.
Each Test NG class should have setUp method annoted with @BeforeMethod or @BeforeTest. This Method should have code to initilaize Driver
Each TestNG class should have a cleanUp method annoted with @AfterMethod or @AfterTest.
Create Test NG XML with all the TestNG classes.
Run them Sequentially
Run them Parallel:
<?xml version="1.0" encoding="UTF-8"?> <suite name="suite_1" parallel = "methods" thread-count="3"> <parameter name="username_newtours" value = "mercury"/> <parameter name="password_newtours" value = "mercury"/> <test name="test_1"> <classes> <class name="com.itpa.selenium.testng.NewToursTest"/> <class name="com.itpa.selenium.testng.ZeroBank"/> <class name="com.itpa.selenium.testng.ParaBankTest"/> </classes> </test> </suite>