Skip to content
Shaofeng Tang edited this page Mar 15, 2016 · 1 revision

Overview

Testkit-lite is a light-weight testing execution framework, composed by 5 components:

  • testkit-lite is the command line interface(CLI) of Testkit-lite. Which provides comprehensive options for web/core testing and supports cross platform. In TCT, CATS usage, it is usually invoked as a background test runner.
  • test engines is distribute engine responsible for handling various tests types.
  • com-module is a common module responsible for handling interaction with target device, such as TIZEN device, Android device or localhost workstation.
  • testkit-stub is a native process running on test target, which work as proxy between test suite and testkit-lite.
  • xDriver is a special WebDriver implementation.

Architecture

Tinyweb is deployed on Host PC for testing Windows device. For other device testing, Tinyweb is deployed on device.

Binary Packages

Release Repo:
https://github.com/testkit/testkit-stub/releases
https://github.com/testkit/testkit-lite/releases
https://github.com/testkit/tinyweb/releases

Installation

Host Preparation

Please make sure a set of basic packages have been installed: With TCT usage, you can get them prepared automatically
For Host PC (ubuntu12.04 and ubuntu12.10) Please make sure a set of basic packages have been installed:

  • python(>=2.7)
  • python-pip
  • python-requests

You can run the following commands to install needed packages:
sudo apt-get install python-pip
sudo pip install requests

Device Preparation

Connect Target Device to Host with USB line. ...

Installation on Host

Install from deb/rpm package

  • download released tar ball testkit-lite tar ball and unzip it to local folder
  • for Ubuntu OS, use deb package to install testkit-lite

sudo dpkg -i testkit-lite-<version>_all.deb

  • for TIZEN OS, use rpm pacakge to install testkit-lite

sudo rpm -ivh testkit-lite-<version>.<architecture>.rpm

Install from Source Code

  • Download latest source code

git clone ssh://<your_id>@otctools.jf.intel.com:29418/testkit-lite.git

  • Switch to "testkit-lite" directory, and execute command as below to finish the installation:

python ./setup.py build && python ./setup.py install

###Install Tinyweb on Host for Windows device web testing cd testkit-lite-<version>/web-test-utilities/tinyweb/<arch>

cp -r tinyweb /opt/home/developer/

chmod a+x /opt/home/developer/tinyweb

cp -r cgi-getcookie /opt/home/developer/

chmod a+x /opt/home/developer/cgi-getcookie

cp -r cgi-getfield /opt/home/developer/

chmod a+x /opt/home/developer/cgi-getfield

cp -r libmongoose.so /opt/home/developer/

chmod 666 /opt/home/developer/libmongoose.so

cp -r echo.so /opt/home/developer/

chmod 666 /opt/home/developer/echo.so

cp server.pem /opt/home/developer/

chmod 666 /opt/home/developer/server.pem

ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 /opt/home/developer/libssl.so

ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /opt/home/developer/libcrypto.so

Installation on Target Device

Testkit-stub is an necessary test resource which works as a test stub during testing on target device.

Install with web-TCT deployment

  • Download tar ball of web-tct, unzip it and execute tct-config-device.sh, the testkit-stub will be installed automatically

cd <web-tct-dir>/tools

./tct-config-device.sh

Install from binaries

  • testkit-stub executable binary files (armv7l, ia32, ia64) are provided in same public release repo of testkit-lite
  • choose the proper arch-version for your target, and deploy it with the command-lines below

sdb push testkit-stub-<arch> /opt/home/developer/testkit-stub

sdb shell chmod +x /opt/home/developer/testkit-stub

For several Web test suite, Tinyweb is required as a web server that runs on the device and provides possible test resources (HTTP directory, CGI, WebSocket service) for Web TCs.

Install testkit-stub on Windows device

Copy the binary of testkit-stub into the same folder with “pthreadGC2.dll”.

For deploying “pthreadGC2.dll”

Install Apache TCPMon

Testkit-lite User Guide