supporting parameters at method level?
See original GitHub issueIs it possible to support special parameters at method level? For instance,
<test name="Regression1">
<groups>
<run>
<exclude name="brokenTests" />
<include name="checkinTests" />
</run>
</groups>
<classes>
<class name="test.IndividualMethodsTest">
<methods>
<include name="testMethod" param1="121" param2="1212" />
</methods>
</class>
</classes>
</test>
I am trying to achieve this by modifying testng code - I would appreciate any guidance/start for this.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:12 (4 by maintainers)
Top Results From Across the Web
TestNG @Parameters - Passing Parameters to Tests
TestNG @Parameters annotation allows users to pass parameters to tests as arguments. Optional parameters can be sent with @Optional.
Read more >Passing Parameters at Test Method Level in TestNG
Hello Folks, In this post we will learn an important concept of parameters in TestNG. We know that we can create parameterised methods...
Read more >Parameterized Tests In TestNG Using Selenium - Tools QA
Parameters pass the values in the runtime. An example of using the parameters in TestNG can be entering different values in an input...
Read more >TestNG - Parameterized Test - Tutorialspoint
TestNG lets you pass parameters directly to your test methods in two different ways − ... We can also define the parameters at...
Read more >Parameterization in TestNG | Suite Level | @Optional annotation
In this session 9 in TestNG series, we will learn Parameterization in TestNG by using @ Parameters annotation in testng class and parameter...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Actually, parameters on method level exists. Here is an example:
👍 Good to know! I’ve never seen it before.
@JayVem I close the issue as it already exists.