Questions tagged [testng.xml]

179 questions
0
votes
2 answers

How to pass dynamic parameter TO testNG.xml run multiple tests

I have xml suite that sends multiple tests and multiple parameters. example:
Idan Daniel
  • 3
  • 1
  • 3
0
votes
1 answer

Cannot find class in classpath: exception is thrown even with complete hierarchy mentioned for class in testng.xml

I am trying to execute a simple TestNG test method, but, I am getting the exception: cannot find class in calsspath I have tried Project->Clean in eclipse, but, it is not working, also, please note that I have given complete hierarchic for the test…
Rajaji
  • 133
  • 2
  • 14
0
votes
1 answer

Creating custom method names using ITest generates incorrect HTML report where a repetitive value has appended for all the tests

Facing a issue similar to this when trying to get unique method names using ITest. I have a factory method with a data provider defined to test the same test case with multiple data. When I try to generate unique method names for each test run…
0
votes
1 answer

How to run execute test classes in parallel using testng with geb

GoogleTest.groovy import com.myCompany.pages.GooglePage import geb.testng.GebReportingTestTrait import geb.testng.GebTestTrait import org.testng.annotations.* class GoogleTest implements GebReportingTestTrait { @BeforeClass void setupClass…
rootimbo
  • 337
  • 4
  • 10
0
votes
2 answers

TestNG - Weird behavior

I am little bit confused by this testNG behavior. Consider this simple testNG suite. Test2 depends on Test1. The below suite also starts Test2 only after Test1 which is great!
KitKarson
  • 5,211
  • 10
  • 51
  • 73
0
votes
2 answers

Issue while run of Same @Test method mutiple times with different parameter in same

I have a problem while running my @ Test in order i want multiple times in single test. Basically my framework is designed such that i have some number of @Test methods in different classes and i call them in order i want to create a basic test case…
CodingGirl1
  • 21
  • 2
  • 5
-1
votes
0 answers

On running a testng.xml using extent reports - java.lang.NoSuchFieldError: configContext

`Using testng to include extent reports using listener class java.lang.NoSuchFieldError: configContext Error received from TestNg execution: java.lang.NoSuchFieldError: configContext expected extent report in html format and screenshot for failed…
-1
votes
1 answer

I am getting this error while running the testng file in eclipse

Java Code : package java_package; import org.testng.annotations.Test; public class Testng1 { @Test public void log() { System.out.println("Hello"); } } getting this error: [RemoteTestNG] detected TestNG version 7.8.0 Exception in thread "main"…
-1
votes
1 answer

I am creating TestNG.xml in my selenium script but on creating the same, this is how its showing how to get it in right format?

This is how its showing which is not correct xml format. I searched for a solution but can't find one on how to solve this. I am selecting the option of convert to TestNG.xml, the runner folder that I am selecting to add the file is not showing in…
-1
votes
1 answer

Maven Tests not Running in sequential Order

I'm using a TestNG framework for my automation project. While running from command line i'm giving the following command. mvn clean test -Dtest=Login,OpenImage,Logout By running the above command it the order of execution was…
-1
votes
1 answer

TestNG: Running specific group tests using Testng XML file

I have a testng xml file that is setup to run a specific class that has methods containing the following group tags or are grouped as one of the following: parallel-test sequential-test smoke-test Although some of my tests are designated as either…
user5199
  • 359
  • 2
  • 15
-1
votes
1 answer

What will happen if i run the selenium grid with sequential TestNG file i.e. without mentioning parallel in attribute and vice versa

I wanted to know the difference between running the grid with sequential config i.e. XML file v/s running the same with parallel attribute for the tests mentioned in the XML file. I am using Selenium with java and TestNG.
1 2 3
11
12