How to automatically check if offline mode works in a web application

I have a standalone mobile web application (via HTML5).

I am currently creating an automatic build and testing for it (ant, JsTestDriver, etc.) until I hit the wall. How to check if the web application is offline? This is especially painful since when checking manually; The iPhone practically needs a complete reset between tests (it tends to cling to some pieces of data).

I think something around these lines (at the idea level):

  • Configure Java web server with ant
  • The fire of some headless client that supports offline use of HTML5
  • Download the app
  • Confirm everything is uploaded
  • Disconnect server
  • Download the app
  • Confirm that everything is loaded,

, - ?

+3
1

, , :

+2

Source: https://habr.com/ru/post/1761506/


All Articles