-
Execute the simple test code bellow:
``` java
@DataProvider(name = "test")
public Object[][] testDataProvider() {
List data = new ArrayList();
data.add(new Object[] { 1 });
…
-
example:
``` java
@Parameters ("parameter")
public void testMethod(MyEnum parameter) {
...
}
```
testng.xml:
``` xml
...
.....
```
## Actual behavior:
i…
-
Let's say I have a test class with a `@Factory`-annotated constructor:
``` java
import org.testng.annotations.DataProvider;
import org.testng.annotations.Factory;
import org.testng.annotations.Test;
…
qerub updated
8 years ago
-
### TestNG Version
6.9.12 loads ok on Java >=7
6.9.13 doesn't
### Expected behavior
Works on Java 7.
### Actual behavior
`java.lang.UnsupportedClassVersionError: org/testng/ITestListener : Unsuppor…
-
DataProvider tests are ignored by TestNG 6.9.12 using Gradle 2.14 (2.13 and 2.12 too.)
Sample project [here](https://github.com/ethauvin/DataProviderTest) using dp sample code from docs.
Switching t…
-
In the below code I expect only 2 tests to run (and pass):
``` java
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import java.util.Iterator;
import java.util.stream…
-
JMockit Version 1.26
with the latest version of JMockit, minTimes does not seem to work the same as before. When a method call in an Expectations block has the minTimes set to 0, a test which does no…
-
Hi,
I added Allure reports to my existing TestNg framework. I run the tests using Maven from test suite files which have defined which classes and tests to run. For some reason, the generated report …
-
When developer write unit test with usage `@UseDataProvider` and try to run it with [maven surefire plugin](http://maven.apache.org/surefire/maven-surefire-plugin/) or [maven failsafe plugin](http://m…
-
There is a small bug when generating the reports.
My tests use JunitParams because I need to run the same test over many different instruments, which I pass the name (in the form "IX.D.FTSE.DAILY.IP"…