Questions tagged [testng.xml]

179 questions
0
votes
0 answers

pom.xml file throws java.lang.StackOverflowError" when project is reloaded like project-->Maven-->Reload project

I have an maven appium, testNG, cucumber project which is running fine, but when pom.xml is changed and project-->Maven-->Reload project, it is showing simply one line error with out a stack trace. I am using JDK 17.0.7, maven 3.8.3, testng 7.8.0 …
PraNuta
  • 629
  • 3
  • 12
  • 33
0
votes
0 answers

How to run class A ,Class B and again Class A in testng.xml

I want to run 'method A' from class A ,then 'method B' from class B, then again 'method A' from class A. Is it is possible in testng to repeat run, already run classes. In my case testng not calculating already run classes at the next time in same…
0
votes
0 answers

Parallel execution on Test in TestNG is opening separate browser for each class in the test, it is not executing one after another

Parallel execution on Test in TestNG is opening separate browser for each class in the test, it is not executing one after another.
Suhail Ahmed
  • 504
  • 1
  • 9
  • 19
0
votes
0 answers

Why do some of my Selenium test scripts fail when run in Suite using TestNG.xml file despite working individually?

I have create more than 200 test-scripts in selenium using TestNg. These scripts run fine if executed individually, but if I try to run those multiple test-scripts in Suite using testNg.xml file in sequential manner, some of the test cases fails…
0
votes
0 answers

Execute a testing.xml file from some other java project

I have a swing jTable where in I have a column where all the at the test methods are listed and another column having the class names where the @test methods reside. Is there any way that I can call the test methods of the particular classes from…
sougata das
  • 387
  • 2
  • 3
  • 16
0
votes
0 answers

Upgrade testng version from 6.10 to 7.6

What do I need to keep in mind while upgrading the testng version in pom. I am mostly interested in changes in retryAnalyzer logic. [Edit Question]: Do. I need to use "AnnotationTransformer" to use 7.6 or it can still work by implementing…
Qain
  • 1
  • 2
0
votes
0 answers

How to remove comma from time fron testNG xml

Am running selenium using java test suite. TestNG created surefire-reports/TEST-TestSuite.xml file.
Sarayu
  • 1
  • 2
0
votes
1 answer

Unable to run multiple test cases from multiple classes in a single instance of browser in TestNG

I'm trying to run multiple test cases that are placed in different classes, but when I run the code, the last class creates a new instance of chrome driver. This code is related to company's work hence I can't share the full code in detail but I'll…
0
votes
1 answer

how to use yaml file with qaf as i don't use properties in my project

I am using cucumber-testng framework in my Project. Now i am trying to integrate with QAF to use csv file as a data provider. I don't use properties file instead i use yaml file I want to achieve like this with…
0
votes
1 answer

Nullpointerexception in when of testNG testing method

I have to test a method with testNG framework: public class PkceUtil { private PkceUtil(){ super(); } /** * External application use this method for generating a Base64 URL encoded alphanumeric string of characters *…
robyp7
  • 481
  • 2
  • 7
  • 25
0
votes
0 answers

IntelliJ reports errors in testng.xml after swtiching from Maven to Gradle

Since I'v swtitched from Maven to Gradle, IntelliJ reports errors in all my TestNG .xml configuration files. It seems to be unable to find location of my custom listeners classes as in attached picture. It is however, somehow able to provide…
hetacz
  • 107
  • 10
0
votes
2 answers

Unable to import testng results into Xray Cloud using github actions workflow

The YML file I have used in my project is The error I get in the workflow build Surefire results path mentioned in both the images is correct but still, I don't understand why it is unable to import the results.
Meghana
  • 3
  • 3
0
votes
0 answers

Is it possible to get test count of each class separately from testng xml file?

Currently we use testng ITestContext to get the test count running via testng xml file. My file contains multiple classes and context.getPassedTests().size() returns the total count of passed tests from all the classes mentioned in the xml file my…
0
votes
0 answers

I am not able to run test parallel in TestNG

When i run without parallel keyword then it run, no exception occure. But when i use parallel keyword and thread-count then it cant run and throw an exception "StaleElementReferenceException: stale element reference: element is not attached to the…
0
votes
0 answers

TestNG Parallel Tests always omits 1 test for each method provided by DataProviderClass

My TestClass: @Test(dataProvider = "data-provider", dataProviderClass = DataProviderClass.class) public void testHappyCase(String a, String b, String c, String d, String e) { TEST CODE HERE } My DataProviderClass: @DataProvider(name =…