Random failures while working with Rest Assured
up vote
0
down vote
favorite
My tests are written and cater on certain requests but same Suite on running gives errors on different tests
for example I have methods A,B,C,D,E
It will pass A, B and D but will fail C and E
Next time it will pass A, C, D, E but will fail B
This has been throughout my test
Can anyone suggest a solution? I want to use Wait for responses as I believe maybe it moves on to next step before getting full response. I dont want to use Thread.sleep() as its not a good practice
Can anyone suggest something? Also, how to work with Wait command of Rest Assured
java eclipse rest api rest-assured
add a comment |
up vote
0
down vote
favorite
My tests are written and cater on certain requests but same Suite on running gives errors on different tests
for example I have methods A,B,C,D,E
It will pass A, B and D but will fail C and E
Next time it will pass A, C, D, E but will fail B
This has been throughout my test
Can anyone suggest a solution? I want to use Wait for responses as I believe maybe it moves on to next step before getting full response. I dont want to use Thread.sleep() as its not a good practice
Can anyone suggest something? Also, how to work with Wait command of Rest Assured
java eclipse rest api rest-assured
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
My tests are written and cater on certain requests but same Suite on running gives errors on different tests
for example I have methods A,B,C,D,E
It will pass A, B and D but will fail C and E
Next time it will pass A, C, D, E but will fail B
This has been throughout my test
Can anyone suggest a solution? I want to use Wait for responses as I believe maybe it moves on to next step before getting full response. I dont want to use Thread.sleep() as its not a good practice
Can anyone suggest something? Also, how to work with Wait command of Rest Assured
java eclipse rest api rest-assured
My tests are written and cater on certain requests but same Suite on running gives errors on different tests
for example I have methods A,B,C,D,E
It will pass A, B and D but will fail C and E
Next time it will pass A, C, D, E but will fail B
This has been throughout my test
Can anyone suggest a solution? I want to use Wait for responses as I believe maybe it moves on to next step before getting full response. I dont want to use Thread.sleep() as its not a good practice
Can anyone suggest something? Also, how to work with Wait command of Rest Assured
java eclipse rest api rest-assured
java eclipse rest api rest-assured
asked Nov 10 at 20:14
Muhammad Ibraheem Ajmal
13
13
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243024%2frandom-failures-while-working-with-rest-assured%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown