All Questions
11 questions
0
votes
0
answers
362
views
How to verify the Json response field data type in rest assured test
How can we verify the Json data type of mentioned fields such as "price", "ck", "name", "enabled" and "tags" in rest assured test.
{
"odd":...
0
votes
1
answer
781
views
TESTNG, how to validates test case results to pass fail status [duplicate]
Need help, my question here is how can I code it such when the result is not expected testNG will display the test case as failure/fail? if the result is expected test case result is passed?
very new ...
0
votes
1
answer
215
views
TestNG how to build a queue of test cases to be retried
Currently, we have logic in place which retries all the failing test cases immediately after the failure, what could be any approach where if a test fails that test should go in a queue and should be ...
1
vote
2
answers
1k
views
How to write meaningful test case title in TestNG+Selenium
When writing manual test cases, the test case title used to be something like
TC1: Verify that the user is able to login to facebook and react using
heart.
When trying to automate the scenario ...
0
votes
1
answer
261
views
Unable to execute single tc, login then run other application features, right now its running as a suite
I have to execute my test cases as a single as well as a suite, right now its running as a suite but not as a single test case in selenium webdriver: Below is my test which are calling methods present ...
0
votes
3
answers
6k
views
How to run only 1 annotated test method in TestNG ?
I have coded many Test Cases as Test Methods with @Test Annotation.
I have used only one class for all methods.
I want to run only 1 or 2 particular methods. And not run other methods. Please ...
1
vote
1
answer
2k
views
Why doesn't testNG assertion message get printed after each test in data-driven testing?
I am running Data-driven tests driven from a spreadsheet which are input to TestNG test Framework. In a nutshell, the framework traverses through outlook mailbox and looks for mails based on the ...
0
votes
1
answer
44
views
can we create a software application for the full script of selenium coding we have done? [closed]
If we have created some selenium code for web application testing. After completion of the script coding, can we create a java application or something like that?
0
votes
5
answers
4k
views
How to revert the changes made by selenium in a tear down process?
I am in a situation where I have to revert all the changes which I made while testing the application. Is there any way of doing this in Testng?
Suppose if I have added something into the ...
14
votes
3
answers
20k
views
Automated tests pass every time when run individually, but when they are clumped into a test suite it's a toss up if the tests will pass
I have around 200 test classes for my web application at the moment. I use Selenium2/Webdriver and the tests are written in java, with TestNG used as my framework.
When I run each test by itself, ...
2
votes
0
answers
1k
views
How to report test execution method when using @Factory in TestNG? [closed]
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[] dp()...