Mailing List - Entries of 2012
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [QF-Test] how to escape setting delay before/after time endlessly to make sure scripts run stably in different computers
- Subject: Re: [QF-Test] how to escape setting delay before/after time endlessly to make sure scripts run stably in different computers
- From: Deboth Daniel <daniel.deboth@?.ch>
- Date: Thu, 12 Jul 2012 08:16:57 +0200
you could add a
"Wait for component" node before your buttonB click. You said your
buttonB is on a different dialog. So you could add a "Wait for
component" for that second dialog. And within the new wait node you can set
the timeout to the maximum time you want to wait (e.g. 30s). If the dialog
appears already after 2s the test case will continue immediately (instead of
waiting the whole 30s) and execute the buttonB click. This should make your
test case more robust and quicker as it does not use fix delays.
qftest-list-bounces@?.de [mailto:qftest-list-bounces@?.de] On Behalf Of Xiaoyan, Zhang
Sent: Donnerstag 12 Jul 2012 07:34
Cc: Yang Man; Zhi Wei
Subject: [QF-Test] how to escape
setting delay before/after time endlessly to make sure scripts run stably in
some events in scripts as following :
mouse click buttonA (button A is on page A)
mouse click buttonB (Note:buttonB will be shown on the
pageB which appears only after buttonA is clicked)
I can set delay before/after time for the "mouse click buttonB"
action and "mouse click buttonA" action to make scripts run properly
as intended,but if I run the script in another computer or another application
server, there is exception as "Component Not Found Exception",which
means now I need to set the 'delay before/after time' again.But if I change
another computer more, I need to set the time again? which seems unreasonable,
So my issue is how to make the scripts run properly on different users'
computer or different server which install the same application)? instead of
setting delay before/after time endlessly.