The TestNG Eclipse plug-in allows you to run your TestNG tests from Eclipse and easily monitor their execution and their output.
Questions tagged [testng-eclipse]
345 questions
0
votes
0 answers
@AfterClass is not calling immediately after class is executed in TestNG
I have 2 test classes and each contains around 3 tests in them. 3rd test case depends on 2nd test case and 2nd test case depends on 1st testcase in each class.
Class1:
public class MyTest1 extends BaseCase{
@Test
public void Test1(){
…

Prasad
- 13
- 1
- 5
0
votes
0 answers
TestNG @AfterTest called without executing all Tests
I am facing different issue when I run test cases.
I have around 50 test cases.
During the test run suddenly it is calling @AfterTest and completing the test run. At the end it ran only 10 test cases. Every run it is giving different no.of ran…

Sridhar Reddy S
- 121
- 2
- 13
0
votes
2 answers
Not able to locate element id of email() in login :error(Unable to locate element: {"method":"id","selector":"Email"})
By clicking on login page it is going on login part but this email field it is not able to locate any path i have tried all possible ways of path,id,classname bt still it is unable to get the element of email.
The code is given below:
@Test
public…

shweta kaushik
- 43
- 1
- 8
0
votes
1 answer
0
votes
2 answers
Firefox hangs with Selenium hub using TestNG suite (org.openqa.selenium.WebDriverException: connection refused)
I am developing a test suite which runs the test on different browser. First I am trying to make it work on firefox. But I am having issues with Selenium hub and TestNG. Firefox hangs and does not quit on its own. I am getting configuration error in…

PTT
- 526
- 7
- 27
0
votes
0 answers
Eclipse debug not working for Spring based testng AbstractTestNGSpringContextTests
I am facing a strange issue. My eclipse debug ( Not stopping at breakpoint ) is not working when my testng test case extend AbstractTestNGSpringContextTests. It runs absolute fine when I run the same code without extending…

Amit Sharma
- 281
- 5
- 8
0
votes
1 answer
Selenium : Session not created Exception org.openqa.selenium.SessionNotCreatedException
Selenium is unable to create the session.
Android version :- 7.1.1
Selenium version :-2.50.1
TestNG :-6.8
Appium -3.3.0 :-2.50.1
Appium is unable to even install the app in the Mobile device but the same code is working on the Motorola Device of…
user6487208
0
votes
1 answer
Automate RestAssured Web Services
How to automate the Rest Assured Web Services and all the necessary jar files needed to be in order to not encounter the java.net.connection error? Can anyone please guide me for this.
I added the Rest Assured jars from this…

Nagashri
- 1
- 1
0
votes
1 answer
Setting test method priority in TestNG XML
Question: How do I set method priority in TestNG XML rather than adding it at class.method level with priority tag?
I tried finding out answer for this but I was not able to find this specific point anywhere.
Use Case: I can generating TestNG XML…

Chirag Pandit
- 43
- 4
- 8
0
votes
2 answers
FAILED CONFIGURATION: @BeforeMethod setup org.openqa.selenium.NoSuchSessionException: Session ID is null. Using WebDriver after calling quit()?
I found few similar issues here(
SessionNotFoundException: Session ID is null. Using WebDriver after calling quit()? (Selenium)
org.openqa.selenium.NoSuchSessionException: Session ID is null. Using WebDriver after calling quit()?
)
but none of them…

Serg Buch
- 80
- 1
- 2
- 12
0
votes
1 answer
TestNG execution halts between tests
I am refactoring a huge bunch of selenium tests and trying to execute them in testNG. The problem is test execution halts after each tests(eventually getting timedout) irrespective of the results. When i do a browser refresh the tests continue. I…

kkeyan
- 1
- 3
0
votes
0 answers
Warning - Build path specifies execution environment J2SE-1.4 for Java project in Eclipse
I created a Java project with Eclipse Helios, including a number of Selenium test cases. It worked fine for a day but then this warning showed up:
Build path specifies execution environment J2SE-1.4. There are no JREs installed in the workspace…

vijay kumar
- 61
- 2
- 12
0
votes
1 answer
TEStNG : Unable to run the packages using testng xml for cross browser testing
The below is Smoke.xml using which i want to run a set of packages for cross browser testing. But on running the below xml none of my testcases get executed. No error is thrown either. Please suggest as to where i am going wrong. I have been stuck…

user2560019
- 127
- 1
- 1
- 11
0
votes
1 answer
Configuration Failures: 1, Skips: 1
I am trying to run a TestNG test using Jenkins. It's giving me configuration failure and skips. I have read similar questions here and in other website as well but they are not helpful.
I have read this enter link description here and tried…

Sarabu Sandeep
- 165
- 2
- 5
- 14
0
votes
0 answers
I am facing an error while installing TestNG in Eclipse
I am trying to install the TestNG in my Eclipse Oxygen using the following steps:
Launch Eclipse
Under help select Eclipse Marketplace...
Searched for TestNG
If I click on Install I get the error message Unexpected features while verifying…

Siddeshwar009
- 9
- 1