The Wait Until keyword is one of the
Flow Fixture Keywords. It executes a method repeatedly until it returns an expected result.
when input is⇓
story test fixture |
check | plain test | 'sample class'
'wait until' 'count by' 2 10 | |
| 'sample class'
'wait until' 'count by' 2 10 | then output is | |
By default, it tries 100 times in 1000 milliseconds (every 10 milliseconds) before failing. We can change these defaults by defining different
Symbol Values for the symbols
WaitFor.Time
(in total time in milliseconds) and
WaitFor.Count
.
when input is⇓
story test fixture |
check | plain test | configure symbols
save WaitFor.Time 'value of System.Int32' 20
save WaitFor.Count 'value of System.Int32' 10
'sample class'
'wait until' 'count by' 2 22 | save | WaitFor.Time | value of System.Int32 | 20 |
save | WaitFor.Count | value of System.Int32 | 10 |
wait until | count by | 2 | 22 expected 20 actual |
|
| configure symbols
save WaitFor.Time 'value of System.Int32' 20
save WaitFor.Count 'value of System.Int32' 10
'sample class'
'wait until' 'count by' 2 22 | then output is | save | WaitFor.Time | value of System.Int32 | 20 |
save | WaitFor.Count | value of System.Int32 | 10 |
wait until | count by | 2 | 22 expected 20 actual |
|