cancel
Showing results for 
Search instead for 
Did you mean: 

Running the Testcases at Project level

Highlighted
Visitor

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  

4 REPLIES 4
Highlighted
Community Leader

Re: Running the Testcases at Project level

@samatha 

 

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, and remember to give "kudos" 🙂 ↓↓↓↓↓



Thanks and Regards,
Himanshu Tayal
Highlighted
Community Hero

Re: Running the Testcases at Project level

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

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Highlighted
Community Manager

Re: Running the Testcases at Project level

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

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Community Manager

Re: Running the Testcases at Project level

@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

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Compete with community members in the TechCorner Challenge and get into the Leaderboard!

Rank Participant Points Earned
1 msiadak 12
2 nmrao 8
3 HimanshuTayal 3
Top Kudoed Authors