NATIVE TCT User manual

Native TCT User Guide-v1.0
Native TCT Tester User Guide
Version 1.0, for Tizen 6.0
Copyright © 2015 Intel Corporation and Samsung Electronics Co., Ltd. All rights reserved. No portions
of this document may be reproduced without the written permission of Intel Corporation.
Intel is a trademark of Intel Corporation in the U.S. and/or other countries.
Linux is a registered trademark of Linus Torvalds.
Tizen® is a registered trademark of The Linux Foundation.
ARM is a registered trademark of ARM Holdings Plc.
*Other names and brands may be claimed as the property of others.
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.

Native TCT User Guide-v1.0
Contents
1Introduction........................................................................................................................................... 4
1.1 What is Native TCT? .............................................................................................................5
1.2 How does Native TCT Work?................................................................................................5
2Test Environment Setup........................................................................................................................5
2.1 Symbols and Abbreviations ................................................................................................... 5
2.2 Hardware Requirements.........................................................................................................6
2.3 Software Requirements..........................................................................................................6
2.4 Getting TCT-binary and TCT-manager .................................................................................7
2.4.1 Download TCT Binary...........................................................................................................7
2.4.2 Folder Structure .....................................................................................................................7
2.4.3 For Host Configuration..........................................................................................................8
2.4.4 For Device Configuration ...................................................................................................... 9
2.5 TBT........................................................................................................................................9
2.5.1 Installing the TBT Package.................................................................................................... 9
2.5.2 Application Status Report....................................................................................................10
2.6 EFL ......................................................................................................................................10
2.6.1 Get EFL Binary from Download Site ..................................................................................10
2.6.2 Push EFL UTC Package into Tizen Device ......................................................................... 11
2.6.3 Login to Tizen Device via SDB and Install EFL UTC Package .......................................... 11
3How to Execute TCT .......................................................................................................................... 12
3.1 Execute TCT Test Suites:.....................................................................................................12
3.1.1 Using Native TCT-Manager ................................................................................................12
4TBT Execution Steps ..........................................................................................................................26
4.1 TBT......................................................................................................................................26
4.1.1 Installing the TBT Package on device .................................................................................26
4.1.2 Application Status Report....................................................................................................27
4.2 Execute/Test TBT: ...............................................................................................................27
4.2.1 Testing the Mobile Device ...................................................................................................27
4.2.1.1. Camera..................................................................................................................27
4.2.1.2. Sound....................................................................................................................29
4.2.1.3. GPS.......................................................................................................................30
4.2.1.4. Bluetooth LE ........................................................................................................31
4.2.1.5. Bluetooth ..............................................................................................................33
4.2.1.6. Bluetooth Error Callbacks ....................................................................................43
4.2.1.7. Wi-Fi Activation...................................................................................................47
4.2.1.8. NFC ......................................................................................................................47
4.2.1.9. Display Test..........................................................................................................49
4.2.1.10. Graphics................................................................................................................49

Native TCT User Guide-v1.0
4.2.1.11. Testing the Input Device.......................................................................................49
4.2.1.12. Multimedia Features............................................................................................. 50
4.2.1.13. Image View...........................................................................................................51
4.2.1.14. Data Control .........................................................................................................51
4.2.1.15. Application Controls ............................................................................................55
4.2.1.16. The Pick Operation...............................................................................................57
4.2.1.17. Sensors..................................................................................................................60
4.2.1.18. Platform Resources............................................................................................... 64
4.2.1.19. EFL / Event........................................................................................................... 69
4.2.1.20. IME.......................................................................................................................71
4.2.1.21. The Widget ...........................................................................................................74
4.2.1.22. Shortcut ................................................................................................................74
4.2.1.23. OAuth 2.0 .............................................................................................................75
4.2.1.24. Push Service .........................................................................................................76
4.2.1.25. Runtime Info.........................................................................................................77
4.2.1.26. Attach Panel [Need to be tested in Mobile only not on FHub] ............................79
4.2.1.27. Hardware/Software Feature Summary .................................................................80
4.2.1.28. Testing MTP [Need to be tested in Mobile only not on FHub] ............................80
4.2.1.29. NSD......................................................................................................................81
4.2.1.30. SD-Card Status.....................................................................................................83
4.2.1.31. Radio ....................................................................................................................84
4.2.1.32. Sound Manager.....................................................................................................84
4.2.1.33. Media Key ............................................................................................................85
4.2.1.34. Package Manager..................................................................................................86
4.2.1.35. Notification...........................................................................................................86
4.2.1.36. Connection............................................................................................................88
4.2.1.37. System Settings ....................................................................................................89
4.2.1.38. Contacts................................................................................................................90
4.2.1.39. TTS/STT...............................................................................................................91
4.2.1.40. IoT ........................................................................................................................93
4.2.1.41. DALi.....................................................................................................................95
4.2.1.42. Multiclass Widget...............................................................................................108
4.2.1.43. Auto fill Service .................................................................................................109
4.2.2 Testing the Wearable Device..............................................................................................109
4.2.2.1 Camera...............................................................................................................................109
4.2.2.2 Sound ................................................................................................................................. 111
4.2.2.3 GPS .................................................................................................................................... 112
4.2.2.4 Bluetooth............................................................................................................................ 112
4.2.2.5 Bluetooth LE......................................................................................................................120
4.2.2.6 Bluetooth Error Callbacks..................................................................................................121
4.2.2.7 Wi-Fi Activation ................................................................................................................125

Native TCT User Guide-v1.0
4.2.2.8 NFC....................................................................................................................................125
4.2.2.9 SmartCard ..........................................................................................................................128
4.2.2.10 Display................................................................................................................128
4.2.2.11 Graphics..............................................................................................................128
4.2.2.12 Input Device .......................................................................................................129
4.2.2.13 Multimedia .........................................................................................................129
4.2.2.14 Image View.........................................................................................................130
4.2.2.15 Data Control .......................................................................................................130
4.2.2.16 Application Controls Operation View ................................................................133
4.2.2.17 Sensors................................................................................................................138
4.2.2.18 UI Animations ....................................................................................................141
4.2.2.19 Testing UI Components ......................................................................................142
4.2.2.20 EFL / Event......................................................................................................... 144
4.2.2.21 IME.....................................................................................................................146
4.2.2.22 Widget ................................................................................................................149
4.2.2.23 Push Service .......................................................................................................150
4.2.2.24 Runtime Info.......................................................................................................150
4.2.2.25 Hardware/Software Feature................................................................................ 152
4.2.2.26 NSD....................................................................................................................153
4.2.2.27 SD-Card Status [Not supported in wearable] .....................................................155
4.2.2.28 Radio ..................................................................................................................155
4.2.2.29 Sound Manager [Not supported in wearable]....................................................155
4.2.2.30 Media Key [Not supported in wearable] ............................................................156
4.2.2.31 Package Manager................................................................................................ 157
4.2.2.32 Connection [ Not supported in wearable]...........................................................157
4.2.2.33 System Settings ..................................................................................................158
4.2.2.34 Contacts [ Not supported in wearable] ...............................................................159
4.2.2.35 TTS/STT.............................................................................................................160
4.2.2.36 Auto fill Service .................................................................................................161
4.3 Execute/Test EFL:..............................................................................................................161
4.3.1 Run EFL UTC....................................................................................................................161
4.3.2 View Result Summary ....................................................................................................... 162
5Appendix........................................................................................................................................... 162
1Introduction
This document provides comprehensive information about Native TCT Manager, including
an Overview, Test Environment setup, Installation Instructions, Operating Instructions, and
Concluding Routines etc.

Native TCT User Guide-v1.0
1.1 What is Native TCT?
TCT is short for the Tizen Compliance Tests, which validates platform compatibility for
Tizen. Native TCT consists of Native TCT Manager (UI tool), Native TCT Shell (console
tool), Testkit-lite (backend test runner), and Native TCT Behavior Test Tool (device behavior
checker).
1.2 How does Native TCT Work?
Native TCT has four main components:
a. Native 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 automated API testing, Native TCT Manager makes it much easier for users to
conduct TCT tests and enter hardware capability information.
b. Native 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.
c. Native 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.
d. Testkit-lite is a back-end test runner that communicates with Testkit-stub through the
Smart Development Bridge (SDB).
Figure 1-1: Native TCT Workflow
2Test Environment Setup
2.1 Symbols and Abbreviations
TC - Test Case

Native TCT User Guide-v1.0
TCT - Tizen Compliance Test
SDB - Smart Development Bridge
<name> - Mandatory argument
[name] - Optional argument
$ (in shell command) - Indicates the beginning of a command
# (in shell command) - In long commands, the backslash character ensures that
newline character is ignored (if you join consecutive lines, please remove unnecessary
backslashes)
2.2 Hardware Requirements
a. PC or Laptop that will work as host on which TCT-Manager will be installed
b. Tizen device that will work as target on which TCs will be executed
c. USB Cable for connecting device to host
2.3 Software Requirements
a. Install 32 or 64 bit Ubuntu OS.
b. Install JDK 1.6 or newer version on Linux PC.
c. Install Tizen 6.0 SDK on Linux PC for SDB connection.
d. These packages should be installed before installing TCT-Manager
$ sudo apt-get install rpm2cpio
$ sudo apt-get install tree
$ sudo apt-get install python-pip
$ sudo apt-get install python-support
$ sudo apt-get install python-requests
$ sudo apt-get install python-setuptools
e. libudev1 or libudev-dev package should be installed for SDB.
First find the library ‘libudev’ installation location using command:~$ cd /lib/
$ find . –type f – name "libudev*"

Native TCT User Guide-v1.0
Figure 2-1: Getting location of libudev
If the package is not properly linked, use the following command:
$ sudo ln –s /lib/<installation-folder>/libudev.so.<version> /lib/<installation-
folder>/libudev.so.0
e.g. $ sudo ln –s /lib/i386-linux-gnu/libudev.so.0.13.0 /lib/i386-linux-gnu/libudev.so.0
2.4 Getting TCT-binary and TCT-manager
2.4.1 Download TCT Binary
Download TCT binary from site:
http://165.213.149.200/download/tct/tizen_6.0/NativeTCT/Auto_Binary/NativeTCT_6.0_XX
.zip
$ unzip NativeTCT_6.0_XX.zip
$ cd NativeTCT_6.0-XX/
Native TCT packages are already built and inside in NativeTCT_6.0/TCT/native-tct
/package/mobile and native-tct/package/wearable folder. You can find zip files in there.
2.4.2 Folder Structure
You will find the folder structure like below:

Native TCT User Guide-v1.0
Figure 2-2: TCT-Manager folder structure
The following table describes the folders contents.
Folder
Description
package
All the packages to be tested in device
tools
Contains tct tools and testkitlite etc.
scripts
Installation scripts to install host
Table 2-1: TCT-Manager folders
2.4.3 For Host Configuration
a. Set environment on your host
$ sudo python ~/NativeTCT_6.0_XX/tct-setup.py
Figure 2-3: Host Installation

Native TCT User Guide-v1.0
2.4.4 For Device Configuration
a. Connect the target device to host (PC) through USB.
b. Remount system as read-write.
$ sdb root on
c. Set environment on your target
$ sudo python /opt/tct/tizen_native_6.0/scripts/tct-config-device.py
Figure 2-4: Device Installation
Note: We recommend to use --purge option (like clean) for getting fresh execution
environment. If you face any problems, you should do as root.
2.5 TBT
2.5.1 Installing the TBT Package
Install the TBT package by following steps:
a) Download binary from the below link :
http://165.213.149.200/download/tct/tizen_6.0/NativeTCT/Auto_Binary/NativeTCT_6.0_XX
.zip
b) Firstly uninstall tbtcoreapp from the device if already installed.
c) Execute install.sh.

Native TCT User Guide-v1.0
$ unzip NativeTCT_6.0_XX.zip
$ cd NativeTCT_6.0_XX/NativeTCT_6.0/TBT/
$ chmod +x install.sh
$ ./install.sh
d) After running the script, TBT will be launched.
e) Test case list will appear in welcome screen.
f) If the required feature for the respective test case is not available in the device, then a
message will be shown, while executing the test cases.
Mobile
Figure 2-5: TBT Application
2.5.2 Application Status Report
The status (Pass, Fail, Not-Tested or Feature-Not-Supported) of all the test cases are stored in
an XML file. The name of the file is tbt-report.xml. It is generated in the Others folder of the
storage directory of the system.
By default, if manufacturer doesn’t change the path, it should be located
in/opt/home/owner/content/Others/tbt-report.xml. You can get report with:
$ sdb pull /opt/home/owner/content/Others/tbt-report.xml
2.6 EFL
2.6.1 Get EFL Binary from Download Site
http://165.213.149.200/download/tct/tizen_6.0/NativeTCT/Auto_Binary/NativeTCT_6.0_XX
.zip
Table of contents

















