Answers for "parameterized test cases in testng"

0

how to parameterize test cases

Cucumber:
- By using regular expression in feature file
      ==> when user enters "myusername" and "my password"
- Configuration.properties file

TestNG:
- By using 'parameter' key word in pom.xml 
file and using it in my @Test annotation to
call the value of this parameters.
- Configuration.properties file
Posted by: Guest on January-14-2021
0

parameterized test in testng

We use @Parameter annotation.

Let's say we create a class and we put the @Parameter annotation with 
"param-name".

Then we open testng.xml file. We create a suite, it takes also parameter name
attribute. We provide a parameter name which we named in class and we provide
value what we want to pass.
Posted by: Guest on December-08-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language