Changes between Version 4 and Version 5 of QtWebKitMirrorGuide
- Timestamp:
- Sep 30, 2009, 8:12:17 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
QtWebKitMirrorGuide
v4 v5 3 3 For benchmarking we want to use real webcontent but we don't want to be subject to different versions of websites (e.g. when they are dynamically created), different network bandwidth and latency. The '''mirror''' application can be used to store the downloaded content in a local SQLite3 database and the '''http_server''' can serve this content. 4 4 5 It can be used in casesa user is seeing a problem but it can not be reproduced locally. In this case the user should attempt to use the mirror application to create a copy and forward the database to the developer.5 It can also be used in cases where a user is seeing a problem but it can not be reproduced locally. In this case the user should attempt to use the mirror application to create a copy and forward the database to the developer. 6 6 7 7 8 8 === Building the mirror application === 9 9 10 The mirror application is using qmake to build and is working best with Qt4.6. 10 The mirror application is using qmake to build and is working best with version 4.6 of Qt. 11 12 Example of building and running: 11 13 {{{ 12 14 $ cd mirror … … 23 25 === Using the mirror application to mirror content === 24 26 25 The mirror application is able to use the [http://www.arora-browser.org Arora] CookieJar. On a GNU/Linux system this file is normally located in '''$HOME/.local/share/data/Arora/cookies.ini'''. The benefit of using a cookie file is that one can log in to websites like ''gmail.com'', ''facebook.com'' using Arora and then will be able to mirror pages with the loggedin state.27 The mirror application is able to use the [http://www.arora-browser.org Arora] CookieJar. On a GNU/Linux system this file is normally located in '''$HOME/.local/share/data/Arora/cookies.ini'''. The benefit of using a cookie file is that one can login to websites like ''gmail.com'', ''facebook.com'' using Arora and then will be able to mirror pages with the logged-in state. 26 28 27 29 By default the '''mirror''' application is loading the page and then exiting. One can use the '''-k''' option to keep the application running. This can be used on pages that utilize a lot of AJAX that will load more resources even after having finished the initial loading. This option was used on the Nokia benchmarking content for the ''gmail.com'' website. … … 31 33 === Step through to mirror gmail.com === 32 34 1. build the mirror application like shown above 33 2. use arora to login into the gmail.com service. Click "stay signed in" this will store a cookie w are going to use.35 2. use arora to login into the gmail.com service. Click "stay signed in" as this will store cookie that we can use in the '''mirror''' application. 34 36 3. Use `./mirror -v -k -c $HOME/.local/share/data/Arora/cookies.ini http://www.gmail.com` to start mirroring 35 37 4. Wait for being logged in and the site is loaded completely … … 38 40 === Step through to mirror gmail.com and everything on a screen cast === 39 41 * A video on mirroring gmail.com can be seen [http://blip.tv/file/2662874 here]. 40 * A video to run the full do_mirror.shcan be seen [http://blip.tv/file/2662945 here].42 * A video on running the do_mirror.sh script can be seen [http://blip.tv/file/2662945 here].