//
archives

Archive for

Sharing data across Tests in different TestClasses

So today I saw another interesting question posted on the TestNG-Users google forum. How does one go about sharing data across test methods which are spilt over different test classes. Here’s two ways which I can think of in which this can be done. Approach 1: Via the TestClass’s instance. Here’s how you do it. … Continue reading

Sharing parameters among different TestNG suites.

Off late I have been seeing a couple of queries every now and then which asks “How do I share parameters across multiple TestNG suite xmls”, so I thought I would perhaps write up a post which details it. There are two ways in which this can be done. Approach (1) Leverage what TestNG directly … Continue reading