Tag: testng

TestNG Tutorials 56: DataProvider in TestNG – Parameterizing DataProvider Method to Provide Data to Multiple Test Methods

“DataProvider” is an important feature provided by TestNG to provide required test data to test methods to run on. We have learnt different approaches which we can utilize to get best of DataProvider in previous posts. Let’s learn another way to make more use of DataProvider in TestNG. Suppose we have three Test methods and […]

TestNG Tutorials 43: Difference Between “Parameters” and “parameter” in TestNG

Hello Folks, I was asked this question in an interview and I was like “Are there two terms “Parameters” and “parameter” in TestNG?“. Yes, There are two different terms, “Parameters” and “parameter“. We have used both termas many times but didn’t notice minor thing. “Parameters” is an annotation which allows us to create parameterized methods […]

TestNG Tutorials 42: Parameters In TestNG or Parameterization of Methods in a TestNG Class

Hello Folks, Arguments or Parameters help us to achieve reusability of codes and cleanliness of codes. We can do overloading of methods using different number, types and order of parameters to serve differently for different set of values. TestNG also allows you to parameterized your tests. We will see how can we achieve parameterisation of methods […]

TestNG Tutorials 32: Customizing TestNG xml For Methods Belong to Multiple Group Names

Hello Folks, In last post, we learnt about Multiple groups names foe test and configuration methods. When we assign a method to multiple groups, you find difficulties when you want to run methods belong to only particular groups or to only some groups. For example: Suppose There are three methods M1 ( belongs to G1), […]

TestNG Tutorials 23: @Test Annotation – Don’t Confuse TestNG With Duplicate Priorities

Hello Folks, We learn about priority of test methods in a TestNG class in this post. TestNG Tutorials 22: @Test Annotation – Games Of Priority Of Methods In TestNG Do you know that TestNG will execute methods in unexpected order if you provide duplicate priorities and can create a nightmare for you. We will see […]

TestNG Tutorials 22: @Test Annotation – Games Of Priority Of Methods In TestNG

Hello Folks, We have seen how a TestNG class executes methods when we do not provide any order to methods. You can refer those posts here: Default Priority in a TestNG Class Default Priority in an Inherited Class But, you may require to execute methods in a certain order. Consider a scenario where you need […]

Please wait...

Subscribe to new posts to become automation expert

Want to be notified when my new post is published? Get my posts in your inbox.