Forum Discussion
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 case manually, it passes. Its very weird. Maybe i need to do an additional setting or something ? Any ideas ?
When you only run test 10 in the TestRunner, what is the failure reason?
- KPK7 years agoOccasional Contributor
----------------- Messages ------------------------------
[Valid HTTP Status Codes] Response status code:404 is not in acceptable list of status codes----------------- Properties ------------------------------
Method: GET
StatusCode: 404My 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 ?
- JHunt7 years agoCommunity Hero
Could you attach the TestRunner log when you run the single test?
- KPK7 years agoOccasional Contributor
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.
Related Content
- 3 years ago
- 5 years ago
- 4 years ago
Recent Discussions
- 2 days ago
- 2 days ago