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
1 answer
TestNG is using a program argument that is intended for the code of my test, not for TestNG
In a TestNG test running in Eclipse Neon.2, I need the code of my test to access a program argument that I set in the Run Configuration of the test. This does work, but the problem is that TestNG itself uses that argument, apparently thinking it…

SantiBailors
- 1,596
- 3
- 21
- 44
0
votes
0 answers
While using TestNg framework my code throwing NullPointerException
I want to use TestNg in my learning project. While using TestNg framework, i am getting NullPointer Excetion. I think problem is in WebDriver object declaration part. But i don't know how i can implement the same. Can any one help me on the…

Bishnu Prasad
- 87
- 4
- 13
0
votes
1 answer
I am trying to launch firefox in selenium 3.0.1 using TestNG, but I am not able to do it. I have used setProperty also
package TestNG;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeTest;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import…

Vivek
- 207
- 1
- 4
- 17
0
votes
2 answers
WebDriver windows not closed when running testNG.xml with more than one class in eclipse
I have a testNG suite with more than 10 classes. When I start testNG.xml as a suite, the browsers(ff) not closing before going to 2nd class where I have used to open the browser and close it in every class. I have tested it with giving only one…

Suneel Kuppili
- 31
- 1
- 7
0
votes
0 answers
How can i configure my testng.xml to run in the below mentioned way?
In my testng.xml, am having two groups. I want it to run in the way like the below one
First group suite
First group test1
First group test2
Second group suite
Second group test1
Second group test2
But now its running in the way,
First group…

Thenmozhi
- 1
- 1
0
votes
1 answer
TestNG:Exception in thread "main" com.beust.jcommander.ParameterException: Unknown option: -protocol
On running the testng.xml, I am getting the following error:
Exception in thread "main" com.beust.jcommander.ParameterException: Unknown option: -protocol
at com.beust.jcommander.JCommander.parseValues(JCommander.java:742)
at…

Anirudh
- 1
- 1
- 4
0
votes
1 answer
Is it possible to get rid of unwanted console messages in eclipse
Messages in my eclipse (testNG & selenium) projects are getting so much now that wanted outputs from sysout command are getting lost between them. This started recently. They were never these much. I heard there is a way to get rid of the unwanted…

Testilla
- 602
- 8
- 21
0
votes
1 answer
TestNG not grouping results from a single method
Refer the attached picture,
Class Name : T01_Files
Method Name : M01_Files_BiSync
My expectation is that all the 5 failures listed in the report should be grouped under method 'M01_Files_BiSync'. But it is not getting grouped. Please let me, know…

Vel Ganesh
- 537
- 3
- 12
- 32
0
votes
1 answer
Cannot Instantiate class error - Selenium WebDriver using testng
I want to pass an integer variable to web element using Sendkey function and i'm getting that integer vaiable from another class and passing through a method and calling in sendkey funciton but getting type casting error.
I'm very new to…

user3782636
- 83
- 1
- 2
- 13
0
votes
1 answer
Unable to run Amazon Device Farm build in Jenkins using JenkinsCI Plugin
I have successfully automated my test in ADF using Appium TestNG framework. I was trying to run the same build in Jenkins for continuous integration.
I have taken freestyle project in Jenkins.I am getting error. It is unable to find the pattern of…

user2881287
- 11
- 3
0
votes
1 answer
Getting Null Pointer Exception in Selenium WebDriver using TestNG
I am new to Selenium and while running the below script I am getting null pointer exception and test stops running as soon as the site called loads. I am unable to understand the reason for exception.
The code is as given below:
package…

Ronit Joardar
- 31
- 2
- 6
0
votes
1 answer
How to pass a variable in Xpath of an element identified using @FindBy annotation
I am using Page Object Model (POM)for automating an application
I have identified elements using @FindBy annotation which has List of elements. Now, I want to iterate through all the elements. How can I do that.

RamaKrishna
- 101
- 2
- 15
0
votes
2 answers
Not able to run Test cases in TestNG
I am not able to run the test cases in my eclipse IDE. I am getting the below messages when I run one or more test cases. Can anybody tell me the solution ?
[RemoteTestNG] detected TestNG version 6.8.9
[RemoteTestNG] Invoked with -serport…

Karthik_S_A
- 73
- 2
- 15
0
votes
1 answer
Scenarios from cucumber .feature file are not running in proper sequence
I have Cucumber feature file with 2 scenarios, e.g. please find below sample file.
@RunFeature
Feature: Sanity Testing of scenarios
@LoginFeature
Scenario: Test xyz feature
Given The user is on login page
When User enters credentials
…

Manasi
- 717
- 8
- 18
- 30
0
votes
1 answer
TestNG [6.9.12] fails to load in Eclipse Mars [4.5.2] -- org.eclipse.core.runtime.CoreException
Expected behaviour
Should be possible to launch test via Run As -> TestNG ; also
should be able to add new Run configuration for TestNG
Actual behaviour
Plug-in org.testng.eclipse was unable to load class…

Charles F Radley
- 163
- 1
- 2
- 11