saurabhsharma09
12 years agoContributor
Test Case Pass Individually but fails when run in Test Suite
Hello,
I have a Test Suite with 2 test cases as below:-
1. Database Cleanup(Deletes entries from database)
2. Application Login
Application login test case has Test Steps as below:-
1. DataSource Step(Excel data Source to get username and password)
2. REST Step(api call to Generate CAS-Ticket using username and password from DataSource Step)
3. Groovy Step(Extract CAS-Ticket from REST Step response)
4. Property Transfer(Save CAS-Ticket to Project level property)
The problem i am facing is that Application Login Test Case always fails when I run the Test Suite However when I run this test case Individually
then it passes without any problem
Both the Database Cleanup and Application Login Test Cases are independent of each other and are running in sequential order.
Could you please help me to get this resolved?
Regards,
Saurabh
I have a Test Suite with 2 test cases as below:-
1. Database Cleanup(Deletes entries from database)
2. Application Login
Application login test case has Test Steps as below:-
1. DataSource Step(Excel data Source to get username and password)
2. REST Step(api call to Generate CAS-Ticket using username and password from DataSource Step)
3. Groovy Step(Extract CAS-Ticket from REST Step response)
4. Property Transfer(Save CAS-Ticket to Project level property)
The problem i am facing is that Application Login Test Case always fails when I run the Test Suite However when I run this test case Individually
then it passes without any problem

Both the Database Cleanup and Application Login Test Cases are independent of each other and are running in sequential order.
Could you please help me to get this resolved?
Regards,
Saurabh