(→Test execution) |
(→OTS Usage) |
||
| Line 49: | Line 49: | ||
That was simple. Next you want to execute only one package, no problem, just define test package name to ots_trigger: | That was simple. Next you want to execute only one package, no problem, just define test package name to ots_trigger: | ||
| - | ots_trigger --server=192.168.1. | + | 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 |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | 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 | + | |
In to the '''testpackages''' option, you can define multiple packages like this: | In to the '''testpackages''' option, you can define multiple packages like this: | ||
| Line 65: | Line 57: | ||
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 | 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 | ||
| - | To list all supported | + | If you have test package installed to your ots-worker machine, that can be executed with --hostpackages: |
| + | 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 | ||
| + | |||
| + | For optimizing the execution time, see distribution models section below. | ||
| + | |||
| + | To list all supported options: | ||
ots_trigger --help | ots_trigger --help | ||
| + | |||
| + | == Distribution models == | ||
| + | |||
| + | === Default === | ||
| + | |||
| + | === Perpackage === | ||
| + | |||
| + | === Optimized === | ||
Contents |
Conductor is the executer in the ots-worker. You can use conductor to test device flashing and for semi-automatic test executions.
To test flashing and basic test execution:
conductor --imageurl=http://192.168.1.1/image.tar.gz
The conductor flasher the image to the device and executes all available test packages.
To list all supported options:
conductor --help
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.
ots_trigger is tool for triggering a testrun to OTS server.
Before you can trigger a testrun, you need to have all following:
And one of the following options:
Okey, now we are ready to get dirty.
If we have test package(s) installed into the device and we want to execute all of them:
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
Let me explain the parameters.
That was simple. Next you want to execute only one package, no problem, just define test package name to ots_trigger:
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
In to the testpackages option, you can define multiple packages like this:
--testpackages=my-test-package1-tests,my-test-package2-tests
If you want to add more people to receive email after the execution is done, just add more email addresses to --email option:
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
If you have test package installed to your ots-worker machine, that can be executed with --hostpackages:
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
For optimizing the execution time, see distribution models section below.
To list all supported options:
ots_trigger --help