[Webtest] [webtest][JIRA] Closed: (WT-378) Easy AJAX: automatically wait when background job is not finished

Marc Guillemot (JIRA) Marc Guillemot (JIRA)" <noreply@canoo.com
Mon, 21 Jan 2008 09:03:27 +0100 (CET)


     [ http://webtest-community.canoo.com/jira/browse/WT-378?page=all ]
     
Marc Guillemot closed WT-378:
-----------------------------

    Fix Version: future versions
     Resolution: Fixed

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.

> Easy AJAX: automatically wait when background job is not finished
> -----------------------------------------------------------------
>
>          Key: WT-378
>          URL: http://webtest-community.canoo.com/jira/browse/WT-378
>      Project: WebTest
>         Type: New Feature

>     Reporter: Marc Guillemot
>     Assignee: Marc Guillemot
>      Fix For: future versions

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira