Retrying during network problems


# **Short description**

**We need a javascript-function retryNetworkCall(\_request) that retries posting \_request by means of xmlhttp in escalating seconds when network problems occur. Furthermore you should create unit tests to test the functionality using the framework described here: <[url removed, login to view]>

The tests should run successfully in all major browsers; i.e. the same as supported by the Extjs-lib behind the framework linked above.**

## Deliverables

# **Detailed requirements**

**Each of the requirements below must be both implemented and tested with the Unit Test framework in <[url removed, login to view]> (but we don't need the 'Statistics'-part working).**

1. **Retrying should be done (e.g. using setTimeout) in escalating seconds until successful response. We want the time interval between each retry to increase. For instance the first retry occurs after 1 second, the next one 2 seconds after the first retry, the next one 3 seconds after the second retry and so on.**

2. **There should be a function cancelRetry that stops the retrying.**

3. **There should be a function resetRetry that resets the retrying process, that is the escalating counting should start from the beginning and the countdown for the timeout described in 1. should be reset.**

4. **If there is a network problem and the retrying has been going on for more than 10 minutes without any improvements, the retrying should stop (i.e. utilizing the function in 2.) and the user should see an alert box with the message 'Check your connection and try again'.**

**Criteria of success

A zip-file containing the produced code can be:**

1. **unzipped and placed in the root of any web-server; i.e. it should consist of non-server generated files: *.js, *.css, *.html etc.**

2. **run by pointing any supported browser to the http-root of this server**

3. **showing "Test passed" in all written tests (at least one per requirement) when pushing the "Start Unit Tests"-button.**

**If the extjs-lib utilized is not included it should be documented which version to use and which src-attributes to modify in the delivered files.**

Skills: Javascript, MySQL, PHP, Software Architecture, Software Testing, Testing / QA, Usability Testing, Web Hosting, Website Management, Website Testing

See more: php javascript extjs, web problems, statistics problem, problem statistics, problems of statistics, problem of statistics, problem in statistics, problem and statistics, e network, com problems, g network, unit test, extjs, javascript function response, web countdown, javascript connection, create javascript framework, retry seconds, non stop working, test framework, javascript network, statistics problems, extjs code, lib com, timeout function

About the Employer:
( 0 reviews ) Denmark

Project ID: #2674871