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
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.
- ripplegupta8 years agoContributor
Hi, can someone help here ?
I am running soapui project in jenkins and my server has pro license installed also.
But default junit report generated in jenkins workspace shows only failed test steps. I want report generated should have
- Name of test step
- Description of test step
- Status of test step (pass or fail does not matter)
What is my best option here ? On searching internet i found people are saying :
- Use maven-soapui-extension plugin by redfish and override junitreportcollector class
--But do smartbear support this plugin and my scripts are using references like "com.eviware.soapui.impl.wsdl.teststeps.ProJdbcRequestTestStep)", will this change to new references ?
Any risk using this new maven-soapui-extension plugin ?
- Another option i saw was, use smartbear official plugin <groupId>com.smartbear</groupId>
<artifactId>ready-api-maven-plugin</artifactId> but override junit report collector class as per this link http://blog.infostretch.com/customizing-soapui-reports/, but how to provide new class in my pom and how maven test goal will know to use new class instead of default junit report collector class ? - Another option i see was people saying use "reportName" in pom configuration applicable for pro tool, which report name will satisfy my needs and will it generate xml with more details and jenkins can read that accordingly ?
My company is using around 25-30 (i think more) licenses of this tool, but we are not getting what we need, Smartbear support team is required here, thanks..
- cryptton20047 years agoOccasional Contributor
Hi,
I'm using a similar setup (jenkins that triggers soapui suite) and I'm also interested in a similar solution. Did you manage to get the tests steps results in the generated report?
Related Content
- 13 years ago
- 13 years ago