|
Hi Tarun,
I am following your sessions in youtube, they are really helpful.
In the Session-6, you have created a method getRegistrationData in RegistrationData.java under DataProvider. But I haven't seen this method being called anywhere in any other class, so how are we able to set these values to these methods without calling the method. Can you please explain. Thank you!!
@DataProvider(name="regData")
public static Object[][] getRegistrationData() {
RegistrationData registrationData1 = new RegistrationData();
registrationData1.setFirstName("Test User1");
registrationData1.setLastName("Last Name1");
registrationData1.setPhone("5678904321");
registrationData1.setUserName("SeleniumUser1");
registrationData1.setCountry("INDIA");
registrationData1.setEmail("SeleniumUser@test.com");
registrationData1.setPassword("123456");
registrationData1.setConfirmPassword("123456");
return new RegistrationData[][] {{registrationData1}};
|