Skip to content

Instantly share code, notes, and snippets.

View davehunt's full-sized avatar

Dave Hunt davehunt

View GitHub Profile
diff --git a/mozwebqa/mozwebqa.py b/mozwebqa/mozwebqa.py
index 598760e..c606b3e 100644
--- a/mozwebqa/mozwebqa.py
+++ b/mozwebqa/mozwebqa.py
@@ -53,14 +53,16 @@ import yaml
def pytest_configure(config):
- if config.option.base_url:
- status_code = _get_status_code(config.option.base_url)
+ py.test -n 10 -r fsxX --baseurl=http://mozillians-dev.allizom.org --api=rc '--environment=Firefox 7 on Mac OS X' --timeout=180000 --junitxml=results.xml --credentials=/Users/daveandpam/workspace/webqa-credentials/mozillians.yaml --junitxml=results.xml
============================= test session starts ==============================
platform darwin -- Python 2.6.1 -- pytest-2.1.3
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I / gw8 I / gw9 I
gw0 [19] / gw1 [19] / gw2 [19] / gw3 [19] / gw4 [19] / gw5 [19] / gw6 [19] / gw7 [19] / gw8 [19] / gw9 [19]
scheduling tests via LoadScheduling
...........Xxxx..x.INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/Shared/Jenkins/Home/jobs/mozillians.dev/workspace/.env/lib/python2.6/site-packages/_pytest/main.py", line 67, in wrap_session
INTERNALERROR> doit(config, session)
+ py.test -n 10 -r fsxX -k prod --baseurl=http://wiki.mozilla.org --browsername=firefox --browserver=7 --platform=mac --junitxml=results.xml --credentials=/Users/daveandpam/workspace/webqa-credentials/wiki.yaml
============================= test session starts ==============================
platform darwin -- Python 2.6.1 -- pytest-2.1.3
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I / gw8 I / gw9 I
gw0 [2] / gw1 [2] / gw2 [2] / gw3 [2] / gw4 [2] / gw5 [2] / gw6 [2] / gw7 [4] / gw8 [2] / gw9 [2]
scheduling tests via LoadScheduling
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/Shared/Jenkins/Home/jobs/wiki.prod/workspace/.env/lib/python2.6/site-packages/_pytest/main.py", line 67, in wrap_session
INTERNALERROR> doit(config, session)
+ py.test -n 10 -r fsxX -k prod --baseurl=http://wiki.mozilla.org --browsername=firefox --browserver=7 --platform=mac --junitxml=results.xml --credentials=/Users/daveandpam/workspace/webqa-credentials/wiki.yaml
============================= test session starts ==============================
platform darwin -- Python 2.6.1 -- pytest-2.1.3
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I / gw8 I / gw9 I
gw0 [2] / gw1 [2] / gw2 [2] / gw3 [2] / gw4 [2] / gw5 [2] / gw6 [2] / gw7 [2] / gw8 [2] / gw9 [2]
scheduling tests via LoadScheduling
.INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/Shared/Jenkins/Home/jobs/wiki.prod/workspace/.env/lib/python2.6/site-packages/_pytest/main.py", line 67, in wrap_session
INTERNALERROR> doit(config, session)
@pytest.mark.bugzilla(id): related bugs in bugzilla.
@pytest.mark.litmus(id): related tests in litmus.
@pytest.mark.nondestructive: does not cause any lasting impression on the application under test.
@pytest.mark.private: contains confidential data such as user credentials.
@pytest.mark.public: does not contain any confidential data such as user credentials.
Index: javascript/selenium-atoms/events.js
===================================================================
--- javascript/selenium-atoms/events.js (revision 15122)
+++ javascript/selenium-atoms/events.js (working copy)
@@ -140,7 +140,20 @@
}
}
} else {
- element.value = actualValue;
+ try {
[12/06/11 15:38:09] [SSH] Opening SSH connection to 10.8.73.237:22.
[12/06/11 15:38:09] [SSH] Authenticating as mozilla/******.
[12/06/11 15:38:09] [SSH] Authentication successful.
[12/06/11 15:38:10] [SSH] The remote users environment is:
BASH=/bin/bash
BASHOPTS=cmdhist:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
Index: javascript/selenium-atoms/events.js
===================================================================
--- javascript/selenium-atoms/events.js (revision 15132)
+++ javascript/selenium-atoms/events.js (working copy)
@@ -139,6 +139,9 @@
element.innerHTML = actualValue;
}
}
+ } else if (goog.userAgent.GECKO && bot.userAgent.isVersion(8)) {
+ // Firefox 8+ fails with a security error if typing into (XPCNativeWrapper) unwrapped objects
py.test tests/ -knondestructive --collectonly
=============================================================================== test session starts ===============================================================================
platform darwin -- Python 2.7.1 -- pytest-2.2.0
collected 114 items
<Module 'tests/test_categories.py'>
<Class 'TestCategory'>
<Instance '()'>
<Function 'test_that_all_category_links_work'>
<Function 'test_that_category_names_are_correct'>
<Module 'tests/test_details_page.py'>
@davehunt
davehunt / memchaser.js
Created January 13, 2012 18:16
MemChaser logging
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License