Skip to content

Instantly share code, notes, and snippets.

View admc's full-sized avatar

Adam Christian admc

View GitHub Profile
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'release'.
WAGON_VERSION: 1.0-beta-2
[INFO] ------------------------------------------------------------------------
[INFO] Building HudsonWindmillPlugin
[INFO] task-segment: [release:prepare, release:perform] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [release:prepare]
[INFO] Resuming release from phase 'run-preparation-goals'
[INFO] Executing goals 'clean verify'...
var setupModule = function(module) {
module.controller = mozmill.getBrowserController();
}
var testFoo = function(){
controller.open('http://www.dailymotion.com/openvideodemo');
controller.waitForPageLoad(null, 10, 5000);
controller.window.content.alert('test');
}
windmill.varRegistry.items['{$storedIHTML}']
# Generated by the windmill services transformer
from windmill.authoring import WindmillTestClient
def test_recordingSuite0():
client = WindmillTestClient(__name__)
client.storeVarFromLocAttrib(xpath=u"//span[@id='footer']/center/p/font", options=u'storedIHTML|innerHTML')
client.execIDEJS(js=u"windmill.varRegistry.items['{$storedIHTML}']")['result']
def setup_module(module):
client = WindmillTestClient(__name__)
# precondition: set the locale to English
client.waits.forElement(timeout=u'60000', id=u'locale_selector_dialog_onclick')
#client.execJS(js=u'intl_locale_selector_dialog("http://www.facebook.com/");')
client.click(xpath=u"//div[@id='locale_selector_dialog_onclick']/a")
try:
client.waits.forElement(link=u'English (US)', timeout=u'60000')
client.click(link=u'English (US)')
Traceback (most recent call last):
File "/nail/monkey/bt/util/publisher.py", line 184, in handler
return do_handler(req)
File "/nail/monkey/bt/util/publisher.py", line 146, in do_handler
response_buffer = servlet_instance.execute()
File "/nail/monkey/bt/cmds/_smart_logic_cmd.py", line 111, in execute
return super(ViewLogicCmd, self).execute()
File "/nail/monkey/bt/cmds/_smart_cmd.py", line 253, in execute
rv = self.return_hitlog( self.do_invoke(self.view), self.__class__.__name__ )
File "/nail/monkey/bt/cmds/_application.py", line 195, in do_invoke
Status Code: 500
Exception:
Stacktrace:
net.sf.json.JSONException: Unterminated string at character 940 of {"name": "Live", "description": "", "admin_unittest": false, "Clear Disk Space on VM Denman": false, "Clear Disk Space on VM Harwood": false, "Clear Disk Space on VM Hornby": false, "Clear Disk Space on VM Lopez": false, "Clear Disk Space on VM Nanaimo": false, "Clear Disk Space on VM Orcas": false, "Clear Disk Space on VM Pados": false, "Clear Disk Space on VM SanJuan": false, "Clear Disk Space on VM Srilanka": false, "Code Review": false, "Documentation": true, "email_importers": false, "FB SPP Buy Less Then 5 Gold": false, "FS Comments v2": false, " Part - Add": false, " Part - Forward": false, " Part - UI": false, " Part - View": false, "FS Global Comments": false, "FS Quizzes": false, "FS Related Videos v2": false, "FS Sanity Publisher": false, " Part - Allowed": false, " Part - Not Allowed": false, "FS Viral Events every_time_and_never": false, "FS Viral Events friend_comments": false, "FS Viral E
Status Code: 500
Exception:
Stacktrace:
net.sf.json.JSONException: Unterminated string at character 505 of {"name": "Media", "description": "", "admin_unittest": false, "Clear Disk Space on VM Denman": false, "Clear Disk Space on VM Harwood": false, "Clear Disk Space on VM Hornby": false, "Clear Disk Space on VM Lopez": false, "Clear Disk Space on VM Nanaimo": false, "Clear Disk Space on VM Orcas": false, "Clear Disk Space on VM Pados": false, "Clear Disk Space on VM SanJuan": false, "Clear Disk Space on VM Srilanka": false, "Code Review": false, "Documentation": false, "email_importers": false, "FB SPP B
at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:512)
at net.sf.json.util.JSONTokener.nextString(JSONTokener.java:244)
at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:352)
at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:834)
at net.sf.json.JSONObject._fromString(JSONObject.java:1039)
(adam@Aires)(%:4:~): windmill firefox http://www.apple.com
windmill.bin.shell_objects: INFO ['/Applications/Firefox.app/Contents/MacOS/firefox-bin', '-profile', '/var/folders/mg/mgG0ZZXRH3CZnS7vemDcpU+++TI/-Tmp-/tmpQADoZU.mozrunner', 'http://www.apple.com/windmill-serv/start.html']
Exception happened during processing of request from ('127.0.0.1', 50941)
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 558, in process_request_thread
self.finish_request(request, client_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 320, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/Users/adam/Documents/projects/windmill/windmill/server/https.py", line 151, in __init__
BaseHTTPRequestHandler.__init__(self, request, client_address, server)
(windmill_ve)(adam@Archie-2)(%:100:Projects): virtualenv windmill_ve
New python executable in windmill_ve/bin/python
Installing setuptools............done.
(windmill_ve)(adam@Archie-2)(%:102:Projects): source windmill_ve/bin/activate
(windmill_ve)(adam@Archie-2)(%:104:Projects): easy_install pip
Searching for pip
Best match: pip 0.6.3
Processing pip-0.6.3-py2.6.egg
Removing pip 0.6.3 from easy-install.pth file
Adding pip 0.6.3 to easy-install.pth file
import functest
from functest import reports
from xml.etree import ElementTree
class JUnitReporter(reports.FunctestReportInterface):
def summary(self, test_list, totals_dict, stdout_capture):
if functest.registry.get('report', False):
total_sec = reduce(lambda x, y: (y.endtime - y.starttime).seconds + x, test_list, 0)
e = ElementTree.Element('testsuite')
e.attrib['errors'] = e.attrib['failures'] = str(totals_dict['fail'])