
|
If you were logged in you would be able to see more operations.
|
|
WebTest
Created: 18/Jan/08 16:59:43
Updated: 21/Jan/08 09:03:11
|
|
| Affects Version/s: |
None
|
| Fix Version/s: |
2.6
|
|
AJAX applications use background jobs (with setTimeout, setInterval or XMLHttpRequest) to execute tasks without disturbing the user. WebTest being too fast, the results of such processing is not visible when a step finishes.
WebTest should give time to finish this kind of processing but without to lost its speed when nothing is performed.
|
Done in build 1651.
Following is called after the successful execution of a step:
currentPage.getEnclosingWindow().getThreadManager().joinAll(2000);
which causes to wait up to 2 seconds for background activity to complete. This solution is not absolutely correct: it would be better to have the possibility to give time for current background activities to complete as well as for those which should start within x ms. Nevertheless this can't be done with HtmlUnit-1.14.
|
|