Skip to content

Instantly share code, notes, and snippets.

Step 1: Validate a manifest:
Starting new HTTPS connection (1): marketplace-dev.allizom.org
"POST /api/apps/validation/ HTTP/1.1" 201 None
{
"headers": {
"Content-type": "application/json",
"Authorization": "OAuth realm=\"\", oauth_body_hash=\"\", oauth_nonce=\"\", oauth_timestamp=\"1392230414\", oauth_consumer_key=\"\", oauth_signature_method=\"HMAC-SHA1\", oauth_version=\"1.0\", oauth_signature=\"%%3D\""
},
"data": "{\"manifest\": \"http://1392230414.testmanifest.com/manifest.webapp\"}"
self.device.manager.removeDir('/data/local/storage/persistent')
self.device.manager.removeDir('/data/b2g/mozilla')
ping 63.245.220.11
PING 63.245.220.11 (63.245.220.11): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
Request timeout for icmp_seq 7
<li class="item result app c"><a itemtype="http://schema.org/SoftwareApplication" itemscope="" data-id="466165"
data-slug="touch-12i" href="/app/touch-12i?src=search" class="product mkt-tile ">
<img width="64" height="64" itemprop="image"
src="https://marketplace-dev-cdn.allizom.org/img/uploads/addon_icons/466/466165-64.png?modified=1381942198"
alt="" class="icon"/>
<div class="info">
<h3 itemprop="name">Touch 12i</h3>
<div itemprop="creator" class="author lineclamp vital subdetail">Elvis Pfützenreuter</div>
Touch 12i
Elvis Pfützenreuter
ESRB: Everyone
Rated out of stars (0)
$1.99
function nb () {
git checkout $1
git pull upstream $1
git branch -D $2
git checkout -b $2
}
TEST-START test_cards_view_with_two_apps.py
test_that_app_can_be_launched_from_cards_view (test_cards_view_with_two_apps.TestCardsView)
https://moztrap.mozilla.org/manage/case/2462/ ... ERROR
======================================================================
ERROR: None
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bsilverberg/.virtualenvs/gaia-v1.3/lib/python2.7/site-packages/marionette_client-0.7.4-py2.7.egg/marionette/marionette_test.py", line 163, in run
testMethod()
TEST-START test_cards_view_kill_apps_with_two_apps.py
Traceback (most recent call last):
File "/Users/bsilverberg/.virtualenvs/gaia-v1.3/bin/gaiatest", line 9, in <module>
load_entry_point('gaiatest==0.21.2', 'console_scripts', 'gaiatest')()
File "/Users/bsilverberg/gitRepos/gaia/tests/python/gaia-ui-tests/gaiatest/runtests.py", line 49, in main
cli(runner_class=GaiaTestRunner, parser_class=GaiaTestOptions)
File "/Users/bsilverberg/.virtualenvs/gaia-v1.3/lib/python2.7/site-packages/marionette_client-0.7.5-py2.7.egg/marionette/runtests.py", line 28, in cli
runner = startTestRunner(runner_class, options, tests)
File "/Users/bsilverberg/.virtualenvs/gaia-v1.3/lib/python2.7/site-packages/marionette_client-0.7.5-py2.7.egg/marionette/runtests.py", line 19, in startTestRunner
runner.run_tests(tests)
gaiatest --testvars=mine/b2g.gaia.inari.json --address=localhost:2828 --restart --type=b2g marketplacetests/tests/test_marketplace_feedback_anonymous.py --xml-output=results.xml --html-output=results.html
starting httpd
running webserver on http://192.168.0.29:57936/
TEST-START test_marketplace_feedback_anonymous.py
Traceback (most recent call last):
File "/Users/bsilverberg_local/.virtualenvs/marketplace-tests-gaia-current/bin/gaiatest", line 9, in <module>
load_entry_point('gaiatest==0.22', 'console_scripts', 'gaiatest')()
File "/Users/bsilverberg_local/.virtualenvs/marketplace-tests-gaia-current/lib/python2.7/site-packages/gaiatest-0.22-py2.7.egg/gaiatest/runtests.py", line 49, in main
cli(runner_class=GaiaTestRunner, parser_class=GaiaTestOptions)
File "/Users/bsilverberg_local/.virtualenvs/marketplace-tests-gaia-current/lib/python2.7/site-packages/marionette_client-0.7.5-py2.7.egg/marionette/runtests.py", line 28, in cli
# v1.3 requires a different wait
Wait(marionette=self.marionette, timeout=timeout)\
.until(lambda m: m.execute_script('return window.wrappedJSObject.AppWindowManager || window.wrappedJSObject.WindowManager'))
if self.marionette.execute_script('return window.wrappedJSObject.AppWindowManager') == 'None':
if self.is_android_build:
self.marionette.execute_async_script("""
window.addEventListener('mozbrowserloadend', function loaded(aEvent) {
if (aEvent.target.src.indexOf('ftu') != -1 || aEvent.target.src.indexOf('homescreen') != -1) {
window.removeEventListener('mozbrowserloadend', loaded);
marionetteScriptFinished();