Closed Bug 928842 Opened 6 years ago Closed 6 years ago

TypeError: 'GaiaResult' object does not support indexing

Categories

(Testing :: Marionette, defect, major)

Other
Other
defect
Not set
major

Tracking

(firefox27 fixed, b2g-v1.2 fixed)

RESOLVED FIXED
mozilla27
Tracking Status
firefox27 --- fixed
b2g-v1.2 --- fixed

People

(Reporter: zcampbell, Assigned: jgriffin)

References

Details

Attachments

(1 file)

On Jenkins there is a problem with the XML report:

http://qa-selenium.mv.mozilla.com:8080/view/B2G%20Hamachi/job/b2g.hamachi.mozilla-central.ui/179/console

It is blocking accurate reporting on Jenkins.

Trace is:

Traceback (most recent call last):
  File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui/.env/bin/gaiatest", line 8, in <module>
    load_entry_point('gaiatest==0.17', 'console_scripts', 'gaiatest')()
  File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui/tests/python/gaia-ui-tests/gaiatest/runtests.py", line 352, in main
    cli(runner_class=GaiaTestRunner, parser_class=GaiaTestOptions)
  File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 876, in cli
    runner = startTestRunner(runner_class, options, tests)
  File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 868, in startTestRunner
    runner.run_tests(tests)
  File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui/tests/python/gaia-ui-tests/gaiatest/runtests.py", line 216, in run_tests
    MarionetteTestRunner.run_tests(self, tests)
  File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 520, in run_tests
    f.write(self.generate_xml(self.results))
  File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 676, in generate_xml
    _extract_xml(tup[0], text=tup[1], result='error')
TypeError: 'GaiaResult' object does not support indexing
TPE Jenkins has the same problem:

http://release1-qa.corp.tpe1.mozilla.com:8080/view/All.B2G.Test/job/B2G.master.pvt.desktop.gaiatest/lastBuild/console

Traceback (most recent call last):
  File "/var/lib/jenkins/jobs/B2G.master.pvt.desktop.gaiatest/workspace/tests/python/gaia-ui-tests/.env/bin/gaiatest", line 9, in <module>
    load_entry_point('gaiatest==0.17', 'console_scripts', 'gaiatest')()
  File "/var/lib/jenkins/jobs/B2G.master.pvt.desktop.gaiatest/workspace/tests/python/gaia-ui-tests/gaiatest/runtests.py", line 352, in main
    cli(runner_class=GaiaTestRunner, parser_class=GaiaTestOptions)
  File "/var/lib/jenkins/jobs/B2G.master.pvt.desktop.gaiatest/workspace/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 876, in cli
    runner = startTestRunner(runner_class, options, tests)
  File "/var/lib/jenkins/jobs/B2G.master.pvt.desktop.gaiatest/workspace/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 868, in startTestRunner
    runner.run_tests(tests)
  File "/var/lib/jenkins/jobs/B2G.master.pvt.desktop.gaiatest/workspace/tests/python/gaia-ui-tests/gaiatest/runtests.py", line 216, in run_tests
    MarionetteTestRunner.run_tests(self, tests)
  File "/var/lib/jenkins/jobs/B2G.master.pvt.desktop.gaiatest/workspace/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 520, in run_tests
    f.write(self.generate_xml(self.results))
  File "/var/lib/jenkins/jobs/B2G.master.pvt.desktop.gaiatest/workspace/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 676, in generate_xml
    _extract_xml(tup[0], text=tup[1], result='error')
TypeError: 'GaiaResult' object does not support indexing
I suspect this is another fallout from bug 879900, would you mind taking a look at this jgriffin?
Flags: needinfo?(jgriffin)
Indeed, it is.
Assignee: nobody → jgriffin
Flags: needinfo?(jgriffin)
Depends on: 879900
Attachment #819880 - Flags: review?(dave.hunt)
Blocks: 929132
Comment on attachment 819880 [details] [diff] [review]
Fix xml-report generation,

Review of attachment 819880 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good, and passes!
Attachment #819880 - Flags: review?(dave.hunt) → review+
You need to log in before you can comment on or make changes to this bug.