This is a migrated thread and some comments may be shown as answers.

Wait for disable step failing to wait till max timeout

1 Answer 100 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dipali
Top achievements
Rank 1
Dipali asked on 07 Jun 2012, 09:30 AM

Hi Telerik Team,

 

In one of my test, I want to wait till the button gets disabled. So I am using the step as:

‘Wait for ‘btnSave’ is disabed’ and I have set the Wait timeout for the step to ‘120000’.

But surprisingly the step is failing without waiting for 2 minutes. Below is log extract for the failure.

 

I am expecting that if the button is enabled, the “Wait for 'btnSave' is disabled” step will wait till button gets disabled or till max Wait timeout which I have set to 2 minutes. Please let me know if I am using it correctly or do I need to modify the code.

 

Note: I have attached a screenshot for the step properties.

 

Thanks.

 

Log Extract:

 

'6/7/2012 2:26:22 PM' - 'Pass' : 24. Wait for ExistsNot 'Table'

‘6/7/2012 2:28:23 PM' - 'Fail' : 25. Wait for 'btnSave' is disabled

------------------------------------------------------------

Failure Information:

~~~~~~~~~~~~~~~

Element enabled state didn't match expected value. Expected: False Actual: True

------------------------------------------------------------

'6/7/2012 2:28:23 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.

------------------------------------------------------------

'6/7/2012 2:28:23 PM' - Overall Result: Fail

'6/7/2012 2:28:23 PM' - Duration: [2 min: 40 sec: 343 msec]

------------------------------------------------------------

------------------------------------------------------------

'6/7/2012 2:28:23 PM' - Overall Result: Fail

'6/7/2012 2:28:23 PM' - Duration: [2 min: 40 sec: 343 msec]

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 07 Jun 2012, 05:07 PM
Hello Dipali,

Everything looks correct as the test log indicates Test Studio did in fact wait two minutes for that step:

'6/7/2012 2:26:22 PM' - 'Pass' : 24. Wait for ExistsNot 'Table'
‘6/7/2012 2:28:23 PM' - 'Fail' : 25. Wait for 'btnSave' is disabled

I tested this scenario against this W3Schools site and confirmed that it's working as expected.

Regards,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Dipali
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or