@@ -0,0 +1,1682 @@
+package com.softwareguru.testCases;%0A%0Aimport java.lang.reflect.Method;%0A%0Aimport org.testng.Assert;%0Aimport org.testng.annotations.AfterTest;%0Aimport org.testng.annotations.BeforeMethod;%0Aimport org.testng.annotations.BeforeTest;%0Aimport org.testng.annotations.DataProvider;%0Aimport org.testng.annotations.Test;%0A%0Aimport com.softwareguru.config.Business;%0Aimport com.softwareguru.utils.ExcelUtils;%0Aimport com.softwareguru.utils.LocatorType;%0A%0Apublic class RegisterUsers extends Business%7B%0A%0A%09Object%5B%5D%5B%5D testObjArray;%0A%09String testCaseWorkBook = System.getProperty(%22user.dir%22) + %22%5C%5CtestData%5C%5CFlightRegisterData.xlsx%22;%0A%0A%09@DataProvider(name = %22UserRegistration%22)%0A%09public Object%5B%5D%5B%5D userRegister(Method m) throws Exception%7B%0A%09%09return (testObjArray = ExcelUtils.getTableArray(testCaseWorkBook, %22RegisterUser%22));%0A%09%7D%0A%0A%09@BeforeTest%0A%09public void setUp()%7B%0A%09%09navigateTo();%0A%09%7D%0A%0A%09@AfterTest%0A%09public void tearDown()%7B%0A%09%09getDriver().quit();%0A%09%7D%0A%0A%09@BeforeMethod%0A%09public void clickRegister()%7B%0A%09%09clickOnLink(LocatorType.LinkText, %22REGISTER%22);%0A%09%7D%0A%0A%09@Test(dataProvider = %22UserRegistration%22)%0A%09public void contactInformation(String ... dataProvider)%7B%0A%09%09String%5B%5D contactInfo = new String%5B4%5D;%0A%09%09String%5B%5D mailInfo = new String%5B5%5D;%0A%0A%09%09//Store data for mail info and contact info%0A%09%09for(int i = 0; i %3C 9; i++)%7B%0A%09%09%09if(i%3E3)%7B%0A%09%09%09%09mailInfo%5Bi-4%5D = dataProvider%5Bi%5D;%0A%09%09%09%7Delse%7B%0A%09%09%09%09contactInfo%5Bi%5D = dataProvider%5Bi%5D;%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%09//Adding Contact Information%0A%09%09addContactInfo(contactInfo);%0A%0A%09%09//Adding Mailing Information%0A%09%09addMailingInfo(mailInfo);%0A%0A%09%09//Adding User Information%0A%09%09submitUserInfo(dataProvider%5B9%5D, dataProvider%5B10%5D);%0A%0A%09%09//Verify user name is displayed%0A%09%09Assert.assertTrue(getElementText().contains(dataProvider%5B9%5D));%0A%09%7D%0A%7D%0A

Create RegisterUsers.java