Browse files

Add functional tests with Selenium.

  • Loading branch information...
1 parent 05373f0 commit f9d2bdbc1bc99db1fe2b98661e2ee115b7e79879 @modocache committed Aug 12, 2012
Showing with 444 additions and 30 deletions.
  1. +6 −1 .travis.yml
  2. +14 −5 README.md
  3. +3 −0 requirements.txt
  4. +7 −0 test_project/test_app/templates/404.html
  5. +6 −0 test_project/test_app/templates/500.html
  6. 0 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/.parentlock
  7. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/2/31/87467d01
  8. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/4/92/3CE61d01
  9. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/8/69/AE8B6d01
  10. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/B/88/F0DA4d01
  11. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/F/34/BCEC7d01
  12. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/_CACHE_001_
  13. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/_CACHE_002_
  14. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/_CACHE_003_
  15. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/_CACHE_MAP_
  16. +1 −0 ...oject/test_app/tests/functional_tests/jc15bh8e.Selenium/bookmarkbackups/bookmarks-2012-08-11.json
  17. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/cert8.db
  18. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/chromeappsstore.sqlite
  19. +7 −0 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/compatibility.ini
  20. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/content-prefs.sqlite
  21. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/cookies.sqlite
  22. +4 −0 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/extensions.ini
  23. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/extensions.sqlite
  24. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/formhistory.sqlite
  25. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/key3.db
  26. +21 −0 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/localstore.rdf
  27. +63 −0 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/mimeTypes.rdf
  28. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/permissions.sqlite
  29. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/places.sqlite
  30. +161 −0 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/pluginreg.dat
  31. +35 −0 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/prefs.js
  32. +1 −0 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/search.json
  33. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/search.sqlite
  34. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/secmod.db
  35. +1 −0 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/sessionstore.js
  36. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/signons.sqlite
  37. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/startupCache/startupCache.8.little
  38. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/urlclassifier.pset
  39. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/urlclassifier3.sqlite
  40. +2 −0 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/urlclassifierkey3.txt
  41. BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/webappsstore.sqlite
  42. +11 −0 test_project/test_app/tests/functional_tests/list_tests.py
  43. +20 −20 test_project/test_app/tests/generator_tests/urls_tests.py
  44. +65 −0 test_project/test_app/tests/runtests.py
  45. +5 −1 test_project/test_project/settings.py
  46. 0 test_project/test_urlgen_no_urlpatterns/__init__.py
  47. +7 −0 test_project/test_urlgen_no_urlpatterns/models.py
  48. +0 −3 test_project/{test_app/tests/sample_test.py → test_urlgen_no_urlpatterns/tests.py}
  49. +3 −0 test_project/test_urlgen_no_urlpatterns/urls.py
  50. +1 −0 test_project/test_urlgen_no_urlpatterns/views.py
View
7 .travis.yml
@@ -1,5 +1,10 @@
language: python
python:
- "2.7"
+before_install:
+ - "wget http://selenium.googlecode.com/files/selenium-server-standalone-2.25.0.jar"
+ - "export DISPLAY=:99.0"
+ - "sh -e /etc/init.d/xvfb start"
+ - "java -jar selenium-server-standalone-2.25.0.jar -firefoxProfileTemplate 'test_project/test_app/tests/functional_tests/jc15bh8e.Selenium' &"
install: "pip install -r requirements.txt --use-mirrors"
-script: python setup.py install --force && cd test_project && python manage.py test
+script: python setup.py install --force && cd test_project && python test_app/tests/runtests.py
View
19 README.md
@@ -58,15 +58,24 @@ issues when rendering templates.
## Development
`django-generate-scaffold` is currently in ALPHA.
-Everything works, but tests are not available at this time.
-## Issues
+### Running Tests
-If you experience any issues, please
-[create an issue on Github](https://github.com/modocache/django-generate-scaffold/issues).
+In order to run the test suite, start a Selenium server and issue the following commands:
+
+ cd django-generate-scaffold/test_project
+ python test_app/tests/runtests.py
+
+Consult `.travis.yml` for the exact steps necessary to run the test
+suite.
-## How to Contribute
+### How to Contribute
- Propose new features or report bugs by creating an issue on Github.
- Add new features, tests, or fix stuff and issue a pull request.
- Create a better, more eloquent screencast with less stammering.
+
+## Issues
+
+If you experience any issues, please
+[create an issue on Github](https://github.com/modocache/django-generate-scaffold/issues).
View
3 requirements.txt
@@ -1,5 +1,8 @@
+CherryPy==3.2.2
Django==1.4.1
distribute==0.6.24
django-nose==1.1
+django-nose-selenium==0.7.3
nose==1.1.2
+selenium==2.25.0
wsgiref==0.1.2
View
7 test_project/test_app/templates/404.html
@@ -0,0 +1,7 @@
+<html>
+<body>
+ <h1>404 Page Not Found</h1>
+ <p>Oops!</p>
+</body>
+</html>
+
View
6 test_project/test_app/templates/500.html
@@ -0,0 +1,6 @@
+<html>
+<body>
+ <h1>500 Internal Server Error</h1>
+ <p>Oops!</p>
+</body>
+</html>
View
0 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/.parentlock
No changes.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/2/31/87467d01
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/4/92/3CE61d01
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/8/69/AE8B6d01
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/B/88/F0DA4d01
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/F/34/BCEC7d01
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/_CACHE_001_
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/_CACHE_002_
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/_CACHE_003_
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/Cache/_CACHE_MAP_
Binary file not shown.
View
1 ...st_app/tests/functional_tests/jc15bh8e.Selenium/bookmarkbackups/bookmarks-2012-08-11.json
@@ -0,0 +1 @@
+{"title":"","id":1,"dateAdded":1344738511756405,"lastModified":1344738511756405,"type":"text/x-moz-place-container","root":"placesRoot","children":[{"title":"Bookmarks Menu","id":2,"parent":1,"dateAdded":1344738511756405,"lastModified":1344738511964730,"type":"text/x-moz-place-container","root":"bookmarksMenuFolder","children":[{"title":"Recently Bookmarked","id":13,"parent":2,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"RecentlyBookmarked"}],"type":"text/x-moz-place","uri":"place:folder=BOOKMARKS_MENU&folder=UNFILED_BOOKMARKS&folder=TOOLBAR&sort=12&excludeQueries=1&excludeItemIfParentHasAnnotation=livemark%2FfeedURI&maxResults=10&queryType=1"},{"index":1,"title":"Recent Tags","id":14,"parent":2,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"RecentTags"}],"type":"text/x-moz-place","uri":"place:sort=14&type=6&maxResults=10&queryType=1"},{"index":2,"title":"","id":15,"parent":2,"dateAdded":1344738511964730,"lastModified":1344738511964730,"type":"text/x-moz-place-separator"},{"index":3,"title":"Mozilla Firefox","id":7,"parent":2,"dateAdded":1344738511945132,"lastModified":1344738511949624,"type":"text/x-moz-place-container","children":[{"title":"Help and Tutorials","id":8,"parent":7,"dateAdded":1344738511945756,"lastModified":1344738511946576,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/firefox/help/"},{"index":1,"title":"Customize Firefox","id":9,"parent":7,"dateAdded":1344738511947238,"lastModified":1344738511947897,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/firefox/customize/"},{"index":2,"title":"Get Involved","id":10,"parent":7,"dateAdded":1344738511948466,"lastModified":1344738511949076,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/firefox/community/"},{"index":3,"title":"About Us","id":11,"parent":7,"dateAdded":1344738511949624,"lastModified":1344738511950227,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/about/"}]}]},{"index":1,"title":"Bookmarks Toolbar","id":3,"parent":1,"dateAdded":1344738511756405,"lastModified":1344738511962633,"annos":[{"name":"bookmarkProperties/description","flags":0,"expires":4,"mimeType":null,"type":3,"value":"Add bookmarks to this folder to see them displayed on the Bookmarks Toolbar"}],"type":"text/x-moz-place-container","root":"toolbarFolder","children":[{"title":"Most Visited","id":12,"parent":3,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"MostVisited"}],"type":"text/x-moz-place","uri":"place:sort=8&redirectsMode=2&maxResults=10"},{"index":1,"title":"Getting Started","id":6,"parent":3,"dateAdded":1344738511944426,"lastModified":1344738511944975,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/firefox/central/"}]},{"index":2,"title":"Tags","id":4,"parent":1,"dateAdded":1344738511756405,"lastModified":1344738511756405,"type":"text/x-moz-place-container","root":"tagsFolder","children":[]},{"index":3,"title":"Unsorted Bookmarks","id":5,"parent":1,"dateAdded":1344738511756405,"lastModified":1344738511942426,"type":"text/x-moz-place-container","root":"unfiledBookmarksFolder","children":[]}]}
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/cert8.db
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/chromeappsstore.sqlite
Binary file not shown.
View
7 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/compatibility.ini
@@ -0,0 +1,7 @@
+[Compatibility]
+LastVersion=12.0_20120420145725/20120420145725
+LastOSABI=Darwin_x86_64-gcc3
+LastPlatformDir=/Applications/Firefox.app/Contents/MacOS
+LastAppDir=/Applications/Firefox.app/Contents/MacOS
+
+InvalidateCaches=1
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/content-prefs.sqlite
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/cookies.sqlite
Binary file not shown.
View
4 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/extensions.ini
@@ -0,0 +1,4 @@
+[ExtensionDirs]
+
+[ThemeDirs]
+Extension0=/Applications/Firefox.app/Contents/MacOS/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/extensions.sqlite
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/formhistory.sqlite
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/key3.db
Binary file not shown.
View
21 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/localstore.rdf
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#"
+ xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <RDF:Description RDF:about="chrome://browser/content/browser.xul#sidebar-box"
+ sidebarcommand=""
+ width=""
+ src="" />
+ <RDF:Description RDF:about="chrome://browser/content/browser.xul">
+ <NC:persist RDF:resource="chrome://browser/content/browser.xul#main-window"/>
+ <NC:persist RDF:resource="chrome://browser/content/browser.xul#sidebar-box"/>
+ <NC:persist RDF:resource="chrome://browser/content/browser.xul#sidebar-title"/>
+ </RDF:Description>
+ <RDF:Description RDF:about="chrome://browser/content/browser.xul#main-window"
+ width="940"
+ height="1018"
+ screenX="4"
+ screenY="22"
+ sizemode="normal" />
+ <RDF:Description RDF:about="chrome://browser/content/browser.xul#sidebar-title"
+ value="" />
+</RDF:RDF>
View
63 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/mimeTypes.rdf
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#"
+ xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <RDF:Description RDF:about="urn:handler:web:https://www.mibbit.com/?url=%s"
+ NC:prettyName="Mibbit"
+ NC:uriTemplate="https://www.mibbit.com/?url=%s" />
+ <RDF:Description RDF:about="urn:root"
+ NC:en-US_defaultHandlersVersion="3" />
+ <RDF:Description RDF:about="urn:handler:web:http://30boxes.com/external/widget?refer=ff&amp;url=%s"
+ NC:prettyName="30 Boxes"
+ NC:uriTemplate="http://30boxes.com/external/widget?refer=ff&amp;url=%s" />
+ <RDF:Description RDF:about="urn:scheme:ircs"
+ NC:value="ircs">
+ <NC:handlerProp RDF:resource="urn:scheme:handler:ircs"/>
+ </RDF:Description>
+ <RDF:Seq RDF:about="urn:schemes:root">
+ <RDF:li RDF:resource="urn:scheme:irc"/>
+ <RDF:li RDF:resource="urn:scheme:mailto"/>
+ <RDF:li RDF:resource="urn:scheme:ircs"/>
+ <RDF:li RDF:resource="urn:scheme:webcal"/>
+ </RDF:Seq>
+ <RDF:Description RDF:about="urn:scheme:webcal"
+ NC:value="webcal">
+ <NC:handlerProp RDF:resource="urn:scheme:handler:webcal"/>
+ </RDF:Description>
+ <RDF:Description RDF:about="urn:scheme:mailto"
+ NC:value="mailto">
+ <NC:handlerProp RDF:resource="urn:scheme:handler:mailto"/>
+ </RDF:Description>
+ <RDF:Description RDF:about="urn:scheme:handler:mailto"
+ NC:useSystemDefault="true"
+ NC:alwaysAsk="false">
+ <NC:possibleApplication RDF:resource="urn:handler:web:https://mail.google.com/mail/?extsrc=mailto&amp;url=%s"/>
+ <NC:possibleApplication RDF:resource="urn:handler:web:http://compose.mail.yahoo.com/?To=%s"/>
+ </RDF:Description>
+ <RDF:Description RDF:about="urn:scheme:handler:webcal"
+ NC:useSystemDefault="true"
+ NC:alwaysAsk="true">
+ <NC:possibleApplication RDF:resource="urn:handler:web:http://30boxes.com/external/widget?refer=ff&amp;url=%s"/>
+ </RDF:Description>
+ <RDF:Description RDF:about="urn:scheme:irc"
+ NC:value="irc">
+ <NC:handlerProp RDF:resource="urn:scheme:handler:irc"/>
+ </RDF:Description>
+ <RDF:Description RDF:about="urn:handler:web:https://mail.google.com/mail/?extsrc=mailto&amp;url=%s"
+ NC:prettyName="Gmail"
+ NC:uriTemplate="https://mail.google.com/mail/?extsrc=mailto&amp;url=%s" />
+ <RDF:Description RDF:about="urn:scheme:handler:irc"
+ NC:useSystemDefault="true"
+ NC:alwaysAsk="true">
+ <NC:possibleApplication RDF:resource="urn:handler:web:https://www.mibbit.com/?url=%s"/>
+ </RDF:Description>
+ <RDF:Description RDF:about="urn:schemes">
+ <NC:Protocol-Schemes RDF:resource="urn:schemes:root"/>
+ </RDF:Description>
+ <RDF:Description RDF:about="urn:handler:web:http://compose.mail.yahoo.com/?To=%s"
+ NC:prettyName="Yahoo! Mail"
+ NC:uriTemplate="http://compose.mail.yahoo.com/?To=%s" />
+ <RDF:Description RDF:about="urn:scheme:handler:ircs"
+ NC:alwaysAsk="true">
+ <NC:possibleApplication RDF:resource="urn:handler:web:https://www.mibbit.com/?url=%s"/>
+ </RDF:Description>
+</RDF:RDF>
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/permissions.sqlite
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/places.sqlite
Binary file not shown.
View
161 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/pluginreg.dat
@@ -0,0 +1,161 @@
+Generated File. Do not edit.
+
+[HEADER]
+Version:0.15:$
+Arch:x86_64-gcc3:$
+
+[PLUGINS]
+googletalkbrowserplugin.plugin:$
+/Library/Internet Plug-Ins/googletalkbrowserplugin.plugin:$
+3.4.2.8800:$
+1344353341000:0:1:$
+Version 3.4.2.8800:$
+Google Talk NPAPI Plugin:$
+1
+0:application/googletalk:Google voice and video chat:googletalk:$
+npgtpo3dautoplugin.plugin:$
+/Library/Internet Plug-Ins/npgtpo3dautoplugin.plugin:$
+0.1.44.16:$
+1344349827000:0:1:$
+Google Talk Plugin Video Accelerator version:0.1.44.16:$
+Google Talk Plugin Video Accelerator:$
+1
+0:application/vnd.gtpo3d.auto:Google Talk Plugin Video Accelerator Type::$
+QuickTime Plugin.plugin:$
+/Library/Internet Plug-Ins/QuickTime Plugin.plugin:$
+7.7.1:$
+1343884638000:0:1:$
+The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the <A HREF=http://www.apple.com/quicktime>QuickTime</A> Web site.:$
+QuickTime Plug-in 7.7.1:$
+43
+0:video/mp4:MPEG-4 media:mp4:$
+1:audio/x-ac3:AC3 audio:ac3:$
+2:video/x-m4v:Video:m4v:$
+3:application/x-sdp:SDP stream descriptor:sdp:$
+4:audio/AMR:AMR audio:AMR:$
+5:video/x-flv:Flash Video:flv:$
+6:application/x-rtsp:RTSP stream descriptor:rtsp,rts:$
+7:video/3gpp2:3GPP2 media:3g2,3gp2:$
+8:audio/mpeg:MPEG audio:mpeg,mpg,m1s,m1a,mp2,mpm,mpa,m2a,mp3,swa:$
+9:video/x-nuv:NuppelVideo:nuv:$
+10:audio/mpeg3:MP3 audio:mp3,swa:$
+11:application/sdp:SDP stream descriptor:sdp:$
+12:application/x-mpeg:AMC media:amc:$
+13:video/x-msvideo:Video For Windows:avi,vfw,vfw,avi,gvi,divx,vp6:$
+14:video/mpeg:MPEG media:mpeg,mpg,m1s,m1v,m1a,m75,m15,mp2,mpm,mpv,mpa:$
+15:audio/aac:AAC audio:aac,adts:$
+16:video/sd-video:SD video:sdv:$
+17:audio/x-gsm:GSM audio:gsm:$
+18:audio/x-caf:CAF audio:caf:$
+19:audio/3gpp:3GPP media:3gp,3gpp:$
+20:audio/mp3:MP3 audio:mp3,swa:$
+21:video/avi:Video For Windows:avi,vfw,vfw,avi,gvi,divx,vp6:$
+22:audio/mp4:MPEG-4 media:mp4:$
+23:audio/x-aiff:AIFF audio:aiff,aif,aifc,cdda:$
+24:video/x-mpeg:MPEG media:mpeg,mpg,m1s,m1v,m1a,m75,m15,mp2,mpm,mpv,mpa:$
+25:video/3gpp:3GPP media:3gp,3gpp:$
+26:audio/x-mpeg:MPEG audio:mpeg,mpg,m1s,m1a,mp2,mpm,mpa,m2a,mp3,swa:$
+27:audio/x-aac:AAC audio:aac,adts:$
+28:audio/3gpp2:3GPP2 media:3g2,3gp2:$
+29:audio/x-wav:WAVE audio:wav,bwf:$
+30:video/quicktime:QuickTime Movie:mov,qt,mqv:$
+31:audio/x-mp3:MP3 audio:mp3,swa:$
+32:audio/x-mpeg3:MP3 audio:mp3,swa:$
+33:audio/x-m4a:AAC audio:m4a:$
+34:audio/ac3:AC3 audio:ac3:$
+35:audio/x-m4p:AAC audio:m4p:$
+36:audio/x-tta:True Audio:tta:$
+37:audio/x-m4b:AAC audio book:m4b:$
+38:audio/aiff:AIFF audio:aiff,aif,aifc,cdda:$
+39:video/msvideo:Video For Windows:avi,vfw,vfw,avi,gvi,divx,vp6:$
+40:audio/basic:uLaw/AU audio:au,snd,ulw:$
+41:audio/wav:WAVE audio:wav,bwf:$
+42:audio/vnd.qcelp:QUALCOMM PureVoice audio:qcp,qcp:$
+SharePointBrowserPlugin.plugin:$
+/Library/Internet Plug-Ins/SharePointBrowserPlugin.plugin:$
+14.2.3:$
+1339830000000:0:1:$
+Microsoft Office for Mac SharePoint Browser Plug-in:$
+SharePoint Browser Plug-in:$
+1
+0:application/x-sharepoint:Microsoft Office for Mac SharePoint Browser Plug-in::$
+JavaAppletPlugin.plugin:$
+/System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin:$
+14.3.0:$
+1338841022000:0:1:$
+Displays Java applet content, or a placeholder if Java is not installed.:$
+Java Applet Plug-in:$
+17
+0:application/x-java-applet;version=1.1.3:Java applet::$
+1:application/x-java-applet:Basic Java Applets:javaapplet:$
+2:application/x-java-applet;jpi-version=1.6.0_33:Java applet::$
+3:application/x-java-applet;version=1.2.2:Java applet::$
+4:application/x-java-applet;version=1.5:Java applet::$
+5:application/x-java-applet;version=1.3.1:Java applet::$
+6:application/x-java-applet;version=1.3:Java applet::$
+7:application/x-java-vm:Java applet::$
+8:application/x-java-applet;version=1.1.2:Java applet::$
+9:application/x-java-applet;version=1.1:Java applet::$
+10:application/x-java-applet;version=1.2.1:Java applet::$
+11:application/x-java-applet;version=1.6:Java applet::$
+12:application/x-java-applet;version=1.4.2:Java applet::$
+13:application/x-java-applet;version=1.4:Java applet::$
+14:application/x-java-applet;version=1.1.1:Java applet::$
+15:application/x-java-applet;version=1.2:Java applet::$
+16:application/x-java-vm-npruntime:::$
+Silverlight.plugin:$
+/Library/Internet Plug-Ins/Silverlight.plugin:$
+5.1.10411.0:$
+1334127450000:0:1:$
+5.1.10411.0:$
+Silverlight Plug-In:$
+2
+0:application/x-silverlight:Microsoft Silverlight:xaml:$
+1:application/x-silverlight-2:Microsoft Silverlight:xaml:$
+LogMeIn.plugin:$
+/Library/Internet Plug-Ins/LogMeIn.plugin:$
+1.0.530:$
+1294701146000:0:1:$
+LogMeIn remote control components:$
+LogMeIn Plugin 1.0.0.530:$
+4
+0:application/x-3amlabs-rafiletransfer:File Transfer::$
+1:application/x-3amlabs-raversion:Version::$
+2:application/x-3amlabs-raremotecontrol:Remote Control::$
+3:application/x-3amlabs-raperfview:Performance Viewer::$
+DivXBrowserPlugin.plugin:$
+/Library/Internet Plug-Ins/DivXBrowserPlugin.plugin:$
+2.0:$
+1278528178000:0:1:$
+DivX Web Player version 2.0.2.39:$
+DivX Web Player:$
+1
+0:video/divx:DivX Video File:divx,div:$
+iPhotoPhotocast.plugin:$
+/Library/Internet Plug-Ins/iPhotoPhotocast.plugin:$
+7.0:$
+1249043146000:0:1:$
+iPhoto6:$
+iPhotoPhotocast:$
+1
+0:application/photo:iPhoto 700::$
+
+[INVALID]
+/Library/Internet Plug-Ins/SharePointWebKitPlugin.webplugin:$
+1339830000000:$
+/Library/Internet Plug-Ins/Quartz Composer.webplugin:$
+1343884644000:$
+/Library/Internet Plug-Ins/nsIQTScriptablePlugin.xpt:$
+1343884638000:$
+/Library/Internet Plug-Ins/npdivx.xpt:$
+1278528180000:$
+/Library/Internet Plug-Ins/npContributeMac.bundle:$
+1328451988000:$
+/Library/Internet Plug-Ins/LogMeInSafari64.plugin:$
+1294701146000:$
+/Library/Internet Plug-Ins/LogMeInSafari32.plugin:$
+1294701146000:$
+/Library/Internet Plug-Ins/flashplayer.xpt:$
+1280414676000:$
+/Users/bgesiak/Library/Internet Plug-Ins/WebEx.plugin:$
+1340042501000:$
View
35 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/prefs.js
@@ -0,0 +1,35 @@
+# Mozilla User Preferences
+
+/* Do not edit this file.
+ *
+ * If you make changes to this file while the application is running,
+ * the changes will be overwritten when the application exits.
+ *
+ * To make a manual change to preferences, you can visit the URL about:config
+ * For more information, see http://www.mozilla.org/unix/customizing.html#prefs
+ */
+
+user_pref("browser.bookmarks.restore_default_bookmarks", false);
+user_pref("browser.cache.disk.capacity", 1048576);
+user_pref("browser.cache.disk.smart_size.first_run", false);
+user_pref("browser.migration.version", 6);
+user_pref("browser.places.smartBookmarksVersion", 2);
+user_pref("browser.rights.3.shown", true);
+user_pref("browser.startup.homepage_override.buildID", "20120420145725");
+user_pref("browser.startup.homepage_override.mstone", "rv:12.0");
+user_pref("extensions.blocklist.pingCountVersion", 0);
+user_pref("extensions.bootstrappedAddons", "{}");
+user_pref("extensions.databaseSchema", 12);
+user_pref("extensions.enabledAddons", "{972ce4c6-7e08-4474-a285-3208198ce6fd}:12.0");
+user_pref("extensions.installCache", "[{\"name\":\"app-system-local\",\"addons\":{\"{01A8CA0A-4C96-465b-A49B-65C46FAD54F9}\":{\"descriptor\":\"/Library/Application Support/Mozilla/Extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{01A8CA0A-4C96-465b-A49B-65C46FAD54F9}\",\"mtime\":1280413291000}}},{\"name\":\"app-global\",\"addons\":{\"{972ce4c6-7e08-4474-a285-3208198ce6fd}\":{\"descriptor\":\"/Applications/Firefox.app/Contents/MacOS/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}\",\"mtime\":1336617457000}}}]");
+user_pref("extensions.lastAppVersion", "12.0");
+user_pref("extensions.lastPlatformVersion", "12.0");
+user_pref("extensions.pendingOperations", false);
+user_pref("extensions.shownSelectionUI", true);
+user_pref("intl.charsetmenu.browser.cache", "UTF-8");
+user_pref("network.cookie.prefsMigrated", true);
+user_pref("places.history.expiration.transient_current_max_pages", 104858);
+user_pref("privacy.sanitize.migrateFx3Prefs", true);
+user_pref("urlclassifier.keyupdatetime.https://sb-ssl.google.com/safebrowsing/newkey", 1347330514);
+user_pref("xpinstall.whitelist.add", "");
+user_pref("xpinstall.whitelist.add.36", "");
View
1 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/search.json
@@ -0,0 +1 @@
+{"version":7,"buildID":"20120420145725","locale":"en-US","directories":{"/Applications/Firefox.app/Contents/MacOS/searchplugins":{"lastModifiedTime":1336617456000,"engines":[{"_id":"[app]/amazondotcom.xml","_name":"Amazon.com","_hidden":false,"description":"Amazon.com Search","__searchForm":"http://www.amazon.com/","_iconURL":"data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHgSURBVHjalFM9TNtQEP4cB7PwM1RITUXIgsRaYEEVEyKZwhiyZAQyd0BhpFOlIjoBqhjSqVQMoVMLLAjEwECCQJkSkBqJYDOAFOMKFSf28d7DTUxiUDnp/Pzeu/vuu7t3ICKF6SLTMv2/lB0fRWKfjwDm4JJisYh0Oo3fpZLYT0SjSCQS8JAFMADNDZ3NZsnf1taiqVTKi4nGASruk5lkkmTmMB6JUKFQqO+DfX1eABWeQoVR6f7HSdM0obqu48Yw8G1tDT82NsRd1TSbU9BbGPCog8PDj+jLzurFoAVgMh4XxoNDQ6SqKi0tL9eBvAB8zZwymYxYY7EYAoEA8vm82BNTg6XUIs0MeGTZoR1mhXSnwNl4pmAbjU7mcjkKhkL1ynMnntZ4OEw3VyrV8utk7s5TdW++0QXz+1i3P7IK36t+PCfVn1OQOoOA0gXr5DPak+cPXbBK+/T3S69AtY3LJ98vZ1or/iLr+pTuvr59/A6s003UdqZFJF/PCKQ3o5CUznoBST2AfbEF/9iqYEDaIfwj73VJPEfgNTe0tWNYR0uwy9uOW0OkrgHI7z5ADo2C7v48nLV3XHKAT+x/1m1sX58xsBxg8rZJrDYD8DHHp4aJj/MK09sXjPOt46PcCzAACXY8/u34wN0AAAAASUVORK5CYII=","_urls":[{"template":"http://www.amazon.com/exec/obidos/external-search/","rels":[],"params":[{"name":"field-keywords","value":"{searchTerms}"},{"name":"mode","value":"blended"},{"name":"tag","value":"mozilla-20"},{"name":"sourceid","value":"Mozilla-search"}]}],"filePath":"/Applications/Firefox.app/Contents/MacOS/searchplugins/amazondotcom.xml"},{"_id":"[app]/bing.xml","_name":"Bing","_hidden":false,"description":"Bing. Search by Microsoft.","__searchForm":"http://www.bing.com/search","_iconURL":"data:image/x-icon;base64,AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAABMLAAATCwAAAAAAAAAAAAAVpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8ysf97zf+24//F6f/F6f/F6f+K0/9QvP8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8krP+Z2P/////////w+f/F6f/F6f/i9P/////////T7v9Bt/8Vpv8Vpv8Vpv8Vpv/T7v/////w+f97zf8Vpv8Vpv8Vpv8Vpv9QvP/T7v/////w+f9Bt/8Vpv8Vpv97zf////////9QvP8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8krP/i9P/////i9P8Vpv8Vpv+24//////i9P8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv+K0/////////8Vpv8Vpv/F6f////////8krP8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv+n3v/////w+f8Vpv8Vpv/F6f////////+n3v8krP8Vpv8Vpv8Vpv8Vpv8Vpv9tx/////////+Z2P8Vpv8Vpv/F6f/////////////i9P+K0/9QvP9QvP9tx//F6f////////+n3v8Vpv8Vpv8Vpv/F6f/////T7v+Z2P/i9P////////////////////+24/9QvP8Vpv8Vpv8Vpv8Vpv/F6f/////F6f8Vpv8Vpv8krP9QvP9QvP9Bt/8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv/F6f/////F6f8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv9Bt/9QvP9Bt/8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8AAHBsAABhdAAAbiAAAHJ0AABsaQAAdGkAACBDAABlbgAAUEEAAEVYAAAuQwAAOy4AAEU7AABBVAAAQ00AAC5W","_urls":[{"template":"http://api.bing.com/osjson.aspx","rels":[],"type":"application/x-suggestions+json","params":[{"name":"query","value":"{searchTerms}"},{"name":"form","value":"OSDJAS"}]},{"template":"http://www.bing.com/search","rels":[],"params":[{"name":"q","value":"{searchTerms}"},{"name":"form","value":"MOZSBR"},{"pref":"ms-pc","name":"pc","condition":"pref","mozparam":true}]},{"template":"http://www.bing.com/search","rels":[],"type":"application/x-moz-keywordsearch","params":[{"name":"q","value":"{searchTerms}"},{"name":"form","value":"MOZLBR"},{"pref":"ms-pc","name":"pc","condition":"pref","mozparam":true}]}],"filePath":"/Applications/Firefox.app/Contents/MacOS/searchplugins/bing.xml","queryCharset":"UTF-8"},{"_id":"[app]/eBay.xml","_name":"eBay","_hidden":false,"description":"eBay - Online auctions","__searchForm":"http://search.ebay.com/","_iconURL":"data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVQ4jdWTvUoDQRSFvxUfQMFSyBvYpLGSSWFpncY6lsLWFiupBBtLBRsfQcQ2a782PoCkSrONlUGy5LPYn6wbu4DghcOcYs65595hIpVNamsj9V8ajOeFzgsFLmo+LxTXcWJVX8WyppIgKSVPkQQ/F0u3gSFwBfTqdoPoBYDnxRFcDgA4Z4cbPtazqblZptBgxJ2BtGydv+vbkyahSUGC0zxT7VeZ0DguBXFsRs9AKtzq/amOKA2sTAylzMDKoIM6wfXhcWmcBKd51ukeWq8Qx6V0MmFAuppxdx/OIgB6e/32+SoTUGfdHTxy0CRodtF6jZpW2R2qs/alQNrgYTytR8Cf1Rh08VuNGkECJCtd5L//TN/BEWxoE8dlIQAAAABJRU5ErkJggg==","_urls":[{"template":"http://anywhere.ebay.com/services/suggest/","rels":[],"type":"application/x-suggestions+json","params":[{"name":"s","value":"0"},{"name":"q","value":"{searchTerms}"}]},{"template":"http://rover.ebay.com/rover/1/711-47294-18009-3/4","rels":[],"params":[{"name":"mpre","value":"http://shop.ebay.com/?_nkw={searchTerms}"}]}],"filePath":"/Applications/Firefox.app/Contents/MacOS/searchplugins/eBay.xml"},{"_id":"[app]/google.xml","_name":"Google","_hidden":false,"description":"Google Search","__searchForm":"http://www.google.com/","_iconURL":"data:image/png;base64,AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADs9Pt8xetPtu9FsfFNtu%2BTzvb2%2B%2Fne4dFJeBw0egA%2FfAJAfAA8ewBBegAAAAD%2B%2FPtft98Mp%2BwWsfAVsvEbs%2FQeqvF8xO7%2F%2F%2F63yqkxdgM7gwE%2FggM%2BfQA%2BegBDeQDe7PIbotgQufcMufEPtfIPsvAbs%2FQvq%2Bfz%2Bf%2F%2B%2B%2FZKhR05hgBBhQI8hgBAgAI9ewD0%2B%2Fg3pswAtO8Cxf4Kw%2FsJvvYAqupKsNv%2B%2Fv7%2F%2FP5VkSU0iQA7jQA9hgBDgQU%2BfQH%2F%2Ff%2FQ6fM4sM4KsN8AteMCruIqqdbZ7PH8%2Fv%2Fg6Nc%2Fhg05kAA8jAM9iQI%2BhQA%2BgQDQu6b97uv%2F%2F%2F7V8Pqw3eiWz97q8%2Ff%2F%2F%2F%2F7%2FPptpkkqjQE4kwA7kAA5iwI8iAA8hQCOSSKdXjiyflbAkG7u2s%2F%2B%2F%2F39%2F%2F7r8utrqEYtjQE8lgA7kwA7kwA9jwA9igA9hACiWSekVRyeSgiYSBHx6N%2F%2B%2Fv7k7OFRmiYtlAA5lwI7lwI4lAA7kgI9jwE9iwI4iQCoVhWcTxCmb0K%2BooT8%2Fv%2F7%2F%2F%2FJ2r8fdwI1mwA3mQA3mgA8lAE8lAE4jwA9iwE%2BhwGfXifWvqz%2B%2Ff%2F58u%2Fev6Dt4tr%2B%2F%2F2ZuIUsggA7mgM6mAM3lgA5lgA6kQE%2FkwBChwHt4dv%2F%2F%2F728ei1bCi7VAC5XQ7kz7n%2F%2F%2F6bsZkgcB03lQA9lgM7kwA2iQktZToPK4r9%2F%2F%2F9%2F%2F%2FSqYK5UwDKZAS9WALIkFn%2B%2F%2F3%2F%2BP8oKccGGcIRJrERILYFEMwAAuEAAdX%2F%2Ff7%2F%2FP%2B%2BfDvGXQLIZgLEWgLOjlf7%2F%2F%2F%2F%2F%2F9QU90EAPQAAf8DAP0AAfMAAOUDAtr%2F%2F%2F%2F7%2B%2Fu2bCTIYwDPZgDBWQDSr4P%2F%2Fv%2F%2F%2FP5GRuABAPkAA%2FwBAfkDAPAAAesAAN%2F%2F%2B%2Fz%2F%2F%2F64g1C5VwDMYwK8Yg7y5tz8%2Fv%2FV1PYKDOcAAP0DAf4AAf0AAfYEAOwAAuAAAAD%2F%2FPvi28ymXyChTATRrIb8%2F%2F3v8fk6P8MAAdUCAvoAAP0CAP0AAfYAAO4AAACAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAA","_urls":[{"template":"http://suggestqueries.google.com/complete/search?output=firefox&client=firefox&hl={moz:locale}&q={searchTerms}","rels":[],"type":"application/x-suggestions+json","params":[]},{"template":"http://www.google.com/search","rels":[],"params":[{"name":"q","value":"{searchTerms}"},{"name":"ie","value":"utf-8"},{"name":"oe","value":"utf-8"},{"name":"aq","value":"t"},{"name":"rls","value":"{moz:distributionID}:{moz:locale}:{moz:official}"},{"name":"client","falseValue":"firefox","trueValue":"firefox-a","condition":"defaultEngine","mozparam":true}]},{"template":"http://www.google.com/search","rels":[],"type":"application/x-moz-keywordsearch","params":[{"name":"q","value":"{searchTerms}"},{"name":"ie","value":"utf-8"},{"name":"oe","value":"utf-8"},{"name":"aq","value":"t"},{"name":"rls","value":"{moz:distributionID}:{moz:locale}:{moz:official}"},{"name":"client","falseValue":"firefox","trueValue":"firefox-a","condition":"defaultEngine","mozparam":true},{"name":"channel","value":"fflb"}]},{"template":"http://www.google.com/search","rels":[],"type":"application/x-moz-contextsearch","params":[{"name":"q","value":"{searchTerms}"},{"name":"ie","value":"utf-8"},{"name":"oe","value":"utf-8"},{"name":"aq","value":"t"},{"name":"rls","value":"{moz:distributionID}:{moz:locale}:{moz:official}"},{"name":"client","falseValue":"firefox","trueValue":"firefox-a","condition":"defaultEngine","mozparam":true},{"name":"channel","value":"rcs"}]}],"filePath":"/Applications/Firefox.app/Contents/MacOS/searchplugins/google.xml","queryCharset":"UTF-8"},{"_id":"[app]/twitter.xml","_name":"Twitter","_hidden":false,"description":"Realtime Twitter Search","__searchForm":"https://twitter.com/search/","_iconURL":"data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/v7+D/7+/j/+/v5g/v7+YP7+/mD+/v5I/v7+KP///wD///8A////AP///wD///8A////AP///wD+/v4H/v7+UPbv4pHgx47B1K9Y3tWwWN7Ur1je3sKCx+rbuKj+/v5n/v7+GP///wD///8A////AP///wD+/v4Y+fbweM2ycMe2iB7/vI0f/8STIf/KlyL/zJki/8yZIv/LmCL/0ahK5/Hp1JH+/v4Y////AP///wD///8A7OTTaquHN+CujkXPs5ZTv6N6G/+2iB7/xpUh/8yZIv/MmSL/zJki/8yZIv/Kmy738OjUi////wD///8A////AMKtfY7w6+Ef////AP///wD///8A3sqbp8iWIf/MmSL/zJki/8yZIv/MmSL/y5gi/8mePO7+/v4w////AP///wD///8A////AP///wD+/v4H/v7+V9CtWN3KmCL/zJki/8yZIv/MmSL/zJki/8yZIv/JlyH/5tSqp/7+/mD+/v4/////AP///wD///8A+PXvJtGyZdXNnS/3y5gi/8qYIv/LmCL/zJki/8yZIv/MmSL/y5gi/82iPO7LqVfe0byMmf///wD///8A/v7+D/Do1JHKmy73ypci/8KSIP+/jyD/xpQh/8uYIv/MmSL/zJki/8qYIv+/jyD/rIEd/9nKqH7///8A////APPu4TzAlSz3wZEg/7mLH/+sgR3/uZdGz7mLH//JlyH/zJki/8yZIv/GlSH/to0r9eXbxD/Vx6dg////AP7+/h/p38WhtIsq9al/HP+kfyjuybaKgf///wCzjzjlwJAg/8qYIv/JlyH/u4wf/8CkYrn///8A////AP///wDj2sRMnHUa/7meYa7Vx6dg////AP///wD///8A2MmnYK6DHf++jiD/vo4g/62CHf/k2sQ/////AP///wD///8A8OvhH/f07w////8A////AP///wD///8A////AP///wC/p3Cfpnwc/66GKvPg1LZ8////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////ANXHp2DJtoqByLWKgf///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AADgPwAAwA8AAIAHAAB4BwAA+AMAAPAAAADgAQAA4AMAAMEDAADPhwAA/48AAP/nAAD//wAA//8AAA==","_urls":[{"template":"https://twitter.com/search/{searchTerms}","rels":[],"params":[{"name":"partner","value":"Firefox"},{"name":"source","value":"desktop-search"}]}],"filePath":"/Applications/Firefox.app/Contents/MacOS/searchplugins/twitter.xml","queryCharset":"UTF-8"},{"_id":"[app]/wikipedia.xml","_name":"Wikipedia (en)","_hidden":false,"description":"Wikipedia, the free encyclopedia","__searchForm":"http://en.wikipedia.org/wiki/Special:Search","_iconURL":"data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAEAgQAhIOEAMjHyABIR0gA6ejpAGlqaQCpqKkAKCgoAPz9%2FAAZGBkAmJiYANjZ2ABXWFcAent6ALm6uQA8OjwAiIiIiIiIiIiIiI4oiL6IiIiIgzuIV4iIiIhndo53KIiIiB%2FWvXoYiIiIfEZfWBSIiIEGi%2FfoqoiIgzuL84i9iIjpGIoMiEHoiMkos3FojmiLlUipYliEWIF%2BiDe0GoRa7D6GPbjcu1yIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","_urls":[{"template":"http://en.wikipedia.org/w/api.php","rels":[],"type":"application/x-suggestions+json","params":[{"name":"action","value":"opensearch"},{"name":"search","value":"{searchTerms}"}]},{"template":"http://en.wikipedia.org/wiki/Special:Search","rels":[],"params":[{"name":"search","value":"{searchTerms}"},{"name":"sourceid","value":"Mozilla-search"}]}],"filePath":"/Applications/Firefox.app/Contents/MacOS/searchplugins/wikipedia.xml","queryCharset":"UTF-8"},{"_id":"[app]/yahoo.xml","_name":"Yahoo","_hidden":false,"description":"Yahoo Search","__searchForm":"http://search.yahoo.com/","_iconURL":"data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbgJqAIoCdgCaAnoAnhKCAKYijgCuLpIAskKeALpSpgC+Yq4AzHy8ANqezgDmvt4A7tLqAPz5+wD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKlRFIoABWAKERERE6ADcKMzzu2hOgAAhERK8REWCWBERE36ERMHMEREvo6iEgY6hEn6Pu0mAzqkz/xjMzoDNwpERERDoAMzAKlERIoAAzMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAA//8AAP//AADAOQAAgBkAAAAPAAAACQAAAAkAAAAIAAAACAAAAAgAAIAYAADAOAAA//8AAP//AAD//wAA","_urls":[{"template":"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}","rels":[],"type":"application/x-suggestions+json","params":[]},{"template":"http://search.yahoo.com/search","rels":[],"params":[{"name":"p","value":"{searchTerms}"},{"name":"ei","value":"UTF-8"},{"pref":"yahoo-fr","name":"fr","condition":"pref","mozparam":true}]}],"filePath":"/Applications/Firefox.app/Contents/MacOS/searchplugins/yahoo.xml","queryCharset":"UTF-8"}]}}}
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/search.sqlite
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/secmod.db
Binary file not shown.
View
1 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/sessionstore.js
@@ -0,0 +1 @@
+{"windows":[{"tabs":[{"entries":[{"url":"http://www.mozilla.org/en-US/firefox/12.0/firstrun/","title":"Welcome to Firefox","ID":1,"docshellID":5,"docIdentifier":1,"formdata":{"#country":233},"scroll":"0,0"}],"index":1,"hidden":false,"attributes":{"image":"http://www.mozilla.org/favicon.ico"}},{"entries":[{"url":"about:home","title":"Mozilla Firefox Start Page","ID":0,"docshellID":6,"owner_b64":"NhAra3tiRRqhyKDUVsktxQAAAAAAAAAAwAAAAAAAAEYAAQAAAAAAAS8nfAAOr03buTZBMmukiq45X+BFfRhK26P9r5jIoa8RAAAAAAVhYm91dAAAAARob21lAODaHXAvexHTjNAAYLD8FKM5X+BFfRhK26P9r5jIoa8RAAAAAA5tb3otc2FmZS1hYm91dAAAAARob21lAAAAAA==","docIdentifier":0,"formdata":{},"scroll":"0,0"}],"index":1,"hidden":false,"attributes":{"image":"chrome://branding/content/icon16.png"}}],"selected":1,"_closedTabs":[],"busy":false,"width":940,"height":1018,"screenX":4,"screenY":22,"sizemode":"normal"}],"selectedWindow":1,"_closedWindows":[],"session":{"state":"stopped","lastUpdate":1344738515307,"startTime":1344738512625,"recentCrashes":0},"scratchpads":[]}
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/signons.sqlite
Binary file not shown.
View
BIN ...ject/test_app/tests/functional_tests/jc15bh8e.Selenium/startupCache/startupCache.8.little
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/urlclassifier.pset
Binary file not shown.
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/urlclassifier3.sqlite
Binary file not shown.
View
2 test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/urlclassifierkey3.txt
@@ -0,0 +1,2 @@
+clientkey:24:wTxbLQtK0s1R2lk_jRVVpg==
+wrappedkey:100:AKEgNisAcDLAQOAHh5BPZKjyAt9EQNQOfOpX4-mapg-OSYP1InAsOTawm0SVqT-IT9a9QXCaTOZX2qUx0_MD8xRvK1AJ2WgFSQ==
View
BIN test_project/test_app/tests/functional_tests/jc15bh8e.Selenium/webappsstore.sqlite
Binary file not shown.
View
11 test_project/test_app/tests/functional_tests/list_tests.py
@@ -0,0 +1,11 @@
+from django.utils import unittest
+from noseselenium.cases import SeleniumTestCaseMixin
+
+
+class ListTest(unittest.TestCase, SeleniumTestCaseMixin):
+
+ def test_ok(self):
+ s = self.selenium
+ s.open("/test_app/generatedmodel/")
+ self.failUnless(
+ s.is_text_present('A page representing a list of objects.'))
View
40 test_project/test_app/tests/generator_tests/urls_tests.py
@@ -5,7 +5,7 @@
from test_urlgen_with_urlpatterns.models import URLPreExistingDatedModel
-TEST_APP_NAME = 'test_app'
+TEST_APP_NAME = 'test_urlgen_no_urlpatterns'
URLS_GENERATOR = UrlsGenerator(TEST_APP_NAME)
DATED_MODEL = PreExistingDatedModel()
NON_DATED_MODEL = PreExistingModel()
@@ -21,75 +21,75 @@ def test_render_urls_with_timestamp():
test_urlpattern = URLS_GENERATOR.render_urls(DATED_MODEL)
target_urlpattern = u"""
-from test_app.views.preexistingdatedmodel_views import *
+from test_urlgen_no_urlpatterns.views.preexistingdatedmodel_views import *
urlpatterns = patterns('',
url(
regex=r'^preexistingdatedmodel/archive/$',
view=PreExistingDatedModelArchiveIndexView.as_view(),
- name='test_app_preexistingdatedmodel_archive_index'
+ name='test_urlgen_no_urlpatterns_preexistingdatedmodel_archive_index'
),
url(
regex=r'^preexistingdatedmodel/create/$',
view=PreExistingDatedModelCreateView.as_view(),
- name='test_app_preexistingdatedmodel_create'
+ name='test_urlgen_no_urlpatterns_preexistingdatedmodel_create'
),
url(
regex=r'^preexistingdatedmodel/(?P<year>\\d{4})/'
'(?P<month>\\d{1,2})/'
'(?P<day>\\d{1,2})/'
'(?P<pk>\\d+?)/$',
view=PreExistingDatedModelDateDetailView.as_view(),
- name='test_app_preexistingdatedmodel_date_detail'
+ name='test_urlgen_no_urlpatterns_preexistingdatedmodel_date_detail'
),
url(
regex=r'^preexistingdatedmodel/archive/(?P<year>\\d{4})/'
'(?P<month>\\d{1,2})/'
'(?P<day>\\d{1,2})/$',
view=PreExistingDatedModelDayArchiveView.as_view(),
- name='test_app_preexistingdatedmodel_day_archive'
+ name='test_urlgen_no_urlpatterns_preexistingdatedmodel_day_archive'
),
url(
regex=r'^preexistingdatedmodel/(?P<pk>\\d+?)/delete/$',
view=PreExistingDatedModelDeleteView.as_view(),
- name='test_app_preexistingdatedmodel_delete'
+ name='test_urlgen_no_urlpatterns_preexistingdatedmodel_delete'
),
url(
regex=r'^preexistingdatedmodel/(?P<pk>\\d+?)/$',
view=PreExistingDatedModelDetailView.as_view(),
- name='test_app_preexistingdatedmodel_detail'
+ name='test_urlgen_no_urlpatterns_preexistingdatedmodel_detail'
),
url(
regex=r'^preexistingdatedmodel/$',
view=PreExistingDatedModelListView.as_view(),
- name='test_app_preexistingdatedmodel_list'
+ name='test_urlgen_no_urlpatterns_preexistingdatedmodel_list'
),
url(
regex=r'^preexistingdatedmodel/archive/(?P<year>\\d{4})/'
'(?P<month>\\d{1,2})/$',
view=PreExistingDatedModelMonthArchiveView.as_view(),
- name='test_app_preexistingdatedmodel_month_archive'
+ name='test_urlgen_no_urlpatterns_preexistingdatedmodel_month_archive'
),
url(
regex=r'^preexistingdatedmodel/today/$',
view=PreExistingDatedModelTodayArchiveView.as_view(),
- name='test_app_preexistingdatedmodel_today_archive'
+ name='test_urlgen_no_urlpatterns_preexistingdatedmodel_today_archive'
),
url(
regex=r'^preexistingdatedmodel/(?P<pk>\\d+?)/update/$',
view=PreExistingDatedModelUpdateView.as_view(),
- name='test_app_preexistingdatedmodel_update'
+ name='test_urlgen_no_urlpatterns_preexistingdatedmodel_update'
),
url(
regex=r'^preexistingdatedmodel/archive/(?P<year>\\d{4})/'
'(?P<month>\\d{1,2})/'
'week/(?P<week>\\d{1,2})/$',
view=PreExistingDatedModelWeekArchiveView.as_view(),
- name='test_app_preexistingdatedmodel_week_archive'
+ name='test_urlgen_no_urlpatterns_preexistingdatedmodel_week_archive'
),
url(
regex=r'^preexistingdatedmodel/archive/(?P<year>\\d{4})/$',
view=PreExistingDatedModelYearArchiveView.as_view(),
- name='test_app_preexistingdatedmodel_year_archive'
+ name='test_urlgen_no_urlpatterns_preexistingdatedmodel_year_archive'
),
)
"""
@@ -102,37 +102,37 @@ def test_render_urls_without_timestamp():
test_urlpattern = URLS_GENERATOR.render_urls(NON_DATED_MODEL)
target_urlpattern = u"""
-from test_app.views.preexistingmodel_views import *
+from test_urlgen_no_urlpatterns.views.preexistingmodel_views import *
urlpatterns = patterns('',
url(
regex=r'^preexistingmodel/create/$',
view=PreExistingModelCreateView.as_view(),
- name='test_app_preexistingmodel_create'
+ name='test_urlgen_no_urlpatterns_preexistingmodel_create'
),
url(
regex=r'^preexistingmodel/(?P<pk>\\d+?)/delete/$',
view=PreExistingModelDeleteView.as_view(),
- name='test_app_preexistingmodel_delete'
+ name='test_urlgen_no_urlpatterns_preexistingmodel_delete'
),
url(
regex=r'^preexistingmodel/(?P<pk>\\d+?)/$',
view=PreExistingModelDetailView.as_view(),
- name='test_app_preexistingmodel_detail'
+ name='test_urlgen_no_urlpatterns_preexistingmodel_detail'
),
url(
regex=r'^preexistingmodel/$',
view=PreExistingModelListView.as_view(),
- name='test_app_preexistingmodel_list'
+ name='test_urlgen_no_urlpatterns_preexistingmodel_list'
),
url(
regex=r'^preexistingmodel/(?P<pk>\\d+?)/update/$',
view=PreExistingModelUpdateView.as_view(),
- name='test_app_preexistingmodel_update'
+ name='test_urlgen_no_urlpatterns_preexistingmodel_update'
),
View
65 test_project/test_app/tests/runtests.py
@@ -0,0 +1,65 @@
+#!/usr/bin/env python
+
+
+import os
+import sys
+import subprocess
+
+
+def runtests():
+ """Use generatescaffold to generate a model, then run the test
+ suite, before finally cleaning up after generatescaffold. Exits
+ with the status code of ./manage.py test."""
+
+ app_abspath = os.path.dirname(os.path.dirname(__file__))
+ models_abspath = os.path.join(app_abspath, 'models.py')
+ models_exists = os.path.isfile(models_abspath)
+ urls_abspath = os.path.join(app_abspath, 'urls.py')
+ urls_exists = os.path.isfile(urls_abspath)
+ views_abspath = os.path.join(app_abspath, 'views')
+ views_exists = os.path.isdir(views_abspath)
+ tpls_abspath = os.path.join(app_abspath, 'templates')
+ tpls_exists = os.path.isdir(tpls_abspath)
+
+ for f in [models_abspath, urls_abspath]:
+ if os.path.isfile(f):
+ subprocess.call('cp {} {}.orig'.format(f, f), shell=True)
+
+ if views_exists:
+ subprocess.call('cp -r {} {}.orig'.format(views_abspath, views_abspath), shell=True)
+
+ if tpls_exists:
+ subprocess.call('cp -r {} {}.orig'.format(tpls_abspath, tpls_abspath), shell=True)
+
+ subprocess.call('python manage.py generatescaffold test_app GeneratedModel title:string description:text', shell=True)
+ test_status = subprocess.call('python manage.py test --with-selenium --with-cherrypyliveserver --noinput', shell=True)
+
+ if models_exists:
+ subprocess.call('mv {}.orig {}'.format(models_abspath, models_abspath), shell=True)
+ else:
+ subprocess.call('rm {}'.format(models_abspath), shell=True)
+
+ if urls_exists:
+ subprocess.call('mv {}.orig {}'.format(urls_abspath, urls_abspath), shell=True)
+ else:
+ subprocess.call('rm {}'.format(urls_abspath), shell=True)
+
+ if views_exists:
+ subprocess.call('rm -rf {}'.format(views_abspath), shell=True)
+ subprocess.call('mv {}.orig {}'.format(views_abspath, views_abspath), shell=True)
+ else:
+ subprocess.call('rm -rf {}'.format(views_abspath), shell=True)
+
+ if tpls_exists:
+ subprocess.call('rm -rf {}'.format(tpls_abspath), shell=True)
+ subprocess.call('mv {}.orig {}'.format(tpls_abspath, tpls_abspath), shell=True)
+ else:
+ subprocess.call('rm -rf {}'.format(tpls_abspath), shell=True)
+
+ subprocess.call('rm {}/*.pyc'.format(app_abspath), shell=True)
+
+ sys.exit(test_status)
+
+
+if __name__ == '__main__':
+ runtests()
View
6 test_project/test_project/settings.py
@@ -1,6 +1,8 @@
# Django settings for test_project project.
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
+SELENIUM_DISPLAY = ':99.0'
+LIVE_SERVER_PORT = 8000
DEBUG = True
TEMPLATE_DEBUG = DEBUG
@@ -14,11 +16,12 @@
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
- 'NAME': 'test_db', # Or path to database file if using sqlite3.
+ 'NAME': 'test_app.db', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
+ 'TEST_NAME': 'test_app.test.db',
}
}
@@ -126,6 +129,7 @@
# 'django.contrib.admindocs',
'generate_scaffold',
'django_nose',
+ 'test_app',
)
# A sample logging configuration. The only tangible logging
View
0 test_project/test_urlgen_no_urlpatterns/__init__.py
No changes.
View
7 test_project/test_urlgen_no_urlpatterns/models.py
@@ -0,0 +1,7 @@
+from django.db import models
+from django.utils.timezone import now
+
+
+class URLPreExistingDatedModel(models.Model):
+ created_at = models.DateTimeField(
+ auto_now_add=True, default=now(), editable=False)
View
3 test_project/test_app/tests/sample_test.py → ...oject/test_urlgen_no_urlpatterns/tests.py
@@ -6,14 +6,11 @@
"""
from django.test import TestCase
-from generate_scaffold.generators.base import BaseGenerator
-
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
- b = BaseGenerator('bollocks')
self.assertEqual(1 + 1, 2)
View
3 test_project/test_urlgen_no_urlpatterns/urls.py
@@ -0,0 +1,3 @@
+from django.conf.urls import patterns, include, url
+
+
View
1 test_project/test_urlgen_no_urlpatterns/views.py
@@ -0,0 +1 @@
+# Create your views here.

0 comments on commit f9d2bdb

Please sign in to comment.