14 years ago
Logging failed assertions with groovy
Hi
I have several projects over several enviroments and decided to use a groovy script to set global properties for each enviroment and run all my tests.
Problem now is that I still have to manually check all projects for failed tests.
Is there anyway I can get failed assertions, testsuites or testcases to the Log Output or to the Script Log or even an alert?
Im using the built in assertions in Soap UI.
To run all my tests Im using the following script found in this forum.
for(project in com.eviware.soapui.SoapUI.workspace.projectList) {
if(project.open && project.name != testRunner.testCase.testSuite.project.name) {
log.info "Running project: " + project.name
project.run( null, false )
}
}
Thanks
I have several projects over several enviroments and decided to use a groovy script to set global properties for each enviroment and run all my tests.
Problem now is that I still have to manually check all projects for failed tests.
Is there anyway I can get failed assertions, testsuites or testcases to the Log Output or to the Script Log or even an alert?
Im using the built in assertions in Soap UI.
To run all my tests Im using the following script found in this forum.
for(project in com.eviware.soapui.SoapUI.workspace.projectList) {
if(project.open && project.name != testRunner.testCase.testSuite.project.name) {
log.info "Running project: " + project.name
project.run( null, false )
}
}
Thanks