Web TCT Tester User Guide: Version 1.0, For Tizen 3.0
Web TCT Tester User Guide: Version 1.0, For Tizen 3.0
Web TCT Tester User Guide: Version 1.0, For Tizen 3.0
Copyright © 2016 Intel Corporation and Samsung Electronics Co., Ltd. No portions of this document
may be reproduced without the written permission of Intel Corporation.
Any software source code reprinted in this document is furnished under a software license and may only
be used or copied in accordance with the terms of that license.
Web TCT User Guide-v1.0
Contents
1 Introduction........................................................................................................................................... 3
1.1 What is Web TCT? .................................................................................................................... 3
1.2 How does Web TCT Work?....................................................................................................... 3
2 Test Environment Setup ........................................................................................................................ 4
2.1 Symbols and Abbreviations ...................................................................................................... 4
2.2 Hardware Requirements ............................................................................................................ 4
2.3 Software Requirements ............................................................................................................. 4
2.4 The Installation Procedure ........................................................................................................ 5
2.5 Installation Web TCT Test Tool ................................................................................................ 6
2.6 Installation Web TCT Behavior Test Tool ................................................................................. 6
3 How to Execute TCT ............................................................................................................................ 7
3.1 Using Web TCT Manager ......................................................................................................... 7
3.2 Using Web TCT Shell ............................................................................................................. 15
3.3 Using the Web TCT Behavior Test Tool ................................................................................. 17
A Appendix............................................................................................................................................. 19
Web TCT User Guide-v1.0
1 Introduction
This document provides comprehensive information about Web TCT Test Set, including the
following: Overview, Installation and Usage, Troubleshooting and Known Issue etc.
a. Web TCT Manager is a java GUI tool that runs on the host machine, allow users to
create a test execution plan, trigger the test execution, and view the test report. By
supporting both automated and manual web API testing, Web TCT Manager makes it
much easier for users to conduct TCT tests and enter hardware capability information.
b. Web TCT Behavior Test Tool is a device behavior checker from a user perspective. It
can be manually launched and operated by clicking the corresponding thumbnail icon on
target devices.
c. Web TCT Shell is a lightweight console tool that runs on the host machine, allowing
users to debug single failed case, or trigger TCT testing with an existing test plan by
specifying a test suite list or test case ID. Test suites are executed on target devices under
the management of Testkit-lite.
d. Testkit-lite is a back-end test runner that communicates with Testkit-stub through the
Smart Development Bridge (SDB).
# (in shell command) – In long commands, the backslash character ensures that
newline character is ignored (if you join consecutive lines, please remove unnecessary
backslashes)
b. Tizen device that will work as target on which TCs will be executed
First find the library ‘libudev’ installation location using command:~$ cd /lib/
d. The device need enable ‘USB debugging’ in setting. If you already have SDB installed
on your host machine, you can check the device connected with sdb command:
$ sdb devices
The key packages of Web TCT on Host: Web TCT Manager, Web TCT Shell, Testkit-lite.
$ cd /path/to/<TCT_pkg_folder>/<TCT_pkg_folder>/tools
$ python ./tct-config-host.py -h
$ python ./tct-config-device.py -h
a. Deployment on Host
$ cd /path/to/<TCT_pkg_folder>
$ sudo python ./tct-setup.py
b. Deployment on Device
$ cd /opt/tct/tizen_web_3.0/scripts
$ python ./tct-config-device.py
a. On Windows Host
$ cd <path_to>\<TCT_pkg_folder>\<TCT_pkg_folder>\tools
$ c:\Python27\python.exe tct-config-device.py --bhtest wearable
b. On Ubuntu Host
$ cd /path/to/<TCT_pkg_folder>/<TCT_pkg_folder>/tools
$ python ./tct-config-device.py --bhtest wearable
Web TCT User Guide-v1.0
On Ubuntu Host:
$ tct-mgr
When the below screen is shown, Web TCT Manager is launched successfully as shown in
Figure 3-1.
Step1 Select Tizen Ver & Profile Step3 Select Execution Type
A dialog will pop-up to guide to save a new plan as shown in Figure 3-3, configure the
device, and start to run the test.
Select the item “Create a new plan” and click OK button to save a new test plan as shown in
Figure 3-4
After entering the new plan name, click OK button. The Plan UI will switch to Execution UI,
and run selected test plan as shown in Figure 3-5.
Select a plan, the packages in the plan will be selected. As shown in Figure 3-6
Click the Suspend button in Execute UI to stop executing the test plan. After stopping a test
plan, click icon of Reports UI to resume test.
To view all reports list in reports UI, click one item to view summary information. Click
functional icons can easily export results or re-execute known failures for any test plan. As
shown in Figure 3-9
c. Click icon of to resume the test plan if the status of test plan is stopped.
d. Select one or multiple test reports in reports UI, then click Remove button, the selected
items will be removed after user confirming.
To view summary of the report, click on the Test Time entry, as shown in Figure 3-10
Click on the suite name in the Test Summary by Suite table to see details as shown in Figure
3-11
Choose one of the following to customize the report view, referring to Figure 6-5
$ cd /opt/tct/tizen_web_3.0/
$ tct-shell --help
$ ./tct-plan-generator -o <somewhere>/testplan.xml
Include the suites in the special repository where the name matches a specific regular
expression
Include the suites in the special repository where the name matches a specific regular
expression, and exclude any file where the name matches another regular expression
$tct-shell --plan-list
$tct-shell --testplan ‘<somewhere/testplan.xml>’ --tizen-version tizen_web_3.0
$ tct-shell --device-list
$ tct-shell --testplan ‘<somewhere>/testplan.xml’ --deviceid <device-id> --tizen-version
tizen_web_3.0
Note: Upon test completion, Web TCT Shell automatically launches Firefox to display the
test summary.
To get dlog information when debugging one case, following steps should be run beforehand:
Web TCT Behavior Test Tool is a device behavior checker that uses jQuery. It is a major
component of the Tizen Compliance Tests (TCT) tool set.
a. A list of behaviors you can test, with information about test cases
b. Test cases for checking and evaluating the behavior of a device
c. Automatically generated test reports you can view and save for further analysis
The footer bar has buttons for working with the test results:
a. Export: Save the test result XML file to the Tizen file system. This is default full path
that includes both location and file name: /opt/home/owner/content/Document/tct-
behavior-result/tct-behavior-tests_<timestamp>.result.xml.
b. Reset: Reset the test results.
c. Exit: Quit.
Click the Info button to view the test case description, and perform the test according to it.
Check the playback quality of the video clip, and then click Pass or Fail button based on the
output quality.
You can view the summary information, including the case title and result by open the xml
with browser.
Web TCT User Guide-v1.0
A Appendix
a. Known Issues
Symptom: All automated testing fails and an error message says: “fail to connect with test
service.”
Solution: After changing to use another target device, need to rerun tct-config-device.sh on
host side to set up the test environment of the new target device.
Symptom: When rerunning failed cases, the UIFW package will not be tested even there is
failed cases in UIFW.
Solution: Rerunning UIFW failed case is not supported yet.
b. Troubleshooting
Q: On target device, power consumption is faster than power charging through a USB cable.
What should I do to make sure the full TCT test can be executed on my device?
A: Use target device with a power supply
Q: Some web test packages failed to be installed on the target device. What should I do?
A: It might be because the certification for these packages did not pass. Set the target device’s
time and date to the current date to avoid this issue.
c. Web TCT Shell Options
Mandatory options
Option Description
Optional options
Option Description
--output=resultfile Specify the output file for the result XML output. If more than
one test xml file is provided, results will be merged into this
output file.
--version Show version information.
--all-suites Show all available test-suites in the local repository ‘opt/tct/’
--deviceid Set sdb device serial information.
--plan-list List all existed plans in the plan folder. The plan folder is
defined in the configuration file named CONFIG, and its path
is:/opt/tct/shell/CONFIG.
--result-list List all history results in the result folder. and its path
is:/opt/tct/tizen_web_3.0/shell/ result/
--device-list List all connected devices. Just same with ‘sdb devices’
--all Both manual and auto test cases will be executed, without this
option, only auto testcase will be executed.
--manual Only manual test cases will be executed.
--id Specify to run a test case by id.
--distribute Specify the testplan.xml for distributing a plan to multiple
devices
--dbutedevid Set sdb device serial information for distribute mode.
--stub-port Specify a port number. Network port used by the testkit-stub
--log/-l Set log level. Logs that are less severe than the level will be
ignored. Log levels (in descending severity order): [CRITICAL,
ERROR, WARNING, NOTEST, INFO, DEBUG]
-h, --help Show this help message and exit.