Forum Discussion
nmrao
8 years agoChampion Level 3
Not sure how this is going to help. But you may give it a try.
Check for a condition before running the logic of auth token creation. Not sure what type of step you have there.
What condition to check?
Use a test case level property, say EXPIRE_TIME.
Check if the value of EXPIRE_TIME is equal to current time or lesser.
Property itself would not be present for the first time, so condition matches; run autho token creation logic.
After token is created, set the EXPIRE_TIME at test case level property. This would be 30 future time.
When test is repeated, it won't go into auth token creation logic because of the condition we have.
Hope you can implement based on above algorithm.
Check for a condition before running the logic of auth token creation. Not sure what type of step you have there.
What condition to check?
Use a test case level property, say EXPIRE_TIME.
Check if the value of EXPIRE_TIME is equal to current time or lesser.
Property itself would not be present for the first time, so condition matches; run autho token creation logic.
After token is created, set the EXPIRE_TIME at test case level property. This would be 30 future time.
When test is repeated, it won't go into auth token creation logic because of the condition we have.
Hope you can implement based on above algorithm.
Related Content
- 13 years ago
Recent Discussions
- 24 hours ago