Learner_Pranavi
2 years agoOccasional Contributor
Rerun tests after a stipulated time period.
Hi guys,
I am running a test to generate an ID. So, the generation takes 5-10 minutes. In few cases, it takes more than 10 minutes.
I have also implemented another script in python to check whether the ID has been generated or not.
So, this later script has to be run for every 5 minutes for 3 times (i.e, till 15 mins). If, the test is a success, there is no need to rerun it.
Meanwhile, during this timeframe, I will be running other project test scripts in that project suite.
Is it possible in Testcomplete? If so, how?
Please help!
PS : I am a beginner.
Pseudocode to achieve what you want will look something like this,
Generate ID Start-Timer While ID is not generated if Start-Timer is greater than 15 minutes Break otherwise Wait for 1 minute End-Timer Output time taken to generate ID (End-Timer - Start-Timer) minutes