-
Notifications
You must be signed in to change notification settings - Fork 15
Testkit lite
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.
Tinyweb is deployed on Host PC for testing Windows device. For other device testing, Tinyweb is deployed on device.
Release Repo:
https://github.com/testkit/testkit-stub/releases
https://github.com/testkit/testkit-lite/releases
https://github.com/testkit/tinyweb/releases
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
Connect Target Device to Host with USB line. ...
- 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
- 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
Testkit-stub is an necessary test resource which works as a test stub during testing on target device.
- 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
- 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.
Copy the binary of testkit-stub into the same folder with “pthreadGC2.dll”.
For deploying “pthreadGC2.dll”
- Dowload the release package of “pthread-w32” from https://www.sourceware.org/pthreads-win32/
- extract the release package, the dll is in <PTHREAD-W32_HOME>\Pre-built.2/dll\x86\pthreadGC2.dll
- Download the jar from https://code.google.com/p/tcpmon/
- Testkit-lite User Guide (for end user):testkit-lite_user_guide.pdf
- Testkit-lite Tutorial (for test case developer): testkit-lite_tutorial.pdf