Questions tagged [testng-eclipse]

The TestNG Eclipse plug-in allows you to run your TestNG tests from Eclipse and easily monitor their execution and their output.

References:

345 questions
0
votes
0 answers

Selenium WebDriver throws org.openqa.selenium.remote.UnreachableBrowserException while running test cases in parallel using testNG

While running test cases in parallel using TestNG "UnreachableBrowserException" is throwing whereas if parallel="false" is given test cases are executing succesfully. TestNG Version: 6.9.10 Selenium Java: 3.0.1 Chrome Version: 58.0.3029.110 Chrome…
0
votes
0 answers

TestNG dependencies added but not getting run as TestNG option

I have added testNG dependencies in POM.xml org.tesntNG testNG 6.9.9 But I am not getting an option of run as "TestNG" Kindly help
0
votes
1 answer

Error using Windows Handle Selelnium

Below is the code that I wrote where i am using windows handle to validate the url new window being opened after clicking on a link into new page. package pages; import java.io.IOException; import org.openqa.selenium.By; import…
0
votes
1 answer

Dataprovider anotation - Testng Selenium Java

Query - The last set of values keep failing, the error that i am getting is that its unable to fine the xpath, but its working fine for other two cases. So a bit confused. I have pasted the error code as well. Would appreciate any help I can get.…
0
votes
1 answer

Defining order of execution of @BeforeGroups methods for a test belonging to same group in Java

I have a test method belonging to multiple groups, I want to ensure that one @BeforeGroups method (setupHomePage) runs before another (setupUniversalSearchPage). The order must be defined within java only as I am supposed to use any testng xml.…
Anurag Shukla
  • 379
  • 1
  • 3
  • 11
0
votes
0 answers

unable to use the superclass object in 2nd Test Class but can use it in the 1st Test Class

I have superclass named BaseTest with code public class BaseTest { public AndroidDriver driver; DesiredCapabilities cap; @BeforeTest @Parameters("device") public void SetUpForDriver(String device) throws…
0
votes
1 answer

How to categorize TestNG failures based on type of failure?

I'm trying to categorize TestNG failures based on the type of exception/error causing the error. Is there some way to do this? I'm relatively new to TestNG, so would appreciate any help possible
Vijeet Vergis
  • 101
  • 1
  • 10
0
votes
1 answer

How to customize TestNG file creation programmatically to avoid comments

I have the following code XmlSuite suite = new XmlSuite(); suite.setName(sheet.substring(0, 3) + " Test Suite"); for (int i = startRow; i <= endRow; i++) { XmlTest test = new XmlTest(suite); …
Zaxxon
  • 182
  • 1
  • 4
  • 18
0
votes
1 answer

Testng:Dataprovider: error : sun.reflect.NativeMethodAccessorImpl@2f1ea80d

I am trying to read data from excel which contains only one column with three rows in it ID A1002 B1003 C1004 I am using dataprovider in Testng to achieve the same. But on returning the 2D Object array, I am getting…
Monika
  • 33
  • 1
  • 4
0
votes
0 answers

How to run multiple methods present in different classes on mvn command line

How to run multiple methods present in different classes on mvn command line referred How to run multiple test classes or test methods using Maven? doesn't work for multiple method present in different class Tried with below line mvn…
Anu
  • 1
0
votes
2 answers

I'm trying to do comparision of two arrays by using this code, but I'm getting error: java.lang.AssertionError

@Test(priority=4) public void content(){ String[] x = {"Home", "Chatter", "Campsites", "Campsite Reservations", "Countries", "Table", "SPP Email Domain" }; …
0
votes
0 answers

TestNG installation fails in eclipse Install New software

On trying to install the TestNG from eclipse Install New Software using the URL "http://beust.com/eclipse" throws some error which is attached in the screen shot below.I tried appending "/" after the eclipse in the URL. I also tried using https. I…
0
votes
2 answers

How to convert TestNG report index.html to pdf

I am trying to convert TestNG report to PDF. I have tried so many options present on google but all are converting HTML code to PDF but I required replica of index.html or emailable report to PDF. Many are offering different plug-ins.. I do not have…
Shubham Jain
  • 16,610
  • 15
  • 78
  • 125
0
votes
1 answer

Eclipse not open Run Configuration pop-up that allow to select testng.xml configuration file

Before I reinstalled my computer and eclipse, when I right click on Java test class -> Run as -> TestNG Test, a "Run Configuration" pop-up box is displayed and let me choose what xml configuration file I want to run my test with. But now, instead of…
real_kappa_guy
  • 313
  • 1
  • 4
  • 12
0
votes
0 answers

How can i call all tests methods using testng inside a class where testId's from excel is equal to tests methods

This is sample sample code trying to fetch all test Id's from excel and I need to execute corresponding test methods where testid = testmethod