TestNG 7.0.0 is duplicating test cases execution
See original GitHub issueTestNG Version
7.0.0
Expected behavior
Should showing up only 1 test case execution
Actual behavior
It’s displaying two times the same test cases (same speed execution)
Is the issue reproductible on runner?
- Shell
- Maven
- Gradle
- Ant
- Eclipse
- IntelliJ
- NetBeans
Test case sample
As you guys can see, Chrome browser is executing the test case two times, I’ve tried with 10 test cases and it’s happening the same, duplicating the same timing execution for all test cases (just first browser).
This had never happened on 6.14.3, since I changed to 7.0.0 it’s happening.
Additional info (I’ll attach my xml)
`<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <suite name="My TestCase Execution" parallel="tests"> <test name="Chrome Test"> <parameter name="browser" value="chrome" /> <groups> <run> <include name="Test" /> </run> </groups> <classes> <class name="JavaClass1" /> </classes> </test> <test name="Firefox Test"> <parameter name="browser" value="firefox" /> <groups> <run> <include name="Test" /> </run> </groups> <classes> <class name="JavaClass1" /> </classes> </test> </suite>`Issue Analytics
- State:
- Created 4 years ago
- Comments:9
Top Results From Across the Web
Test Annotation – Don't Confuse TestNG With Duplicate ...
Do you know that TestNG will execute methods in unexpected order if you provide duplicate priorities and can create a nightmare for you....
Read more >How To Solve- org.testng.TestNGException - YouTube
Many people are facing issue because of the TestNG version and its compatibility issues. Here is the error log looks likeorg. testng.
Read more >Eclipse : Used testNG 7 without built with maven ? ClassPath ...
I'm writting some testCases on Windows in java using eclipse IDE, version : 2019-06 (4.12.0), selenium WebDriver 4.0.0, testNG 7.0.0-beta7 ...
Read more >Three Ways to Install TestNG in Eclipse IDE - TechBeamers
Check out the three ways to install TestNG in Eclipse IDE. These methods help to install TestNG plugin in Eclipse on Windows, Linux,...
Read more >AGP 7.0.0 does not create unit test jacoco exec files correctly ...
In the 4.2.0 case, the root-level exec file isn't created, ... However, it really messes with Unit Testing or if you wanted mixed...
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 FreeTop 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
Top GitHub Comments
Running from maven also duplicates all test execution 10 times. If I run 100 tests, it will run 1000 tests. Tried simple -> complex scenarios.
The sample command I’m using is: mvn clean test -DGroups=mygroup
Maven home: E:\java\apache-maven-3.5.0\bin.. Java version: 1.8.0_201, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.8.0_201\jre Default locale: en_US, platform encoding: Cp1251 OS name: “windows 10”, version: “10.0”, arch: “amd64”, family: “windows”
Reproduced in on TestNG 7.1.0. Reverting back to 6.13.1
Could not reproduce it when running from JetBrains IDEA, only from console and the same on Jenkins.
This issue is no longer reproducible in TestNG
7.3.0
. The attached sample project can be used to verify. It fails with7.1.0
and passes with7.3.0
issue_2243.zip