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
-1
votes
1 answer
I am getting this error while running the testng file in eclipse
Java Code :
package java_package;
import org.testng.annotations.Test;
public class Testng1 {
@Test
public void log() {
System.out.println("Hello");
}
}
getting this error:
[RemoteTestNG] detected TestNG version 7.8.0
Exception in thread "main"…
-1
votes
1 answer
What could be the best way to input various combination of username and password into browser in selenium?
I need to test a login form using selenium. The step checks by inputting various combination of the username and password. For eg. . I have used TestNG to perform the test. Is there any other approach that can be used or this is will be fine. Can…

Humera Shaikh
- 13
- 5
-1
votes
1 answer
Installing testNG in not showing in run or giving errors, finalized solution
if u have any of the below problems:
1.testng not showing in run configurations
2.testng now showing in Window/Show View
3.testng not showing in creating a new class
4.receiving this…

Eslam Salam
- 1
- 3
-1
votes
1 answer
Update the Code if there is any change noticed in the xpath with the new xpath during run time without failing the script
while running the script, when the code finds the xpath is changed.
Is there any way to update the xpath automatically during run time and proceed with the next steps without fail.

John
- 1
- 1
-1
votes
1 answer
Unable to validate TestNG Asserion Scenario
Hi i am learning Selenium. my test case is to verify the "Learn SoapUI" link existance under TESTING tab in Guru99 site. When i use if condition it gets passed, when i use Assertion statement condition gets failed. Plz help mw with code.
Url:…

sravani
- 63
- 5
-1
votes
1 answer
Test is not executed if return type is not void in a TestNG Class
On executing class file as TestNG only Before test method is executed. In the results Skipped, failed or passed test cases count=0. There is no error or exception throughout execution of the script.
But when I change return to void class is executed…

Akshay prakash
- 13
- 2
- 7
-1
votes
1 answer
TestNG test not getting invoked
I'm trying to connect my db and then run a query to get the result through a testNG test.

Umair Khan
- 5
- 1
- 6
-1
votes
1 answer
http://testng.org/ is unavailable
I am facing the issue that non of the testng sites are accessible .Please note that all other sites are working for me . And this is not a firewall effect .
Because of this i am unable to install testng from eclipse market place .
Is anyone facing…

Sapna
- 391
- 2
- 3
- 19
-1
votes
1 answer
Unit test in java for method which catch exception and throw another modified exception
I am new with unit test. This is the first time I am writing unit test. I am trying to write Unit tests using TestNG framework.
class A {
public Return_type method1(param1, param2) {
for(var : tillSomeValue) {
try {
value =…

rshubh
- 1
-2
votes
1 answer
How to demonstrate a real time example of using BeforeTest, AfterTest, BeforeSuite, AfterSuite, BeforeClass, AfterClass annotations in TestNG
How to demonstrate real time example of using BeforeTest, AfterTest, BeforeSuite, AfterSuite, BeforeClass, AfterClass, BeforeMethod, AfterMethod annotations in TestNG Selenium.

Akash Dutta
- 11
-2
votes
1 answer
Can we provide priority, description of testng class fromm excel?
I want to pass test-ng priority through excel file .
Is there any way to do that ?

Hemant Trivedi
- 1
- 4
-2
votes
1 answer
curious to know how to use ISuite
I was working on selenium using java programming language and came to know about ISuite. I am curious to know about ISuite why or when is it used in testNG. I want to know how to use it.

suki_vish
- 1
- 1
-2
votes
1 answer
Testng in selenium ------suggest which annotations are suits
I have created Project(Page Object Model) in Eclipse like this
Project name
Package 1
src
bin
package 2
src
bin
In package 1 contains, element description and method
In package 2 contains,
BaseScript.java …

SenthilKumarP
- 59
- 2
-2
votes
4 answers
Unable to implement System.setProperty()
I am new to selenium. Trying to use testNG framework. But receiving the below error. I am trying a simple code. Please help me out.I am trying to run the below code:
package testng_project;
import org.openqa.selenium.WebDriver;
import…

Soumyajit Das
- 11
- 1
- 1
- 1
-3
votes
3 answers
Not able to upload file in selenium web driver, I have used SendKeys()to pass the file path get uploaded, but still the file not getting uploaded
I am trying to upload one document from my system to one application and it includes flow as:
Library page >> Upload document button >> Web-based select document pop-up >> after click on select file in pop-up, it open the system pop-up from where…

Vishnu More
- 45
- 1
- 12