cancel
Showing results for 
Search instead for 
Did you mean: 

how to handle uncertain message in application

SOLVED
Highlighted
Occasional Contributor

how to handle uncertain message in application

Hi,

I have 14 testcases and using test execute for running test cases.My appliction if one testcase failed and showing message (Attached this meseage) and if I am not Click leave on message then all of them failed .But I donot Know when this message coming .If comes how I handle and what is the code for it .So my other test cases would be passed.

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: how to handle uncertain message in application

Best practice would be to have all of your test cases be able to be executed 100% stand alone. Then use event handlers to make sure your tests always start and end on a specific part of the application (usually homepage, or login screen). If the test stops and is not on that screen, completely restart your application. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

Re: how to handle uncertain message in application

It's a similar message to when I'm on this website here and type into a edit field end then navigate away.  So, what seems to be happening is that, in your automation, you're attempting to leave the page before you've saved whatever changes.  It COULD be a timing issue... you may have clicked save on the page and then attempted to navigate away before the save completes.  What you need to do is make sure that you add some sort of Wait methodology to your automation to wait until all updating is completed before you navigate to the next page.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Highlighted
Community Hero

Re: how to handle uncertain message in application

Best practice would be to have all of your test cases be able to be executed 100% stand alone. Then use event handlers to make sure your tests always start and end on a specific part of the application (usually homepage, or login screen). If the test stops and is not on that screen, completely restart your application. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors