Forum Discussion
Are you running the tests in sequence (option at the top of the Test Suite Editor window)? Are you using groovy scripts in the test suite?
And are you saying that if you simply change test 10 to something other than delete, then the problem doesn't happen? Very strange.
- KPK7 years agoOccasional Contributor
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 ?
- JHunt7 years agoCommunity Hero
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 ?
Related Content
- 3 years ago
- 5 years ago
- 4 years ago
Recent Discussions
- 2 days ago
- 2 days ago