Forum Discussion

Learner_Pranavi's avatar
Learner_Pranavi
Occasional Contributor
2 years ago

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 whet...
  • rraghvani's avatar
    2 years ago

    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