Created
December 5, 2019 11:14
-
-
Save muditlambda/39003023ccfb0d9806e4d0409c75dd98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package parameterization; | |
import org.testng.annotations.Test; | |
import org.testng.annotations.Parameters; | |
public class ParameterPass { | |
@Parameters("browser") | |
@Test | |
public void test1(String browser) { | |
if(browser.equalsIgnoreCase("FF")) | |
{ | |
System.out.println("The browser value is : " +browser); | |
}else if(browser.equalsIgnoreCase("Chrome")) | |
{ | |
System.out.println("The browser value is : " +browser); | |
}else if(browser.equalsIgnoreCase("IE")) | |
{ | |
System.out.println("The browser value is : " +browser); | |
} | |
else | |
{ | |
System.out.println("Incorrect browser value passed."); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment