Merge lp://qastaging/~dpniel/ubuntu-autopilot-tests/gedit into lp://qastaging/ubuntu-autopilot-tests
Proposed by
Dan Chapman
Status: | Merged | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 59 | ||||||||||||||||
Proposed branch: | lp://qastaging/~dpniel/ubuntu-autopilot-tests/gedit | ||||||||||||||||
Merge into: | lp://qastaging/ubuntu-autopilot-tests | ||||||||||||||||
Diff against target: |
1347 lines (+936/-357) 9 files modified
ubuntu_autopilot_tests/gedit/__init__.py (+154/-0) ubuntu_autopilot_tests/gedit/samples/gedit.c (+8/-0) ubuntu_autopilot_tests/gedit/samples/gedit.cpp (+8/-0) ubuntu_autopilot_tests/gedit/samples/gedit.py (+6/-0) ubuntu_autopilot_tests/gedit/samples/gedit.vala (+9/-0) ubuntu_autopilot_tests/gedit/samples/gedit.xml (+21/-0) ubuntu_autopilot_tests/gedit/samples/gedit1.c (+8/-0) ubuntu_autopilot_tests/gedit/samples/test (+1/-0) ubuntu_autopilot_tests/gedit/test_gedit.py (+721/-357) |
||||||||||||||||
To merge this branch: | bzr merge lp://qastaging/~dpniel/ubuntu-autopilot-tests/gedit | ||||||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nicholas Skaggs (community) | Approve | ||
Review via email:
|
Description of the change
I have implemented the requirements of the two bug reports but on firther inspection I have seen many flaws in this test. If you read through I have made comments about each test which i will file a bug for these changes to be made. If you can see anymore let me know and will file more bugs :-)
To post a comment you must log in.
Ok, I would do a few things here. This testcase looks like we can really test the app so much more with the new introspection bits. Good stuff!
Things we should do before pushing this:
-- Let's try and remove the basic sleeps
1) Remove this by checking for a new tab -- #Why not just check there is eventually a new tab??????? select_ many('GeditTab' )
self.assertTha t(documents[ orginalNumDocum ents].name, Contains( str(orginalNumD ocuments + 1)))
I see this logic in the code that could work
documents = self.app.
#note index starts at 0
2) The sleep(3) occurences. They occur waiting for subwindows like open/save/close dialogs. Can we check properly for these to appear? If not, we should think carefully about pushing anyway, if we want this to go to prod.
-- Let's comment out completely the tests that have no asserts, or add a simple assert. Every test needs a assert or there's no reason to even run it.
Things still needing work for later:
-- We should stop using keyboard shortcuts for everything and convert to mouse movements where it makes sense. Click the save button, don't use alt+s, etc
-- We should finish out some of the stubbed testcases; anything we've commented out above, along with expanding the testcases using objects since we can access them now.