After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 401996 - Wait a component available in certain time
Wait a component available in certain time
Status: VERIFIED FIXED
Product: LDTP
Classification: Other
Component: ldtp
unspecified
Other Linux
: Normal normal
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2007-01-29 08:11 UTC by lavi
Modified: 2007-02-27 07:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description lavi 2007-01-29 08:11:02 UTC
Steps to Reproduce:
1. Input the following script;
    ldtp.selectrowindex('frmWindow', 'tbl0', 0)
    # time.sleep(5)
    ldtp.click('frmWindow', 'btnDelete')


Actual Results:
1. Click failed because the status of btnDelete was unable if uncoment sleep statement.

Expected Results:
ldtp should check the state of control in certain timeout if it was unavailable(unready or unable or non-exists).
Comment 1 lavi 2007-02-09 04:33:08 UTC
okay, let me show another script to clarify the issue again:)

Precondition:
 The guitimeout is 5 sec to wait the state of widget on what we want.

Steps to Reproduce:
 1. Open gedit. in that case, the state of Cut button was gray, right?
 2. Run: ldtp.click('frm*-gedit', 'btnCut') once.
 3. Run: ldtp.click('frm*-gedit', 'btnCut') again after error.

Expected Results:
 if the state of Cut button was unenable always, both the time of executing the step2 and step3 great then 5 sec.
Comment 2 lavi 2007-02-09 06:09:29 UTC
Sorry, it is "less than " not "great than" .

(In reply to comment #1)
> okay, let me show another script to clarify the issue again:)
> 
> Precondition:
>  The guitimeout is 5 sec to wait the state of widget on what we want.
> 
> Steps to Reproduce:
>  1. Open gedit. in that case, the state of Cut button was gray, right?
>  2. Run: ldtp.click('frm*-gedit', 'btnCut') once.
>  3. Run: ldtp.click('frm*-gedit', 'btnCut') again after error.
> 
> Expected Results:
>  if the state of Cut button was unenable always, both the time of executing the
> step2 and step3 great then 5 sec.
> 

okay, let me show another script to clarify the issue again:)

Precondition:
 The guitimeout is 5 sec to wait the state of widget on what we want.

Steps to Reproduce:
 1. Open gedit. in that case, the state of Cut button was gray, right?
 2. Run: ldtp.click('frm*-gedit', 'btnCut') once.
 3. Run: ldtp.click('frm*-gedit', 'btnCut') again after error.

Expected Results:
 if the state of Cut button was unenable always, both the time of executing the
step2 and step3 less then 5 sec.
Comment 3 lavi 2007-02-09 07:15:22 UTC
Nags, you did a great job.

Very thanx you again!