Merge lp://qastaging/~unity-2d-team/unity-2d/testability-integration into lp://qastaging/unity-2d
Proposed by
Gerry Boland
Status: | Merged |
---|---|
Approved by: | Tiago Salem Herrmann |
Approved revision: | 845 |
Merged at revision: | 831 |
Proposed branch: | lp://qastaging/~unity-2d-team/unity-2d/testability-integration |
Merge into: | lp://qastaging/unity-2d |
Diff against target: |
3559 lines (+3248/-6) 30 files modified
CMakeLists.txt (+1/-0) launcher/Launcher.qml (+2/-2) launcher/LauncherItem.qml (+7/-0) launcher/LauncherList.qml (+2/-0) launcher/tests/CMakeLists.txt (+1/-1) libunity-2d-private/src/testabilityinterface.h (+37/-0) libunity-2d-private/src/unity2dapplication.cpp (+42/-0) libunity-2d-private/src/unity2dapplication.h (+4/-0) libunity-2d-private/tests/CMakeLists.txt (+2/-2) panel/tests/CMakeLists.txt (+1/-1) tests/README (+177/-0) tests/launcher/autohide_show_tests.rb (+193/-0) tests/launcher/visual_verification.rb (+86/-0) tests/manual-tests/launcher.txt (+104/-0) tests/manual-tests/places.txt (+13/-0) tests/manual-tests/window-manager.txt (+9/-0) tests/misc/binary_dir.txt.in (+1/-0) tests/misc/lib/testhelper.rb (+162/-0) tests/misc/lib/xdo/README.xdo.rdoc (+52/-0) tests/misc/lib/xdo/_xdo.rb (+35/-0) tests/misc/lib/xdo/clipboard.rb (+209/-0) tests/misc/lib/xdo/keyboard.rb (+387/-0) tests/misc/lib/xdo/mouse.rb (+254/-0) tests/misc/lib/xdo/simulatable.rb (+91/-0) tests/misc/lib/xdo/test/test_clipboard.rb (+49/-0) tests/misc/lib/xdo/test/test_keyboard.rb (+114/-0) tests/misc/lib/xdo/test/test_mouse.rb (+29/-0) tests/misc/lib/xdo/test/test_xwindow.rb (+101/-0) tests/misc/lib/xdo/xwindow.rb (+1009/-0) tests/run-tests.rb (+74/-0) |
To merge this branch: | bzr merge lp://qastaging/~unity-2d-team/unity-2d/testability-integration |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tiago Salem Herrmann (community) | Approve | ||
Review via email:
|
Description of the change
[tests] Add Automated User Experience testing using "Testability"
Add support for Testability, a Qt application automated testing framework, with some boilerplate code to allow easy writing of tests using Ruby's Test::Util library. Also added is a Ruby library called XDo which allows control of the X server and fake mouse, keyboard and window management.
A couple of sample tests for the launcher have been written. This required the addition of some objectName definitions to the launcher.
To post a comment you must log in.
A quick guide to setting up your machine to for testing this MR:
$ sudo add-apt-repo ppa:gerboland/ testability testability- driver- qt-sut- plugin testability- visualizer \ ruby1.8 xdotool xsel xkill xwininfo
$ sudo apt-get update
$ sudo apt-get install rubygems testability-qttas \
ruby-
librmagick-
Edit /etc/tdriver/ tdriver_ parameters. xml to just contain:
<parameters> server_ ip" value="127.0.0.1" />
<sut id="sut_qt" template="qt">
<!-- use default values -->
<parameter name="qttas_
</sut>
<!-- overload default behaviours parameter (see generic.xml in defaults folder) --> C:\tdriver\ temp_folder" / --> behaviours. xml"/>
<!-- parameter name="tmp_folder" value="
<parameter name="behaviours" value="
</parameters>
Run Testability server first
$ qttasserver&
To run tests on this source tree, make sure you run cmake & compile. Otherwise
tests will be run on the installed applications.
You run the entire Unity 2D test suite by executing the run-tests.rb script:
$ cd tests
$ ruby run-tests.rb
Consult tests/README for more details