Top "Testng" questions

TestNG is a testing framework focused on providing both unit and functional testing abilities in the Java programming language.

TestNG ERROR Cannot find class in classpath

I'm trying to run testng via command line and I have following things in classpath: testng jar, jar of compiled …

java classpath testng
Error: org.testng.TestNGException: Cannot find class in classpath: EmpClass

When i'm trying to run the test suite, am getting this exception. We are using maven project here and i …

java selenium selenium-webdriver testng
element not interactable exception in selenium web automation

In the below code i cannot send password keys in the password field, i tried clicking the field, clearing the …

java selenium automation testng webautomation
Order of execution of tests in TestNG

How to customize the order of execution of tests in TestNG? For example: public class Test1 { @Test public void test1() { …

testing testng order-of-execution
How to run TestNG from command line

How exactly do I run a .java TestNG project from a command line? I have read through the TestNG documentation, …

java command-line testng command-prompt
How do I setup the InternetExplorerDriver so it works

I am using WebDriver and I have downloaded the InternetExplorerDriver and was wondering what I do with it after it …

java eclipse selenium webdriver testng
Reading JavaScript variables using Selenium WebDriver

I'm using Selenium WebDriver (Java) and TestNG to do some testing on a website I created. In this website, I …

javascript selenium testng selenium-webdriver
How to get entered text from a textbox in selenium

I enter a value in TextBox or a Combobox, and would like to retrieve the value I have just entered. …

selenium junit grid webdriver testng
How to pass java code a parameter from maven for testing

I need to pass on following values … exeEvironment (Test environment) , testGroup (Group in testNG) from Command-Line -> POM -&…

maven command-line testng pom.xml surefire
TestNG: How can I run same test case multiple times?

I want to run a test case multiple times. Is that configurable in the testng.xml? If I add a …

testng