m |
m |
||
| Line 1: | Line 1: | ||
| - | = Testability Driver (TDriver) | + | = Testability Driver (TDriver) Getting Started Guide = |
| + | |||
| + | This page describes the installation of the Testability Driver on your host machine. Currently supported hosts are Fedora 13 and Ubuntu 10.04. Repositories for newer versions (Ubuntu 10.10 and Fedora 13) will be available as soon as they are available in obs. Before this is available, you will need to compile qttas and visualizer from source. Ruby components require rubygems, which should be available in newer releases. | ||
| + | |||
| - | |||
== Installing required packages from repositories == | == Installing required packages from repositories == | ||
| Line 15: | Line 17: | ||
sudo apt-get install rubygems ruby1.8-dev libxslt-dev libxml2-dev visualizer | sudo apt-get install rubygems ruby1.8-dev libxslt-dev libxml2-dev visualizer | ||
</pre> | </pre> | ||
| + | |||
| + | |||
| + | === Ubuntu 10.10 === | ||
| + | |||
| + | Before the repository is available, you will need to compile the Qt components from see [[#Compiling TDriver from source|below]] . | ||
| + | |||
| + | To install build requirements | ||
| + | <pre> | ||
| + | sudo apt-get install libxtst-dev libqtwebkit-dev qt4-qmake g++ libqt4-dev | ||
| + | </pre> | ||
| + | |||
| + | Requirements for Ruby components: | ||
| + | <pre> | ||
| + | sudo apt-get install rubygems ruby1.8-dev libxslt-dev libxml2-dev | ||
| + | </pre> | ||
| + | |||
=== Fedora 13 === | === Fedora 13 === | ||
| Line 20: | Line 38: | ||
Unfortunately Fedora 13 does not have the required Ruby 1.8.7, so we need to compile and install it first. (If you do not want to compile it yourself, you can download the packages from [https://github.com/leamas/diaspora/downloads here]). | Unfortunately Fedora 13 does not have the required Ruby 1.8.7, so we need to compile and install it first. (If you do not want to compile it yourself, you can download the packages from [https://github.com/leamas/diaspora/downloads here]). | ||
| - | Compiling ruby (skip this if you downloaded the packages) | + | Compiling ruby (skip this step if you downloaded the packages) |
<pre> | <pre> | ||
| Line 56: | Line 74: | ||
| - | |||
| + | === Fedora 14 === | ||
| + | |||
| + | Before the repository is available, you will need to compile the Qt components from see [[#Compiling TDriver from source|below]] . | ||
| + | |||
| + | Build requirements: | ||
| + | <pre> | ||
| + | sudo yum install libxtst-devel libqtwebkit-devel qt4-qmake gcc-c++ libqt4-devel | ||
| + | </pre> | ||
| + | |||
| + | Build requirements for Ruby components: | ||
| + | <pre> | ||
| + | sudo yum install libxslt-devel libxml2-devel | ||
| + | </pre> | ||
| + | |||
| + | |||
| + | == Compiling TDriver from source == | ||
| + | |||
| + | |||
| + | === Compilation === | ||
| + | |||
| + | |||
| + | Compile and install qttas-server | ||
| + | <pre> | ||
| + | git clone http://gitorious.org/tdriver/agent_qt.git # Note that this our development master. See the list of available tags if you want to checkout a released version. | ||
| + | cd agent_qt | ||
| + | qmake -r CONFIG+=no_mobility | ||
| + | make | ||
| + | sudo make install | ||
| + | </pre> | ||
| + | |||
| + | Compile and install visualizer | ||
| + | <pre> | ||
| + | git clone http://gitorious.org/tdriver/visualizer.git | ||
| + | cd visualizer | ||
| + | qmake -r | ||
| + | make | ||
| + | sudo make install | ||
| + | </pre> | ||
| + | |||
| + | == Installing TDriver == | ||
Install the Testabiity Driver qt plugin. This will install everything required. | Install the Testabiity Driver qt plugin. This will install everything required. | ||
| Line 67: | Line 124: | ||
<pre> | <pre> | ||
export RUBYOPT="rubygems" # This should go to your login file e.g. .bashrc | export RUBYOPT="rubygems" # This should go to your login file e.g. .bashrc | ||
| - | ruby -e "require 'tdriver'" | + | ruby -e "require 'tdriver'" |
</pre> | </pre> | ||
| + | |||
| + | The command above prints out nothing, the ruby components are installed successfully. | ||
| Line 95: | Line 154: | ||
</pre> | </pre> | ||
| - | + | Now we are ready to start the qttas-server and the calculator | |
| - | + | ||
<pre> | <pre> | ||
qttas-server & | qttas-server & | ||
| Line 105: | Line 163: | ||
<pre> | <pre> | ||
| - | tdriver_visualizer & | + | tdriver_visualizer & # If you compiled visualizer from source, it will be under /opt/tdriver_visualizer |
</pre> | </pre> | ||
| Line 117: | Line 175: | ||
TODO | TODO | ||
| - | + | * Contacting to MeeGo device | |
| - | + | * Tutorial for test creation | |
| - | + | * Running cucumber tests | |
| + | * Making your application load the testability plugin | ||
| + | * Making your application testable | ||
| + | |||
| + | |||
=== Links === | === Links === | ||
Contents |
This page describes the installation of the Testability Driver on your host machine. Currently supported hosts are Fedora 13 and Ubuntu 10.04. Repositories for newer versions (Ubuntu 10.10 and Fedora 13) will be available as soon as they are available in obs. Before this is available, you will need to compile qttas and visualizer from source. Ruby components require rubygems, which should be available in newer releases.
First wee need to enable the Testing:Tools repository. See the How to set up repositories for QA-tools guide.
Note - you cannot use the Ubuntu 10.04 repository in 10.10. The version is compiled agains Qt 4.6, which is not compatible
TDriver requires Rubygems and xml libraries:
sudo apt-get install rubygems ruby1.8-dev libxslt-dev libxml2-dev visualizer
Before the repository is available, you will need to compile the Qt components from see below .
To install build requirements
sudo apt-get install libxtst-dev libqtwebkit-dev qt4-qmake g++ libqt4-dev
Requirements for Ruby components:
sudo apt-get install rubygems ruby1.8-dev libxslt-dev libxml2-dev
Unfortunately Fedora 13 does not have the required Ruby 1.8.7, so we need to compile and install it first. (If you do not want to compile it yourself, you can download the packages from here).
Compiling ruby (skip this step if you downloaded the packages)
sudo yum install rpmdevtools # rpmdev-setuptree sudo yum install yum-utils fedora-release-rawhide gcc yumdownloader --enablerepo=rawhide --source ruby rubygems sudo yum install $( rpm -qRp ruby-*src.rpm | grep -v rpmlib) gcc-g++ rpmbuild --rebuild ruby-*src.rpm # Compilation will take a few minutes
Install the ruby packges that were created:
cd ~
sudo yum localinstall --nogpgcheck \
rpmbuild/*/*/ruby-1.8.7.*.rpm \
rpmbuild/*/*/ruby-libs-1.8.7.302*.rpm \
rpmbuild/*/*/ruby-devel-1.8.7.302*.rpm \
rpmbuild/*/*/ruby-irb-1.8.7.302*.noarch.rpm \
rpmbuild/*/*/ruby-rdoc-1.8.7.302*.noarch.rpm
Next we need rubygems:
rpmbuild --rebuild rubygems-*src.rpm sudo yum localinstall --nogpgcheck rpmbuild/*/*/rubygems-1.3.7*.noarch.rpm
Install other requirements, required to build native dependencies for ruby gems:
sudo yum install libxslt-devel libxml2-devel
Before the repository is available, you will need to compile the Qt components from see below .
Build requirements:
sudo yum install libxtst-devel libqtwebkit-devel qt4-qmake gcc-c++ libqt4-devel
Build requirements for Ruby components:
sudo yum install libxslt-devel libxml2-devel
Compile and install qttas-server
git clone http://gitorious.org/tdriver/agent_qt.git # Note that this our development master. See the list of available tags if you want to checkout a released version. cd agent_qt qmake -r CONFIG+=no_mobility make sudo make install
Compile and install visualizer
git clone http://gitorious.org/tdriver/visualizer.git cd visualizer qmake -r make sudo make install
Install the Testabiity Driver qt plugin. This will install everything required.
sudo gem install testability-driver-qt-sut-plugin # This will take a few minutes
Try that it works
export RUBYOPT="rubygems" # This should go to your login file e.g. .bashrc ruby -e "require 'tdriver'"
The command above prints out nothing, the ruby components are installed successfully.
To install visualizer:
sudo apt-get install visualizer qttas-server
sudo yum install --nogpgcheck testability-driver-visualizer qttas-server
Everything should be now installed.
We need an application to test it with, so download one. Let's a classic calculator application.
Compilation:
sudo yum install git qt4-qmake gcc-c++ git clone http://git.gitorious.org/tdriver/tests.git cd tests/calculator qmake # in Fedora qmake-qt4 make
Now we are ready to start the qttas-server and the calculator
qttas-server & ./calculator &
You should see a simple calculator application. Next, let's start the visualizer.
tdriver_visualizer & # If you compiled visualizer from source, it will be under /opt/tdriver_visualizer
In the visualizer, select File->Refresh. You should see a picture of the calculator application. If you hover your mouse above the picture, the visualizer will highlight the object that is currently under the cursor.
Right click on an element, for example one button, and select "send tap to SUT". The calculator should receive a click to the "1" button. If so, congratulations you have a working TDriver environment!
TODO