Contributions
Re: soapui testsuite messing up test cases when running
No its not a mistake. Thats what Soapui does. Instead of taking the correct Method, it takes the method where the url was first used, in this case, Rest0046 PUT method for both. The problem is when 2 services have the same url. Soapui cant distinguish between the request unless i give a different method name to each. So thats what i have done. Instead of giving Method name as Method 1, i have now given method name as : Rest0046 and Rest0047 respectively. So now it is taking the correct url. I guess i have found this work around for now. But this is a defect in the soapui, i believe.2.4KViews0likes0CommentsRe: soapui testsuite messing up test cases when running
I have narrowed down the issue. Its not the test runner that is causing the issue. Its the inability of the soapui to distinguish between requests which have same urls but different values. So if i have 2 requests, which have the url/resource like: /staging/abc/delivery/id/{id}/name/{name} So in my put request, i will give the id and the name to update. And in my Delete request, i will have to use the same url to delete the item. Now what is happening, in the test case, where the resource/method is selected, it selects the first url it encounters by default. And that is the url of the Put request. So my test case is trying to test Delete assertions, in a put request. Which is causing the test case to fail. I have tried to change the names of the values, i.e /staging/abc/delivery/id/{id1}/name/{name1} /staging/abc/delivery/id/{id2}/name/{name2} But since in the test case, the actual value is used and not the name of the value, the issue remains. I have attached a screenshot of the issue here. Please let me know if you need the log also. But i dont think that is required now since the issue is with the resource selection.2.4KViews0likes2CommentsRe: soapui testsuite messing up test cases when running
----------------- Messages ------------------------------ [Valid HTTP Status Codes] Response status code:404 is not in acceptable list of status codes ----------------- Properties ------------------------------ Method: GET StatusCode: 404 My Test Case 10 is a post operation. But when the Test Runner executes it, it executes Test Case 9, which is a get operation even though i selected Test Case 10 to run explicitely. So what is happening is, the configuration of Test Case 10 is expecting a Post operation, but it is getting a Get request and is failing as a result. But I tried with the Test Suite Editor window, at that time the test cases execute perfectly and i get no failed tests. Its just the Test Runner that messes up the test cases while running. Is there a way i can set it to run in sequence like in the Test Suite Editor window ? I need to run the test suite from a batch file and Test Runner is the only option there. Isnt it ?2.4KViews0likes4CommentsRe: soapui testsuite messing up test cases when running
Hi thanks for replying. I am running by right clicking and selecting Launch Test Runner. It also executes the test cases in sequence. I am not using any groovy scripts. No I am not saying that. What i am saying is, if i launch the Test Runner from the Launch Test Runner window, the test case 10 fails. Even if I select the Test Case 10 explicitly from the Launch Test Runner drop down(where you can select the Test Suite and the individual test case) it still fails. But if i run the test case by right clicking on the test casemanually, it passes. Its very weird. Maybe i need to do an additional setting or something ? Any ideas ?2.5KViews0likes6Commentssoapui testsuite messing up test cases when running
I am trying to run a test suite. But the runner, messes up the test cases while running. There are 80 test cases in the test suite. So while running, when it is supposed to run Test Case 10, it will run Test Case 9. The specially happens if the Test Case 10 is a Delete operation and the Test Case 9 is a Post. Is there any way this can be avoided as its messing up my test results. When i am running the test cases manually, then they are passing but in the Test Runner, they get failed.2.5KViews0likes8Comments