[ 
http://jira.amdatu.org/jira/browse/AMDATU-611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bram de Kruijff updated AMDATU-611:
-----------------------------------

    Fix Version/s: 0.4.0
                   Sprint 10
                       (was: Backlog)
    
> Improve web itest stability by waiting for url availability
> -----------------------------------------------------------
>
>                 Key: AMDATU-611
>                 URL: http://jira.amdatu.org/jira/browse/AMDATU-611
>             Project: Amdatu
>          Issue Type: Improvement
>          Components: Amdatu Testing - Integration
>            Reporter: Bram de Kruijff
>            Assignee: Bram de Kruijff
>             Fix For: 0.4.0, Sprint 10
>
>
> The itest-web tests are still pretty unstable due to timing issues. Under 
> AMDATU-555 some Thread.sleep statement where introduced, but that is not good 
> enough as still sometimes they fail.
> Therefore I suggest adding a construct to wait for a url before stating a 
> test based on what is in Amdatu Auth already.
> {code}
>     public static void waitForURL(String url, int status) throws 
> MalformedURLException, IOException {
>         if (!waitForURL(new URL(url), status, HTTP_TIMEOUT)) {
>             int responseCode = checkURL(new URL(url));
>             throw new IllegalArgumentException("Timeout occurred waiting for 
> '" + url
>                 + "' to come available, response code=" + responseCode);
>         }
>     }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://jira.amdatu.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers

Reply via email to