Merge lp:~canonical-platform-qa/webbrowser-app/fix_base_class into lp:webbrowser-app
| Status: | Merged |
|---|---|
| Approved by: | Olivier Tilloy on 2015-05-08 |
| Approved revision: | 970 |
| Merged at revision: | 1004 |
| Proposed branch: | lp:~canonical-platform-qa/webbrowser-app/fix_base_class |
| Merge into: | lp:webbrowser-app |
| Diff against target: |
107 lines (+29/-24) 3 files modified
tests/autopilot/webbrowser_app/__init__.py (+25/-1) tests/autopilot/webbrowser_app/emulators/browser.py (+1/-18) tests/autopilot/webbrowser_app/tests/__init__.py (+3/-5) |
| To merge this branch: | bzr merge lp:~canonical-platform-qa/webbrowser-app/fix_base_class |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Olivier Tilloy | 2015-04-16 | Approve on 2015-05-08 | |
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-05-07 | |
| Christopher Lee (community) | 2015-05-06 | Approve on 2015-05-07 | |
|
Review via email:
|
|||
Commit Message
Fix the base class used when launching the app in autopilot tests.
Description of the Change
Using the common base class from the toolkit simplifies the inheritance of autopilot custom proxy objects. The tests are the same, but this allows us to make some changes on the autopilot registry.
| Olivier Tilloy (osomon) wrote : | # |
Un-approving. On my desktop, this breaks running one single test case. Running all test cases in one given file/class still works, but passing the fully-qualified name of a test case (e.g. webbrowser_
Traceback (most recent call last):
File "/home/
super(
File "/home/
self.
File "/home/
self.
File "/home/
return self.app.
File "/usr/lib/
(self.
AttributeError: Class 'webbrowser-app' has no attribute 'main_window'.
| Leo Arias (elopio) wrote : | # |
That is a great catch, thanks!
Looking at this example, now I think that the top of the namespace should declare all the custom proxy objects that it exports, forcing them to get into the autopilot registry every time the package is imported.
I pushed a new version.
I'll add veebers to the reviewers to get his opinion.
| Christopher Lee (veebers) wrote : | # |
My opinion is that autopilot shouldn't make it so you need to do a work around like this :-) Rest assured that this is a topic of discussion within the team and we hope to improve the story around that.
That being said this seems like a reasonable work around.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:970
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:970
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:970
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

PASSED: Continuous integration, rev:968 jenkins. qa.ubuntu. com/job/ webbrowser- app-ci/ 1658/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 2287 jenkins. qa.ubuntu. com/job/ webbrowser- app-vivid- amd64-ci/ 415 jenkins. qa.ubuntu. com/job/ webbrowser- app-vivid- armhf-ci/ 415 jenkins. qa.ubuntu. com/job/ webbrowser- app-vivid- armhf-ci/ 415/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ webbrowser- app-vivid- i386-ci/ 415 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 2008 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 2285 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 2285/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 19709
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/webbrowser- app-ci/ 1658/rebuild
http://