zelvin_ng
12 years agoNew Contributor
Scripts fail randomly in different spot.
Hi, I am just wondering why sometime my scripts fail in the middle of the test sometime it pass through the whole scripts with exactly the same scripts 6 hours run. The funny thing is, it fa...
- 12 years agoAs far as I understand your problem is the script is going in a faster pace then the application itself (for example you click "next" and try to click on a button that appears on the next screen, while the button did not load yet).
You are probably best off with one of the two solutions:
You can also set the project itself to act more slowly :
Right click your project in the "Project workspace"
Edit --> Properties --> Playback
Edit the appropriate parameters to have longer timeout / delay.
For example to wait 5 seconds between each action you perform change "Delay between events,ms" to 5000.
You could enter a "wait for button / control" method with a while loop for each time you try to click a control (preferably with a defined timeout).