ivanz
ivanz

Reputation: 815

cmd escaped after SoapUI test is finished

I am calling SaopUI testrunnet from cmd file.

The problem is that lines after command for testrunner are not executed

I have unchecked "Fail testcase on error" checkbox in soap ui without any help. Anyway, i have this issue regardless of test was successful or not

this is my command

%SoapUIPath%\testrunner.bat-sTestSuite %projectPath% -I -r -P var2=%var2% -P var1=%var1%
echo ###Test finished###

Echo "Test finished" will not be executed

Upvotes: 0

Views: 46

Answers (1)

MC ND
MC ND

Reputation: 70943

If one batch file directly invokes another one, the execution flow is transfered to the called file, and not returned to the caller.

To retrieve the execution flow after the called file has ended, we need to use the call command

call "%SoapUIPath%\testrunner.bat" ....

Upvotes: 1

Related Questions