Skip to content

Instantly share code, notes, and snippets.

~/gitRepos/mcom-tests[master*]$ py.test -s tests/test_get_headers.py
========================================================== test session starts ==========================================================
platform darwin -- Python 2.7.2 -- pytest-2.2.4
collected 1 items
tests/test_get_headers.py Status: 200
Backend Server: bedrock1.stage.webapp.phx1.mozilla.com
Status: 200
Backend Server: bedrock1.stage.webapp.phx1.mozilla.com
Status: 200
~/gitRepos/mcom-tests[master*]$ py.test -s tests/test_get_headers.py
========================================================== test session starts ==========================================================
platform darwin -- Python 2.7.2 -- pytest-2.2.4
collected 1 items
tests/test_get_headers.py Status: 200
Backend Server: bedrock1.stage.webapp.phx1.mozilla.com
Status: 200
Backend Server: bedrock1.stage.webapp.phx1.mozilla.com
Status: 200
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from gaiatest import GaiaTestCase
from gaiatest.tests.clock import clock_object
class TestSendKeys(GaiaTestCase):
def test_send_keys(self):
starting httpd
running webserver on http://10.251.30.149:63213/
TEST-START test_identity.py
testAllowUnverified (test_identity.TestIdentity)
We can get an unverified email ... ERROR
testForceIssuer (test_identity.TestIdentity)
We can force the issuer ... ERROR
testForceIssuerAllowUnverified (test_identity.TestIdentity)
We can force the issuer with an unverified email ... ERROR
testIdentityEnabled (test_identity.TestIdentity)
gaiatest --address=localhost:2828 --testvars=mine/b2g.gaia.json gaiatest/tests/manifest.ini --type=b2g-carrier
starting httpd
running webserver on http://10.251.30.149:64983/
TEST-START test_settings.py
test_get_all_settings (test_settings.TestSettings) ... ok
test_set_named_setting (test_settings.TestSettings) ... ok
test_set_volume (test_settings.TestSettings) ... ok
----------------------------------------------------------------------
Ran 3 tests in 26.113s
@bobsilverberg
bobsilverberg / gist:4588632
Created January 21, 2013 19:39
Version of test_product_link_urls_are_valid that doesn't use Selenium
@pytest.mark.skip_selenium
@pytest.mark.nondestructive
def test_product_link_urls_are_valid(self, mozwebqa):
mozillabased_page = MozillaBasedPage(mozwebqa)
url = "%s/projects/mozilla-based/" % mozwebqa.base_url
page_response = requests.get(url)
html = BeautifulStoneSoup(page_response.content)
bad_urls = []
product_list = html.find('ul', 'productlist')
product_links = product_list.findAll('a', href=True)
starting httpd
running webserver on http://192.168.0.20:61269/
TEST-START test_sms.py
test_sms_send (test_sms.TestSms) ... ERROR
======================================================================
ERROR: test_sms_send (test_sms.TestSms)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bsilverberg/gitRepos/gaia-ui-tests/gaiatest/tests/test_sms.py", line 33, in setUp
~/b2g-distro$ adb logcat
--------- beginning of /dev/log/main
I/Gecko ( 108): 1359488610276 Marionette INFO could not load listener into content for page: chrome://browser/content/shell.xul
I/Gecko ( 108): 1359488610280 Marionette INFO sendToClient: {"from":"conn5.marionette1","value":"6-b2g"}, undefined, {1791fefb-3ff7-4f16-ac22-dae556f0a8fb}
I/Gecko ( 108): 1359488610283 Marionette WARN got a response with no command_id
I/Gecko ( 108): 1359488610293 Marionette DEBUG Got request: setTestName, data: {"to":"conn5.marionette1","session":"6-b2g","type":"setTestName","value":"test_sms.py TestSms.test_sms_send"}, id: {a6ce9f76-56b2-4d74-b635-92d7065ffd51}
I/Gecko ( 108): 1359488610295 Marionette INFO sendToClient: {"from":"conn5.marionette1","ok":true}, {a6ce9f76-56b2-4d74-b635-92d7065ffd51}, {a6ce9f76-56b2-4d74-b635-92d7065ffd51}
I/Gecko ( 108): 1359488610302 Marionette DEBUG Got request: execute, data: {"to":"conn5.marionette1","specialPowers":false,"session":"6-b2g","newSandbox":true,"args":[
import requests
import json
import argparse
# parse the arguments
parser = argparse.ArgumentParser()
parser.add_argument("user",
help="moztrap username")
parser.add_argument("api_key",
help="moztrap api_key for user")
import requests
import json
import argparse
# parse the arguments
parser = argparse.ArgumentParser()
parser.add_argument("user",
help="moztrap username")
parser.add_argument("api_key",
help="moztrap api_key for user")