The TestNG Eclipse plug-in allows you to run your TestNG tests from Eclipse and easily monitor their execution and their output.
Questions tagged [testng-eclipse]
345 questions
1
vote
1 answer
How to execute 2 test classes in order using TestNG if classes belongs to different tests?
I'm new to Automation and wondering how do I execute 2 test classes in a specific order if they belong to different tests.
I have the following testng.xml file:

gene
- 2,098
- 7
- 40
- 98
1
vote
1 answer
How to have my "config()" running only once per testng session?
I have multiple testNG classes that are to test different features of our website. For each class, before it is being executed, it needs to run a same config() call to have some devices setup.
So for each individual test class, it looks in this…

user3595231
- 711
- 12
- 29
1
vote
1 answer
How to merge all the testng emailable report into single report through programatically
I have 100 test cases and retry logic will execute if there are any failed test scripts and the emailable report had only status of failed test scripts alone. I just want to merge the first and retry run test reports as single one in the form of…

ArrchanaMohan
- 2,314
- 4
- 36
- 84
1
vote
2 answers
How do I Print the Parameters not values using Listners. Also what is wrong when my string returns null as a prefix to every output?
I want to print the Parameters passed to this method using Listners.
@Test
@Parameters({"browsername","URL", "ebrowse","eURL"})
public static void LaunchApplication(String browsername, String URL, String ebrowse, String eURL ) throws…

Learner_me
- 29
- 7
1
vote
1 answer
Read XML parameters values in Testlistener
I am running TestNG via TestNG.xml, Is there any way I can read parameters from TestNG.xml to Itestlisteners. I wan to read browsername value and URL value from below XML to my Testlistener.
TestNG.xml:-

Ravi
- 11
- 1
1
vote
1 answer
Rerunned test method marked as SKIPPED
I wrote a script in selenium with TestNg framework such that the failed test method will be rerun, and this is at Test Level by indicating the location of the class that implements the IRetryAnalyzer in @Test()
TestNG had successfully rerun the…

Vijayrushi
- 41
- 3
1
vote
2 answers
1
vote
3 answers
Spring boot testing with testNG
I am using spring boot 2.0.1.RELEASE and TestNG for testing. But unable to load spring context and autowire repository. Kindly guide me.
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
public class ApplictionTestsWithTestNG extends…

roushan kumar Singh
- 354
- 4
- 12
1
vote
1 answer
testng.xml suite Skip all test classes if it gets fail, it happens only for Microsoft Edge Browser
Executing Multiple classes with testng.xml suite, Where If any single class or test got fail it will skip only that particular test and go ahead for next test suite, for Firefox and Chrome. But, in case of Microsoft edge it can't handle Fail Test…

Ishita Shah
- 3,955
- 2
- 27
- 51
1
vote
0 answers
Tool Tip error in Eclipse Kepler after TestNG installation
My projects in Eclipse Kepler were working just fine until I downloaded TestNG. Post TestNG download, I am unable to click on the run button for my code. After I click on run or even if I hover over on run the following error message is…

Anjana Madhavan
- 11
- 1
1
vote
1 answer
Maven Surefire plugin is not picking the parameters
Maven Surefire plugin is not picking the parameters. When I run the Regression Suite xml in eclipse it works fine. But the same xml does not work when I run as Maven test.For some reason it is not picking up the parameters. I have been struggling…

Bob Jones
- 171
- 1
- 4
- 22
1
vote
2 answers
Unable to locate the element for same fields present on the different blocks on the page as xpaths and all other entities are same
I am automating one application using selenium in which I am stuck at a point where I am not able to find the way to locate an element for same fields which are in different blocks but their xpaths and all other entities are same hence I am unable…

Tester
- 21
- 3
1
vote
1 answer
Dynamic TestNG XML Creation. Getting wrong XML. Where I am wrong
Dynamic TestNG XML Creation. Getting wrong XML. Where I am wrong.
I want my testNG xml to be print as shown below.

Hashili
- 113
- 16
1
vote
1 answer
An internal error occurred during: "Compute launch button tooltip". java.lang.IllegalArgumentException with Eclipse Kepler after TestNG installation
My projects in Eclipse Kepler were working just fine until I downloaded TestNG. Post TestNG download, I am unable to click on Run button for my code. after I click on run or even if I hover over on run the following error message is displayed.
An…

Manasi k.
- 43
- 7
1
vote
0 answers
IOSDrive becomes null and Appium TestNG tests restarts the app in between
I am facing issues with appium test groups. I have written multiple test cases for my app and running different sets at a time.
Basically, my test flow is: Login with Google => Input Password => Logout
Then for another set same flow with Login with…

Paresh Thakor
- 1,795
- 2
- 27
- 47