The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)
Quality/ExecuteTests
Line 3: | Line 3: | ||
This HowTo describes how to execute test cases or test plans in a target device. In this HowTo we use Mer SDK as a host and Nemo virtual machine as a target, but this guide applies for all other devices too. | This HowTo describes how to execute test cases or test plans in a target device. In this HowTo we use Mer SDK as a host and Nemo virtual machine as a target, but this guide applies for all other devices too. | ||
− | = | + | = Preparation = |
+ | |||
+ | == SDK == | ||
Add test exeuction tools repository | Add test exeuction tools repository | ||
− | sudo zypper ar http://repo. | + | sudo zypper ar http://repo.pub.meego.com/Mer:/Tools/Mer_Core_i586/ mer-tools |
Install execution tools | Install execution tools | ||
Line 12: | Line 14: | ||
sudo zypper in testrunner-lite eat-host | sudo zypper in testrunner-lite eat-host | ||
− | = | + | Add SSH host to your system |
+ | eat-install-host-key | ||
+ | |||
+ | == Target image == | ||
+ | |||
+ | Get Nemo virtual image ks file from http://repository.maemo.org/meego/Nemo/ (i586-vm) | ||
+ | |||
+ | Add new repo: | ||
+ | repo --name=mer-tools --baseurl=http://repo.pub.meego.com/Mer:/Tools/Mer_Core_i586/ --save | ||
+ | |||
+ | Add eat-device to the %packages section: | ||
+ | eat-device | ||
+ | |||
+ | Add SSH device keys for root and user | ||
+ | su -c 'eat-add-device-key' | ||
+ | su nemo -c 'eat-add-device-key' | ||
+ | |||
+ | Add needed tests to the image, look from [[Quality/Test_coverage | here]] | ||
+ | |||
+ | Create raw image for KVM: | ||
+ | sudo mic create raw --record-pkgs=name --pkgmgr=yum --arch=i586 <ks file> | ||
+ | |||
+ | == KVM == | ||
− | + | Install KVM to your real host, not to the SDK but the host host! | |
+ | For Ubuntu | ||
+ | sudo apt-get install qemu-kvm kvm-pxe | ||
= Tests = | = Tests = |
Revision as of 10:55, 26 July 2012
Contents |
Description
This HowTo describes how to execute test cases or test plans in a target device. In this HowTo we use Mer SDK as a host and Nemo virtual machine as a target, but this guide applies for all other devices too.
Preparation
SDK
Add test exeuction tools repository
sudo zypper ar http://repo.pub.meego.com/Mer:/Tools/Mer_Core_i586/ mer-tools
Install execution tools
sudo zypper ref sudo zypper in testrunner-lite eat-host
Add SSH host to your system
eat-install-host-key
Target image
Get Nemo virtual image ks file from http://repository.maemo.org/meego/Nemo/ (i586-vm)
Add new repo:
repo --name=mer-tools --baseurl=http://repo.pub.meego.com/Mer:/Tools/Mer_Core_i586/ --save
Add eat-device to the %packages section:
eat-device
Add SSH device keys for root and user
su -c 'eat-add-device-key' su nemo -c 'eat-add-device-key'
Add needed tests to the image, look from here
Create raw image for KVM:
sudo mic create raw --record-pkgs=name --pkgmgr=yum --arch=i586 <ks file>
KVM
Install KVM to your real host, not to the SDK but the host host!
For Ubuntu
sudo apt-get install qemu-kvm kvm-pxe
Tests
Test plans
- Quality/Test_coverage will have test plans and settings for plans.
Basic Layer tests (BLTS)
https://meego.gitorious.org/meego-quality-assurance/mcts/trees/master/mcts-blts
Install some tests
sudo zypper in blts-bluetooth-tests
Execute tests from the command line
sudo blts-bluetooth -e 1
Execute tests with testrunner-lite
sudo testrunner-lite -f /usr/share/blts-bluetooth-tests/tests.xml -o /tmp/results.xml -v
Middleware tests (MWTS)
https://meego.gitorious.org/meego-quality-assurance/mcts/trees/master/mcts-mwts
Install some tests
sudo zypper in mwts-filesystem-generic-all
Execute tests with testrunner-lite:
testrunner-lite -f /usr/share/mwts-filesystem-generic-tests/tests.xml -o /tmp/result.xml -v
Execute tests with min console UI:
min
Execute tests with min console:
min -c -r "TMP"
See detailed results:
cat /var/log/tests/*.result
Others
https://meego.gitorious.org/meego-quality-assurance/mcts/trees/master/