Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I want to make TS1 to sleep for 10secs and TS2 to sleep for 20secs.
Pls help me.

What I have tried:

In YAML:
stepsleep:

sleeptimeflag: True

TS: [1,2]

sleeptimeTS: [10,20]

In Python:
In TS1: #this should sleep 10secs
if (self.stepsleep['sleeptimeflag']):

if (self.test_step_count in self.stepsleep['TS']):

for key, value in self.stepsleep.iteritems():
time.sleep(self.stepsleep[sleeptimeTS])
Posted
Updated 20-Jun-18 21:34pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900