Contributions
testRunner.fail interrupt Test Case execution?
Hi: I have a Test Case with several steps and in the Test Case options I have "Fail on error" not selected. In one of the Steps I use a groovy to make some validations and if there is an error I was using to fail the groovy: testRunner.fail(error) But it not just fail the groovy step but it also interrupt the Test Case execution the same way the option "Fail on error" use to do. Is there any way I can use the testRunner.fail to fail just the step but continue with steps that follows? I know I can always use "assert" but I was trying to use testRunner.fail. Thanks in advance.772Views0likes0CommentsRe: How to run two Test Cases in parallel using a groovy
I guess you mean getTestStepByName.run instead of testCases.run not having an async parameter right? Where can I get a detailed documentation for this stuff? And by the way, if you look at my original post, I was looking also to find a way on my first groovy to monitor when the 2 TC's running in parallel have finished. Is there any way to do that? Thanks, Michel6.2KViews0likes0Comments- 6.2KViews0likes0Comments
Re: Xquery in a groovy
Well, I'm testing two versions of a WS. There are a lot of information in my responses and some of them change dinamically everytime, so I can not compare both responses as is. So, I running an Xquery on my responses to extract only the information I need and should be the same in both, save it to a file and then compare both files.2.3KViews0likes0CommentsHow to run two Test Cases in parallel using a groovy
Hi: Imagine I have a test suite TS with 3 TC's, TC, TC1 and TC2. In TC I'd like to write a groovy that launch both TC's, TC1 and TC2 in parallel. When both TC's execution are finished, I'd like to run a second groovy on TC. I have been trying on the lauch groovy with: def properties = new com.eviware.soapui.support.types.StringToObjectMap() testRunner.testCase.testSuite.project.testSuites["TS"].testCases["TC1"].run(properties,false) testRunner.testCase.testSuite.project.testSuites["TS"].testCases["TC2"].run(properties,false) But this run TC1 first, wait for it to finish and then run TC2. Then the second groovy is executed. Is there any way I can ensure both, TC1 and TC2 are launch at the same time and when they finished continue with the next groovy step? thanks in advance, Michel8.1KViews0likes9Comments