Forum Discussion
Hi Ripplegupta,
You will need to add Assertions to your test. They will indicate if the information you want to pass to a service fails or passes. And you will see this information in your report. Please read the following article for more details:
http://readyapi.smartbear.com/soapui/getting_started/addassertions
- ripplegupta9 years agoContributor
Hi Tanya,
Definitely i am using 4-5 assertions in each test step and based on those assertions my test steps are declared passed or failed.
But when i fetch my test report from surefire plugin it shows me arrays of test cases only with status as passed or failed.
Failed ones has error details for all failed test steps that caused that test case to be failed.
Here in my sure fire test report i want all test steps details showing pass and fail.
Is it possible with surefire report plugin or some way else.
Thanks a lot.
- JKambli9 years agoStaff
If you would like to know each assertion status,
for (suite in testRunner.testCase.testSuite.project.getTestSuiteList()){
for (test1 in suite.getTestCaseList()){
for (i in test1.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep )){
for( assertion in i.assertionList )
{
log.info "Assertion [" + assertion.label + "] has status [" + assertion.status + "]"
}
}
}
}- ripplegupta9 years agoContributor
Hi, yes its possible via groovy and testRunner class. But can i get test steps status via some reports so that i can acces that during jenkins run only instead of writing this groovy in my each project.
Related Content
- 13 years ago
- 14 years ago
- 11 years ago
Recent Discussions
- 5 days ago
- 9 days ago