TestNG is a testing framework, inspired by the JUnit/NUnit unit testing frameworks. TestNG is intended to support more than just unit testing, allowing functional, end-to-end, integration, etc.

learn more… | top users | synonyms

0
votes
3answers
111 views

how to run failed testcases using TestNG?

I created jar when i run on command prompt i am able to see result, what i want is "i need to run failed test cases if there is any" public class DemoProjectClass { public static void ...
0
votes
3answers
411 views

Get Text of a WebElement

I'm learning selenium and writting automation script for this website http://store.demoqa.com/products-page/your-account/ I'm trying to get value of the error message, I identified Error Message ...
1
vote
2answers
62 views

@Parameters getting Skipped, just basic tests

Here is my testng.xml: <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > <suite ...
1
vote
2answers
4k views

How to run TestNG failed test cases in Jenkins for Maven project?

I am new to Jenkins and I have configured it on my Windows PC. I have to run failed test cases twice before considering that they are failing. I am using TestNG and Selenium Webdriver for writing test ...
0
votes
2answers
42 views

Assert in TestNG (Actual int value, Expected int value)

Is there anyway to assert that, actual int value = expected int value not equal to 0 Something like, Assert.assertEquals(length, 0);
0
votes
2answers
3k views

Can I force a Jenkins job to report a successful TestNG test even when the suite has failures?

Can I force a Jenkins job to report a successful TestNG test even when the suite has failures? I have a test suite with 100 tests and I want to report a success in Jenkins if there are 3 or fewer ...
3
votes
1answer
74 views

Can I execute selenium test cases in a real browser with Jenkins Selenium and Maven

I am working on selenium project with Jenkins + Maven + Selenium + TestNG I am following few questions. Can I execute selenium test cases in Jenkins by launching browsers? Currently it gets ...
2
votes
1answer
344 views

Running failed test cases in TestNG

I have a suite which consists of 2 test cases. When I run this suite, the results should be 1 passed and 1 failed. When I am trying to run the failed test cases through TestNG-failed.xml file, it is ...
1
vote
1answer
281 views

Appium: How to get adb logcat for multiple android devices

I have to execute my test on more then one device. So how to get logcat for every device? My current code is: List logEntries = driver.manage().logs().get("logcat").getAll(); File logFile = new ...
0
votes
1answer
41 views

How to scroll in html table of webpage?

A web page is showing a table of the first 10 data items out of 150. I want to scroll that table until the element is found. How can I achieve this? I refereed this question ...
0
votes
1answer
44 views

How can I execute selected test cases from list of testcases in TestNG at runtime?

I want to create a page with the details of test cases (say a HTML Page with some content). Say the testcases will be listed there. When i want to run the test cases then I will select them and click ...
0
votes
1answer
31 views

Required parameters but none were supplied error

Can someone help me on how to fix the error and run the script? public class ExcelCapture { public WebDriver driver; String filePath = ...
0
votes
1answer
43 views

Test Scenario for cookies in selenium webdriver

I want to work with cookies in my project, I don't know what will be the Test Scenario and Test Cases for it. Please help.
0
votes
1answer
168 views

How to integrate Jbehave and TestNG?

I googled and found most of scripts were written in Jbehave with junit. But I'm trying to integrate Jbehave with testNG framework. And the following were I tried so far. Feature file: Scenario: ...
0
votes
1answer
88 views

export list of testNG tests

I have a selenium framework in combination with TestNG. Is it possible to export a list of all test names are their description within a project/suite?
-1
votes
1answer
87 views

How should look test in webdriver with scenario

I have to test demo.opencart.com. Here is my scenario: Test scenario: 1 Open browser and go to Democart 2 Change currency to GBP (top left dropdown) 3 Search for “iPod” using text search 4 Add ...
2
votes
0answers
721 views

How to report test execution method when using @Factory in TestNG?

I am using @Factory annotation from TestNG to create tests dynamically. It will read a property file that contains the list of test cases to be executed and return them. @Factory public Object[] ...
1
vote
0answers
46 views

TestNG reports email after test executions

I've found various links for sending TestNG reports to be emailed after test executions here are two of the links ...
1
vote
0answers
136 views

Unable to run as TestNG in Eclipse Kepler or Luna on Mac machine

I am using Mac Yosemite 10.10.3 and Eclipse Kepler (4.3). I installed latest TestNG from the official site testng.org and added it successfully from Help menu but TestNG option is not showing under ...
1
vote
0answers
200 views

How to disable specific Maven and TestNG test listeners when running tests from groups?

I am using Maven and TestNG to support my Selenium testing framework for a project. I am using a custom test listener to report results into TestRail (our TCM tool). I am also using another custom ...
1
vote
0answers
70 views

Feed TestNG tests

recently i used feed4testng in order to run multiple instances of test using a dataprovider with feed4testng tool. But this tool only iterates through external resources. Is there any other tool for ...
1
vote
0answers
491 views

How to keep test cases synced with HP ALM after refactoring?

We're planning to automate test synchronization between HP ALM QC and our TestNG test cases. We want to keep them synced in the following scenarios: Test adding: When creating TestNG test, a test ...
1
vote
0answers
374 views

Selenium Webdriver and OpenLayers

I would like to check that the locations asset on map (openLayer) are the same with some asset in a row. What is the best way to do this? I'm using the TestNG framework.
1
vote
0answers
1k views

Dependent methods in the same class run out of order only when included in a “testng suite”; running class independently respects the dependency

I have a class with dependent methods using the TestNG annotation dependsOnMethods The test runs fine 100% of the time if I simply run it as a TestNG Test from the package. When I include the test ...
0
votes
0answers
29 views

How to launch Safari Driver in Selenium?

I'm trying to launch Safari Driver, but it gives error while launching. Which is the exact procedure to launch Safari? could you please explain? package configuration; import ...
0
votes
0answers
19 views

testNG email report display in outlook 2013

I am facing one problem about the testNG report display in outlook. I did some changes to the report displaying format before sent out. Look at the display in outlook 2013 client: Look the display ...
0
votes
0answers
30 views

How to run all the tests in various classes of testng test suite with an executable jar file

I have a project in which there are multiple classes and in each class there are various tests. I have created a testng.xml which i run from eclipse and it is successfully running the tests one by ...
0
votes
0answers
47 views

Where can we see @Test(description=“test description”) in report?

I am unable to see the my test description in report. I use this annotation for it: @Test(description="TestCase Description") Where can I see the above description of my test case in the final ...
0
votes
0answers
35 views

Unable to get testng report one by one; Both reports are coming simultanously

I have two testng.xml files. I did entry for these two testng.xml files in pom.xml like this: <suiteXmlFiles> ...
0
votes
0answers
1k views

TestNG with Selenium Data and Keyword Driven Framework

I am new to TestNG. I'm using Hybrid Framework For Automation Testing, it's Hybrid Architecture based, in which Keyword(Java Methood name) and data is provided in Excel sheet, and based on that ...