History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: WT-378
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Assignee: Marc Guillemot
Reporter: Marc Guillemot
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
WebTest

Easy AJAX: automatically wait when background job is not finished

Created: 18/Jan/08 16:59:43   Updated: 21/Jan/08 09:03:11
Affects Version/s: None
Fix Version/s: 2.6


 Description   
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.

 All   Comments   Change History      Sort Order:
Comment by Marc Guillemot [21/Jan/08 09:03:11]
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.