DWQA Ask QuestionCategory: SeleniumSelenium Test NG: Automate ParaBank
admin Staff asked 5 years ago

Pages in Para Bank:

  1. Home Page
  2. Accounts Overview
  3. Open New Account
  4. Transfer Funds
  5. Bill Pay
  6. Find Transactions
  7. Update Contact Info
  8. Request Loan
  9. 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">
			<class name="com.itpa.selenium.testng.NewToursTest"/>
			<class name="com.itpa.selenium.testng.ZeroBank"/>
			<class name="com.itpa.selenium.testng.ParaBankTest"/>