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

Getting an error while trying to use @FindBy annotation in selenium

I did come across this issue here but according to the thread the "error was gone, and I don't know how it was fixed"... got error while trying to use @FindBy annotation in selenium Here is the code I have written. The strange thing is I already…
2
votes
1 answer

How do I take screenshot of webelement (partial screen not whole page) which fails in selenium

How do I take screenshot of webelement (partial screen not whole page) which fails in selenium .I have tried using Point to locate the position of webelement and 5aken the screenshot it worked , but that was hard coded I want a runtime solution. for…
2
votes
3 answers

@AfterClass is not executed

In my test automation runs tests on two mobile devices in Parallel with testNG feamework. The @BeforeClass and the @AfterClass methods are in the base (super) class that all other test classes inherit. The BeforeClass method initialized the driver…
S P
  • 101
  • 2
  • 13
2
votes
0 answers

Testng eclipse remote debugging?

I am able to debug testng when the code is in my local box and I build it on my localhost box with the simulator. I am trying to see if there is any way I can debug testng by adding debug points in eclipse giving a remote build . (Eg: like remote…
user2868864
  • 165
  • 2
  • 12
2
votes
1 answer

Adding TestNG to and existing Selenium Script - My pass/fail Output not matching up with TestNGs

First timer here to Stackoverflow, and a beginner to Java/Scripting/Selenium/TestNG I created a simple script to check page meta data which correctly prints pass or fail if expected page title, I modified some code from a tutorial I found. I Later…
2
votes
1 answer

Testng running sequence of the test case is changed after updating to 6.14.2

Previously I am using testng 6.8.8 version and all tests are executed as expected. But before a few days back I updated testng version to 6.14.2, Started facing running sequences issue. I also tried with priority change and all things but it's not…
2
votes
0 answers

Unable to return Object[] from DataProvider

I tried returning a single dimensional Object[] from dataProvider and it worked for me. But the same code is not working in my office environment.What would be the issue? I am using TestNG 6.13.1 @DataProvider(name = "Data") public Object[]…
2
votes
1 answer

how to customize TestNG report result with json format

I am working with TestNG and selenium webdriver java. I want to make a output report in json format, can testng make a report with json format?Please suggest me a example for this issue.
2
votes
1 answer

org.openqa.selenium.NoSuchElementException: no such element using TestNG

Error is thrown when code reaches the line before "almost end". But error is thrown for the line driver.findElement(By.id("txtEmail")).sendKeys("abc.in"); driver.findElement(By.id("btnEmailSubmit")).click(); Please help me in finding out what's…
Soumya
  • 23
  • 2
2
votes
7 answers

java.lang.NoSuchMethodError running TestNG Test in Eclipse

I am getting the Exception FAILED CONFIGURATION: @BeforeSuite arquillianBeforeSuite java.lang.NoSuchMethodError: org.jboss.remoting3.Endpoint.builder()Lorg/jboss/remoting3/EndpointBuilder; at…
MacNord
  • 141
  • 1
  • 2
  • 9
2
votes
1 answer

How to use maven active-profiles on Eclipse with testng execution

On my pom.xml I have created some profiles. On my Eclipse project I have selected the profiles I must use to run with TestNG. The test must doing different things depends on the profile. I try use ${project.activeProfiles[0].id}, but does not work…
j.barrio
  • 1,006
  • 1
  • 13
  • 37
2
votes
2 answers

Error org.testng.TestNGException: Cannot inject @Test annotated Method main with class Ljava.lang.String;

I have created a testng.xml file to run a suite of my selenium webdriver test. From eclipse I can run this just fine as a testNG Suite, but from the command like I get the following error. testng.xml
CJ2K
  • 29
  • 1
  • 1
  • 2
2
votes
2 answers

I am getting null pointer exception for webelement defined under @FindBy annotation in page factory model

I'm new in Selenium learning. I'm getting null pointer exception when I try to use web element - Milestone_Tile_Text.click; in my code but it works fine when I use LoginTestScript.fd.findElement(By.linkText("Milestone")).click(); Please see below…
N.D
  • 21
  • 3
2
votes
1 answer

TestNG Tests continue forever (but not always)

My TestNG tests are weird... sometimes they finish, but sometimes they don't, even though there is nothing random. Most of the tests run, then nothing happens, except the TestNG result bar is green, and flickering every few seconds (as if something…
JavaMan
  • 1,142
  • 12
  • 22
2
votes
2 answers

Can't make selenium webdriver click the checkbox

I'm working on eclipse neon, selenium webdriver 2.53.0 and firefox 45.3.0 esr. I can't make selenium mark the only checkbox on the site. Here is my test script: package testy; import org.openqa.selenium.WebDriver; import…
1
2
3
22 23