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
1 answer

Running testng.xml from Command line always returns "Total tests run : 0"

I encountered a problem when trying to run testng.xml fro command line as it automatically returns: enter image description here If i run testng.xml from eclipse(ProjectName->testng.xml->rightClick->Run as->TestNG suite) all works ok: enter image…
0
votes
1 answer

Getting error while trying to install testNG from eclipse.

An error occurred while collecting items to be installed session context was:(profile=epp.package.committers, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Unable to read repository at…
Shais
  • 11
  • 1
  • 1
0
votes
1 answer

TestNG with eclipse-standard-kepler-SR2-win32

Test output folder is not being created after I execute my test script using TestNG in eclipse-standard-kepler-SR2
Ashish
  • 1
  • 1
0
votes
4 answers

java.lang.NullPointerException at org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:69)

I'm new to selenium framework, i am trying to create a framework and started my steps towards learning framework. I have written a code for login page but here i'm getting "nullPointerException". Anyone's help would be better. Thanks in advance.
user3782636
  • 83
  • 1
  • 2
  • 13
0
votes
1 answer

How Do I Run A TestNG TestSuite In IDEA/Eclipse Without An XML File?

This question shows how to run a TestNG suite programmatically without an XML file. However, when I run it from IDEA it just runs as a main method and the output is not in the test window, whereas the JUnit example in the question does appear in the…
opticyclic
  • 7,412
  • 12
  • 81
  • 155
0
votes
1 answer

re-runned failed test cases are comming with status = 'Skipped' in the testng report

I have used IRetryAnalyzer to re-run my failed test cases. I have also used IAnnotationTransformer as the TestNg Listener. Now only the last count of the re runned test case is coming as failed in the report. The previous iterations are coming as…
0
votes
0 answers

@BeforeGroups and AfterGroups are throwing NullPointer in each run

@BeforeGroups and AfterGroups are throwing NullPointer Exception for each run. I am running BeforeGroups with Syntax: @BeforeGroups(groups = "ICSInvoice") and testcases under it with Syntax: @Test(enabled = true, groups = "ICSInvoice") It is…
rich
  • 61
  • 1
  • 1
  • 3
0
votes
1 answer

org.testng.TestNGException: Cannot instantiate class EDRTermsPackge.ContactInformationTesting

I"m trying to resolve this issue but to no avail. Here is my Source Code public class ContactInformationTesting { //Using or Launching Internet Explorer String exePath = "\\Users\\jj85274\\Desktop\\IEDriverServer.exe"; //For use of…
JJ Whispers
  • 13
  • 1
  • 5
0
votes
0 answers

TestNG Plugin : Unable to read repository... in Eclipse Luna and Mars

I am trying to install TestNG but I am getting below error: Unable to read repository at http://beust.com/eclipse/content.xml. Unable to read repository at http://beust.com/eclipse/content.xml. sun.security.validator.ValidatorException: PKIX path…
Satish
  • 1
0
votes
0 answers

How can two set of values written to an Excel file in TestNG which has been taken from the script iteslf? I am using apache poi for this purpose

I have been testing an application where i have to write a set of results to the excel file, the values are taken from the script. But the problem is that first I have to set the column headings like "Sl No" and "Name" after that I have to print the…
0
votes
1 answer

Specifying relative paths for Template XML file in TestNG

I am using Eclipse (Luna) with a TestNG project. I would like to specify a relative path for my testNG.xml file, but the "Apply" box is grayed out. I assume that this is because the path being pre-pended to the Template XML file is different than…
rose
  • 327
  • 3
  • 10
0
votes
1 answer

Neon Unable to read repository at http://beust.com/eclipse

I am trying to install TestNg plugin but facing error "Unable to read repository at http://beust.com/eclipse" from Install New software link and as well as from marketplace. I am able to open Url from internal browser and I am download plugin in…
0
votes
1 answer

Assertion in selenium webdriver -report showing only falied methods, not passed methods

In my selenium TestNG class, there are some methods, like method1, method2 etc. I have added fail and success conditions to each method. public class TestNGClass { public void method1(String value) throws Exception { if(value.equals("PASS"){ …
0
votes
0 answers

How can I know that TestNG framework is suitable to perform test case prioritization in regression testing?

I have a requirement to know that, whether TestNG framework is suitable for test case prioritization in regression testing to increase the fault rate detection or not? Which also enhance the performance of coverage based techniques based on the…
bhavya
  • 11
  • 1
0
votes
3 answers

An internal error occurred during: "TestNG Result Listening Job". Port value out of range: -1

After installation of the update for eclipse on 1/2/2017 I got an error even for previously working tests: An internal error occurred during: "TestNG Result Listening Job". Port value out of range: -1 I googled how to fix that - made an update…
Aleksey Kiselev
  • 331
  • 1
  • 7
  • 21