Test cases; profiling and simulation
authorThomas Perl <thp@thpinfo.com>
Wed, 16 Jun 2010 15:19:48 +0000 (16 17:19 +0200)
committerThomas Perl <thp@thpinfo.com>
Wed, 16 Jun 2010 15:19:48 +0000 (16 17:19 +0200)
test/browser.py [new file with mode: 0644]
test/generate_random_urls.py [new file with mode: 0644]
test/urls.txt [new file with mode: 0644]

diff --git a/test/browser.py b/test/browser.py
new file mode 100644 (file)
index 0000000..af38dd2
--- /dev/null
@@ -0,0 +1,32 @@
+import gtk
+import webkit
+import gobject
+
+gobject.threads_init()
+
+w = gtk.Window()
+
+wv = webkit.WebView()
+
+sw = gtk.ScrolledWindow()
+w.add(sw)
+sw.add(wv)
+
+urls = open('urls.txt').read().splitlines()
+
+def loadpage():
+    wv.load_uri(urls.pop())
+    if not urls:
+        gtk.main_quit()
+        return False
+    else:
+        return True
+
+gobject.timeout_add(10000, loadpage)
+loadpage()
+
+w.resize(640, 480)
+
+w.show_all()
+gtk.main()
+
diff --git a/test/generate_random_urls.py b/test/generate_random_urls.py
new file mode 100644 (file)
index 0000000..0a71371
--- /dev/null
@@ -0,0 +1,22 @@
+
+import sys
+import urllib2
+import socket
+
+socket.setdefaulttimeout(1)
+
+RANDOM_URL = 'http://random.yahoo.com/bin/ryl'
+COUNT = 200
+
+urls = []
+while len(urls) < COUNT:
+    try:
+        fp = urllib2.urlopen(RANDOM_URL)
+        print fp.url
+        urls.append(fp.url)
+        fp.close()
+        sys.stdout.flush()
+    except Exception, e:
+        print >>sys.stderr, e
+        continue
+
diff --git a/test/urls.txt b/test/urls.txt
new file mode 100644 (file)
index 0000000..4b30c13
--- /dev/null
@@ -0,0 +1,200 @@
+http://www.pentwater.org/
+http://www.richardscientific.com/
+http://www.tlp.lt/
+http://www.prcdc.org/
+http://www.whoarewe.com/
+http://www.strapp.net/
+http://www.lc.unsw.edu.au/
+http://www.marriott.com/hotels/travel/jaxjv-courtyard-jacksonville-beach/
+http://www.desertanimalcompanions.org/
+http://www.carmengreen.com/
+http://www.mandkengineering.com/
+http://www.aaalimos.com/
+http://www.lacaustralia.com/
+http://www.nu-image95.com/
+http://www.aloha.net/~lklaney/
+http://www.treworgey.co.uk/
+http://www.ci.modesto.ca.us/
+http://www.folkscene.com/
+http://www.uni-kl.de/
+http://www.rafikiprotection.com/
+http://www.housing.ucla.edu/
+http://www.creativeartglass.com/
+http://www.mybostonloft.com/
+http://www.lakealpine.com/
+http://www.riverbendvt.com/
+http://www.hedgehogcorner.com/
+http://www.shibari.org/
+http://www.lqwacowoodwayhotel.com/
+http://www.groovecity.co.uk/
+http://www.greymare.co.uk/
+http://www.hartsem.edu/
+http://www.girtz.com/
+http://www.dpsabq.com/
+http://www.les-pantheres.com/
+http://www.providenceranch.com/
+http://www.holidaygraphics.com/thanksgiving/graphics/index.html
+http://www.mainstayinn.com/
+http://www.trade-venezuela.com/
+http://www.brocket-hall.co.uk/
+http://www.surface.co.nz/
+http://www.jkplace.com/
+http://www.pierregrenier.com/
+http://www.donlonspharmacy.co.uk/
+http://www.freedommagazine.org/
+http://allafrica.com/gambia/
+http://www.community-action.org/
+http://www.campaign.ucla.edu/
+http://www.umanitoba.ca/libraries/units/agriculture/
+http://www.peaceofplymouth.org/
+http://www.buchanangallery.com/
+http://www.the-womens-press.com/
+http://www.polomarinc.com/
+http://www.naparcd.org/
+http://www.amarindia.com/
+http://larrymar.com/
+http://www.henryglasser.com/
+http://www.poplarlandscapes.com/
+http://www.axcan.com/
+http://www.firstsaga.com/
+http://www.mediaindonesia.com/
+http://www.rushu.rush.edu/nutrition/
+http://www.ss.mtu.edu/
+http://www.cafe50s.com/
+http://www.rideau.net/
+http://www.city.chiba.jp/
+http://www.iu.edu/~asu/
+http://www.nmdc.org/
+http://wbweb.wb.k12.oh.us/
+http://www.egypttoday.com/
+http://www.otago.ac.nz/DeepSouth/
+http://www.stva.com/
+http://www.nashvillehumane.org/
+http://www.worcesterexecutives.com/
+http://www.pbs.org/newshour/bb/middle_east/july96/mubarak_7-30.html
+http://www.peggyh.com/
+http://www.familyford.com/
+http://www.toscanaofdesertridge.com/
+http://www.adamwalkerfilm.com/
+http://www.flight9.com/
+http://www.oldpointinn.com/
+http://www.skydivenet.co.uk/
+http://www.rivercentre.org/
+http://www.cbai.com/
+http://www.aptoschamber.com/
+http://www.massdiscountmortgage.com/
+http://www.garmco.com.sg/
+http://www.pthsd.k12.nj.us/SCH/LI/littleton.htm
+http://www.grandstaymadison.com/
+http://www.sfs.au.com/
+http://www.sheenmicro.com/
+http://www.sheenmicro.com/
+http://www.naftaint.com/
+http://www.stm.info/
+http://www.lib.utexas.edu/maps/india.html
+http://www.buddybooker.com/
+http://dialspace.dial.pipex.com/town/drive/oq82/
+http://www.igindex.co.uk/
+http://www.samsungmobile.pl/
+http://www.portermalouf.com/
+http://www.oncalldetailing.com/
+http://merrimeet.freeservers.com/
+http://www.torngait.nf.ca/
+http://www.concordresort.com/
+http://www.aneka.com.au/
+http://www.blackoakbooks.com/
+http://www.fantasyphotos.com/
+http://www.radiocaroline.co.uk/
+http://www.babcock.co.nz/
+http://www.m-n-a.com/
+http://www.first-insurance.com.sg/
+http://www.marketingtechconcepts.com/
+http://www.casapalmera.com/
+http://www.cheyennekoa.com/
+http://povertycenter.cwru.edu/
+http://www.sharpessolicitors.co.uk/
+http://www.gigisellsnyhomes.com/
+http://www.fullpint.co.uk/
+http://www.vwsewgallery.com/
+http://www.olympus-fitness.com/
+http://www.southbaytoastmasters.org/
+http://www.shadrack.com/
+http://www.godiggers.com/
+http://www.a-zequipment.com/
+http://www.midsouth.co.za/
+http://www.virgolegacy.com/
+http://www.douglasgolfclub.ie/
+http://www.essgee.com/
+http://www.mealtogo.com/
+http://www.pennbrew.com/
+http://www.smace.org/
+http://www.lamartinehotel.com/
+http://www.wbhsbands.net/
+http://www.mhponline.org/
+http://www.hm3d.com.au/
+http://www.osteriapanevino.com/
+http://www.ctsem.edu/
+http://www.wxrl.com/
+http://www.aventine.com/
+http://www.diamanteassociates.com/
+http://www.westmead.nsw.gov.au/
+http://www.peggysues.com/
+http://www.bell-environmental.com/
+http://www.kentstatesports.com/
+http://www.voldn.ru/releases.htm
+http://www.oklahoma-law.com/
+http://www.biscaynepalms.com/
+http://www.bodycartography.org/
+http://www.margepawlak.com/
+http://www.lightningtvss.com/
+http://groups.yahoo.com/group/PrinceFelipe/
+http://www.firstimpressionsprinting.com/
+http://www.relationship-help-here.com/
+http://www.molderschoice.com/
+http://www.benrose.com/
+http://www.panoramainn.co.za/
+http://www.calfeedesign.com/
+http://www.trafficlawfirm.com/
+http://www.campcelo.com/
+http://trentstrucking.com/
+http://www.fcpchurch.org/
+http://www.shaggylamb.com/
+http://www.calvacom.fr/
+http://www.liste.ch/
+http://www.fundulagoon.com/
+http://www.hillgreen.com/
+http://www.mancaladesign.com/
+http://www.gojacks.com/SportSelect.dbml?DB_OEM_ID=15000&KEY=&SPID=7144&SPSID=64552
+http://www.eurasianet.org/resource/tajikistan/
+http://www.cropart.com/
+http://www.marriott.com/hotels/travel/orfcs-courtyard-suffolk-chesapeake/
+http://www.ppl.lib.in.us/
+http://www.bigvolcano.com.au/
+http://www.broadoakhotel.co.uk/
+http://www.buenosairestango.com/
+http://www.summitview.org/
+http://www.erotictalk.com/
+http://www.CRNO.ca/
+http://www.arthritiscare-sw.org.uk/
+http://www.webdunia.com/
+http://www.century21-taylor.com/
+http://www.fhs.fuhsd.org/
+http://www.koreanesl.com/
+http://www.sydneyschild.com.au/
+http://www.thekitchen.org/
+http://www.pbs.org/kenburns/hueylong/
+http://www.terenurecollege.ie/
+http://www.diligentbailiff.com/
+http://www.bluesexplosion.com/
+http://www.stewartinstitute.com/
+http://jacksonhole.locale.com/
+http://www.burystedsartsociety.co.uk/
+http://www.edmontoninline.ab.ca/
+http://www.theratechequip.com/
+http://www.phvqt.com/
+http://www.telecoms-world.co.uk/
+http://www.averyprivateeye.com/
+http://www.newtube.com/
+http://www.mscomputers.com/
+http://www.fashionumbrella.com/
+http://www.lac.ie/