Passing parameter from Goal



Reading parameter from goal-Maven.




public class ParaPass {
@Test
@Parameters({"name","Sirname","Age"})
public void test(String name, String lastname, int age)
{
System.out.println(name);
System.out.println(lastname);
System.out.println(age);
}
}


Passing parameter from Goal





Output-








No comments:

Post a Comment

Software Testing Automation Guide

  get methods in Selenium Webdriver Below are the list of get methods that can be use with driver. Get()- This com...