Contributions
Re: More correct assertion of testcase
I haven't tried to run the test project by command line myself, but the command line that is used in pipeline is: C:\WINDOWS\system32\cmd.exe/D/S/C""C:\ProgramFiles\Maven\apache-maven-3.5.2\bin\mvn.cmd"-f<my test project pom>.xmltest--fail-at-end"4 years agoPlace ReadyAPI QuestionsReadyAPI Questions640Views0likes1CommentMore correct assertion of testcase
I use a groovy script to cancel (or abort) the test execution (if some precondition is satisfied): // test step "SendSellOrderVerifyRequest" is a setup/precondition of the testcase. def rspHeader = context.testCase.testSteps["SendSellOrderVerifyRequest"].testRequest.response.responseHeaders if (! rspHeader["#status#"].contains("HTTP/1.1 200 OK")) { context.testRunner.cancel("TestCase cancelled, because ...... ") } This gives the test case "Cancelled" result in ReadyAPI, as well as in the test log: 2021-03-23T13:51:45.4138758Z14:51:45,399INFO[SoapUIProTestCaseRunner]FinishedrunningTestCase[xxxxxx],timetaken:1259ms,status:CANCELED But, in Azure pipeline, this test case is counted as "Passed", probably because "Canceled" is not a supported outcome of test result in Azure: > There are 15 possible outcomes for a test result: Aborted, Blocked, Error, Failed, Inconclusive, In progress, None, Not applicable, Not executed, Not impacted, Passed, Paused, Timeout, Unspecified, and Warning. https://docs.microsoft.com/en-us/azure/devops/pipelines/test/test-glossary?view=azure-devops My question is: How many test result outcomes are ReadyAPI supporting, besides Passed, Failed and Canceled? is there any way to set the test assertion to "Aborted" or "Inconclusive" etc that Azure supports, to align with Azure? If not can you add the feature of having more assertion outcomes such as"Aborted"?4 years agoPlace ReadyAPI QuestionsReadyAPI Questions709Views0likes3CommentsRe: How to use method defined in separate groovy script in different test suite
Thanks for the reply. Is there way to save the script in the same test project? (so that many people can easily get shared of it and all files are in the same git repo)4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes1Comment