Changes between Version 4 and Version 5 of QtWebKitMirrorGuide


Ignore:
Timestamp:
Sep 30, 2009 8:12:17 PM (11 years ago)
Author:
zecke@selfish.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • QtWebKitMirrorGuide

    v4 v5  
    33For 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.
    44
    5 It can be used in cases 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.
     5It 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.
    66
    77
    88=== Building the mirror application ===
    99
    10 The mirror application is using qmake to build and is working best with Qt4.6.
     10The mirror application is using qmake to build and is working best with version 4.6 of Qt.
     11
     12Example of building and running:
    1113{{{
    1214$ cd mirror
     
    2325=== Using the mirror application to mirror content ===
    2426
    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 logged in state.
     27The 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.
    2628
    2729By 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.
     
    3133=== Step through to mirror gmail.com ===
    3234 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.
    3436 3. Use `./mirror -v -k -c $HOME/.local/share/data/Arora/cookies.ini http://www.gmail.com` to start mirroring
    3537 4. Wait for being logged in and the site is loaded completely
     
    3840=== Step through to mirror gmail.com and everything on a screen cast ===
    3941 * A video on mirroring gmail.com can be seen [http://blip.tv/file/2662874 here].
    40  * A video to run the full do_mirror.sh can 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].