Running the Testcases at Project level
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Running the Testcases at Project level
When I run the test cases at project level few test cases failed. Whereas when i go and run them individually it is working. May i know the reason
- Labels:
-
Data-Driven Testing
-
REST
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you try to debug it or have you look into the error log about the issue.
Does it have any dependency on any other testcase.
Any screenshot you can provide.
Because if individually they are running than should run no matter running via project level.
Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓
Thanks and Regards,
Himanshu Tayal
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @samatha
I also have had similar behaviour before now when running multiple tests in sequence certain ones failed whereas if I ran the tests individually the tests passed.
This issue was nearly always due to resourcing and latency when I had this issue.
As @HimanshuTayal suggests - you need to review your logs but maybe provide a bit more info.
Did the same testcases fail each time or were the failing testcases different?
The reason for the failing testcases - are they failing on particular test steps? e.g. JDBC request to retrieve a large number of records?
The latency could be local to you (your laptop resourcing) or server end resourcing (threading/memory/CPU resourcing).
To 'fix' my problem, I added some waits via the 'Delay' test step at appropriate places (within my tests within the project) just to slow things down a little (based on the results of my analysis of the failures) and this resolved my problem.
I also checked that I wasn't running the tests in parallel but in sequence which can cause different tests to fail each run depending on the available resourcing for the endpoint I was hitting.
Cheers,
rich
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Himanshu, richie!
@samatha looks like you have some troubleshooting suggestions already. Let us know how it goes.
If you require more help - please provide the details the Community is asking of you, and we will see how more we can help!
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@samatha I see that you answered straight to the email, this way your reply won't reach the Community, please post it here. Thank you.
Sonya Mihaljova
Community and Education Specialist
