<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.meego.com/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.meego.com/index.php?title=Special:Contributions/Esmietti&amp;feed=atom&amp;limit=50&amp;target=Esmietti&amp;year=&amp;month=</id>
		<title>MeeGo wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.meego.com/index.php?title=Special:Contributions/Esmietti&amp;feed=atom&amp;limit=50&amp;target=Esmietti&amp;year=&amp;month="/>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Special:Contributions/Esmietti"/>
		<updated>2013-05-19T03:45:13Z</updated>
		<subtitle>From MeeGo wiki</subtitle>
		<generator>MediaWiki 1.16.2</generator>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-05-09T08:45:24Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* conductor configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] and [https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]!&lt;br /&gt;
&lt;br /&gt;
There is a flasher plug-in example in the OTS source code under the example folder.&lt;br /&gt;
&lt;br /&gt;
See example video from youtube: http://www.youtube.com/watch?v=exmJ6T-fjlM&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
This guideline assumes that you have HAT switchbox and two N900 devices.&lt;br /&gt;
&lt;br /&gt;
Install OTS worker normally, [[Quality/QA-tools/OTS/UserDocumentation|check installation guidelines]].&lt;br /&gt;
&lt;br /&gt;
Remove the '''network-manager''' and remove all usb* settings from the '''/etc/network/interfaces'''.&lt;br /&gt;
&lt;br /&gt;
=== Wiring ===&lt;br /&gt;
&lt;br /&gt;
[[File:20110414_002.jpg]]&lt;br /&gt;
&lt;br /&gt;
You need one HAT, two N900 devices and lots of cables:&lt;br /&gt;
* 3 x USB A-B cables from the PC to HAT&lt;br /&gt;
* 1 x Power cable to HAT&lt;br /&gt;
* 2 x Power cable from HAT to JIGs&lt;br /&gt;
* 2 x USB A-microB cables from HAT to JIGs&lt;br /&gt;
&lt;br /&gt;
=== ots-worker configuration ===&lt;br /&gt;
&lt;br /&gt;
Basically you need to start two ots-worker programs in one PC. &lt;br /&gt;
&lt;br /&gt;
If both devices are using the same OTS server and queue, then you can use the default /etc/ots.ini file. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2&lt;br /&gt;
&lt;br /&gt;
If you want to dedicated the other device to some other server or queue, create a copy from the default ots.ini file and make your changes to that. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2 -c /your/new/ots.ini&lt;br /&gt;
&lt;br /&gt;
Both workers should be able to connect to OTS server normally, check that they have different worker id:&lt;br /&gt;
 ots.worker.worker - INFO - Starting the worker 1...&lt;br /&gt;
&lt;br /&gt;
=== conductor configuration ===&lt;br /&gt;
&lt;br /&gt;
You need always own conductor.conf per device. Copy the default conductor.conf to first device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_1.conf&lt;br /&gt;
&lt;br /&gt;
And for second device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_2.conf&lt;br /&gt;
&lt;br /&gt;
The most important thing in those configuration files is to define the default flasher and IP addresses. '''You cannot use 192.168.2.15 address for testing! That is used for setting up the devices!'''&lt;br /&gt;
&lt;br /&gt;
Recommended IPs for devices:&lt;br /&gt;
* conductor_1.conf, host: 192.168.3.14, device: 192.168.3.15&lt;br /&gt;
* conductor_2.conf, host: 192.168.4.14, device: 192.168.4.15&lt;br /&gt;
&lt;br /&gt;
Test that conductors are configured correctly and flashing is working:&lt;br /&gt;
 sudo su&lt;br /&gt;
 export OTS_WORKER_NUMBER=1&lt;br /&gt;
 conductor -u http://url/to/image.bin -v&lt;br /&gt;
&lt;br /&gt;
You should see something like:&lt;br /&gt;
 ...&lt;br /&gt;
 INFO using config file /etc/conductor_1.conf&lt;br /&gt;
 ...&lt;br /&gt;
 INFO Loaded flasher 'meego-ai-flasher-n900'&lt;br /&gt;
 ...&lt;br /&gt;
 INFO Host IP 192.168.3.14;Device IP 192.168.3.15&lt;br /&gt;
 ...&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation_rpm</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Installation rpm</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation_rpm"/>
				<updated>2011-05-04T09:19:37Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* How to install N900 automation tools to OTS worker */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS 0.8.x installation RPM =&lt;br /&gt;
&lt;br /&gt;
These instructions have been tested with Fedora 13. Execute commands as root.&lt;br /&gt;
&lt;br /&gt;
In MeeGo netbook, at least following packages needs to be installed manually:&lt;br /&gt;
 python-amqp, python-django, minixsv, rabbitmq-server&lt;br /&gt;
&lt;br /&gt;
== Network Setup ==&lt;br /&gt;
&lt;br /&gt;
Using static IP addresses on all OTS machines is strongly recommended. It is possible to setup the system also with dynamic IP addresses but it might cause problems every now and then because IP's and hostnames change.&lt;br /&gt;
&lt;br /&gt;
'''Note''' All OTS machines need to be able to access other OTS machines based on their hostname.&lt;br /&gt;
&lt;br /&gt;
How to check that DNS names are correct:&lt;br /&gt;
&lt;br /&gt;
1. Check OTS server's hostname&lt;br /&gt;
 hostname&lt;br /&gt;
2. Ping the OTS server's hostname from the OTS worker&lt;br /&gt;
 ping &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If ping fails, add manually OTS server's hostname to OTS workers '''/etc/hosts''' file&lt;br /&gt;
 &amp;lt;IP&amp;gt; &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Preparation ==&lt;br /&gt;
&lt;br /&gt;
There are two ways of getting OTS binary packages: from '''the source code'''&lt;br /&gt;
or from the '''MeeGo Tools:Testing repository'''. From the repository you can get&lt;br /&gt;
the stable version and from the source code the development version.&lt;br /&gt;
&lt;br /&gt;
* Add Tools:Testing source to /etc/yum.repos.d/&lt;br /&gt;
 cd /etc/yum.repos.d/&lt;br /&gt;
 yum install wget nano&lt;br /&gt;
 wget http://download.meego.com/live/Tools:/Testing/Fedora13/Tools:Testing.repo&lt;br /&gt;
&lt;br /&gt;
* Update the repositories&lt;br /&gt;
 yum check-update&lt;br /&gt;
&lt;br /&gt;
'''Build packages from source (optional)'''&lt;br /&gt;
* Install git core&lt;br /&gt;
 yum install git-core&lt;br /&gt;
&lt;br /&gt;
* Get sources&lt;br /&gt;
 git clone git://gitorious.org/meego-quality-assurance/ots.git&lt;br /&gt;
&lt;br /&gt;
* Get building tools&lt;br /&gt;
 yum rpm-build python-setuptools&lt;br /&gt;
&lt;br /&gt;
* Build packages&lt;br /&gt;
 mv ots python-ots-0.8.x&lt;br /&gt;
 tar czf python-ots-0.8.x.tar.gz python-ots-0.8.x&lt;br /&gt;
 rpmbuild -tb python-ots-0.8.x.tar.gz&lt;br /&gt;
&lt;br /&gt;
== OTS server installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 yum install Django python-amqplib python-configobj rabbitmq-server test-definition&lt;br /&gt;
 easy_install minixsv&lt;br /&gt;
 yum install python-setuptools&lt;br /&gt;
&lt;br /&gt;
* Install OTS server components&lt;br /&gt;
 yum install python-ots-common python-ots-results python-ots-server&lt;br /&gt;
or if you are using own built packages&lt;br /&gt;
 rpm -i ...&lt;br /&gt;
&lt;br /&gt;
* Add rabbitmq to start on boot&lt;br /&gt;
 chkconfig --add rabbitmq-server&lt;br /&gt;
 chkconfig rabbitmq-server on&lt;br /&gt;
&lt;br /&gt;
* Start rabbitmq server&lt;br /&gt;
 /etc/init.d/rabbitmq-server start&lt;br /&gt;
&lt;br /&gt;
* Configure OTS server settings&lt;br /&gt;
 sudo nano /etc/ots_server.ini&lt;br /&gt;
&lt;br /&gt;
Recommended to change following:&lt;br /&gt;
 'example_sw_product', example to 'meego_product'&lt;br /&gt;
 'devicegroup', example to 'meego_n900'&lt;br /&gt;
&lt;br /&gt;
* Install OTS server plug-ins&lt;br /&gt;
&lt;br /&gt;
See plug-ins from [[Quality/QA-tools/OTS/Plugins|OTS Plug-ins]]&lt;br /&gt;
&lt;br /&gt;
* Start OTS server&lt;br /&gt;
 ots_server&lt;br /&gt;
&lt;br /&gt;
== OTS worker installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 yum install python-amqplib testrunner-lite&lt;br /&gt;
&lt;br /&gt;
* Install OTS worker packages&lt;br /&gt;
 yum install python-ots-common python-ots-worker&lt;br /&gt;
&lt;br /&gt;
* Configure OTS worker settings&lt;br /&gt;
 sudo nano /etc/ots.ini&lt;br /&gt;
&lt;br /&gt;
Change 'devicegroup', example meego_n900&lt;br /&gt;
&lt;br /&gt;
Change 'host' to server's address&lt;br /&gt;
&lt;br /&gt;
* Start OTS worker (as root)&lt;br /&gt;
 ots_worker&lt;br /&gt;
&lt;br /&gt;
NOTE: if worker failed to start up with error like &amp;quot;socket.error: [Errno 113] No route to host&amp;quot;, check that ots-worker is able to connect to ots-server&lt;br /&gt;
&lt;br /&gt;
== OTS tools ==&lt;br /&gt;
&lt;br /&gt;
Tools are used for triggering test runs from the command line.&lt;br /&gt;
&lt;br /&gt;
* Install OTS tools&lt;br /&gt;
 yum install python-ots-tools&lt;br /&gt;
&lt;br /&gt;
* Trigger a test run&lt;br /&gt;
 ots_trigger -s localhost:8080 -b test_build -i http://url_to_image -p example_sw_product -e test@man.com&lt;br /&gt;
&lt;br /&gt;
* Kickstart file for automation can be found from&lt;br /&gt;
 http://meego.gitorious.org/meego-quality-assurance/enables-automated-testing/blobs/ks/meego-n900-autotest.ks&lt;br /&gt;
&lt;br /&gt;
* You need to build the image with mic-image-creator with parameters:&lt;br /&gt;
 --save-kernel --package=tar.gz&lt;br /&gt;
&lt;br /&gt;
== How to install N900 automation tools to OTS worker ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 yum install meego-ai-flaster eat-host&lt;br /&gt;
 &lt;br /&gt;
* Get N900 flasher from the Nokia's tablets-dev portal&lt;br /&gt;
 http://tablets-dev.nokia.com/maemo-dev-env-downloads.php?f=maemo_flasher-3.5_2.5.2.2.tar.gz&lt;br /&gt;
 Compile the flasher&lt;br /&gt;
&lt;br /&gt;
* Configure conductor to use rpm and fetch /var/log/messages&lt;br /&gt;
 sudo nano /etc/conductor.conf&lt;br /&gt;
&lt;br /&gt;
* Test manually that everything is OK, this is executed in the worker&lt;br /&gt;
 sudo conductor -u &amp;lt;image url&amp;gt;&lt;br /&gt;
* Start OTS worker&lt;br /&gt;
 sudo ots_worker&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation_rpm</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Installation rpm</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation_rpm"/>
				<updated>2011-05-04T09:18:47Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* OTS worker installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS 0.8.x installation RPM =&lt;br /&gt;
&lt;br /&gt;
These instructions have been tested with Fedora 13. Execute commands as root.&lt;br /&gt;
&lt;br /&gt;
In MeeGo netbook, at least following packages needs to be installed manually:&lt;br /&gt;
 python-amqp, python-django, minixsv, rabbitmq-server&lt;br /&gt;
&lt;br /&gt;
== Network Setup ==&lt;br /&gt;
&lt;br /&gt;
Using static IP addresses on all OTS machines is strongly recommended. It is possible to setup the system also with dynamic IP addresses but it might cause problems every now and then because IP's and hostnames change.&lt;br /&gt;
&lt;br /&gt;
'''Note''' All OTS machines need to be able to access other OTS machines based on their hostname.&lt;br /&gt;
&lt;br /&gt;
How to check that DNS names are correct:&lt;br /&gt;
&lt;br /&gt;
1. Check OTS server's hostname&lt;br /&gt;
 hostname&lt;br /&gt;
2. Ping the OTS server's hostname from the OTS worker&lt;br /&gt;
 ping &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If ping fails, add manually OTS server's hostname to OTS workers '''/etc/hosts''' file&lt;br /&gt;
 &amp;lt;IP&amp;gt; &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Preparation ==&lt;br /&gt;
&lt;br /&gt;
There are two ways of getting OTS binary packages: from '''the source code'''&lt;br /&gt;
or from the '''MeeGo Tools:Testing repository'''. From the repository you can get&lt;br /&gt;
the stable version and from the source code the development version.&lt;br /&gt;
&lt;br /&gt;
* Add Tools:Testing source to /etc/yum.repos.d/&lt;br /&gt;
 cd /etc/yum.repos.d/&lt;br /&gt;
 yum install wget nano&lt;br /&gt;
 wget http://download.meego.com/live/Tools:/Testing/Fedora13/Tools:Testing.repo&lt;br /&gt;
&lt;br /&gt;
* Update the repositories&lt;br /&gt;
 yum check-update&lt;br /&gt;
&lt;br /&gt;
'''Build packages from source (optional)'''&lt;br /&gt;
* Install git core&lt;br /&gt;
 yum install git-core&lt;br /&gt;
&lt;br /&gt;
* Get sources&lt;br /&gt;
 git clone git://gitorious.org/meego-quality-assurance/ots.git&lt;br /&gt;
&lt;br /&gt;
* Get building tools&lt;br /&gt;
 yum rpm-build python-setuptools&lt;br /&gt;
&lt;br /&gt;
* Build packages&lt;br /&gt;
 mv ots python-ots-0.8.x&lt;br /&gt;
 tar czf python-ots-0.8.x.tar.gz python-ots-0.8.x&lt;br /&gt;
 rpmbuild -tb python-ots-0.8.x.tar.gz&lt;br /&gt;
&lt;br /&gt;
== OTS server installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 yum install Django python-amqplib python-configobj rabbitmq-server test-definition&lt;br /&gt;
 easy_install minixsv&lt;br /&gt;
 yum install python-setuptools&lt;br /&gt;
&lt;br /&gt;
* Install OTS server components&lt;br /&gt;
 yum install python-ots-common python-ots-results python-ots-server&lt;br /&gt;
or if you are using own built packages&lt;br /&gt;
 rpm -i ...&lt;br /&gt;
&lt;br /&gt;
* Add rabbitmq to start on boot&lt;br /&gt;
 chkconfig --add rabbitmq-server&lt;br /&gt;
 chkconfig rabbitmq-server on&lt;br /&gt;
&lt;br /&gt;
* Start rabbitmq server&lt;br /&gt;
 /etc/init.d/rabbitmq-server start&lt;br /&gt;
&lt;br /&gt;
* Configure OTS server settings&lt;br /&gt;
 sudo nano /etc/ots_server.ini&lt;br /&gt;
&lt;br /&gt;
Recommended to change following:&lt;br /&gt;
 'example_sw_product', example to 'meego_product'&lt;br /&gt;
 'devicegroup', example to 'meego_n900'&lt;br /&gt;
&lt;br /&gt;
* Install OTS server plug-ins&lt;br /&gt;
&lt;br /&gt;
See plug-ins from [[Quality/QA-tools/OTS/Plugins|OTS Plug-ins]]&lt;br /&gt;
&lt;br /&gt;
* Start OTS server&lt;br /&gt;
 ots_server&lt;br /&gt;
&lt;br /&gt;
== OTS worker installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 yum install python-amqplib testrunner-lite&lt;br /&gt;
&lt;br /&gt;
* Install OTS worker packages&lt;br /&gt;
 yum install python-ots-common python-ots-worker&lt;br /&gt;
&lt;br /&gt;
* Configure OTS worker settings&lt;br /&gt;
 sudo nano /etc/ots.ini&lt;br /&gt;
&lt;br /&gt;
Change 'devicegroup', example meego_n900&lt;br /&gt;
&lt;br /&gt;
Change 'host' to server's address&lt;br /&gt;
&lt;br /&gt;
* Start OTS worker (as root)&lt;br /&gt;
 ots_worker&lt;br /&gt;
&lt;br /&gt;
NOTE: if worker failed to start up with error like &amp;quot;socket.error: [Errno 113] No route to host&amp;quot;, check that ots-worker is able to connect to ots-server&lt;br /&gt;
&lt;br /&gt;
== OTS tools ==&lt;br /&gt;
&lt;br /&gt;
Tools are used for triggering test runs from the command line.&lt;br /&gt;
&lt;br /&gt;
* Install OTS tools&lt;br /&gt;
 yum install python-ots-tools&lt;br /&gt;
&lt;br /&gt;
* Trigger a test run&lt;br /&gt;
 ots_trigger -s localhost:8080 -b test_build -i http://url_to_image -p example_sw_product -e test@man.com&lt;br /&gt;
&lt;br /&gt;
* Kickstart file for automation can be found from&lt;br /&gt;
 http://meego.gitorious.org/meego-quality-assurance/enables-automated-testing/blobs/ks/meego-n900-autotest.ks&lt;br /&gt;
&lt;br /&gt;
* You need to build the image with mic-image-creator with parameters:&lt;br /&gt;
 --save-kernel --package=tar.gz&lt;br /&gt;
&lt;br /&gt;
== How to install N900 automation tools to OTS worker ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 yum install meego-ai-flaster eat-host&lt;br /&gt;
 &lt;br /&gt;
* Get N900 flasher from the Nokia's tablets-dev portal&lt;br /&gt;
 http://tablets-dev.nokia.com/maemo-dev-env-downloads.php?f=maemo_flasher-3.5_2.5.2.2.tar.gz&lt;br /&gt;
 Compile the flasher&lt;br /&gt;
&lt;br /&gt;
* Configure conductor to use rpm and fetch /var/log/messages&lt;br /&gt;
 sudo nano /etc/conductor.conf&lt;br /&gt;
&lt;br /&gt;
* If you want run ots_worker as user, copy SSH keys to the user and make udev rule for n900&lt;br /&gt;
 install-eat-key.sh&lt;br /&gt;
 sudo nano /etc/udev/rules.d/meego-n900.rules&lt;br /&gt;
 SUBSYSTEMS==&amp;quot;usb&amp;quot;, ATTR{idVendor}==&amp;quot;0421&amp;quot;, ATTR{idProduct}==&amp;quot;0105&amp;quot;, GROUP=&amp;quot;&amp;lt;group&amp;gt;&amp;quot;, MODE=&amp;quot;0664&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Create a power_cycle.sh script for turning N900 on/off. This requires external accessory, like [[Quality/QA-tools/hat-control|HAT]] &lt;br /&gt;
 sudo nano /usr/bin/power_cycle.sh&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 hat_drv &amp;amp;&lt;br /&gt;
 hat_ctrl -pwr1=off&lt;br /&gt;
 hat_ctrl -usb1data=off&lt;br /&gt;
 hat_ctrl -usb1pwr=off&lt;br /&gt;
 sleep 2;&lt;br /&gt;
 hat_ctrl -usb1pwr=on&lt;br /&gt;
 hat_ctrl -usb1data=on&lt;br /&gt;
 hat_ctrl -pwr1=on&lt;br /&gt;
 killall hat_drv&lt;br /&gt;
&lt;br /&gt;
* Test manually that everything is OK, this is executed in the worker&lt;br /&gt;
 conductor -u &amp;lt;image url&amp;gt;&lt;br /&gt;
* Start OTS worker&lt;br /&gt;
 ots_worker&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-05-04T09:17:15Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] and [https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]!&lt;br /&gt;
&lt;br /&gt;
There is a flasher plug-in example in the OTS source code under the example folder.&lt;br /&gt;
&lt;br /&gt;
See example video from youtube: http://www.youtube.com/watch?v=exmJ6T-fjlM&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
This guideline assumes that you have HAT switchbox and two N900 devices.&lt;br /&gt;
&lt;br /&gt;
Install OTS worker normally, [[Quality/QA-tools/OTS/UserDocumentation|check installation guidelines]].&lt;br /&gt;
&lt;br /&gt;
Remove the '''network-manager''' and remove all usb* settings from the '''/etc/network/interfaces'''.&lt;br /&gt;
&lt;br /&gt;
=== Wiring ===&lt;br /&gt;
&lt;br /&gt;
[[File:20110414_002.jpg]]&lt;br /&gt;
&lt;br /&gt;
You need one HAT, two N900 devices and lots of cables:&lt;br /&gt;
* 3 x USB A-B cables from the PC to HAT&lt;br /&gt;
* 1 x Power cable to HAT&lt;br /&gt;
* 2 x Power cable from HAT to JIGs&lt;br /&gt;
* 2 x USB A-microB cables from HAT to JIGs&lt;br /&gt;
&lt;br /&gt;
=== ots-worker configuration ===&lt;br /&gt;
&lt;br /&gt;
Basically you need to start two ots-worker programs in one PC. &lt;br /&gt;
&lt;br /&gt;
If both devices are using the same OTS server and queue, then you can use the default /etc/ots.ini file. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2&lt;br /&gt;
&lt;br /&gt;
If you want to dedicated the other device to some other server or queue, create a copy from the default ots.ini file and make your changes to that. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2 -c /your/new/ots.ini&lt;br /&gt;
&lt;br /&gt;
Both workers should be able to connect to OTS server normally, check that they have different worker id:&lt;br /&gt;
 ots.worker.worker - INFO - Starting the worker 1...&lt;br /&gt;
&lt;br /&gt;
=== conductor configuration ===&lt;br /&gt;
&lt;br /&gt;
You need always own conductor.conf per device. Copy the default conductor.conf to first device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_1.conf&lt;br /&gt;
&lt;br /&gt;
And for second device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_2.conf&lt;br /&gt;
&lt;br /&gt;
The most important thing in those configuration files is to define the default flasher and IP addresses.&lt;br /&gt;
&lt;br /&gt;
Recommended IPs for devices:&lt;br /&gt;
* conductor_1.conf, host: 192.168.3.14, device: 192.168.3.15&lt;br /&gt;
* conductor_2.conf, host: 192.168.4.14, device: 192.168.4.15&lt;br /&gt;
&lt;br /&gt;
Test that conductors are configured correctly and flashing is working:&lt;br /&gt;
 sudo su&lt;br /&gt;
 export OTS_WORKER_NUMBER=1&lt;br /&gt;
 conductor -u http://url/to/image.bin -v&lt;br /&gt;
&lt;br /&gt;
You should see something like:&lt;br /&gt;
 ...&lt;br /&gt;
 INFO using config file /etc/conductor_1.conf&lt;br /&gt;
 ...&lt;br /&gt;
 INFO Loaded flasher 'meego-ai-flasher-n900'&lt;br /&gt;
 ...&lt;br /&gt;
 INFO Host IP 192.168.3.14;Device IP 192.168.3.15&lt;br /&gt;
 ...&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Installation</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation"/>
				<updated>2011-05-04T09:15:07Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* OTS tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS 0.8.x installation Ubuntu =&lt;br /&gt;
&lt;br /&gt;
If using 0.1.x version, see [[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| migration from 0.1.x to 0.8.x]] document.&lt;br /&gt;
&lt;br /&gt;
== Used hardware ==&lt;br /&gt;
&lt;br /&gt;
:1 x Server (Ubuntu 10.10)&lt;br /&gt;
:1 x Client (Ubuntu 10.10)&lt;br /&gt;
::1 x HAT controller&lt;br /&gt;
:: 1 x Power cable&lt;br /&gt;
:: 1 x Power supply&lt;br /&gt;
:: 2 x USB A-B cable&lt;br /&gt;
:: 1 x USB A-microB cable&lt;br /&gt;
:: 1 x N900&lt;br /&gt;
&lt;br /&gt;
== Network Setup ==&lt;br /&gt;
&lt;br /&gt;
Using static IP addresses on all OTS machines is strongly recommended. It is possible to setup the system also with dynamic IP addresses but it might cause problems every now and then because IP's and hostnames change.&lt;br /&gt;
&lt;br /&gt;
'''Note''' All OTS machines need to be able to access other OTS machines based on their hostname.&lt;br /&gt;
&lt;br /&gt;
How to check that DNS names are correct:&lt;br /&gt;
&lt;br /&gt;
1. Check OTS server's hostname&lt;br /&gt;
 hostname&lt;br /&gt;
2. Ping the OTS server's hostname from the OTS worker&lt;br /&gt;
 ping &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If ping fails, add manually OTS server's hostname to OTS workers '''/etc/hosts''' file&lt;br /&gt;
 &amp;lt;IP&amp;gt; &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Preparation ==&lt;br /&gt;
&lt;br /&gt;
There are two ways of getting OTS binary packages: from '''the source code'''&lt;br /&gt;
or from the '''MeeGo Tools:Testing repository'''. From the repository you can get&lt;br /&gt;
the stable version and from the source code the development version.&lt;br /&gt;
&lt;br /&gt;
* Add Tools:Testing apt source to /etc/apt/sources.list&lt;br /&gt;
 sudo nano /etc/apt/sources.list&lt;br /&gt;
 deb http://download.meego.com/live/Tools:/Testing/xUbuntu_10.10/ /&lt;br /&gt;
Notice that if you are using Ubuntu 10.04, change the path.&lt;br /&gt;
&lt;br /&gt;
* Add repository keys&lt;br /&gt;
 gpg --keyserver subkeys.pgp.net --recv-keys 0BC7BEC479FC1F8A&lt;br /&gt;
 gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -&lt;br /&gt;
&lt;br /&gt;
* Update the repositories&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
'''Build packages from source (optional)'''&lt;br /&gt;
* Install git core&lt;br /&gt;
 sudo apt-get install git-core&lt;br /&gt;
&lt;br /&gt;
* Get sources&lt;br /&gt;
 git clone git://gitorious.org/meego-quality-assurance/ots.git&lt;br /&gt;
&lt;br /&gt;
* Get building tools&lt;br /&gt;
 sudo apt-get install dpkg-dev debhelper python-setuptools&lt;br /&gt;
&lt;br /&gt;
* Build packages&lt;br /&gt;
 cd ots&lt;br /&gt;
 dpkg-buildpackage -rfakeroot&lt;br /&gt;
&lt;br /&gt;
== OTS server installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install python-django python-amqplib python-configobj rabbitmq-server test-definition&lt;br /&gt;
&lt;br /&gt;
* Install OTS server components&lt;br /&gt;
 sudo apt-get install python-ots-common python-ots-results python-ots-server&lt;br /&gt;
Or if you are using own built packages&lt;br /&gt;
 sudo dpkg -i ...&lt;br /&gt;
&lt;br /&gt;
* Configure OTS server settings&lt;br /&gt;
 sudo nano /etc/ots_server.ini&lt;br /&gt;
&lt;br /&gt;
Recommended to change following:&lt;br /&gt;
 'example_sw_product', example to 'meego_product'&lt;br /&gt;
 'devicegroup', example to 'meego_n900'&lt;br /&gt;
&lt;br /&gt;
* Install OTS server plug-ins&lt;br /&gt;
 [[Quality/QA-tools/OTS/Plugins/HTTP_logger|Logger plug-in]] (recommended)&lt;br /&gt;
 [[Quality/QA-tools/OTS/Plugins/Email|Email plug-in]] (recommended)&lt;br /&gt;
&lt;br /&gt;
See more plug-ins from [[Quality/QA-tools/OTS/Plugins|OTS Plug-ins]]&lt;br /&gt;
&lt;br /&gt;
* If logger plug-in is installed&lt;br /&gt;
 Change permissions to logging directory&lt;br /&gt;
 sudo chown www-data:www-data /var/log/ots&lt;br /&gt;
&lt;br /&gt;
Now the OTS server can be used via apache (django_xmlrpc).&lt;br /&gt;
&lt;br /&gt;
* If logger plug-in is not installed&lt;br /&gt;
 Change user permissions to logging directory&lt;br /&gt;
 sudo chown &amp;lt;user&amp;gt;:&amp;lt;group&amp;gt; /var/log/ots&lt;br /&gt;
&lt;br /&gt;
* Start rabbitmq-server&lt;br /&gt;
  /etc/init.d/rabbitmq-server start&lt;br /&gt;
&lt;br /&gt;
 ots_server&lt;br /&gt;
&lt;br /&gt;
== OTS worker installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install python-amqplib testrunner-lite&lt;br /&gt;
&lt;br /&gt;
* Install OTS worker packages&lt;br /&gt;
 sudo apt-get install python-ots-common python-ots-worker&lt;br /&gt;
&lt;br /&gt;
* Configure OTS worker settings&lt;br /&gt;
 sudo nano /etc/ots.ini&lt;br /&gt;
&lt;br /&gt;
Change 'devicegroup', example meego_n900&lt;br /&gt;
&lt;br /&gt;
Change 'host' to server's address&lt;br /&gt;
&lt;br /&gt;
* Start OTS worker&lt;br /&gt;
 sudo ots_worker&lt;br /&gt;
&lt;br /&gt;
== OTS tools ==&lt;br /&gt;
&lt;br /&gt;
Tools are used for triggering test runs from the command line.&lt;br /&gt;
&lt;br /&gt;
* Install OTS tools&lt;br /&gt;
 sudo apt-get install python-ots-tools&lt;br /&gt;
&lt;br /&gt;
* Trigger a test run&lt;br /&gt;
 ots_trigger -s localhost/xmlrpc -b test_build -i http://url_to_image -p example_sw_product -e test@man.com&lt;br /&gt;
&lt;br /&gt;
== How to install N900 automation tools to OTS worker ==&lt;br /&gt;
&lt;br /&gt;
* Remove network-manager, because it breaks the USB connection. See more information from autotest-guide.&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install meego-ai-flasher eat-host-ubuntu&lt;br /&gt;
 &lt;br /&gt;
* Get N900 flasher from the Nokia's tablets-dev portal&lt;br /&gt;
 http://tablets-dev.nokia.com/maemo-dev-env-downloads.php?f=maemo_flasher-3.5_2.5.2.2_i386.deb&lt;br /&gt;
 sudo dpkg -i maemo_flasher-3.5_2.5.2.2_i386.deb&lt;br /&gt;
&lt;br /&gt;
* Start HAT driver&lt;br /&gt;
 sudo hat_drv &amp;amp;&lt;br /&gt;
&lt;br /&gt;
* Test manually that everything is OK, this is executed in the worker&lt;br /&gt;
 sudo conductor -u &amp;lt;image url&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start OTS worker&lt;br /&gt;
 sudo ots_worker&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Installation</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation"/>
				<updated>2011-05-04T09:14:40Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* OTS worker installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS 0.8.x installation Ubuntu =&lt;br /&gt;
&lt;br /&gt;
If using 0.1.x version, see [[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| migration from 0.1.x to 0.8.x]] document.&lt;br /&gt;
&lt;br /&gt;
== Used hardware ==&lt;br /&gt;
&lt;br /&gt;
:1 x Server (Ubuntu 10.10)&lt;br /&gt;
:1 x Client (Ubuntu 10.10)&lt;br /&gt;
::1 x HAT controller&lt;br /&gt;
:: 1 x Power cable&lt;br /&gt;
:: 1 x Power supply&lt;br /&gt;
:: 2 x USB A-B cable&lt;br /&gt;
:: 1 x USB A-microB cable&lt;br /&gt;
:: 1 x N900&lt;br /&gt;
&lt;br /&gt;
== Network Setup ==&lt;br /&gt;
&lt;br /&gt;
Using static IP addresses on all OTS machines is strongly recommended. It is possible to setup the system also with dynamic IP addresses but it might cause problems every now and then because IP's and hostnames change.&lt;br /&gt;
&lt;br /&gt;
'''Note''' All OTS machines need to be able to access other OTS machines based on their hostname.&lt;br /&gt;
&lt;br /&gt;
How to check that DNS names are correct:&lt;br /&gt;
&lt;br /&gt;
1. Check OTS server's hostname&lt;br /&gt;
 hostname&lt;br /&gt;
2. Ping the OTS server's hostname from the OTS worker&lt;br /&gt;
 ping &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If ping fails, add manually OTS server's hostname to OTS workers '''/etc/hosts''' file&lt;br /&gt;
 &amp;lt;IP&amp;gt; &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Preparation ==&lt;br /&gt;
&lt;br /&gt;
There are two ways of getting OTS binary packages: from '''the source code'''&lt;br /&gt;
or from the '''MeeGo Tools:Testing repository'''. From the repository you can get&lt;br /&gt;
the stable version and from the source code the development version.&lt;br /&gt;
&lt;br /&gt;
* Add Tools:Testing apt source to /etc/apt/sources.list&lt;br /&gt;
 sudo nano /etc/apt/sources.list&lt;br /&gt;
 deb http://download.meego.com/live/Tools:/Testing/xUbuntu_10.10/ /&lt;br /&gt;
Notice that if you are using Ubuntu 10.04, change the path.&lt;br /&gt;
&lt;br /&gt;
* Add repository keys&lt;br /&gt;
 gpg --keyserver subkeys.pgp.net --recv-keys 0BC7BEC479FC1F8A&lt;br /&gt;
 gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -&lt;br /&gt;
&lt;br /&gt;
* Update the repositories&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
'''Build packages from source (optional)'''&lt;br /&gt;
* Install git core&lt;br /&gt;
 sudo apt-get install git-core&lt;br /&gt;
&lt;br /&gt;
* Get sources&lt;br /&gt;
 git clone git://gitorious.org/meego-quality-assurance/ots.git&lt;br /&gt;
&lt;br /&gt;
* Get building tools&lt;br /&gt;
 sudo apt-get install dpkg-dev debhelper python-setuptools&lt;br /&gt;
&lt;br /&gt;
* Build packages&lt;br /&gt;
 cd ots&lt;br /&gt;
 dpkg-buildpackage -rfakeroot&lt;br /&gt;
&lt;br /&gt;
== OTS server installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install python-django python-amqplib python-configobj rabbitmq-server test-definition&lt;br /&gt;
&lt;br /&gt;
* Install OTS server components&lt;br /&gt;
 sudo apt-get install python-ots-common python-ots-results python-ots-server&lt;br /&gt;
Or if you are using own built packages&lt;br /&gt;
 sudo dpkg -i ...&lt;br /&gt;
&lt;br /&gt;
* Configure OTS server settings&lt;br /&gt;
 sudo nano /etc/ots_server.ini&lt;br /&gt;
&lt;br /&gt;
Recommended to change following:&lt;br /&gt;
 'example_sw_product', example to 'meego_product'&lt;br /&gt;
 'devicegroup', example to 'meego_n900'&lt;br /&gt;
&lt;br /&gt;
* Install OTS server plug-ins&lt;br /&gt;
 [[Quality/QA-tools/OTS/Plugins/HTTP_logger|Logger plug-in]] (recommended)&lt;br /&gt;
 [[Quality/QA-tools/OTS/Plugins/Email|Email plug-in]] (recommended)&lt;br /&gt;
&lt;br /&gt;
See more plug-ins from [[Quality/QA-tools/OTS/Plugins|OTS Plug-ins]]&lt;br /&gt;
&lt;br /&gt;
* If logger plug-in is installed&lt;br /&gt;
 Change permissions to logging directory&lt;br /&gt;
 sudo chown www-data:www-data /var/log/ots&lt;br /&gt;
&lt;br /&gt;
Now the OTS server can be used via apache (django_xmlrpc).&lt;br /&gt;
&lt;br /&gt;
* If logger plug-in is not installed&lt;br /&gt;
 Change user permissions to logging directory&lt;br /&gt;
 sudo chown &amp;lt;user&amp;gt;:&amp;lt;group&amp;gt; /var/log/ots&lt;br /&gt;
&lt;br /&gt;
* Start rabbitmq-server&lt;br /&gt;
  /etc/init.d/rabbitmq-server start&lt;br /&gt;
&lt;br /&gt;
 ots_server&lt;br /&gt;
&lt;br /&gt;
== OTS worker installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install python-amqplib testrunner-lite&lt;br /&gt;
&lt;br /&gt;
* Install OTS worker packages&lt;br /&gt;
 sudo apt-get install python-ots-common python-ots-worker&lt;br /&gt;
&lt;br /&gt;
* Configure OTS worker settings&lt;br /&gt;
 sudo nano /etc/ots.ini&lt;br /&gt;
&lt;br /&gt;
Change 'devicegroup', example meego_n900&lt;br /&gt;
&lt;br /&gt;
Change 'host' to server's address&lt;br /&gt;
&lt;br /&gt;
* Start OTS worker&lt;br /&gt;
 sudo ots_worker&lt;br /&gt;
&lt;br /&gt;
== OTS tools ==&lt;br /&gt;
&lt;br /&gt;
Tools are used for triggering test runs from the command line.&lt;br /&gt;
&lt;br /&gt;
* Install OTS tools&lt;br /&gt;
 sudo apt-get install python-ots-tools&lt;br /&gt;
&lt;br /&gt;
* Trigger a test run&lt;br /&gt;
 ots_trigger -s localhost/xmlrpc -b test_build -i http://url_to_image -p example_sw_product -e test@man.com&lt;br /&gt;
&lt;br /&gt;
* Kickstart file for automation can be found from&lt;br /&gt;
 http://meego.gitorious.org/meego-quality-assurance/enables-automated-testing/blobs/ks/meego-n900-autotest.ks&lt;br /&gt;
&lt;br /&gt;
* You need to build the image with mic-image-creator with parameters:&lt;br /&gt;
 --save-kernel --package=tar.gz&lt;br /&gt;
&lt;br /&gt;
== How to install N900 automation tools to OTS worker ==&lt;br /&gt;
&lt;br /&gt;
* Remove network-manager, because it breaks the USB connection. See more information from autotest-guide.&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install meego-ai-flasher eat-host-ubuntu&lt;br /&gt;
 &lt;br /&gt;
* Get N900 flasher from the Nokia's tablets-dev portal&lt;br /&gt;
 http://tablets-dev.nokia.com/maemo-dev-env-downloads.php?f=maemo_flasher-3.5_2.5.2.2_i386.deb&lt;br /&gt;
 sudo dpkg -i maemo_flasher-3.5_2.5.2.2_i386.deb&lt;br /&gt;
&lt;br /&gt;
* Start HAT driver&lt;br /&gt;
 sudo hat_drv &amp;amp;&lt;br /&gt;
&lt;br /&gt;
* Test manually that everything is OK, this is executed in the worker&lt;br /&gt;
 sudo conductor -u &amp;lt;image url&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start OTS worker&lt;br /&gt;
 sudo ots_worker&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Installation</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation"/>
				<updated>2011-05-04T09:14:00Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* How to install N900 automation tools to OTS worker */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS 0.8.x installation Ubuntu =&lt;br /&gt;
&lt;br /&gt;
If using 0.1.x version, see [[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| migration from 0.1.x to 0.8.x]] document.&lt;br /&gt;
&lt;br /&gt;
== Used hardware ==&lt;br /&gt;
&lt;br /&gt;
:1 x Server (Ubuntu 10.10)&lt;br /&gt;
:1 x Client (Ubuntu 10.10)&lt;br /&gt;
::1 x HAT controller&lt;br /&gt;
:: 1 x Power cable&lt;br /&gt;
:: 1 x Power supply&lt;br /&gt;
:: 2 x USB A-B cable&lt;br /&gt;
:: 1 x USB A-microB cable&lt;br /&gt;
:: 1 x N900&lt;br /&gt;
&lt;br /&gt;
== Network Setup ==&lt;br /&gt;
&lt;br /&gt;
Using static IP addresses on all OTS machines is strongly recommended. It is possible to setup the system also with dynamic IP addresses but it might cause problems every now and then because IP's and hostnames change.&lt;br /&gt;
&lt;br /&gt;
'''Note''' All OTS machines need to be able to access other OTS machines based on their hostname.&lt;br /&gt;
&lt;br /&gt;
How to check that DNS names are correct:&lt;br /&gt;
&lt;br /&gt;
1. Check OTS server's hostname&lt;br /&gt;
 hostname&lt;br /&gt;
2. Ping the OTS server's hostname from the OTS worker&lt;br /&gt;
 ping &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If ping fails, add manually OTS server's hostname to OTS workers '''/etc/hosts''' file&lt;br /&gt;
 &amp;lt;IP&amp;gt; &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Preparation ==&lt;br /&gt;
&lt;br /&gt;
There are two ways of getting OTS binary packages: from '''the source code'''&lt;br /&gt;
or from the '''MeeGo Tools:Testing repository'''. From the repository you can get&lt;br /&gt;
the stable version and from the source code the development version.&lt;br /&gt;
&lt;br /&gt;
* Add Tools:Testing apt source to /etc/apt/sources.list&lt;br /&gt;
 sudo nano /etc/apt/sources.list&lt;br /&gt;
 deb http://download.meego.com/live/Tools:/Testing/xUbuntu_10.10/ /&lt;br /&gt;
Notice that if you are using Ubuntu 10.04, change the path.&lt;br /&gt;
&lt;br /&gt;
* Add repository keys&lt;br /&gt;
 gpg --keyserver subkeys.pgp.net --recv-keys 0BC7BEC479FC1F8A&lt;br /&gt;
 gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -&lt;br /&gt;
&lt;br /&gt;
* Update the repositories&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
'''Build packages from source (optional)'''&lt;br /&gt;
* Install git core&lt;br /&gt;
 sudo apt-get install git-core&lt;br /&gt;
&lt;br /&gt;
* Get sources&lt;br /&gt;
 git clone git://gitorious.org/meego-quality-assurance/ots.git&lt;br /&gt;
&lt;br /&gt;
* Get building tools&lt;br /&gt;
 sudo apt-get install dpkg-dev debhelper python-setuptools&lt;br /&gt;
&lt;br /&gt;
* Build packages&lt;br /&gt;
 cd ots&lt;br /&gt;
 dpkg-buildpackage -rfakeroot&lt;br /&gt;
&lt;br /&gt;
== OTS server installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install python-django python-amqplib python-configobj rabbitmq-server test-definition&lt;br /&gt;
&lt;br /&gt;
* Install OTS server components&lt;br /&gt;
 sudo apt-get install python-ots-common python-ots-results python-ots-server&lt;br /&gt;
Or if you are using own built packages&lt;br /&gt;
 sudo dpkg -i ...&lt;br /&gt;
&lt;br /&gt;
* Configure OTS server settings&lt;br /&gt;
 sudo nano /etc/ots_server.ini&lt;br /&gt;
&lt;br /&gt;
Recommended to change following:&lt;br /&gt;
 'example_sw_product', example to 'meego_product'&lt;br /&gt;
 'devicegroup', example to 'meego_n900'&lt;br /&gt;
&lt;br /&gt;
* Install OTS server plug-ins&lt;br /&gt;
 [[Quality/QA-tools/OTS/Plugins/HTTP_logger|Logger plug-in]] (recommended)&lt;br /&gt;
 [[Quality/QA-tools/OTS/Plugins/Email|Email plug-in]] (recommended)&lt;br /&gt;
&lt;br /&gt;
See more plug-ins from [[Quality/QA-tools/OTS/Plugins|OTS Plug-ins]]&lt;br /&gt;
&lt;br /&gt;
* If logger plug-in is installed&lt;br /&gt;
 Change permissions to logging directory&lt;br /&gt;
 sudo chown www-data:www-data /var/log/ots&lt;br /&gt;
&lt;br /&gt;
Now the OTS server can be used via apache (django_xmlrpc).&lt;br /&gt;
&lt;br /&gt;
* If logger plug-in is not installed&lt;br /&gt;
 Change user permissions to logging directory&lt;br /&gt;
 sudo chown &amp;lt;user&amp;gt;:&amp;lt;group&amp;gt; /var/log/ots&lt;br /&gt;
&lt;br /&gt;
* Start rabbitmq-server&lt;br /&gt;
  /etc/init.d/rabbitmq-server start&lt;br /&gt;
&lt;br /&gt;
 ots_server&lt;br /&gt;
&lt;br /&gt;
== OTS worker installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install python-amqplib testrunner-lite&lt;br /&gt;
&lt;br /&gt;
* Install OTS worker packages&lt;br /&gt;
 sudo apt-get install python-ots-common python-ots-worker&lt;br /&gt;
&lt;br /&gt;
* Configure OTS worker settings&lt;br /&gt;
 sudo nano /etc/ots.ini&lt;br /&gt;
&lt;br /&gt;
Change 'devicegroup', example meego_n900&lt;br /&gt;
&lt;br /&gt;
Change 'host' to server's address&lt;br /&gt;
&lt;br /&gt;
* Change permissions to OTS worker log&lt;br /&gt;
 sudo chown &amp;lt;user&amp;gt;:&amp;lt;group&amp;gt; /var/log/ots.log&lt;br /&gt;
&lt;br /&gt;
* Start OTS worker&lt;br /&gt;
 ots_worker&lt;br /&gt;
&lt;br /&gt;
== OTS tools ==&lt;br /&gt;
&lt;br /&gt;
Tools are used for triggering test runs from the command line.&lt;br /&gt;
&lt;br /&gt;
* Install OTS tools&lt;br /&gt;
 sudo apt-get install python-ots-tools&lt;br /&gt;
&lt;br /&gt;
* Trigger a test run&lt;br /&gt;
 ots_trigger -s localhost/xmlrpc -b test_build -i http://url_to_image -p example_sw_product -e test@man.com&lt;br /&gt;
&lt;br /&gt;
* Kickstart file for automation can be found from&lt;br /&gt;
 http://meego.gitorious.org/meego-quality-assurance/enables-automated-testing/blobs/ks/meego-n900-autotest.ks&lt;br /&gt;
&lt;br /&gt;
* You need to build the image with mic-image-creator with parameters:&lt;br /&gt;
 --save-kernel --package=tar.gz&lt;br /&gt;
&lt;br /&gt;
== How to install N900 automation tools to OTS worker ==&lt;br /&gt;
&lt;br /&gt;
* Remove network-manager, because it breaks the USB connection. See more information from autotest-guide.&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install meego-ai-flasher eat-host-ubuntu&lt;br /&gt;
 &lt;br /&gt;
* Get N900 flasher from the Nokia's tablets-dev portal&lt;br /&gt;
 http://tablets-dev.nokia.com/maemo-dev-env-downloads.php?f=maemo_flasher-3.5_2.5.2.2_i386.deb&lt;br /&gt;
 sudo dpkg -i maemo_flasher-3.5_2.5.2.2_i386.deb&lt;br /&gt;
&lt;br /&gt;
* Start HAT driver&lt;br /&gt;
 sudo hat_drv &amp;amp;&lt;br /&gt;
&lt;br /&gt;
* Test manually that everything is OK, this is executed in the worker&lt;br /&gt;
 sudo conductor -u &amp;lt;image url&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start OTS worker&lt;br /&gt;
 sudo ots_worker&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Upgrading</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Upgrading</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Upgrading"/>
				<updated>2011-05-04T09:12:03Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* 0.8.3 - 0.8.4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Upgrading OTS =&lt;br /&gt;
&lt;br /&gt;
== 0.8.3 - 0.8.4 ==&lt;br /&gt;
* Backup all configuration files before updating&lt;br /&gt;
* Multiple device support added, even if you use '''only one device''' check following:&lt;br /&gt;
** Changes to /etc/conductor.conf&lt;br /&gt;
** Update meego-ai-flasher (&amp;gt;= 0.1.4) and [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] packages!&lt;br /&gt;
** Even if you use only one device, remove usb0 configurations from /etc/network/interfaces&lt;br /&gt;
** [[Quality/QA-tools/OTS/UserDocumentation/Multiple_device| See this instructions!]]&lt;br /&gt;
* Changes to QAReports configuration file /etc/ots_plugins_qareports.conf&lt;br /&gt;
** Added proxy and attachment upload settings&lt;br /&gt;
&lt;br /&gt;
== 0.8.2 - 0.8.3 ==&lt;br /&gt;
* Changes in ots_plugin_qareports.conf&lt;br /&gt;
** Add new parameters&lt;br /&gt;
* Only new features&lt;br /&gt;
** Test plan based execution&lt;br /&gt;
** Chroot support&lt;br /&gt;
** See [[Quality/QA-tools/OTS/UserDocumentation/Usage|how to]] use these features&lt;br /&gt;
&lt;br /&gt;
== 0.8.1 - 0.8.2 ==&lt;br /&gt;
* New django package added, effects to all plug-ins&lt;br /&gt;
** See [[Quality/QA-tools/OTS/Plugins/Django|Django instructions]].&lt;br /&gt;
** See [[Quality/QA-tools/OTS/DeveloperDocs/Plugins|plug-ins instructions]].&lt;br /&gt;
&lt;br /&gt;
== 0.8.0 - 0.8.1 ==&lt;br /&gt;
* Plug-in namespace changed, effects to Logger and QA-Reports plug-ins&lt;br /&gt;
** For logger update web page content, see step 8 from [[Quality/QA-tools/OTS/Plugins/HTTP_logger|Logger documentation]].&lt;br /&gt;
** For QA-Reports, configuration file name has changed. Move /etc/ots_qareports_plugin.conf to /etc/ots_plugin_qareports.conf&lt;br /&gt;
&lt;br /&gt;
== 0.1.x - 0.8.0 ==&lt;br /&gt;
&lt;br /&gt;
See [[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| migration document]].&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Upgrading</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Upgrading</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Upgrading"/>
				<updated>2011-05-03T08:20:58Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* 0.8.3 - 0.8.4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Upgrading OTS =&lt;br /&gt;
&lt;br /&gt;
== 0.8.3 - 0.8.4 ==&lt;br /&gt;
* Backup all configuration files before updating&lt;br /&gt;
* Multiple device support added, even if you use '''only one device''' update your configuration files!&lt;br /&gt;
** Changes to /etc/conductor.conf&lt;br /&gt;
** Update meego-ai-flasher (&amp;gt;= 0.1.4) and [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] packages!&lt;br /&gt;
** [[Quality/QA-tools/OTS/UserDocumentation/Multiple_device| See this instructions!]]&lt;br /&gt;
* Changes to QAReports configuration file /etc/ots_plugins_qareports.conf&lt;br /&gt;
** Added proxy and attachment upload settings&lt;br /&gt;
&lt;br /&gt;
== 0.8.2 - 0.8.3 ==&lt;br /&gt;
* Changes in ots_plugin_qareports.conf&lt;br /&gt;
** Add new parameters&lt;br /&gt;
* Only new features&lt;br /&gt;
** Test plan based execution&lt;br /&gt;
** Chroot support&lt;br /&gt;
** See [[Quality/QA-tools/OTS/UserDocumentation/Usage|how to]] use these features&lt;br /&gt;
&lt;br /&gt;
== 0.8.1 - 0.8.2 ==&lt;br /&gt;
* New django package added, effects to all plug-ins&lt;br /&gt;
** See [[Quality/QA-tools/OTS/Plugins/Django|Django instructions]].&lt;br /&gt;
** See [[Quality/QA-tools/OTS/DeveloperDocs/Plugins|plug-ins instructions]].&lt;br /&gt;
&lt;br /&gt;
== 0.8.0 - 0.8.1 ==&lt;br /&gt;
* Plug-in namespace changed, effects to Logger and QA-Reports plug-ins&lt;br /&gt;
** For logger update web page content, see step 8 from [[Quality/QA-tools/OTS/Plugins/HTTP_logger|Logger documentation]].&lt;br /&gt;
** For QA-Reports, configuration file name has changed. Move /etc/ots_qareports_plugin.conf to /etc/ots_plugin_qareports.conf&lt;br /&gt;
&lt;br /&gt;
== 0.1.x - 0.8.0 ==&lt;br /&gt;
&lt;br /&gt;
See [[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| migration document]].&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Upgrading</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Upgrading</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Upgrading"/>
				<updated>2011-04-29T07:00:19Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Upgrading OTS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Upgrading OTS =&lt;br /&gt;
&lt;br /&gt;
== 0.8.3 - 0.8.4 ==&lt;br /&gt;
* Backup all configuration files before updating&lt;br /&gt;
* Multiple device support added, even if you use '''only one device''' update your configuration files!&lt;br /&gt;
** Changes to /etc/conductor.conf&lt;br /&gt;
** Update meego-ai-flasher and meego-ai packages!&lt;br /&gt;
** [[Quality/QA-tools/OTS/UserDocumentation/Multiple_device| See this instructions!]]&lt;br /&gt;
* Changes to QAReports configuration file /etc/ots_plugins_qareports.conf&lt;br /&gt;
** Added proxy and attachment upload settings&lt;br /&gt;
&lt;br /&gt;
== 0.8.2 - 0.8.3 ==&lt;br /&gt;
* Changes in ots_plugin_qareports.conf&lt;br /&gt;
** Add new parameters&lt;br /&gt;
* Only new features&lt;br /&gt;
** Test plan based execution&lt;br /&gt;
** Chroot support&lt;br /&gt;
** See [[Quality/QA-tools/OTS/UserDocumentation/Usage|how to]] use these features&lt;br /&gt;
&lt;br /&gt;
== 0.8.1 - 0.8.2 ==&lt;br /&gt;
* New django package added, effects to all plug-ins&lt;br /&gt;
** See [[Quality/QA-tools/OTS/Plugins/Django|Django instructions]].&lt;br /&gt;
** See [[Quality/QA-tools/OTS/DeveloperDocs/Plugins|plug-ins instructions]].&lt;br /&gt;
&lt;br /&gt;
== 0.8.0 - 0.8.1 ==&lt;br /&gt;
* Plug-in namespace changed, effects to Logger and QA-Reports plug-ins&lt;br /&gt;
** For logger update web page content, see step 8 from [[Quality/QA-tools/OTS/Plugins/HTTP_logger|Logger documentation]].&lt;br /&gt;
** For QA-Reports, configuration file name has changed. Move /etc/ots_qareports_plugin.conf to /etc/ots_plugin_qareports.conf&lt;br /&gt;
&lt;br /&gt;
== 0.1.x - 0.8.0 ==&lt;br /&gt;
&lt;br /&gt;
See [[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| migration document]].&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-04-15T06:34:16Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] and [https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]!&lt;br /&gt;
&lt;br /&gt;
There is a flasher plug-in example in the OTS source code under the example folder.&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
This guideline assumes that you have HAT switchbox and two N900 devices.&lt;br /&gt;
&lt;br /&gt;
Install OTS worker normally, [[Quality/QA-tools/OTS/UserDocumentation|check installation guidelines]].&lt;br /&gt;
&lt;br /&gt;
Remove the '''network-manager''' and remove all usb* settings from the '''/etc/network/interfaces'''.&lt;br /&gt;
&lt;br /&gt;
=== Wiring ===&lt;br /&gt;
&lt;br /&gt;
[[File:20110414_002.jpg]]&lt;br /&gt;
&lt;br /&gt;
You need one HAT, two N900 devices and lots of cables:&lt;br /&gt;
* 3 x USB A-B cables from the PC to HAT&lt;br /&gt;
* 1 x Power cable to HAT&lt;br /&gt;
* 2 x Power cable from HAT to JIGs&lt;br /&gt;
* 2 x USB A-microB cables from HAT to JIGs&lt;br /&gt;
&lt;br /&gt;
=== ots-worker configuration ===&lt;br /&gt;
&lt;br /&gt;
Basically you need to start two ots-worker programs in one PC. &lt;br /&gt;
&lt;br /&gt;
If both devices are using the same OTS server and queue, then you can use the default /etc/ots.ini file. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2&lt;br /&gt;
&lt;br /&gt;
If you want to dedicated the other device to some other server or queue, create a copy from the default ots.ini file and make your changes to that. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2 -c /your/new/ots.ini&lt;br /&gt;
&lt;br /&gt;
Both workers should be able to connect to OTS server normally, check that they have different worker id:&lt;br /&gt;
 ots.worker.worker - INFO - Starting the worker 1...&lt;br /&gt;
&lt;br /&gt;
=== conductor configuration ===&lt;br /&gt;
&lt;br /&gt;
You need always own conductor.conf per device. Copy the default conductor.conf to first device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_1.conf&lt;br /&gt;
&lt;br /&gt;
And for second device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_2.conf&lt;br /&gt;
&lt;br /&gt;
The most important thing in those configuration files is to define the default flasher and IP addresses.&lt;br /&gt;
&lt;br /&gt;
Recommended IPs for devices:&lt;br /&gt;
* conductor_1.conf, host: 192.168.3.14, device: 192.168.3.15&lt;br /&gt;
* conductor_2.conf, host: 192.168.4.14, device: 192.168.4.15&lt;br /&gt;
&lt;br /&gt;
Test that conductors are configured correctly and flashing is working:&lt;br /&gt;
 sudo su&lt;br /&gt;
 export OTS_WORKER_NUMBER=1&lt;br /&gt;
 conductor -u http://url/to/image.bin -v&lt;br /&gt;
&lt;br /&gt;
You should see something like:&lt;br /&gt;
 ...&lt;br /&gt;
 INFO using config file /etc/conductor_1.conf&lt;br /&gt;
 ...&lt;br /&gt;
 INFO Loaded flasher 'meego-ai-flasher-n900'&lt;br /&gt;
 ...&lt;br /&gt;
 INFO Host IP 192.168.3.14;Device IP 192.168.3.15&lt;br /&gt;
 ...&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-04-14T12:41:50Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Multiple device support */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] and [https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]!&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
This guideline assumes that you have HAT switchbox and two N900 devices.&lt;br /&gt;
&lt;br /&gt;
Install OTS worker normally, [[Quality/QA-tools/OTS/UserDocumentation|check installation guidelines]].&lt;br /&gt;
&lt;br /&gt;
Remove the '''network-manager''' and remove all usb* settings from the '''/etc/network/interfaces'''.&lt;br /&gt;
&lt;br /&gt;
=== Wiring ===&lt;br /&gt;
&lt;br /&gt;
[[File:20110414_002.jpg]]&lt;br /&gt;
&lt;br /&gt;
You need one HAT, two N900 devices and lots of cables:&lt;br /&gt;
* 3 x USB A-B cables from the PC to HAT&lt;br /&gt;
* 1 x Power cable to HAT&lt;br /&gt;
* 2 x Power cable from HAT to JIGs&lt;br /&gt;
* 2 x USB A-microB cables from HAT to JIGs&lt;br /&gt;
&lt;br /&gt;
=== ots-worker configuration ===&lt;br /&gt;
&lt;br /&gt;
Basically you need to start two ots-worker programs in one PC. &lt;br /&gt;
&lt;br /&gt;
If both devices are using the same OTS server and queue, then you can use the default /etc/ots.ini file. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2&lt;br /&gt;
&lt;br /&gt;
If you want to dedicated the other device to some other server or queue, create a copy from the default ots.ini file and make your changes to that. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2 -c /your/new/ots.ini&lt;br /&gt;
&lt;br /&gt;
Both workers should be able to connect to OTS server normally, check that they have different worker id:&lt;br /&gt;
 ots.worker.worker - INFO - Starting the worker 1...&lt;br /&gt;
&lt;br /&gt;
=== conductor configuration ===&lt;br /&gt;
&lt;br /&gt;
You need always own conductor.conf per device. Copy the default conductor.conf to first device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_1.conf&lt;br /&gt;
&lt;br /&gt;
And for second device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_2.conf&lt;br /&gt;
&lt;br /&gt;
The most important thing in those configuration files is to define the default flasher and IP addresses.&lt;br /&gt;
&lt;br /&gt;
Recommended IPs for devices:&lt;br /&gt;
* conductor_1.conf, host: 192.168.3.14, device: 192.168.3.15&lt;br /&gt;
* conductor_2.conf, host: 192.168.4.14, device: 192.168.4.15&lt;br /&gt;
&lt;br /&gt;
Test that conductors are configured correctly and flashing is working:&lt;br /&gt;
 sudo su&lt;br /&gt;
 export OTS_WORKER_NUMBER=1&lt;br /&gt;
 conductor -u http://url/to/image.bin -v&lt;br /&gt;
&lt;br /&gt;
You should see something like:&lt;br /&gt;
 ...&lt;br /&gt;
 INFO using config file /etc/conductor_1.conf&lt;br /&gt;
 ...&lt;br /&gt;
 INFO Loaded flasher 'meego-ai-flasher-n900'&lt;br /&gt;
 ...&lt;br /&gt;
 INFO Host IP 192.168.3.14;Device IP 192.168.3.15&lt;br /&gt;
 ...&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-04-14T12:22:32Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* conductor configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] and [https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]!&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
This guideline assumes that you have HAT switchbox and two N900 devices.&lt;br /&gt;
&lt;br /&gt;
Install OTS worker normally, [[Quality/QA-tools/OTS/UserDocumentation|check installation guidelines]].&lt;br /&gt;
&lt;br /&gt;
Remove the '''network-manager''' and remove all usb* settings from the '''/etc/network/interfaces'''.&lt;br /&gt;
&lt;br /&gt;
=== Wiring ===&lt;br /&gt;
&lt;br /&gt;
[[File:20110414_002.jpg]]&lt;br /&gt;
&lt;br /&gt;
You need one HAT, two N900 devices and lots of cables:&lt;br /&gt;
* 3 x USB A-B cables from the PC to HAT&lt;br /&gt;
* 1 x Power cable to HAT&lt;br /&gt;
* 2 x Power cable from HAT to JIGs&lt;br /&gt;
* 2 x USB A-microB cables from HAT to JIGs&lt;br /&gt;
&lt;br /&gt;
=== ots-worker configuration ===&lt;br /&gt;
&lt;br /&gt;
Basically you need to start two ots-worker programs in one PC. &lt;br /&gt;
&lt;br /&gt;
If both devices are using the same OTS server and queue, then you can use the default /etc/ots.ini file. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2&lt;br /&gt;
&lt;br /&gt;
If you want to dedicated the other device to some other server or queue, create a copy from the default ots.ini file and make your changes to that. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2 -c /your/new/ots.ini&lt;br /&gt;
&lt;br /&gt;
Both workers should be able to connect to OTS server normally, check that they have different worker id:&lt;br /&gt;
 ots.worker.worker - INFO - Starting the worker 1...&lt;br /&gt;
&lt;br /&gt;
=== conductor configuration ===&lt;br /&gt;
&lt;br /&gt;
You need always own conductor.conf per device. Copy the default conductor.conf to first device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_1.conf&lt;br /&gt;
&lt;br /&gt;
And for second device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_2.conf&lt;br /&gt;
&lt;br /&gt;
The most important thing in those configuration files is to define the default flasher and IP addresses.&lt;br /&gt;
&lt;br /&gt;
Recommended IPs for devices:&lt;br /&gt;
* conductor_1.conf, host: 192.168.3.14, device: 192.168.3.15&lt;br /&gt;
* conductor_2.conf, host: 192.168.4.14, device: 192.168.4.15&lt;br /&gt;
&lt;br /&gt;
Test that conductors are configured correctly and flashing is working:&lt;br /&gt;
 sudo su&lt;br /&gt;
 export OTS_WORKER_NUMBER=1&lt;br /&gt;
 conductor -u http://url/to/image.bin -v&lt;br /&gt;
&lt;br /&gt;
You should see something like:&lt;br /&gt;
 ...&lt;br /&gt;
 INFO using config file /etc/conductor_1.conf&lt;br /&gt;
 ...&lt;br /&gt;
 INFO Loaded flasher 'meego-ai-flasher-n900'&lt;br /&gt;
 ...&lt;br /&gt;
 INFO Host IP 192.168.3.14;Device IP 192.168.3.15&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-04-14T12:15:54Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* conductor configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] and [https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]!&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
This guideline assumes that you have HAT switchbox and two N900 devices.&lt;br /&gt;
&lt;br /&gt;
Install OTS worker normally, [[Quality/QA-tools/OTS/UserDocumentation|check installation guidelines]].&lt;br /&gt;
&lt;br /&gt;
Remove the '''network-manager''' and remove all usb* settings from the '''/etc/network/interfaces'''.&lt;br /&gt;
&lt;br /&gt;
=== Wiring ===&lt;br /&gt;
&lt;br /&gt;
[[File:20110414_002.jpg]]&lt;br /&gt;
&lt;br /&gt;
You need one HAT, two N900 devices and lots of cables:&lt;br /&gt;
* 3 x USB A-B cables from the PC to HAT&lt;br /&gt;
* 1 x Power cable to HAT&lt;br /&gt;
* 2 x Power cable from HAT to JIGs&lt;br /&gt;
* 2 x USB A-microB cables from HAT to JIGs&lt;br /&gt;
&lt;br /&gt;
=== ots-worker configuration ===&lt;br /&gt;
&lt;br /&gt;
Basically you need to start two ots-worker programs in one PC. &lt;br /&gt;
&lt;br /&gt;
If both devices are using the same OTS server and queue, then you can use the default /etc/ots.ini file. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2&lt;br /&gt;
&lt;br /&gt;
If you want to dedicated the other device to some other server or queue, create a copy from the default ots.ini file and make your changes to that. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2 -c /your/new/ots.ini&lt;br /&gt;
&lt;br /&gt;
Both workers should be able to connect to OTS server normally, check that they have different worker id:&lt;br /&gt;
 ots.worker.worker - INFO - Starting the worker 1...&lt;br /&gt;
&lt;br /&gt;
=== conductor configuration ===&lt;br /&gt;
&lt;br /&gt;
You need always own conductor.conf per device. Copy the default conductor.conf to first device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_1.conf&lt;br /&gt;
&lt;br /&gt;
And for second device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_2.conf&lt;br /&gt;
&lt;br /&gt;
The most important thing in those configuration files is to define the default flasher and IP addresses.&lt;br /&gt;
&lt;br /&gt;
Recommended IPs for devices:&lt;br /&gt;
* conductor_1.conf, host: 192.168.3.14, device: 192.168.3.15&lt;br /&gt;
* conductor_2.conf, host: 192.168.4.14, device: 192.168.4.15&lt;br /&gt;
&lt;br /&gt;
Test that conductors are configured correctly and flashing is working:&lt;br /&gt;
 sudo su&lt;br /&gt;
 export OTS_WORKER_NUMBER=1&lt;br /&gt;
 conductor -u http://url/to/image.bin -v&lt;br /&gt;
&lt;br /&gt;
You should see something like:&lt;br /&gt;
 ...&lt;br /&gt;
 INFO using config file /etc/conductor_1.conf&lt;br /&gt;
 ...&lt;br /&gt;
 INFO Loaded flasher 'meego-ai-flasher-n900'&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-04-14T12:08:51Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Setup and configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] and [https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]!&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
This guideline assumes that you have HAT switchbox and two N900 devices.&lt;br /&gt;
&lt;br /&gt;
Install OTS worker normally, [[Quality/QA-tools/OTS/UserDocumentation|check installation guidelines]].&lt;br /&gt;
&lt;br /&gt;
Remove the '''network-manager''' and remove all usb* settings from the '''/etc/network/interfaces'''.&lt;br /&gt;
&lt;br /&gt;
=== Wiring ===&lt;br /&gt;
&lt;br /&gt;
[[File:20110414_002.jpg]]&lt;br /&gt;
&lt;br /&gt;
You need one HAT, two N900 devices and lots of cables:&lt;br /&gt;
* 3 x USB A-B cables from the PC to HAT&lt;br /&gt;
* 1 x Power cable to HAT&lt;br /&gt;
* 2 x Power cable from HAT to JIGs&lt;br /&gt;
* 2 x USB A-microB cables from HAT to JIGs&lt;br /&gt;
&lt;br /&gt;
=== ots-worker configuration ===&lt;br /&gt;
&lt;br /&gt;
Basically you need to start two ots-worker programs in one PC. &lt;br /&gt;
&lt;br /&gt;
If both devices are using the same OTS server and queue, then you can use the default /etc/ots.ini file. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2&lt;br /&gt;
&lt;br /&gt;
If you want to dedicated the other device to some other server or queue, create a copy from the default ots.ini file and make your changes to that. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2 -c /your/new/ots.ini&lt;br /&gt;
&lt;br /&gt;
Both workers should be able to connect to OTS server normally, check that they have different worker id:&lt;br /&gt;
 ots.worker.worker - INFO - Starting the worker 1...&lt;br /&gt;
&lt;br /&gt;
=== conductor configuration ===&lt;br /&gt;
&lt;br /&gt;
You need always own conductor.conf per device. Copy the default conductor.conf to first device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_1.conf&lt;br /&gt;
&lt;br /&gt;
And for second device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_2.conf&lt;br /&gt;
&lt;br /&gt;
The most important thing in those configuration files is to define the default flasher and IP addresses.&lt;br /&gt;
&lt;br /&gt;
Recommended IPs for devices:&lt;br /&gt;
* conductor_1.conf, host: 192.168.3.14, device: 192.168.3.15&lt;br /&gt;
* conductor_2.conf, host: 192.168.4.14, device: 192.168.4.15&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-04-14T12:08:30Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Setup and configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] and [https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]!&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
This guideline assumes that you have HAT switchbox and two N900 devices.&lt;br /&gt;
&lt;br /&gt;
Install OTS worker normally, [[Quality/QA-tools/OTS/UserDocumentation|check installation guidelines]].&lt;br /&gt;
&lt;br /&gt;
Remove the network-manager and remove all usb* settings from the /etc/network/interfaces.&lt;br /&gt;
&lt;br /&gt;
=== Wiring ===&lt;br /&gt;
&lt;br /&gt;
[[File:20110414_002.jpg]]&lt;br /&gt;
&lt;br /&gt;
You need one HAT, two N900 devices and lots of cables:&lt;br /&gt;
* 3 x USB A-B cables from the PC to HAT&lt;br /&gt;
* 1 x Power cable to HAT&lt;br /&gt;
* 2 x Power cable from HAT to JIGs&lt;br /&gt;
* 2 x USB A-microB cables from HAT to JIGs&lt;br /&gt;
&lt;br /&gt;
=== ots-worker configuration ===&lt;br /&gt;
&lt;br /&gt;
Basically you need to start two ots-worker programs in one PC. &lt;br /&gt;
&lt;br /&gt;
If both devices are using the same OTS server and queue, then you can use the default /etc/ots.ini file. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2&lt;br /&gt;
&lt;br /&gt;
If you want to dedicated the other device to some other server or queue, create a copy from the default ots.ini file and make your changes to that. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2 -c /your/new/ots.ini&lt;br /&gt;
&lt;br /&gt;
Both workers should be able to connect to OTS server normally, check that they have different worker id:&lt;br /&gt;
 ots.worker.worker - INFO - Starting the worker 1...&lt;br /&gt;
&lt;br /&gt;
=== conductor configuration ===&lt;br /&gt;
&lt;br /&gt;
You need always own conductor.conf per device. Copy the default conductor.conf to first device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_1.conf&lt;br /&gt;
&lt;br /&gt;
And for second device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_2.conf&lt;br /&gt;
&lt;br /&gt;
The most important thing in those configuration files is to define the default flasher and IP addresses.&lt;br /&gt;
&lt;br /&gt;
Recommended IPs for devices:&lt;br /&gt;
* conductor_1.conf, host: 192.168.3.14, device: 192.168.3.15&lt;br /&gt;
* conductor_2.conf, host: 192.168.4.14, device: 192.168.4.15&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-04-14T12:07:53Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* conductor configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] and [https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]!&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
This guideline assumes that you have HAT switchbox and two N900 devices.&lt;br /&gt;
&lt;br /&gt;
Install OTS worker normally, [[Quality/QA-tools/OTS/UserDocumentation|check installation guidelines]].&lt;br /&gt;
&lt;br /&gt;
=== Wiring ===&lt;br /&gt;
&lt;br /&gt;
[[File:20110414_002.jpg]]&lt;br /&gt;
&lt;br /&gt;
You need one HAT, two N900 devices and lots of cables:&lt;br /&gt;
* 3 x USB A-B cables from the PC to HAT&lt;br /&gt;
* 1 x Power cable to HAT&lt;br /&gt;
* 2 x Power cable from HAT to JIGs&lt;br /&gt;
* 2 x USB A-microB cables from HAT to JIGs&lt;br /&gt;
&lt;br /&gt;
=== ots-worker configuration ===&lt;br /&gt;
&lt;br /&gt;
Basically you need to start two ots-worker programs in one PC. &lt;br /&gt;
&lt;br /&gt;
If both devices are using the same OTS server and queue, then you can use the default /etc/ots.ini file. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2&lt;br /&gt;
&lt;br /&gt;
If you want to dedicated the other device to some other server or queue, create a copy from the default ots.ini file and make your changes to that. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2 -c /your/new/ots.ini&lt;br /&gt;
&lt;br /&gt;
Both workers should be able to connect to OTS server normally, check that they have different worker id:&lt;br /&gt;
 ots.worker.worker - INFO - Starting the worker 1...&lt;br /&gt;
&lt;br /&gt;
=== conductor configuration ===&lt;br /&gt;
&lt;br /&gt;
You need always own conductor.conf per device. Copy the default conductor.conf to first device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_1.conf&lt;br /&gt;
&lt;br /&gt;
And for second device:&lt;br /&gt;
 sudo cp /etc/conductor.conf /etc/conductor_2.conf&lt;br /&gt;
&lt;br /&gt;
The most important thing in those configuration files is to define the default flasher and IP addresses.&lt;br /&gt;
&lt;br /&gt;
Recommended IPs for devices:&lt;br /&gt;
* conductor_1.conf, host: 192.168.3.14, device: 192.168.3.15&lt;br /&gt;
* conductor_2.conf, host: 192.168.4.14, device: 192.168.4.15&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-04-14T12:04:25Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Multiple device support */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] and [https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]!&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
This guideline assumes that you have HAT switchbox and two N900 devices.&lt;br /&gt;
&lt;br /&gt;
Install OTS worker normally, [[Quality/QA-tools/OTS/UserDocumentation|check installation guidelines]].&lt;br /&gt;
&lt;br /&gt;
=== Wiring ===&lt;br /&gt;
&lt;br /&gt;
[[File:20110414_002.jpg]]&lt;br /&gt;
&lt;br /&gt;
You need one HAT, two N900 devices and lots of cables:&lt;br /&gt;
* 3 x USB A-B cables from the PC to HAT&lt;br /&gt;
* 1 x Power cable to HAT&lt;br /&gt;
* 2 x Power cable from HAT to JIGs&lt;br /&gt;
* 2 x USB A-microB cables from HAT to JIGs&lt;br /&gt;
&lt;br /&gt;
=== ots-worker configuration ===&lt;br /&gt;
&lt;br /&gt;
Basically you need to start two ots-worker programs in one PC. &lt;br /&gt;
&lt;br /&gt;
If both devices are using the same OTS server and queue, then you can use the default /etc/ots.ini file. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2&lt;br /&gt;
&lt;br /&gt;
If you want to dedicated the other device to some other server or queue, create a copy from the default ots.ini file and make your changes to that. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2 -c /your/new/ots.ini&lt;br /&gt;
&lt;br /&gt;
Both workers should be able to connect to OTS server normally, check that they have different worker id:&lt;br /&gt;
 ots.worker.worker - INFO - Starting the worker 1...&lt;br /&gt;
&lt;br /&gt;
=== conductor configuration ===&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-04-14T12:02:26Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Multiple device support */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] and [https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]!&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
This guideline assumes that you have HAT switchbox and two N900 devices.&lt;br /&gt;
&lt;br /&gt;
Install OTS worker normally, [[Quality/QA-tools/OTS/UserDocumentation|check installation guidelines]].&lt;br /&gt;
&lt;br /&gt;
=== Wiring ===&lt;br /&gt;
&lt;br /&gt;
[[File:20110414_002.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You need one HAT, two N900 devices and lots of cables:&lt;br /&gt;
* 3 x USB A-B cables from the PC to HAT&lt;br /&gt;
* 1 x Power cable to HAT&lt;br /&gt;
* 2 x Power cable from HAT to JIGs&lt;br /&gt;
* 2 x USB A-microB cables from HAT to JIGs&lt;br /&gt;
&lt;br /&gt;
=== ots-worker configuration ===&lt;br /&gt;
&lt;br /&gt;
Basically you need to start two ots-worker programs in one PC. &lt;br /&gt;
&lt;br /&gt;
If both devices are using the same OTS server and queue, then you can use the default /etc/ots.ini file. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2&lt;br /&gt;
&lt;br /&gt;
If you want to dedicated the other device to some other server or queue, create a copy from the default ots.ini file and make your changes to that. Start workers as '''root''' in different shells or screen windows:&lt;br /&gt;
 ots_worker -n 1&lt;br /&gt;
 ots_worker -n 2 -c /your/new/ots.ini&lt;br /&gt;
&lt;br /&gt;
=== conductor configuration ===&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-04-14T11:56:02Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] and [https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]!&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
This guideline assumes that you have HAT switchbox and two N900 devices.&lt;br /&gt;
&lt;br /&gt;
Install OTS worker normally, [[Quality/QA-tools/OTS/UserDocumentation|check installation guidelines]].&lt;br /&gt;
&lt;br /&gt;
== Wiring ==&lt;br /&gt;
&lt;br /&gt;
[[File:20110414_002.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You need one HAT, two N900 devices and lots of cables:&lt;br /&gt;
* 3 x USB A-B cables from the PC to HAT&lt;br /&gt;
* 1 x Power cable to HAT&lt;br /&gt;
* 2 x Power cable from HAT to JIGs&lt;br /&gt;
* 2 x USB A-microB cables from HAT to JIGs&lt;br /&gt;
&lt;br /&gt;
=== ots-worker configuration ===&lt;br /&gt;
&lt;br /&gt;
Basically you need to start two ots-worker programs in one PC. If both devices are using the same OTS server and queue, then you can use the default /etc/ots.ini file.&lt;br /&gt;
&lt;br /&gt;
If you want to dedicated the other device to some other server or queue, create a copy from the default ots.ini file and make your changes to that.&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/File:20110414_002.jpg</id>
		<title>File:20110414 002.jpg</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/File:20110414_002.jpg"/>
				<updated>2011-04-14T11:55:03Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: Multiple devices connected to HAT&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Multiple devices connected to HAT&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-04-14T11:54:09Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Setup and configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] and [https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]!&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
This guideline assumes that you have HAT switchbox and two N900 devices.&lt;br /&gt;
&lt;br /&gt;
Install OTS worker normally, [[Quality/QA-tools/OTS/UserDocumentation|check installation guidelines]].&lt;br /&gt;
&lt;br /&gt;
== Wiring ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You need one HAT, two N900 devices and lots of cables:&lt;br /&gt;
* 3 x USB A-B cables from the PC to HAT&lt;br /&gt;
* 1 x Power cable to HAT&lt;br /&gt;
* 2 x Power cable from HAT to JIGs&lt;br /&gt;
* 2 x USB A-microB cables from HAT to JIGs&lt;br /&gt;
&lt;br /&gt;
=== ots-worker configuration ==&lt;br /&gt;
&lt;br /&gt;
Basically you need to start two ots-worker programs in one PC. If both devices are using the same OTS server and queue, then you can use the default /etc/ots.ini file.&lt;br /&gt;
&lt;br /&gt;
If you want to dedicated the other device to some other server or queue, create a copy from the default ots.ini file and make your changes to that.&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-04-14T11:11:29Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai] and [https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]!&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-04-14T11:10:56Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Multiple device support */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
'''Note!''' For MeeGo N900, you need the latest [[http://meego-qa-tools.digia.com/meego-ai/meego-ai-optimized.tar.gz meego-ai]] and [[https://meego.gitorious.org/meego-quality-assurance/meego-ai-flasher meego-ai-flasher]]!&lt;br /&gt;
&lt;br /&gt;
== Setup and configuration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Multiple device</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Multiple_device"/>
				<updated>2011-04-14T07:36:00Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: Created page with &amp;quot;= Multiple device support =  This feature has been added to 0.8.4 version.  Multiple device support means that one OTS worker can handle multiple devices simultaneously and execu...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Multiple device support =&lt;br /&gt;
&lt;br /&gt;
This feature has been added to 0.8.4 version.&lt;br /&gt;
&lt;br /&gt;
Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation</id>
		<title>Quality/QA-tools/OTS/UserDocumentation</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation"/>
				<updated>2011-04-14T06:53:25Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OTS User Documentation ==&lt;br /&gt;
&lt;br /&gt;
This page contains user documentation for OTS. &lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
&lt;br /&gt;
'''Version 0.8.x'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation| 0.8.x Installation instructions Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation_rpm| 0.8.x Installation instructions RPM]]&lt;br /&gt;
&lt;br /&gt;
'''Plug-ins'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/Plugins| 0.8.x Plug-ins installation instructions]]&lt;br /&gt;
&lt;br /&gt;
'''Version 0.1.x'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| Migration from version 0.1.x to 0.8.x]]&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation/Old/Version_0.1| 0.1.x Installation instructions]]&lt;br /&gt;
&lt;br /&gt;
'''Upgrading'''&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation/Upgrading | Upgrading]]&lt;br /&gt;
&lt;br /&gt;
'''Troubleshooting'''&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/Troubleshooting | Troubleshooting]]&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation/Usage|How to trigger a test run]]&lt;br /&gt;
** How to use conductor&lt;br /&gt;
** How to use ots_trigger&lt;br /&gt;
** Test plan based execution&lt;br /&gt;
** Running tests in chroot environment&lt;br /&gt;
** What are distribution models&lt;br /&gt;
&lt;br /&gt;
==== Flashing ====&lt;br /&gt;
&lt;br /&gt;
These HowTos show how to flash step by step [[Quality/QA-tools/OTS/Manual_flashing_of_n900 | manually]] and [[Quality/QA-tools/OTS/Automated_flashing_of_N900 | automatically]]&lt;br /&gt;
&lt;br /&gt;
HowTo setup [[Quality/QA-tools/OTS/UserDocumentation/Multiple_device|Multiple device support]].&lt;br /&gt;
&lt;br /&gt;
=== Related Documentation ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/Glossary]]&lt;br /&gt;
* [[Quality/QA-tools/Testrunner-lite]]&lt;br /&gt;
* [[Quality/QA-tools/Autotest-guide]]&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Upgrading</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Upgrading</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Upgrading"/>
				<updated>2011-04-13T05:47:25Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* 0.8.2 - 0.8.3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Upgrading OTS =&lt;br /&gt;
&lt;br /&gt;
== 0.8.2 - 0.8.3 ==&lt;br /&gt;
* Changes in ots_plugin_qareports.conf&lt;br /&gt;
** Add new parameters&lt;br /&gt;
* Only new features&lt;br /&gt;
** Test plan based execution&lt;br /&gt;
** Chroot support&lt;br /&gt;
** See [[Quality/QA-tools/OTS/UserDocumentation/Usage|how to]] use these features&lt;br /&gt;
&lt;br /&gt;
== 0.8.1 - 0.8.2 ==&lt;br /&gt;
* New django package added, effects to all plug-ins&lt;br /&gt;
** See [[Quality/QA-tools/OTS/Plugins/Django|Django instructions]].&lt;br /&gt;
** See [[Quality/QA-tools/OTS/DeveloperDocs/Plugins|plug-ins instructions]].&lt;br /&gt;
&lt;br /&gt;
== 0.8.0 - 0.8.1 ==&lt;br /&gt;
* Plug-in namespace changed, effects to Logger and QA-Reports plug-ins&lt;br /&gt;
** For logger update web page content, see step 8 from [[Quality/QA-tools/OTS/Plugins/HTTP_logger|Logger documentation]].&lt;br /&gt;
** For QA-Reports, configuration file name has changed. Move /etc/ots_qareports_plugin.conf to /etc/ots_plugin_qareports.conf&lt;br /&gt;
&lt;br /&gt;
== 0.1.x - 0.8.0 ==&lt;br /&gt;
&lt;br /&gt;
See [[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| migration document]].&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/Plugins/Django</id>
		<title>Quality/QA-tools/OTS/Plugins/Django</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/Plugins/Django"/>
				<updated>2011-04-04T05:24:05Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Enable/disable Django applications */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Django environment setup =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Django is used for handling database communication and displaying WebUI.&lt;br /&gt;
&lt;br /&gt;
== Basic installation ==&lt;br /&gt;
&lt;br /&gt;
These instructions are made for Ubuntu, but should work in the same principals with other distributions. &amp;lt;br /&amp;gt;&lt;br /&gt;
Installation is made to OTS server.&lt;br /&gt;
&lt;br /&gt;
1. Install django&lt;br /&gt;
 sudo apt-get install python-django&lt;br /&gt;
In Fedora:&lt;br /&gt;
 sudo yum install Django&lt;br /&gt;
2. Download the latest django xml-rpc plugin&lt;br /&gt;
 https://launchpad.net/django-xmlrpc&lt;br /&gt;
3. Install django plug-in&lt;br /&gt;
 tar xzf django_xmlrpc-0.1.tar.gz&lt;br /&gt;
 sudo mv django_xmlrpc /usr/local/lib/python2.6/dist-packages/&lt;br /&gt;
In Fedora (as root):&lt;br /&gt;
 mv django_xmlrpc /usr/lib/python2.6/site-packages/&lt;br /&gt;
 chcon -R -t httpd_user_content_t /usr/lib/python2.6/site-packages/django_xmlrpc&lt;br /&gt;
 chcon -R -t httpd_user_content_t /opt/ots&lt;br /&gt;
 setsebool -P httpd_unified 1&lt;br /&gt;
 setsebool -P httpd_tmp_exec 1&lt;br /&gt;
&lt;br /&gt;
== Enable/disable Django applications ==&lt;br /&gt;
&lt;br /&gt;
In '''0.8.3''' release, this is not necessary anymore. Plug-ins are loaded automatically.&lt;br /&gt;
&lt;br /&gt;
1. Edit Django settings&lt;br /&gt;
 sudo nano /usr/local/lib/python2.6/dist-packages/ots/django/settings.py&lt;br /&gt;
In Fedora:&lt;br /&gt;
 sudo nano /usr/lib/python2.6/site-packages/ots/django/settings.py&lt;br /&gt;
2. Comment/uncomment OTS components in 'INSTALLED_APPS' section&lt;br /&gt;
 # OTS components:&lt;br /&gt;
 'ots.plugin.logger',&lt;br /&gt;
 'ots.plugin.monitor',&lt;br /&gt;
 'ots.plugin.history'&lt;br /&gt;
&lt;br /&gt;
== Create/update databases ==&lt;br /&gt;
&lt;br /&gt;
1. Create database&lt;br /&gt;
 sudo python /usr/local/lib/python2.6/dist-packages/ots/django/manage.py syncdb --settings=settings&lt;br /&gt;
In Fedora:&lt;br /&gt;
  sudo python /usr/lib/python2.6/site-packages/ots/django/manage.py syncdb --settings=settings&lt;br /&gt;
&lt;br /&gt;
2. Set permissions to database file&lt;br /&gt;
 sudo chown www-data:www-data /opt/ots&lt;br /&gt;
 sudo chown www-data:www-data /opt/ots/ots.sqlite&lt;br /&gt;
In Fedora:&lt;br /&gt;
 sudo chown apache:apache /opt/ots&lt;br /&gt;
 sudo chown apache:apache /opt/ots/ots.sqlite&lt;br /&gt;
&lt;br /&gt;
== Apache configuration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Install Apache2 and Apache2 modules&lt;br /&gt;
 sudo apt-get install libapache2-mod-wsgi apache2-mpm-prefork&lt;br /&gt;
Fedora:&lt;br /&gt;
 yum install httpd mod_wsgi&lt;br /&gt;
 rm /etc/httpd/conf.d/welcome.conf&lt;br /&gt;
&lt;br /&gt;
2. Apache2 configuration&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu 10.04'''&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install libapache2-mod-python&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
&lt;br /&gt;
AliasMatch /([^/]*\.css) /var/www/styles/$1&lt;br /&gt;
&lt;br /&gt;
Alias /media/ /var/www/media/&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Location &amp;quot;/&amp;quot;&amp;gt;&lt;br /&gt;
    SetHandler python-program&lt;br /&gt;
    PythonHandler django.core.handlers.modpython&lt;br /&gt;
    SetEnv DJANGO_SETTINGS_MODULE ots.plugin.logger.django_ots.settings&lt;br /&gt;
    PythonDebug On&lt;br /&gt;
&amp;lt;/Location&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Location &amp;quot;/media&amp;quot;&amp;gt;&lt;br /&gt;
    SetHandler None&lt;br /&gt;
&amp;lt;/Location&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LocationMatch &amp;quot;/styles&amp;quot;&amp;gt;&lt;br /&gt;
    SetHandler None&lt;br /&gt;
&amp;lt;/LocationMatch&amp;gt;&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu 10.10'''&lt;br /&gt;
 sudo nano /etc/apache2/sites-enabled/000-default&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        AliasMatch /([^/]*\.css) /var/www/styles/$1&lt;br /&gt;
&lt;br /&gt;
        Alias /media/ /var/www/media/&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;Directory /usr/local/wsgi/static&amp;gt;&lt;br /&gt;
                Order deny,allow&lt;br /&gt;
                Allow from all&lt;br /&gt;
        &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        WSGIScriptAlias / /var/www/ots.wsgi&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;Directory /usr/local/wsgi/scripts&amp;gt;&lt;br /&gt;
                Order allow,deny&lt;br /&gt;
                Allow from all&lt;br /&gt;
        &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Fedora'''&lt;br /&gt;
 rm /etc/httpd/conf.d/welcome.conf&lt;br /&gt;
 sudo nano /etc/httpd/conf.d/ots.conf &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        AliasMatch /([^/]*\.css) /var/www/styles/$1&lt;br /&gt;
&lt;br /&gt;
        Alias /media/ /var/www/media/&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;Directory /usr/local/wsgi/static&amp;gt;&lt;br /&gt;
                Order deny,allow&lt;br /&gt;
                Allow from all&lt;br /&gt;
        &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        WSGIScriptAlias / /var/www/ots.wsgi&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;Directory /usr/local/wsgi/scripts&amp;gt;&lt;br /&gt;
                Order allow,deny&lt;br /&gt;
                Allow from all&lt;br /&gt;
        &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Copy www files to /var/www/&lt;br /&gt;
 sudo cp -r /usr/share/ots/django/* /var/www/&lt;br /&gt;
 sudo cp -r /usr/share/ots/plugin/* /var/www/&lt;br /&gt;
4. Add WSGI settings '''&amp;quot;WSGIRestrictSignal Off&amp;quot;'''&lt;br /&gt;
 sudo nano /etc/apache2/apache2.conf&lt;br /&gt;
Fedora:&lt;br /&gt;
 sudo nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
5. Restart apache&lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
Fedora:&lt;br /&gt;
 chkconfig --add httpd&lt;br /&gt;
 chkconfig httpd on&lt;br /&gt;
 /etc/init.d/httpd start&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Usage</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage"/>
				<updated>2011-04-04T05:21:04Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Using ots_trigger */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS Usage =&lt;br /&gt;
&lt;br /&gt;
== Test execution ==&lt;br /&gt;
&lt;br /&gt;
=== Using conductor ===&lt;br /&gt;
&lt;br /&gt;
Conductor is the executer in the ots-worker. You can use conductor to test device flashing and for semi-automatic test executions.&lt;br /&gt;
&lt;br /&gt;
To test flashing and basic test execution:&lt;br /&gt;
 conductor --imageurl=http://192.168.1.1/image.tar.gz &lt;br /&gt;
&lt;br /&gt;
The conductor flasher the image to the device and executes all available test packages.&lt;br /&gt;
&lt;br /&gt;
To list all supported options:&lt;br /&gt;
 conductor --help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using ots_trigger ===&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Before starting to execute tests with ots_trigger, verify that your ots-worker is configured correctly. That can be done with conductor, see the topic above.&lt;br /&gt;
&lt;br /&gt;
ots_trigger is tool for triggering a testrun to OTS server.&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation#OTS_tools| How to install ots_trigger]].&lt;br /&gt;
&lt;br /&gt;
Before you can trigger a testrun, you need to have all following:&lt;br /&gt;
* OTS server up-and-running [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* OTS worker with hardware configured [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* Image with eat-device package (enabled test automation environment to hardware) [http://wiki.meego.com/Quality/QA-tools/Autotest-guide]&lt;br /&gt;
&lt;br /&gt;
And one of the following options:&lt;br /&gt;
* Test package installed to the device&lt;br /&gt;
* Test package installed to the ots-worker or&lt;br /&gt;
* Test plan [TODO LINK]&lt;br /&gt;
&lt;br /&gt;
Okey, now we are ready to get dirty. &lt;br /&gt;
&lt;br /&gt;
If we have test package(s) installed into the device and we want to execute all of them:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com&lt;br /&gt;
&lt;br /&gt;
Let me explain the parameters.&lt;br /&gt;
* '''server''': Defines the address of the OTS server. If you are not using logger plug-in, the address is then 192.168.1.1:8080.&lt;br /&gt;
* '''build_id''': Free string to define the image build id.&lt;br /&gt;
* '''image''': Url path where the image is located. Yes, it must be on the http server.&lt;br /&gt;
* '''sw_product''': The default SW test execution options, you have defined the sw_product in /etc/ots_server.conf.&lt;br /&gt;
* '''email''': Who has requested the testrun and to whom to send notifications.&lt;br /&gt;
&lt;br /&gt;
That was simple. Next you want to execute only one package, no problem, just define test package name to ots_trigger:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com --testpackages=my-test-package1-tests&lt;br /&gt;
&lt;br /&gt;
In to the '''testpackages''' option, you can define multiple packages like this:&lt;br /&gt;
 --testpackages=my-test-package1-tests,my-test-package2-tests&lt;br /&gt;
&lt;br /&gt;
If you want to add more people to receive email after the execution is done, just add more email addresses to --email option:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com,second.name@company.com&lt;br /&gt;
&lt;br /&gt;
If you have test package installed to your ots-worker machine, that can be executed with --hostpackages:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com --hostpackages=my-test-package1-tests&lt;br /&gt;
&lt;br /&gt;
For optimizing the execution time, see distribution models section below.&lt;br /&gt;
&lt;br /&gt;
To list all supported options:&lt;br /&gt;
 ots_trigger --help&lt;br /&gt;
&lt;br /&gt;
== Test plan based executions ==&lt;br /&gt;
&lt;br /&gt;
Test plan based execution means that the user can create a test plan and give it directly to ots_trigger without making any test package. This brings benefits when executing different test against the same test image or release.&lt;br /&gt;
&lt;br /&gt;
The user can create the test plan with [http://wiki.meego.com/Quality/QA-tools/Testplanner Testplanner].&lt;br /&gt;
&lt;br /&gt;
And then give the test plan to ots_trigger with --deviceplan or --hostplan. Difference between these options are that 'deviceplan' is executed in the device and 'hostplan' in the ots-worker.&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com --deviceplan=/path/to/my/test_plan.xml&lt;br /&gt;
&lt;br /&gt;
== Distribution models ==&lt;br /&gt;
&lt;br /&gt;
These are models how the OTS is distributing test executions to ots-workers. There are 2 build-in models and other ones are distribution model plug-ins.&lt;br /&gt;
&lt;br /&gt;
Distribution model can be specified to ots_trigger with --distribution option.&lt;br /&gt;
&lt;br /&gt;
=== Default ===&lt;br /&gt;
&lt;br /&gt;
This is the default model, if nothing else has been specified.&lt;br /&gt;
&lt;br /&gt;
Default model executes all test packages in a single task, so only one ots-worker will handle the test execution. Only exception to this model is test plan based executions, they are always executed as an own task and therefor distributed to multiple workers.&lt;br /&gt;
&lt;br /&gt;
=== Perpackage ===&lt;br /&gt;
&lt;br /&gt;
'''---distribution=perpackage'''&lt;br /&gt;
&lt;br /&gt;
Perpackage is the second build-in distribution model.&lt;br /&gt;
&lt;br /&gt;
This models creates always an own task for each test package and test plan, so multiple ots-worker can handle the testrun at the same time.&lt;br /&gt;
&lt;br /&gt;
=== Optimized ===&lt;br /&gt;
&lt;br /&gt;
'''---distribution=optimized'''&lt;br /&gt;
&lt;br /&gt;
Optimized is a distribution plug-in and it is part of history plug-in.&lt;br /&gt;
&lt;br /&gt;
History plug-in collects test package execution times to a database. When the user triggers a testrun, he/she can specify how long the execution should take and how many device can be used. The optimized model then tries to optimize the execution time to fit the user's requirements.&lt;br /&gt;
&lt;br /&gt;
See how to use the optimized plug-in from the [[Quality/QA-tools/OTS/Plugins/History|plug-in subpage]].&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS</id>
		<title>Quality/QA-tools/OTS</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS"/>
				<updated>2011-04-01T09:39:18Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Releases */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS Index =&lt;br /&gt;
&lt;br /&gt;
Welcome to the Open Test System (OTS) Wiki Index.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
OTS is the '''Open Test Service''' for testing software systems on evolving hardware architectures.&lt;br /&gt;
  &lt;br /&gt;
It was born out of the test framework incrementally developed for use on [http://maemo.org/ Maemo] project and is in use for 24/7 testing service by [http://www.nokia.com/ Nokia].&lt;br /&gt;
&lt;br /&gt;
More detailed info can be found from [[Quality/QA-tools/OTS/About|about]] page.&lt;br /&gt;
&lt;br /&gt;
== Releases ==&lt;br /&gt;
&lt;br /&gt;
Current release [http://meego.gitorious.org/meego-quality-assurance/ots tag 0.8.3]. See [[Quality/QA-tools/OTS/UserDocumentation/Upgrading|upgrading]] instructions!&lt;br /&gt;
&lt;br /&gt;
Next release [https://bugs.meego.com/show_bug.cgi?id=13356 0.8.4]&lt;br /&gt;
&lt;br /&gt;
See OTS [[Quality/QA-tools/OTS/Roadmap| roadmap.]]&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation | User Documentation]]&lt;br /&gt;
** [[Quality/QA-tools/OTS/UserDocumentation/Installation | Installation Ubuntu]]&lt;br /&gt;
** [[Quality/QA-tools/OTS/UserDocumentation/Installation_rpm | Installation RPM]]&lt;br /&gt;
** [[Quality/QA-tools/OTS/UserDocumentation/Upgrading | Upgrading]]&lt;br /&gt;
* [[Quality/QA-tools/OTS/DeveloperDocs | Developer Documentation]]&lt;br /&gt;
* [[Quality/QA-tools/OTS/AdminDocs | System Administration]]&lt;br /&gt;
* [[Quality/QA-tools/OTS/Glossary | Glossary]]&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS</id>
		<title>Quality/QA-tools/OTS</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS"/>
				<updated>2011-04-01T09:38:58Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Releases */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS Index =&lt;br /&gt;
&lt;br /&gt;
Welcome to the Open Test System (OTS) Wiki Index.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
OTS is the '''Open Test Service''' for testing software systems on evolving hardware architectures.&lt;br /&gt;
  &lt;br /&gt;
It was born out of the test framework incrementally developed for use on [http://maemo.org/ Maemo] project and is in use for 24/7 testing service by [http://www.nokia.com/ Nokia].&lt;br /&gt;
&lt;br /&gt;
More detailed info can be found from [[Quality/QA-tools/OTS/About|about]] page.&lt;br /&gt;
&lt;br /&gt;
== Releases ==&lt;br /&gt;
&lt;br /&gt;
Current release [http://meego.gitorious.org/meego-quality-assurance/ots tag 0.8.3]. See [[Quality/QA-tools/OTS/UserDocumentation/Upgrading|upgrading]] instructions!&lt;br /&gt;
&lt;br /&gt;
Next release [https://bugs.meego.com/show_bug.cgi?id=13355 0.8.4]&lt;br /&gt;
&lt;br /&gt;
See OTS [[Quality/QA-tools/OTS/Roadmap| roadmap.]]&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation | User Documentation]]&lt;br /&gt;
** [[Quality/QA-tools/OTS/UserDocumentation/Installation | Installation Ubuntu]]&lt;br /&gt;
** [[Quality/QA-tools/OTS/UserDocumentation/Installation_rpm | Installation RPM]]&lt;br /&gt;
** [[Quality/QA-tools/OTS/UserDocumentation/Upgrading | Upgrading]]&lt;br /&gt;
* [[Quality/QA-tools/OTS/DeveloperDocs | Developer Documentation]]&lt;br /&gt;
* [[Quality/QA-tools/OTS/AdminDocs | System Administration]]&lt;br /&gt;
* [[Quality/QA-tools/OTS/Glossary | Glossary]]&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Installation</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation"/>
				<updated>2011-04-01T09:22:07Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* How to install N900 automation tools to OTS worker */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS 0.8.x installation Ubuntu =&lt;br /&gt;
&lt;br /&gt;
If using 0.1.x version, see [[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| migration from 0.1.x to 0.8.x]] document.&lt;br /&gt;
&lt;br /&gt;
== Used hardware ==&lt;br /&gt;
&lt;br /&gt;
:1 x Server (Ubuntu 10.10)&lt;br /&gt;
:1 x Client (Ubuntu 10.10)&lt;br /&gt;
::1 x HAT controller&lt;br /&gt;
:: 1 x Power cable&lt;br /&gt;
:: 1 x Power supply&lt;br /&gt;
:: 2 x USB A-B cable&lt;br /&gt;
:: 1 x USB A-microB cable&lt;br /&gt;
:: 1 x N900&lt;br /&gt;
&lt;br /&gt;
== Network Setup ==&lt;br /&gt;
&lt;br /&gt;
Using static IP addresses on all OTS machines is strongly recommended. It is possible to setup the system also with dynamic IP addresses but it might cause problems every now and then because IP's and hostnames change.&lt;br /&gt;
&lt;br /&gt;
'''Note''' All OTS machines need to be able to access other OTS machines based on their hostname.&lt;br /&gt;
&lt;br /&gt;
How to check that DNS names are correct:&lt;br /&gt;
&lt;br /&gt;
1. Check OTS server's hostname&lt;br /&gt;
 hostname&lt;br /&gt;
2. Ping the OTS server's hostname from the OTS worker&lt;br /&gt;
 ping &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If ping fails, add manually OTS server's hostname to OTS workers '''/etc/hosts''' file&lt;br /&gt;
 &amp;lt;IP&amp;gt; &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Preparation ==&lt;br /&gt;
&lt;br /&gt;
There are two ways of getting OTS binary packages: from '''the source code'''&lt;br /&gt;
or from the '''MeeGo Tools:Testing repository'''. From the repository you can get&lt;br /&gt;
the stable version and from the source code the development version.&lt;br /&gt;
&lt;br /&gt;
* Add Tools:Testing apt source to /etc/apt/sources.list&lt;br /&gt;
 sudo nano /etc/apt/sources.list&lt;br /&gt;
 deb http://download.meego.com/live/Tools:/Testing/xUbuntu_10.10/ /&lt;br /&gt;
Notice that if you are using Ubuntu 10.04, change the path.&lt;br /&gt;
&lt;br /&gt;
* Add repository keys&lt;br /&gt;
 gpg --keyserver subkeys.pgp.net --recv-keys 0BC7BEC479FC1F8A&lt;br /&gt;
 gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -&lt;br /&gt;
&lt;br /&gt;
* Update the repositories&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
'''Build packages from source (optional)'''&lt;br /&gt;
* Install git core&lt;br /&gt;
 sudo apt-get install git-core&lt;br /&gt;
&lt;br /&gt;
* Get sources&lt;br /&gt;
 git clone git://gitorious.org/meego-quality-assurance/ots.git&lt;br /&gt;
&lt;br /&gt;
* Get building tools&lt;br /&gt;
 sudo apt-get install dpkg-dev debhelper python-setuptools&lt;br /&gt;
&lt;br /&gt;
* Build packages&lt;br /&gt;
 cd ots&lt;br /&gt;
 dpkg-buildpackage -rfakeroot&lt;br /&gt;
&lt;br /&gt;
== OTS server installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install python-django python-amqplib python-configobj rabbitmq-server test-definition&lt;br /&gt;
&lt;br /&gt;
* Install OTS server components&lt;br /&gt;
 sudo apt-get install python-ots-common python-ots-results python-ots-server&lt;br /&gt;
Or if you are using own built packages&lt;br /&gt;
 sudo dpkg -i ...&lt;br /&gt;
&lt;br /&gt;
* Configure OTS server settings&lt;br /&gt;
 sudo nano /etc/ots_server.ini&lt;br /&gt;
&lt;br /&gt;
Recommended to change following:&lt;br /&gt;
 'example_sw_product', example to 'meego_product'&lt;br /&gt;
 'devicegroup', example to 'meego_n900'&lt;br /&gt;
&lt;br /&gt;
* Install OTS server plug-ins&lt;br /&gt;
 [[Quality/QA-tools/OTS/Plugins/HTTP_logger|Logger plug-in]] (recommended)&lt;br /&gt;
 [[Quality/QA-tools/OTS/Plugins/Email|Email plug-in]] (recommended)&lt;br /&gt;
&lt;br /&gt;
See more plug-ins from [[Quality/QA-tools/OTS/Plugins|OTS Plug-ins]]&lt;br /&gt;
&lt;br /&gt;
* If logger plug-in is installed&lt;br /&gt;
 Change permissions to logging directory&lt;br /&gt;
 sudo chown www-data:www-data /var/log/ots&lt;br /&gt;
&lt;br /&gt;
Now the OTS server can be used via apache (django_xmlrpc).&lt;br /&gt;
&lt;br /&gt;
* If logger plug-in is not installed&lt;br /&gt;
 Change user permissions to logging directory&lt;br /&gt;
 sudo chown &amp;lt;user&amp;gt;:&amp;lt;group&amp;gt; /var/log/ots&lt;br /&gt;
&lt;br /&gt;
* Start rabbitmq-server&lt;br /&gt;
  /etc/init.d/rabbitmq-server start&lt;br /&gt;
&lt;br /&gt;
 ots_server&lt;br /&gt;
&lt;br /&gt;
== OTS worker installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install python-amqplib testrunner-lite&lt;br /&gt;
&lt;br /&gt;
* Install OTS worker packages&lt;br /&gt;
 sudo apt-get install python-ots-common python-ots-worker&lt;br /&gt;
&lt;br /&gt;
* Configure OTS worker settings&lt;br /&gt;
 sudo nano /etc/ots.ini&lt;br /&gt;
&lt;br /&gt;
Change 'devicegroup', example meego_n900&lt;br /&gt;
&lt;br /&gt;
Change 'host' to server's address&lt;br /&gt;
&lt;br /&gt;
* Change permissions to OTS worker log&lt;br /&gt;
 sudo chown &amp;lt;user&amp;gt;:&amp;lt;group&amp;gt; /var/log/ots.log&lt;br /&gt;
&lt;br /&gt;
* Start OTS worker&lt;br /&gt;
 ots_worker&lt;br /&gt;
&lt;br /&gt;
== OTS tools ==&lt;br /&gt;
&lt;br /&gt;
Tools are used for triggering test runs from the command line.&lt;br /&gt;
&lt;br /&gt;
* Install OTS tools&lt;br /&gt;
 sudo apt-get install python-ots-tools&lt;br /&gt;
&lt;br /&gt;
* Trigger a test run&lt;br /&gt;
 ots_trigger -s localhost/xmlrpc -b test_build -i http://url_to_image -p example_sw_product -e test@man.com&lt;br /&gt;
&lt;br /&gt;
* Kickstart file for automation can be found from&lt;br /&gt;
 http://meego.gitorious.org/meego-quality-assurance/enables-automated-testing/blobs/ks/meego-n900-autotest.ks&lt;br /&gt;
&lt;br /&gt;
* You need to build the image with mic-image-creator with parameters:&lt;br /&gt;
 --save-kernel --package=tar.gz&lt;br /&gt;
&lt;br /&gt;
== How to install N900 automation tools to OTS worker ==&lt;br /&gt;
&lt;br /&gt;
* Remove network-manager, because it breaks the USB connection. See more information from autotest-guide.&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install meego-ai-flasher eat-host-ubuntu&lt;br /&gt;
 &lt;br /&gt;
* Get N900 flasher from the Nokia's tablets-dev portal&lt;br /&gt;
 http://tablets-dev.nokia.com/maemo-dev-env-downloads.php?f=maemo_flasher-3.5_2.5.2.2_i386.deb&lt;br /&gt;
 sudo dpkg -i maemo_flasher-3.5_2.5.2.2_i386.deb&lt;br /&gt;
&lt;br /&gt;
* Configure conductor to use rpm and fetch /var/log/messages&lt;br /&gt;
 sudo nano /etc/conductor.conf&lt;br /&gt;
&lt;br /&gt;
* If you want run ots_worker as user, copy SSH keys to the user and make udev rule for n900&lt;br /&gt;
 install-eat-key.sh&lt;br /&gt;
 sudo nano /etc/udev/rules.d/meego-n900.rules&lt;br /&gt;
 SUBSYSTEMS==&amp;quot;usb&amp;quot;, ATTR{idVendor}==&amp;quot;0421&amp;quot;, ATTR{idProduct}==&amp;quot;0105&amp;quot;, GROUP=&amp;quot;&amp;lt;group&amp;gt;&amp;quot;, MODE=&amp;quot;0664&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Create a power_cycle.sh script for turning N900 on/off. This requires external accessory, like [[Quality/QA-tools/hat-control|HAT]] &lt;br /&gt;
 sudo nano /usr/bin/power_cycle.sh&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 hat_drv &amp;amp;&lt;br /&gt;
 hat_ctrl -pwr1=off&lt;br /&gt;
 hat_ctrl -usb1data=off&lt;br /&gt;
 hat_ctrl -usb1pwr=off&lt;br /&gt;
 sleep 2;&lt;br /&gt;
 hat_ctrl -usb1pwr=on&lt;br /&gt;
 hat_ctrl -usb1data=on&lt;br /&gt;
 hat_ctrl -pwr1=on&lt;br /&gt;
 killall hat_drv&lt;br /&gt;
&lt;br /&gt;
* Test manually that everything is OK, this is executed in the worker&lt;br /&gt;
 conductor -u &amp;lt;image url&amp;gt;&lt;br /&gt;
* Start OTS worker (if you use HAT, run ots_worker as sudo)&lt;br /&gt;
 sudo ots_worker&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Upgrading</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Upgrading</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Upgrading"/>
				<updated>2011-04-01T09:09:08Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* 0.8.2 - 0.8.3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Upgrading OTS =&lt;br /&gt;
&lt;br /&gt;
== 0.8.2 - 0.8.3 ==&lt;br /&gt;
* No major changes to configuration&lt;br /&gt;
* Only new features&lt;br /&gt;
** Test plan based execution&lt;br /&gt;
** Chroot support&lt;br /&gt;
** See [[Quality/QA-tools/OTS/UserDocumentation/Usage|how to]] use these features&lt;br /&gt;
&lt;br /&gt;
== 0.8.1 - 0.8.2 ==&lt;br /&gt;
* New django package added, effects to all plug-ins&lt;br /&gt;
** See [[Quality/QA-tools/OTS/Plugins/Django|Django instructions]].&lt;br /&gt;
** See [[Quality/QA-tools/OTS/DeveloperDocs/Plugins|plug-ins instructions]].&lt;br /&gt;
&lt;br /&gt;
== 0.8.0 - 0.8.1 ==&lt;br /&gt;
* Plug-in namespace changed, effects to Logger and QA-Reports plug-ins&lt;br /&gt;
** For logger update web page content, see step 8 from [[Quality/QA-tools/OTS/Plugins/HTTP_logger|Logger documentation]].&lt;br /&gt;
** For QA-Reports, configuration file name has changed. Move /etc/ots_qareports_plugin.conf to /etc/ots_plugin_qareports.conf&lt;br /&gt;
&lt;br /&gt;
== 0.1.x - 0.8.0 ==&lt;br /&gt;
&lt;br /&gt;
See [[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| migration document]].&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Upgrading</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Upgrading</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Upgrading"/>
				<updated>2011-04-01T09:08:41Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Upgrading OTS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Upgrading OTS =&lt;br /&gt;
&lt;br /&gt;
== 0.8.2 - 0.8.3 ==&lt;br /&gt;
* No major changes to configuration&lt;br /&gt;
* Only new features&lt;br /&gt;
** Test plan based execution&lt;br /&gt;
** Chroot support&lt;br /&gt;
** See [[OTS/UserDocumentation/Usage|how to]] use these features&lt;br /&gt;
&lt;br /&gt;
== 0.8.1 - 0.8.2 ==&lt;br /&gt;
* New django package added, effects to all plug-ins&lt;br /&gt;
** See [[Quality/QA-tools/OTS/Plugins/Django|Django instructions]].&lt;br /&gt;
** See [[Quality/QA-tools/OTS/DeveloperDocs/Plugins|plug-ins instructions]].&lt;br /&gt;
&lt;br /&gt;
== 0.8.0 - 0.8.1 ==&lt;br /&gt;
* Plug-in namespace changed, effects to Logger and QA-Reports plug-ins&lt;br /&gt;
** For logger update web page content, see step 8 from [[Quality/QA-tools/OTS/Plugins/HTTP_logger|Logger documentation]].&lt;br /&gt;
** For QA-Reports, configuration file name has changed. Move /etc/ots_qareports_plugin.conf to /etc/ots_plugin_qareports.conf&lt;br /&gt;
&lt;br /&gt;
== 0.1.x - 0.8.0 ==&lt;br /&gt;
&lt;br /&gt;
See [[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| migration document]].&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation</id>
		<title>Quality/QA-tools/OTS/UserDocumentation</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation"/>
				<updated>2011-04-01T09:03:54Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OTS User Documentation ==&lt;br /&gt;
&lt;br /&gt;
This page contains user documentation for OTS. &lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
&lt;br /&gt;
'''Version 0.8.x'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation| 0.8.x Installation instructions Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation_rpm| 0.8.x Installation instructions RPM]]&lt;br /&gt;
&lt;br /&gt;
'''Plug-ins'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/Plugins| 0.8.x Plug-ins installation instructions]]&lt;br /&gt;
&lt;br /&gt;
'''Version 0.1.x'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| Migration from version 0.1.x to 0.8.x]]&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation/Old/Version_0.1| 0.1.x Installation instructions]]&lt;br /&gt;
&lt;br /&gt;
'''Upgrading'''&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation/Upgrading | Upgrading]]&lt;br /&gt;
&lt;br /&gt;
'''Troubleshooting'''&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/Troubleshooting | Troubleshooting]]&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation/Usage|How to trigger a test run]]&lt;br /&gt;
** How to use conductor&lt;br /&gt;
** How to use ots_trigger&lt;br /&gt;
** Test plan based execution&lt;br /&gt;
** Running tests in chroot environment&lt;br /&gt;
** What are distribution models&lt;br /&gt;
&lt;br /&gt;
==== Flashing ====&lt;br /&gt;
&lt;br /&gt;
These HowTos show how to flash step by step [[Quality/QA-tools/OTS/Manual_flashing_of_n900 | manually]] and [[Quality/QA-tools/OTS/Automated_flashing_of_N900 | automatically]]&lt;br /&gt;
&lt;br /&gt;
=== Related Documentation ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/Glossary]]&lt;br /&gt;
* [[Quality/QA-tools/Testrunner-lite]]&lt;br /&gt;
* [[Quality/QA-tools/Autotest-guide]]&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Usage</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage"/>
				<updated>2011-04-01T09:02:18Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* OTS Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS Usage =&lt;br /&gt;
&lt;br /&gt;
== Test execution ==&lt;br /&gt;
&lt;br /&gt;
=== Using conductor ===&lt;br /&gt;
&lt;br /&gt;
Conductor is the executer in the ots-worker. You can use conductor to test device flashing and for semi-automatic test executions.&lt;br /&gt;
&lt;br /&gt;
To test flashing and basic test execution:&lt;br /&gt;
 conductor --imageurl=http://192.168.1.1/image.tar.gz &lt;br /&gt;
&lt;br /&gt;
The conductor flasher the image to the device and executes all available test packages.&lt;br /&gt;
&lt;br /&gt;
To list all supported options:&lt;br /&gt;
 conductor --help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using ots_trigger ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Before starting to execute tests with ots_trigger, verify that your ots-worker is configured correctly. That can be done with conductor, see the topic above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ots_trigger is tool for triggering a testrun to OTS server.&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation#OTS_tools| How to install ots_trigger]].&lt;br /&gt;
&lt;br /&gt;
Before you can trigger a testrun, you need to have all following:&lt;br /&gt;
* OTS server up-and-running [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* OTS worker with hardware configured [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* Image with eat-device package (enabled test automation environment to hardware) [http://wiki.meego.com/Quality/QA-tools/Autotest-guide]&lt;br /&gt;
&lt;br /&gt;
And one of the following options:&lt;br /&gt;
* Test package installed to the device&lt;br /&gt;
* Test package installed to the ots-worker or&lt;br /&gt;
* Test plan [TODO LINK]&lt;br /&gt;
&lt;br /&gt;
Okey, now we are ready to get dirty. &lt;br /&gt;
&lt;br /&gt;
If we have test package(s) installed into the device and we want to execute all of them:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com&lt;br /&gt;
&lt;br /&gt;
Let me explain the parameters.&lt;br /&gt;
* '''server''': Defines the address of the OTS server. If you are not using logger plug-in, the address is then 192.168.1.1:8080.&lt;br /&gt;
* '''build_id''': Free string to define the image build id.&lt;br /&gt;
* '''image''': Url path where the image is located. Yes, it must be on the http server.&lt;br /&gt;
* '''sw_product''': The default SW test execution options, you have defined the sw_product in /etc/ots_server.conf.&lt;br /&gt;
* '''email''': Who has requested the testrun and to whom to send notifications.&lt;br /&gt;
&lt;br /&gt;
That was simple. Next you want to execute only one package, no problem, just define test package name to ots_trigger:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com --testpackages=my-test-package1-tests&lt;br /&gt;
&lt;br /&gt;
In to the '''testpackages''' option, you can define multiple packages like this:&lt;br /&gt;
 --testpackages=my-test-package1-tests,my-test-package2-tests&lt;br /&gt;
&lt;br /&gt;
If you want to add more people to receive email after the execution is done, just add more email addresses to --email option:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com,second.name@company.com&lt;br /&gt;
&lt;br /&gt;
If you have test package installed to your ots-worker machine, that can be executed with --hostpackages:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com --hostpackages=my-test-package1-tests&lt;br /&gt;
&lt;br /&gt;
For optimizing the execution time, see distribution models section below.&lt;br /&gt;
&lt;br /&gt;
To list all supported options:&lt;br /&gt;
 ots_trigger --help&lt;br /&gt;
&lt;br /&gt;
== Test plan based executions ==&lt;br /&gt;
&lt;br /&gt;
Test plan based execution means that the user can create a test plan and give it directly to ots_trigger without making any test package. This brings benefits when executing different test against the same test image or release.&lt;br /&gt;
&lt;br /&gt;
The user can create the test plan with [http://wiki.meego.com/Quality/QA-tools/Testplanner Testplanner].&lt;br /&gt;
&lt;br /&gt;
And then give the test plan to ots_trigger with --deviceplan or --hostplan. Difference between these options are that 'deviceplan' is executed in the device and 'hostplan' in the ots-worker.&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com --deviceplan=/path/to/my/test_plan.xml&lt;br /&gt;
&lt;br /&gt;
== Distribution models ==&lt;br /&gt;
&lt;br /&gt;
These are models how the OTS is distributing test executions to ots-workers. There are 2 build-in models and other ones are distribution model plug-ins.&lt;br /&gt;
&lt;br /&gt;
Distribution model can be specified to ots_trigger with --distribution option.&lt;br /&gt;
&lt;br /&gt;
=== Default ===&lt;br /&gt;
&lt;br /&gt;
This is the default model, if nothing else has been specified.&lt;br /&gt;
&lt;br /&gt;
Default model executes all test packages in a single task, so only one ots-worker will handle the test execution. Only exception to this model is test plan based executions, they are always executed as an own task and therefor distributed to multiple workers.&lt;br /&gt;
&lt;br /&gt;
=== Perpackage ===&lt;br /&gt;
&lt;br /&gt;
'''---distribution=perpackage'''&lt;br /&gt;
&lt;br /&gt;
Perpackage is the second build-in distribution model.&lt;br /&gt;
&lt;br /&gt;
This models creates always an own task for each test package and test plan, so multiple ots-worker can handle the testrun at the same time.&lt;br /&gt;
&lt;br /&gt;
=== Optimized ===&lt;br /&gt;
&lt;br /&gt;
'''---distribution=optimized'''&lt;br /&gt;
&lt;br /&gt;
Optimized is a distribution plug-in and it is part of history plug-in.&lt;br /&gt;
&lt;br /&gt;
History plug-in collects test package execution times to a database. When the user triggers a testrun, he/she can specify how long the execution should take and how many device can be used. The optimized model then tries to optimize the execution time to fit the user's requirements.&lt;br /&gt;
&lt;br /&gt;
See how to use the optimized plug-in from the [[Quality/QA-tools/OTS/Plugins/History|plug-in subpage]].&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Usage</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage"/>
				<updated>2011-04-01T08:53:55Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Distribution models */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS Usage =&lt;br /&gt;
&lt;br /&gt;
== Test execution ==&lt;br /&gt;
&lt;br /&gt;
=== Using conductor ===&lt;br /&gt;
&lt;br /&gt;
Conductor is the executer in the ots-worker. You can use conductor to test device flashing and for semi-automatic test executions.&lt;br /&gt;
&lt;br /&gt;
To test flashing and basic test execution:&lt;br /&gt;
 conductor --imageurl=http://192.168.1.1/image.tar.gz &lt;br /&gt;
&lt;br /&gt;
The conductor flasher the image to the device and executes all available test packages.&lt;br /&gt;
&lt;br /&gt;
To list all supported options:&lt;br /&gt;
 conductor --help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using ots_trigger ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Before starting to execute tests with ots_trigger, verify that your ots-worker is configured correctly. That can be done with conductor, see the topic above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ots_trigger is tool for triggering a testrun to OTS server.&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation#OTS_tools| How to install ots_trigger]].&lt;br /&gt;
&lt;br /&gt;
Before you can trigger a testrun, you need to have all following:&lt;br /&gt;
* OTS server up-and-running [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* OTS worker with hardware configured [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* Image with eat-device package (enabled test automation environment to hardware) [http://wiki.meego.com/Quality/QA-tools/Autotest-guide]&lt;br /&gt;
&lt;br /&gt;
And one of the following options:&lt;br /&gt;
* Test package installed to the device&lt;br /&gt;
* Test package installed to the ots-worker or&lt;br /&gt;
* Test plan [TODO LINK]&lt;br /&gt;
&lt;br /&gt;
Okey, now we are ready to get dirty. &lt;br /&gt;
&lt;br /&gt;
If we have test package(s) installed into the device and we want to execute all of them:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com&lt;br /&gt;
&lt;br /&gt;
Let me explain the parameters.&lt;br /&gt;
* '''server''': Defines the address of the OTS server. If you are not using logger plug-in, the address is then 192.168.1.1:8080.&lt;br /&gt;
* '''build_id''': Free string to define the image build id.&lt;br /&gt;
* '''image''': Url path where the image is located. Yes, it must be on the http server.&lt;br /&gt;
* '''sw_product''': The default SW test execution options, you have defined the sw_product in /etc/ots_server.conf.&lt;br /&gt;
* '''email''': Who has requested the testrun and to whom to send notifications.&lt;br /&gt;
&lt;br /&gt;
That was simple. Next you want to execute only one package, no problem, just define test package name to ots_trigger:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com --testpackages=my-test-package1-tests&lt;br /&gt;
&lt;br /&gt;
In to the '''testpackages''' option, you can define multiple packages like this:&lt;br /&gt;
 --testpackages=my-test-package1-tests,my-test-package2-tests&lt;br /&gt;
&lt;br /&gt;
If you want to add more people to receive email after the execution is done, just add more email addresses to --email option:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com,second.name@company.com&lt;br /&gt;
&lt;br /&gt;
If you have test package installed to your ots-worker machine, that can be executed with --hostpackages:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com --hostpackages=my-test-package1-tests&lt;br /&gt;
&lt;br /&gt;
For optimizing the execution time, see distribution models section below.&lt;br /&gt;
&lt;br /&gt;
To list all supported options:&lt;br /&gt;
 ots_trigger --help&lt;br /&gt;
&lt;br /&gt;
== Distribution models ==&lt;br /&gt;
&lt;br /&gt;
These are models how the OTS is distributing test executions to ots-workers. There are 2 build-in models and other ones are distribution model plug-ins.&lt;br /&gt;
&lt;br /&gt;
Distribution model can be specified to ots_trigger with --distribution option.&lt;br /&gt;
&lt;br /&gt;
=== Default ===&lt;br /&gt;
&lt;br /&gt;
This is the default model, if nothing else has been specified.&lt;br /&gt;
&lt;br /&gt;
Default model executes all test packages in a single task, so only one ots-worker will handle the test execution. Only exception to this model is test plan based executions, they are always executed as an own task and therefor distributed to multiple workers.&lt;br /&gt;
&lt;br /&gt;
=== Perpackage ===&lt;br /&gt;
&lt;br /&gt;
'''---distribution=perpackage'''&lt;br /&gt;
&lt;br /&gt;
Perpackage is the second build-in distribution model.&lt;br /&gt;
&lt;br /&gt;
This models creates always an own task for each test package and test plan, so multiple ots-worker can handle the testrun at the same time.&lt;br /&gt;
&lt;br /&gt;
=== Optimized ===&lt;br /&gt;
&lt;br /&gt;
'''---distribution=optimized'''&lt;br /&gt;
&lt;br /&gt;
Optimized is a distribution plug-in and it is part of history plug-in.&lt;br /&gt;
&lt;br /&gt;
History plug-in collects test package execution times to a database. When the user triggers a testrun, he/she can specify how long the execution should take and how many device can be used. The optimized model then tries to optimize the execution time to fit the user's requirements.&lt;br /&gt;
&lt;br /&gt;
See how to use the optimized plug-in from the [[Quality/QA-tools/OTS/Plugins/History|plug-in subpage]].&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Usage</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage"/>
				<updated>2011-04-01T08:39:20Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* OTS Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS Usage =&lt;br /&gt;
&lt;br /&gt;
== Test execution ==&lt;br /&gt;
&lt;br /&gt;
=== Using conductor ===&lt;br /&gt;
&lt;br /&gt;
Conductor is the executer in the ots-worker. You can use conductor to test device flashing and for semi-automatic test executions.&lt;br /&gt;
&lt;br /&gt;
To test flashing and basic test execution:&lt;br /&gt;
 conductor --imageurl=http://192.168.1.1/image.tar.gz &lt;br /&gt;
&lt;br /&gt;
The conductor flasher the image to the device and executes all available test packages.&lt;br /&gt;
&lt;br /&gt;
To list all supported options:&lt;br /&gt;
 conductor --help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using ots_trigger ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Before starting to execute tests with ots_trigger, verify that your ots-worker is configured correctly. That can be done with conductor, see the topic above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ots_trigger is tool for triggering a testrun to OTS server.&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation#OTS_tools| How to install ots_trigger]].&lt;br /&gt;
&lt;br /&gt;
Before you can trigger a testrun, you need to have all following:&lt;br /&gt;
* OTS server up-and-running [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* OTS worker with hardware configured [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* Image with eat-device package (enabled test automation environment to hardware) [http://wiki.meego.com/Quality/QA-tools/Autotest-guide]&lt;br /&gt;
&lt;br /&gt;
And one of the following options:&lt;br /&gt;
* Test package installed to the device&lt;br /&gt;
* Test package installed to the ots-worker or&lt;br /&gt;
* Test plan [TODO LINK]&lt;br /&gt;
&lt;br /&gt;
Okey, now we are ready to get dirty. &lt;br /&gt;
&lt;br /&gt;
If we have test package(s) installed into the device and we want to execute all of them:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com&lt;br /&gt;
&lt;br /&gt;
Let me explain the parameters.&lt;br /&gt;
* '''server''': Defines the address of the OTS server. If you are not using logger plug-in, the address is then 192.168.1.1:8080.&lt;br /&gt;
* '''build_id''': Free string to define the image build id.&lt;br /&gt;
* '''image''': Url path where the image is located. Yes, it must be on the http server.&lt;br /&gt;
* '''sw_product''': The default SW test execution options, you have defined the sw_product in /etc/ots_server.conf.&lt;br /&gt;
* '''email''': Who has requested the testrun and to whom to send notifications.&lt;br /&gt;
&lt;br /&gt;
That was simple. Next you want to execute only one package, no problem, just define test package name to ots_trigger:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com --testpackages=my-test-package1-tests&lt;br /&gt;
&lt;br /&gt;
In to the '''testpackages''' option, you can define multiple packages like this:&lt;br /&gt;
 --testpackages=my-test-package1-tests,my-test-package2-tests&lt;br /&gt;
&lt;br /&gt;
If you want to add more people to receive email after the execution is done, just add more email addresses to --email option:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com,second.name@company.com&lt;br /&gt;
&lt;br /&gt;
If you have test package installed to your ots-worker machine, that can be executed with --hostpackages:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com --hostpackages=my-test-package1-tests&lt;br /&gt;
&lt;br /&gt;
For optimizing the execution time, see distribution models section below.&lt;br /&gt;
&lt;br /&gt;
To list all supported options:&lt;br /&gt;
 ots_trigger --help&lt;br /&gt;
&lt;br /&gt;
== Distribution models ==&lt;br /&gt;
&lt;br /&gt;
=== Default ===&lt;br /&gt;
&lt;br /&gt;
=== Perpackage ===&lt;br /&gt;
&lt;br /&gt;
=== Optimized ===&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Usage</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage"/>
				<updated>2011-04-01T07:29:29Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Test execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS Usage =&lt;br /&gt;
&lt;br /&gt;
== Test execution ==&lt;br /&gt;
&lt;br /&gt;
=== Using conductor ===&lt;br /&gt;
&lt;br /&gt;
Conductor is the executer in the ots-worker. You can use conductor to test device flashing and for semi-automatic test executions.&lt;br /&gt;
&lt;br /&gt;
To test flashing and basic test execution:&lt;br /&gt;
 conductor --imageurl=http://192.168.1.1/image.tar.gz &lt;br /&gt;
&lt;br /&gt;
The conductor flasher the image to the device and executes all available test packages.&lt;br /&gt;
&lt;br /&gt;
To list all supported options:&lt;br /&gt;
 conductor --help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using ots_trigger ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Before starting to execute tests with ots_trigger, verify that your ots-worker is configured correctly. That can be done with conductor, see the topic above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ots_trigger is tool for triggering a testrun to OTS server.&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation#OTS_tools| How to install ots_trigger]].&lt;br /&gt;
&lt;br /&gt;
Before you can trigger a testrun, you need to have all following:&lt;br /&gt;
* OTS server up-and-running [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* OTS worker with hardware configured [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* Image with eat-device package (enabled test automation environment to hardware) [http://wiki.meego.com/Quality/QA-tools/Autotest-guide]&lt;br /&gt;
&lt;br /&gt;
And one of the following options:&lt;br /&gt;
* Test package installed to the device&lt;br /&gt;
* Test package installed to the ots-worker or&lt;br /&gt;
* Test plan [TODO LINK]&lt;br /&gt;
&lt;br /&gt;
Okey, now we are ready to get dirty. &lt;br /&gt;
&lt;br /&gt;
If we have test package(s) installed into the device and we want to execute all of them:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com&lt;br /&gt;
&lt;br /&gt;
Let me explain the parameters.&lt;br /&gt;
* '''server''': Defines the address of the OTS server. If you are not using logger plug-in, the address is then 192.168.1.1:8080.&lt;br /&gt;
* '''build_id''': Free string to define the image build id.&lt;br /&gt;
* '''image''': Url path where the image is located. Yes, it must be on the http server.&lt;br /&gt;
* '''sw_product''': The default SW test execution options, you have defined the sw_product in /etc/ots_server.conf.&lt;br /&gt;
* '''email''': Who has requested the testrun and to whom to send notifications.&lt;br /&gt;
&lt;br /&gt;
That was simple. Next you want to execute only one package, no problem, just define test package name to ots_trigger:&lt;br /&gt;
 ots_trigger --server=192.168.1.=== Using conductor ===&lt;br /&gt;
&lt;br /&gt;
Conductor is the executer in the ots-worker. You can use conductor to test device flashing and for semi-automatic test executions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To list all supported options:&lt;br /&gt;
 conductor --help&lt;br /&gt;
1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com --testpackages=my-test-package1-tests&lt;br /&gt;
&lt;br /&gt;
In to the '''testpackages''' option, you can define multiple packages like this:&lt;br /&gt;
 --testpackages=my-test-package1-tests,my-test-package2-tests&lt;br /&gt;
&lt;br /&gt;
If you want to add more people to receive email after the execution is done, just add more email addresses to --email option:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com,second.name@company.com&lt;br /&gt;
&lt;br /&gt;
To list all supported options_&lt;br /&gt;
 ots_trigger --help&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Usage</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage"/>
				<updated>2011-04-01T07:26:13Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Using ots_trigger */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS Usage =&lt;br /&gt;
&lt;br /&gt;
== Test execution ==&lt;br /&gt;
&lt;br /&gt;
=== Using conductor ===&lt;br /&gt;
&lt;br /&gt;
Conductor is the executer in the ots-worker. You can use conductor to test device flashing and for semi-automatic test executions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To list all supported options:&lt;br /&gt;
 conductor --help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using ots_trigger ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Before starting to execute tests with ots_trigger, verify that your ots-worker is configured correctly. That can be done with conductor, see the topic above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ots_trigger is tool for triggering a testrun to OTS server.&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation#OTS_tools| How to install ots_trigger]].&lt;br /&gt;
&lt;br /&gt;
Before you can trigger a testrun, you need to have all following:&lt;br /&gt;
* OTS server up-and-running [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* OTS worker with hardware configured [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* Image with eat-device package (enabled test automation environment to hardware) [http://wiki.meego.com/Quality/QA-tools/Autotest-guide]&lt;br /&gt;
&lt;br /&gt;
And one of the following options:&lt;br /&gt;
* Test package installed to the device&lt;br /&gt;
* Test package installed to the ots-worker or&lt;br /&gt;
* Test plan [TODO LINK]&lt;br /&gt;
&lt;br /&gt;
Okey, now we are ready to get dirty. &lt;br /&gt;
&lt;br /&gt;
If we have test package(s) installed into the device and we want to execute all of them:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com&lt;br /&gt;
&lt;br /&gt;
Let me explain the parameters.&lt;br /&gt;
* '''server''': Defines the address of the OTS server. If you are not using logger plug-in, the address is then 192.168.1.1:8080.&lt;br /&gt;
* '''build_id''': Free string to define the image build id.&lt;br /&gt;
* '''image''': Url path where the image is located. Yes, it must be on the http server.&lt;br /&gt;
* '''sw_product''': The default SW test execution options, you have defined the sw_product in /etc/ots_server.conf.&lt;br /&gt;
* '''email''': Who has requested the testrun and to whom to send notifications.&lt;br /&gt;
&lt;br /&gt;
That was simple. Next you want to execute only one package, no problem, just define test package name to ots_trigger:&lt;br /&gt;
 ots_trigger --server=192.168.1.=== Using conductor ===&lt;br /&gt;
&lt;br /&gt;
Conductor is the executer in the ots-worker. You can use conductor to test device flashing and for semi-automatic test executions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To list all supported options:&lt;br /&gt;
 conductor --help&lt;br /&gt;
1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com --testpackages=my-test-package1-tests&lt;br /&gt;
&lt;br /&gt;
In to the '''testpackages''' option, you can define multiple packages like this:&lt;br /&gt;
 --testpackages=my-test-package1-tests,my-test-package2-tests&lt;br /&gt;
&lt;br /&gt;
If you want to add more people to receive email after the execution is done, just add more email addresses to --email option:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com,second.name@company.com&lt;br /&gt;
&lt;br /&gt;
To list all supported options_&lt;br /&gt;
 ots_trigger --help&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Usage</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage"/>
				<updated>2011-04-01T07:24:35Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* OTS Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS Usage =&lt;br /&gt;
&lt;br /&gt;
== Test execution ==&lt;br /&gt;
&lt;br /&gt;
=== Using conductor ===&lt;br /&gt;
&lt;br /&gt;
Conductor is the executer in the ots-worker. You can use conductor to test device flashing and for semi-automatic test executions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To list all supported options:&lt;br /&gt;
 conductor --help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using ots_trigger ===&lt;br /&gt;
&lt;br /&gt;
'''Note''' Before starting to execute tests with ots_trigger, verify that your ots-worker is configured correctly. That can be done with conductor, see the topic above.&lt;br /&gt;
&lt;br /&gt;
ots_trigger is tool for triggering a testrun to OTS server.&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation#OTS_tools| How to install ots_trigger]].&lt;br /&gt;
&lt;br /&gt;
Before you can trigger a testrun, you need to have all following:&lt;br /&gt;
* OTS server up-and-running [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* OTS worker with hardware configured [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* Image with eat-device package (enabled test automation environment to hardware) [http://wiki.meego.com/Quality/QA-tools/Autotest-guide]&lt;br /&gt;
&lt;br /&gt;
And one of the following options:&lt;br /&gt;
* Test package installed to the device&lt;br /&gt;
* Test package installed to the ots-worker or&lt;br /&gt;
* Test plan [TODO LINK]&lt;br /&gt;
&lt;br /&gt;
Okey, now we are ready to get dirty. &lt;br /&gt;
&lt;br /&gt;
If we have test package(s) installed into the device and we want to execute all of them:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com&lt;br /&gt;
&lt;br /&gt;
Let me explain the parameters.&lt;br /&gt;
* '''server''': Defines the address of the OTS server. If you are not using logger plug-in, the address is then 192.168.1.1:8080.&lt;br /&gt;
* '''build_id''': Free string to define the image build id.&lt;br /&gt;
* '''image''': Url path where the image is located. Yes, it must be on the http server.&lt;br /&gt;
* '''sw_product''': The default SW test execution options, you have defined the sw_product in /etc/ots_server.conf.&lt;br /&gt;
* '''email''': Who has requested the testrun and to whom to send notifications.&lt;br /&gt;
&lt;br /&gt;
That was simple. Next you want to execute only one package, no problem, just define test package name to ots_trigger:&lt;br /&gt;
 ots_trigger --server=192.168.1.=== Using conductor ===&lt;br /&gt;
&lt;br /&gt;
Conductor is the executer in the ots-worker. You can use conductor to test device flashing and for semi-automatic test executions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To list all supported options:&lt;br /&gt;
 conductor --help&lt;br /&gt;
1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com --testpackages=my-test-package1-tests&lt;br /&gt;
&lt;br /&gt;
In to the '''testpackages''' option, you can define multiple packages like this:&lt;br /&gt;
 --testpackages=my-test-package1-tests,my-test-package2-tests&lt;br /&gt;
&lt;br /&gt;
If you want to add more people to receive email after the execution is done, just add more email addresses to --email option:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com,second.name@company.com&lt;br /&gt;
&lt;br /&gt;
To list all supported options_&lt;br /&gt;
 ots_trigger --help&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Usage</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Usage"/>
				<updated>2011-04-01T07:09:04Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: Created page with &amp;quot;= OTS Usage =  == Test execution ==  === Using ots_trigger ===  ots_trigger is tool for triggering a testrun to OTS server.  [[Quality/QA-tools/OTS/UserDocumentation/Installation…&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS Usage =&lt;br /&gt;
&lt;br /&gt;
== Test execution ==&lt;br /&gt;
&lt;br /&gt;
=== Using ots_trigger ===&lt;br /&gt;
&lt;br /&gt;
ots_trigger is tool for triggering a testrun to OTS server.&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation#OTS_tools| How to install ots_trigger]].&lt;br /&gt;
&lt;br /&gt;
Before you can trigger a testrun, you need to have all following:&lt;br /&gt;
* OTS server up-and-running [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* OTS worker with hardware configured [http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation#Installation]&lt;br /&gt;
* Image with eat-device package (enabled test automation environment to hardware) [http://wiki.meego.com/Quality/QA-tools/Autotest-guide]&lt;br /&gt;
&lt;br /&gt;
And one of the following options:&lt;br /&gt;
* Test package installed to the device&lt;br /&gt;
* Test package installed to the ots-worker or&lt;br /&gt;
* Test plan [TODO LINK]&lt;br /&gt;
&lt;br /&gt;
Okey, now we are ready to get dirty. &lt;br /&gt;
&lt;br /&gt;
If we have test package(s) installed into the device and we want to execute all of them:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com&lt;br /&gt;
&lt;br /&gt;
Let me explain the parameters.&lt;br /&gt;
* '''server''': Defines the address of the OTS server. If you are not using logger plug-in, the address is then 192.168.1.1:8080.&lt;br /&gt;
* '''build_id''': Free string to define the image build id.&lt;br /&gt;
* '''image''': Url path where the image is located. Yes, it must be on the http server.&lt;br /&gt;
* '''sw_product''': The default SW test execution options, you have defined the sw_product in /etc/ots_server.conf.&lt;br /&gt;
* '''email''': Who has requested the testrun and to whom to send notifications.&lt;br /&gt;
&lt;br /&gt;
That was simple. Next you want to execute only one package, no problem, just define test package name to ots_trigger:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com --testpackages=my-test-package1-tests&lt;br /&gt;
&lt;br /&gt;
In to the '''testpackages''' option, you can define multiple packages like this:&lt;br /&gt;
 --testpackages=my-test-package1-tests,my-test-package2-tests&lt;br /&gt;
&lt;br /&gt;
If you want to add more people to receive email after the execution is done, just add more email addresses to --email option:&lt;br /&gt;
 ots_trigger --server=192.168.1.1/xmlrpc --build_id=nightly_testing --image=http://url.to.image/image.tar.gz --sw_product=meego_n900 --email=my.name@company.com,second.name@company.com&lt;br /&gt;
&lt;br /&gt;
To list all supported options, use&lt;br /&gt;
 ots_trigger --help&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation</id>
		<title>Quality/QA-tools/OTS/UserDocumentation</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation"/>
				<updated>2011-04-01T06:33:18Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OTS User Documentation ==&lt;br /&gt;
&lt;br /&gt;
This page contains user documentation for OTS. &lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
&lt;br /&gt;
'''Version 0.8.x'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation| 0.8.x Installation instructions Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation_rpm| 0.8.x Installation instructions RPM]]&lt;br /&gt;
&lt;br /&gt;
'''Plug-ins'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/Plugins| 0.8.x Plug-ins installation instructions]]&lt;br /&gt;
&lt;br /&gt;
'''Version 0.1.x'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| Migration from version 0.1.x to 0.8.x]]&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation/Old/Version_0.1| 0.1.x Installation instructions]]&lt;br /&gt;
&lt;br /&gt;
'''Upgrading'''&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation/Upgrading | Upgrading]]&lt;br /&gt;
&lt;br /&gt;
'''Troubleshooting'''&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/Troubleshooting | Troubleshooting]]&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
* How to trigger a test run&lt;br /&gt;
** ots_trigger&lt;br /&gt;
** conductor&lt;br /&gt;
* Test plan based execution&lt;br /&gt;
* Running tests in chroot environment&lt;br /&gt;
* Distribution models&lt;br /&gt;
** Perpackage&lt;br /&gt;
** Default&lt;br /&gt;
** Optimized&lt;br /&gt;
&lt;br /&gt;
==== Flashing ====&lt;br /&gt;
&lt;br /&gt;
These HowTos show how to flash step by step [[Quality/QA-tools/OTS/Manual_flashing_of_n900 | manually]] and [[Quality/QA-tools/OTS/Automated_flashing_of_N900 | automatically]]&lt;br /&gt;
&lt;br /&gt;
=== Related Documentation ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/Glossary]]&lt;br /&gt;
* [[Quality/QA-tools/Testrunner-lite]]&lt;br /&gt;
* [[Quality/QA-tools/Autotest-guide]]&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation</id>
		<title>Quality/QA-tools/OTS/UserDocumentation</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation"/>
				<updated>2011-04-01T06:31:38Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* OTS User Documentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OTS User Documentation ==&lt;br /&gt;
&lt;br /&gt;
This page contains user documentation for OTS. &lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
&lt;br /&gt;
'''Version 0.8.x'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation| 0.8.x Installation instructions Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation_rpm| 0.8.x Installation instructions RPM]]&lt;br /&gt;
&lt;br /&gt;
'''Plug-ins'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/Plugins| 0.8.x Plug-ins installation instructions]]&lt;br /&gt;
&lt;br /&gt;
'''Version 0.1.x'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| Migration from version 0.1.x to 0.8.x]]&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation/Old/Version_0.1| 0.1.x Installation instructions]]&lt;br /&gt;
&lt;br /&gt;
'''Upgrading'''&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation/Upgrading | Upgrading]]&lt;br /&gt;
&lt;br /&gt;
'''Troubleshooting'''&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/Troubleshooting | Troubleshooting]]&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation/Installation#OTS_tools | How to trigger a testrun]]&lt;br /&gt;
&lt;br /&gt;
''' Worker Components '''&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation/Conductor|Conductor]]&lt;br /&gt;
&lt;br /&gt;
==== Flashing ====&lt;br /&gt;
&lt;br /&gt;
These HowTos show how to flash step by step [[Quality/QA-tools/OTS/Manual_flashing_of_n900 | manually]] and [[Quality/QA-tools/OTS/Automated_flashing_of_N900 | automatically]]&lt;br /&gt;
&lt;br /&gt;
=== Related Documentation ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/Glossary]]&lt;br /&gt;
* [[Quality/QA-tools/Testrunner-lite]]&lt;br /&gt;
* [[Quality/QA-tools/Autotest-guide]]&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation</id>
		<title>Quality/QA-tools/OTS/UserDocumentation</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation"/>
				<updated>2011-04-01T06:30:14Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OTS User Documentation ==&lt;br /&gt;
&lt;br /&gt;
This page contains user documentation for OTS. &lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
&lt;br /&gt;
'''Version 0.8.x'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation| 0.8.x Installation instructions Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation_rpm| 0.8.x Installation instructions RPM]]&lt;br /&gt;
&lt;br /&gt;
'''Plug-ins'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/Plugins| 0.8.x Plug-ins installation instructions]]&lt;br /&gt;
&lt;br /&gt;
'''Version 0.1.x'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| Migration from version 0.1.x to 0.8.x]]&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation/Old/Version_0.1| 0.1.x Installation instructions]]&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation/Upgrading | Upgrading]]&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/Troubleshooting | Troubleshooting]]&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation/Installation#OTS_tools | How to trigger a testrun]]&lt;br /&gt;
&lt;br /&gt;
''' Worker Components '''&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation/Conductor|Conductor]]&lt;br /&gt;
&lt;br /&gt;
==== Flashing ====&lt;br /&gt;
&lt;br /&gt;
These HowTos show how to flash step by step [[Quality/QA-tools/OTS/Manual_flashing_of_n900 | manually]] and [[Quality/QA-tools/OTS/Automated_flashing_of_N900 | automatically]]&lt;br /&gt;
&lt;br /&gt;
=== Related Documentation ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/Glossary]]&lt;br /&gt;
* [[Quality/QA-tools/Testrunner-lite]]&lt;br /&gt;
* [[Quality/QA-tools/Autotest-guide]]&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation</id>
		<title>Quality/QA-tools/OTS/UserDocumentation</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation"/>
				<updated>2011-04-01T06:30:05Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OTS User Documentation ==&lt;br /&gt;
&lt;br /&gt;
This page contains user documentation for OTS. &lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
&lt;br /&gt;
'''Version 0.8.x'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation| 0.8.x Installation instructions Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation_rpm| 0.8.x Installation instructions RPM]]&lt;br /&gt;
&lt;br /&gt;
'''Plug-ins''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/Plugins| 0.8.x Plug-ins installation instructions]]&lt;br /&gt;
&lt;br /&gt;
'''Version 0.1.x'''&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| Migration from version 0.1.x to 0.8.x]]&lt;br /&gt;
&lt;br /&gt;
[[Quality/QA-tools/OTS/UserDocumentation/Installation/Old/Version_0.1| 0.1.x Installation instructions]]&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation/Upgrading | Upgrading]]&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/Troubleshooting | Troubleshooting]]&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation/Installation#OTS_tools | How to trigger a testrun]]&lt;br /&gt;
&lt;br /&gt;
''' Worker Components '''&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/UserDocumentation/Conductor|Conductor]]&lt;br /&gt;
&lt;br /&gt;
==== Flashing ====&lt;br /&gt;
&lt;br /&gt;
These HowTos show how to flash step by step [[Quality/QA-tools/OTS/Manual_flashing_of_n900 | manually]] and [[Quality/QA-tools/OTS/Automated_flashing_of_N900 | automatically]]&lt;br /&gt;
&lt;br /&gt;
=== Related Documentation ===&lt;br /&gt;
&lt;br /&gt;
* [[Quality/QA-tools/OTS/Glossary]]&lt;br /&gt;
* [[Quality/QA-tools/Testrunner-lite]]&lt;br /&gt;
* [[Quality/QA-tools/Autotest-guide]]&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation_rpm</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Installation rpm</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation_rpm"/>
				<updated>2011-03-30T09:11:47Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Network Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS 0.8.x installation RPM =&lt;br /&gt;
&lt;br /&gt;
These instructions have been tested with Fedora 13. Execute commands as root.&lt;br /&gt;
&lt;br /&gt;
In MeeGo netbook, at least following packages needs to be installed manually:&lt;br /&gt;
 python-amqp, python-django, minixsv, rabbitmq-server&lt;br /&gt;
&lt;br /&gt;
== Network Setup ==&lt;br /&gt;
&lt;br /&gt;
Using static IP addresses on all OTS machines is strongly recommended. It is possible to setup the system also with dynamic IP addresses but it might cause problems every now and then because IP's and hostnames change.&lt;br /&gt;
&lt;br /&gt;
'''Note''' All OTS machines need to be able to access other OTS machines based on their hostname.&lt;br /&gt;
&lt;br /&gt;
How to check that DNS names are correct:&lt;br /&gt;
&lt;br /&gt;
1. Check OTS server's hostname&lt;br /&gt;
 hostname&lt;br /&gt;
2. Ping the OTS server's hostname from the OTS worker&lt;br /&gt;
 ping &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If ping fails, add manually OTS server's hostname to OTS workers '''/etc/hosts''' file&lt;br /&gt;
 &amp;lt;IP&amp;gt; &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Preparation ==&lt;br /&gt;
&lt;br /&gt;
There are two ways of getting OTS binary packages: from '''the source code'''&lt;br /&gt;
or from the '''MeeGo Tools:Testing repository'''. From the repository you can get&lt;br /&gt;
the stable version and from the source code the development version.&lt;br /&gt;
&lt;br /&gt;
* Add Tools:Testing source to /etc/yum.repos.d/&lt;br /&gt;
 cd /etc/yum.repos.d/&lt;br /&gt;
 yum install wget nano&lt;br /&gt;
 wget http://download.meego.com/live/Tools:/Testing/Fedora13/Tools:Testing.repo&lt;br /&gt;
&lt;br /&gt;
* Update the repositories&lt;br /&gt;
 yum check-update&lt;br /&gt;
&lt;br /&gt;
'''Build packages from source (optional)'''&lt;br /&gt;
* Install git core&lt;br /&gt;
 yum install git-core&lt;br /&gt;
&lt;br /&gt;
* Get sources&lt;br /&gt;
 git clone git://gitorious.org/meego-quality-assurance/ots.git&lt;br /&gt;
&lt;br /&gt;
* Get building tools&lt;br /&gt;
 yum rpm-build python-setuptools&lt;br /&gt;
&lt;br /&gt;
* Build packages&lt;br /&gt;
 mv ots python-ots-0.8.x&lt;br /&gt;
 tar czf python-ots-0.8.x.tar.gz python-ots-0.8.x&lt;br /&gt;
 rpmbuild -tb python-ots-0.8.x.tar.gz&lt;br /&gt;
&lt;br /&gt;
== OTS server installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 yum install Django python-amqplib python-configobj rabbitmq-server test-definition&lt;br /&gt;
 easy_install minixsv&lt;br /&gt;
 yum install python-setuptools&lt;br /&gt;
&lt;br /&gt;
* Install OTS server components&lt;br /&gt;
 yum install python-ots-common python-ots-results python-ots-server&lt;br /&gt;
or if you are using own built packages&lt;br /&gt;
 rpm -i ...&lt;br /&gt;
&lt;br /&gt;
* Add rabbitmq to start on boot&lt;br /&gt;
 chkconfig --add rabbitmq-server&lt;br /&gt;
 chkconfig rabbitmq-server on&lt;br /&gt;
&lt;br /&gt;
* Start rabbitmq server&lt;br /&gt;
 /etc/init.d/rabbitmq-server start&lt;br /&gt;
&lt;br /&gt;
* Configure OTS server settings&lt;br /&gt;
 sudo nano /etc/ots_server.ini&lt;br /&gt;
&lt;br /&gt;
Recommended to change following:&lt;br /&gt;
 'example_sw_product', example to 'meego_product'&lt;br /&gt;
 'devicegroup', example to 'meego_n900'&lt;br /&gt;
&lt;br /&gt;
* Install OTS server plug-ins&lt;br /&gt;
&lt;br /&gt;
See plug-ins from [[Quality/QA-tools/OTS/Plugins|OTS Plug-ins]]&lt;br /&gt;
&lt;br /&gt;
* Start OTS server&lt;br /&gt;
 ots_server&lt;br /&gt;
&lt;br /&gt;
== OTS worker installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 yum install python-amqplib testrunner-lite&lt;br /&gt;
&lt;br /&gt;
* Install OTS worker packages&lt;br /&gt;
 yum install python-ots-common python-ots-worker&lt;br /&gt;
&lt;br /&gt;
* Configure OTS worker settings&lt;br /&gt;
 sudo nano /etc/ots.ini&lt;br /&gt;
&lt;br /&gt;
Change 'devicegroup', example meego_n900&lt;br /&gt;
&lt;br /&gt;
Change 'host' to server's address&lt;br /&gt;
&lt;br /&gt;
* Change permissions to OTS worker log&lt;br /&gt;
 sudo chown &amp;lt;user&amp;gt;:&amp;lt;group&amp;gt; /var/log/ots.log&lt;br /&gt;
&lt;br /&gt;
* Start OTS worker&lt;br /&gt;
 ots_worker&lt;br /&gt;
&lt;br /&gt;
NOTE: if worker failed to start up with error like &amp;quot;socket.error: [Errno 113] No route to host&amp;quot;, plz check if telnet service is available on ots server. telnet_server is not installed by default.&lt;br /&gt;
&lt;br /&gt;
== OTS tools ==&lt;br /&gt;
&lt;br /&gt;
Tools are used for triggering test runs from the command line.&lt;br /&gt;
&lt;br /&gt;
* Install OTS tools&lt;br /&gt;
 yum install python-ots-tools&lt;br /&gt;
&lt;br /&gt;
* Trigger a test run&lt;br /&gt;
 ots_trigger -s localhost:8080 -b test_build -i http://url_to_image -p example_sw_product -e test@man.com&lt;br /&gt;
&lt;br /&gt;
* Kickstart file for automation can be found from&lt;br /&gt;
 http://meego.gitorious.org/meego-quality-assurance/enables-automated-testing/blobs/ks/meego-n900-autotest.ks&lt;br /&gt;
&lt;br /&gt;
* You need to build the image with mic-image-creator with parameters:&lt;br /&gt;
 --save-kernel --package=tar.gz&lt;br /&gt;
&lt;br /&gt;
== How to install N900 automation tools to OTS worker ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 yum install meego-ai-flaster eat-host&lt;br /&gt;
 &lt;br /&gt;
* Get N900 flasher from the Nokia's tablets-dev portal&lt;br /&gt;
 http://tablets-dev.nokia.com/maemo-dev-env-downloads.php?f=maemo_flasher-3.5_2.5.2.2.tar.gz&lt;br /&gt;
 Compile the flasher&lt;br /&gt;
&lt;br /&gt;
* Configure conductor to use rpm and fetch /var/log/messages&lt;br /&gt;
 sudo nano /etc/conductor.conf&lt;br /&gt;
&lt;br /&gt;
* If you want run ots_worker as user, copy SSH keys to the user and make udev rule for n900&lt;br /&gt;
 install-eat-key.sh&lt;br /&gt;
 sudo nano /etc/udev/rules.d/meego-n900.rules&lt;br /&gt;
 SUBSYSTEMS==&amp;quot;usb&amp;quot;, ATTR{idVendor}==&amp;quot;0421&amp;quot;, ATTR{idProduct}==&amp;quot;0105&amp;quot;, GROUP=&amp;quot;&amp;lt;group&amp;gt;&amp;quot;, MODE=&amp;quot;0664&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Create a power_cycle.sh script for turning N900 on/off. This requires external accessory, like [[Quality/QA-tools/hat-control|HAT]] &lt;br /&gt;
 sudo nano /usr/bin/power_cycle.sh&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 hat_drv &amp;amp;&lt;br /&gt;
 hat_ctrl -pwr1=off&lt;br /&gt;
 hat_ctrl -usb1data=off&lt;br /&gt;
 hat_ctrl -usb1pwr=off&lt;br /&gt;
 sleep 2;&lt;br /&gt;
 hat_ctrl -usb1pwr=on&lt;br /&gt;
 hat_ctrl -usb1data=on&lt;br /&gt;
 hat_ctrl -pwr1=on&lt;br /&gt;
 killall hat_drv&lt;br /&gt;
&lt;br /&gt;
* Test manually that everything is OK, this is executed in the worker&lt;br /&gt;
 conductor -u &amp;lt;image url&amp;gt;&lt;br /&gt;
* Start OTS worker&lt;br /&gt;
 ots_worker&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Installation</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Installation"/>
				<updated>2011-03-30T09:11:17Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Network Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OTS 0.8.x installation Ubuntu =&lt;br /&gt;
&lt;br /&gt;
If using 0.1.x version, see [[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| migration from 0.1.x to 0.8.x]] document.&lt;br /&gt;
&lt;br /&gt;
== Used hardware ==&lt;br /&gt;
&lt;br /&gt;
:1 x Server (Ubuntu 10.10)&lt;br /&gt;
:1 x Client (Ubuntu 10.10)&lt;br /&gt;
::1 x HAT controller&lt;br /&gt;
:: 1 x Power cable&lt;br /&gt;
:: 1 x Power supply&lt;br /&gt;
:: 2 x USB A-B cable&lt;br /&gt;
:: 1 x USB A-microB cable&lt;br /&gt;
:: 1 x N900&lt;br /&gt;
&lt;br /&gt;
== Network Setup ==&lt;br /&gt;
&lt;br /&gt;
Using static IP addresses on all OTS machines is strongly recommended. It is possible to setup the system also with dynamic IP addresses but it might cause problems every now and then because IP's and hostnames change.&lt;br /&gt;
&lt;br /&gt;
'''Note''' All OTS machines need to be able to access other OTS machines based on their hostname.&lt;br /&gt;
&lt;br /&gt;
How to check that DNS names are correct:&lt;br /&gt;
&lt;br /&gt;
1. Check OTS server's hostname&lt;br /&gt;
 hostname&lt;br /&gt;
2. Ping the OTS server's hostname from the OTS worker&lt;br /&gt;
 ping &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If ping fails, add manually OTS server's hostname to OTS workers '''/etc/hosts''' file&lt;br /&gt;
 &amp;lt;IP&amp;gt; &amp;lt;hostname&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Preparation ==&lt;br /&gt;
&lt;br /&gt;
There are two ways of getting OTS binary packages: from '''the source code'''&lt;br /&gt;
or from the '''MeeGo Tools:Testing repository'''. From the repository you can get&lt;br /&gt;
the stable version and from the source code the development version.&lt;br /&gt;
&lt;br /&gt;
* Add Tools:Testing apt source to /etc/apt/sources.list&lt;br /&gt;
 sudo nano /etc/apt/sources.list&lt;br /&gt;
 deb http://download.meego.com/live/Tools:/Testing/xUbuntu_10.10/ /&lt;br /&gt;
Notice that if you are using Ubuntu 10.04, change the path.&lt;br /&gt;
&lt;br /&gt;
* Add repository keys&lt;br /&gt;
 gpg --keyserver subkeys.pgp.net --recv-keys 0BC7BEC479FC1F8A&lt;br /&gt;
 gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -&lt;br /&gt;
&lt;br /&gt;
* Update the repositories&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
'''Build packages from source (optional)'''&lt;br /&gt;
* Install git core&lt;br /&gt;
 sudo apt-get install git-core&lt;br /&gt;
&lt;br /&gt;
* Get sources&lt;br /&gt;
 git clone git://gitorious.org/meego-quality-assurance/ots.git&lt;br /&gt;
&lt;br /&gt;
* Get building tools&lt;br /&gt;
 sudo apt-get install dpkg-dev debhelper python-setuptools&lt;br /&gt;
&lt;br /&gt;
* Build packages&lt;br /&gt;
 cd ots&lt;br /&gt;
 dpkg-buildpackage -rfakeroot&lt;br /&gt;
&lt;br /&gt;
== OTS server installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install python-django python-amqplib python-configobj rabbitmq-server test-definition&lt;br /&gt;
&lt;br /&gt;
* Install OTS server components&lt;br /&gt;
 sudo apt-get install python-ots-common python-ots-results python-ots-server&lt;br /&gt;
Or if you are using own built packages&lt;br /&gt;
 sudo dpkg -i ...&lt;br /&gt;
&lt;br /&gt;
* Configure OTS server settings&lt;br /&gt;
 sudo nano /etc/ots_server.ini&lt;br /&gt;
&lt;br /&gt;
Recommended to change following:&lt;br /&gt;
 'example_sw_product', example to 'meego_product'&lt;br /&gt;
 'devicegroup', example to 'meego_n900'&lt;br /&gt;
&lt;br /&gt;
* Install OTS server plug-ins&lt;br /&gt;
 [[Quality/QA-tools/OTS/Plugins/HTTP_logger|Logger plug-in]] (recommended)&lt;br /&gt;
 [[Quality/QA-tools/OTS/Plugins/Email|Email plug-in]] (recommended)&lt;br /&gt;
&lt;br /&gt;
See more plug-ins from [[Quality/QA-tools/OTS/Plugins|OTS Plug-ins]]&lt;br /&gt;
&lt;br /&gt;
* If logger plug-in is installed&lt;br /&gt;
 Change permissions to logging directory&lt;br /&gt;
 sudo chown www-data:www-data /var/log/ots&lt;br /&gt;
&lt;br /&gt;
Now the OTS server can be used via apache (django_xmlrpc).&lt;br /&gt;
&lt;br /&gt;
* If logger plug-in is not installed&lt;br /&gt;
 Change user permissions to logging directory&lt;br /&gt;
 sudo chown &amp;lt;user&amp;gt;:&amp;lt;group&amp;gt; /var/log/ots&lt;br /&gt;
&lt;br /&gt;
* Start rabbitmq-server&lt;br /&gt;
  /etc/init.d/rabbitmq-server start&lt;br /&gt;
&lt;br /&gt;
 ots_server&lt;br /&gt;
&lt;br /&gt;
== OTS worker installation ==&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install python-amqplib testrunner-lite&lt;br /&gt;
&lt;br /&gt;
* Install OTS worker packages&lt;br /&gt;
 sudo apt-get install python-ots-common python-ots-worker&lt;br /&gt;
&lt;br /&gt;
* Configure OTS worker settings&lt;br /&gt;
 sudo nano /etc/ots.ini&lt;br /&gt;
&lt;br /&gt;
Change 'devicegroup', example meego_n900&lt;br /&gt;
&lt;br /&gt;
Change 'host' to server's address&lt;br /&gt;
&lt;br /&gt;
* Change permissions to OTS worker log&lt;br /&gt;
 sudo chown &amp;lt;user&amp;gt;:&amp;lt;group&amp;gt; /var/log/ots.log&lt;br /&gt;
&lt;br /&gt;
* Start OTS worker&lt;br /&gt;
 ots_worker&lt;br /&gt;
&lt;br /&gt;
== OTS tools ==&lt;br /&gt;
&lt;br /&gt;
Tools are used for triggering test runs from the command line.&lt;br /&gt;
&lt;br /&gt;
* Install OTS tools&lt;br /&gt;
 sudo apt-get install python-ots-tools&lt;br /&gt;
&lt;br /&gt;
* Trigger a test run&lt;br /&gt;
 ots_trigger -s localhost/xmlrpc -b test_build -i http://url_to_image -p example_sw_product -e test@man.com&lt;br /&gt;
&lt;br /&gt;
* Kickstart file for automation can be found from&lt;br /&gt;
 http://meego.gitorious.org/meego-quality-assurance/enables-automated-testing/blobs/ks/meego-n900-autotest.ks&lt;br /&gt;
&lt;br /&gt;
* You need to build the image with mic-image-creator with parameters:&lt;br /&gt;
 --save-kernel --package=tar.gz&lt;br /&gt;
&lt;br /&gt;
== How to install N900 automation tools to OTS worker ==&lt;br /&gt;
&lt;br /&gt;
* Remove network-manager, because it breaks the USB connection. See more information from autotest-guide.&lt;br /&gt;
&lt;br /&gt;
* Install dependencies&lt;br /&gt;
 sudo apt-get install meego-ai-flasher eat-host-ubuntu&lt;br /&gt;
 &lt;br /&gt;
* Get N900 flasher from the Nokia's tablets-dev portal&lt;br /&gt;
 http://tablets-dev.nokia.com/maemo-dev-env-downloads.php?f=maemo_flasher-3.5_2.5.2.2_i386.deb&lt;br /&gt;
 sudo dpkg -i maemo_flasher-3.5_2.5.2.2_i386.deb&lt;br /&gt;
&lt;br /&gt;
* Configure conductor to use rpm and fetch /var/log/messages&lt;br /&gt;
 sudo nano /etc/conductor.conf&lt;br /&gt;
&lt;br /&gt;
* If you want run ots_worker as user, copy SSH keys to the user and make udev rule for n900&lt;br /&gt;
 install-eat-key.sh&lt;br /&gt;
 sudo nano /etc/udev/rules.d/meego-n900.rules&lt;br /&gt;
 SUBSYSTEMS==&amp;quot;usb&amp;quot;, ATTR{idVendor}==&amp;quot;0421&amp;quot;, ATTR{idProduct}==&amp;quot;0105&amp;quot;, GROUP=&amp;quot;&amp;lt;group&amp;gt;&amp;quot;, MODE=&amp;quot;0664&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Create a power_cycle.sh script for turning N900 on/off. This requires external accessory, like [[Quality/QA-tools/hat-control|HAT]] &lt;br /&gt;
 sudo nano /usr/bin/power_cycle.sh&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 hat_drv &amp;amp;&lt;br /&gt;
 hat_ctrl -pwr1=off&lt;br /&gt;
 hat_ctrl -usb1data=off&lt;br /&gt;
 hat_ctrl -usb1pwr=off&lt;br /&gt;
 sleep 2;&lt;br /&gt;
 hat_ctrl -usb1pwr=on&lt;br /&gt;
 hat_ctrl -usb1data=on&lt;br /&gt;
 hat_ctrl -pwr1=on&lt;br /&gt;
 killall hat_drv&lt;br /&gt;
&lt;br /&gt;
* Test manually that everything is OK, this is executed in the worker&lt;br /&gt;
 conductor -u &amp;lt;image url&amp;gt;&lt;br /&gt;
* Start OTS worker&lt;br /&gt;
 ots_worker&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Upgrading</id>
		<title>Quality/QA-tools/OTS/UserDocumentation/Upgrading</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/UserDocumentation/Upgrading"/>
				<updated>2011-03-22T06:19:22Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* 0.8.1 - 0.8.2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Upgrading OTS =&lt;br /&gt;
&lt;br /&gt;
== 0.8.1 - 0.8.2 ==&lt;br /&gt;
* New django package added, effects to all plug-ins&lt;br /&gt;
** See [[Quality/QA-tools/OTS/Plugins/Django|Django instructions]].&lt;br /&gt;
** See [[Quality/QA-tools/OTS/Plugins|plug-ins instructions]].&lt;br /&gt;
&lt;br /&gt;
== 0.8.0 - 0.8.1 ==&lt;br /&gt;
* Plug-in namespace changed, effects to Logger and QA-Reports plug-ins&lt;br /&gt;
** For logger update web page content, see step 8 from [[Quality/QA-tools/OTS/Plugins/HTTP_logger|Logger documentation]].&lt;br /&gt;
** For QA-Reports, configuration file name has changed. Move /etc/ots_qareports_plugin.conf to /etc/ots_plugin_qareports.conf&lt;br /&gt;
&lt;br /&gt;
== 0.1.x - 0.8.0 ==&lt;br /&gt;
&lt;br /&gt;
See [[Quality/QA-tools/OTS/UserDocumentation/Migration_0.1_0.8| migration document]].&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/Plugins/HTTP_logger</id>
		<title>Quality/QA-tools/OTS/Plugins/HTTP logger</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/Plugins/HTTP_logger"/>
				<updated>2011-03-22T06:18:05Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= HTTP logger plugin =&lt;br /&gt;
&lt;br /&gt;
Released in OTS 0.8.2.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Installation is made to OTS server.&lt;br /&gt;
&lt;br /&gt;
1. Install [[Quality/QA-tools/OTS/Plugins/Django#Django_environment_setup|Django environment]]&lt;br /&gt;
&lt;br /&gt;
2. Setup [[Quality/QA-tools/OTS/Plugins/Django#Apache_configuration|Apache2 environment]]&lt;br /&gt;
&lt;br /&gt;
3. Install plug-in&lt;br /&gt;
 sudo apt-get install python-ots-plugin-logger&lt;br /&gt;
Fedora:&lt;br /&gt;
 sudo yum install python-ots-plugin-logger&lt;br /&gt;
&lt;br /&gt;
4. Enable [[Quality/QA-tools/OTS/Plugins/Django#Enable.2Fdisable_Django_applications|Django application]]&lt;br /&gt;
 'ots.plugin.logger'&lt;br /&gt;
5. [[Quality/QA-tools/OTS/Plugins/Django#Create.2Fupdate_databases|Create/update database]]&lt;br /&gt;
&lt;br /&gt;
6. Restart Apache2&lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
Fedora:&lt;br /&gt;
 sudo /etc/init.d/httpd restart&lt;br /&gt;
&lt;br /&gt;
7. Browse http://localhost/logger/view/&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	<entry>
		<id>http://wiki.meego.com/Quality/QA-tools/OTS/Plugins/Monitor</id>
		<title>Quality/QA-tools/OTS/Plugins/Monitor</title>
		<link rel="alternate" type="text/html" href="http://wiki.meego.com/Quality/QA-tools/OTS/Plugins/Monitor"/>
				<updated>2011-03-22T06:17:56Z</updated>
		
		<summary type="html">&lt;p&gt;Esmietti: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Monitor plugin =&lt;br /&gt;
&lt;br /&gt;
Released in OTS 0.8.2.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Installation is made to OTS server.&lt;br /&gt;
&lt;br /&gt;
1. Install [[Quality/QA-tools/OTS/Plugins/Django#Django_environment_setup|Django environment]]&lt;br /&gt;
&lt;br /&gt;
2. Setup [[Quality/QA-tools/OTS/Plugins/Django#Apache_configuration|Apache2 environment]]&lt;br /&gt;
&lt;br /&gt;
3. Install plug-in&lt;br /&gt;
 sudo apt-get install python-ots-plugin-monitor&lt;br /&gt;
Fedora:&lt;br /&gt;
 sudo yum install python-ots-plugin-monitor&lt;br /&gt;
&lt;br /&gt;
4. Enable [[Quality/QA-tools/OTS/Plugins/Django#Enable.2Fdisable_Django_applications|Django application]]&lt;br /&gt;
 'ots.plugin.monitor'&lt;br /&gt;
5. [[Quality/QA-tools/OTS/Plugins/Django#Create.2Fupdate_databases|Create/update database]]&lt;br /&gt;
&lt;br /&gt;
6. Restart Apache2&lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
Fedora:&lt;br /&gt;
 sudo /etc/init.d/httpd restart&lt;br /&gt;
&lt;br /&gt;
7. Browse http://localhost/monitor/view/&lt;/div&gt;</summary>
		<author><name>Esmietti</name></author>	</entry>

	</feed>