I have mobile web application that has offline capabilities (via HTML5).
I'm currently building automatic build & testing for it (ant, JsTestDriver etc.), until I hit a wall. How can I test if the web application has working offline mode? This is specially painful since if tested by hand; iPhone practically needs full reset between tests (it tends to cling on to some parts of the data).
I'm thinking something around these lines (on a idea level):
- Setup Java web server with ant
- Fire some sort of headless client, that supports HTML5 offline use
- Load the application
- Validate that everything is loaded
- Disable server
- Load the application
- Validate that everything is loaded, still
Any suggestions how would I proceed doing something like this?