Guide for Artik530 710 with Tizen 4.0/TCT test

From Tizen Wiki
Jump to: navigation, search

Overview

Tizen Compliance Tests (TCT) verify conformance to the Tizen Compliance Specification (TCS). These tests are intended to be used by Tizen device implementers to enable the Tizen-compliant development environment for Tizen application developers. Tizen Compliance Tests consist of Web TCT and Native TCT, which include test suites and tools for testing on the Tizen web stack and the native stack, respectively.

refer to the this site

Environment

install TCT program

TCT Stack TCT program name
Native NativeTCT_4.0_20171120_arm.tar.gz
Web csharp-tct_4.0_20171204.tar.gz

Just make a folder and decompress TCT program.

Initialize

Before running the TCT test, the initial environment for testing each function must be set first on Artik/RaspBerry board. And execute sdb enable command as the following because it is used for TCT test remotely, with write permission.

mount -o remount,rw /
direct_set_debug.sh –sdb-set

Check model-config.xml file in /etc/config on ARTIK board as the following. the boolean of armv7 must be "true" and set the test function to "true".

# cat /etc/config/model-config.xml
...
<key name="tizen.org/feature/platform.core.cpu.arch" type="string">armv7</key>
<key name="tizen.org/feature/platform.core.cpu.arch.armv6" type="bool">false</key>
<key name="tizen.org/feature/platform.core.cpu.arch.armv7" type="bool">true</key>
<key name="tizen.org/feature/platform.core.cpu.arch.armv8" type="bool">false</key>
...

Skip this stage if there are no modifications, or run the commands in the following list to apply modified model-config.xml

rm /etc/system_info_db
system_info_init_db 
chsmack -a "_" /etc/system_info_db
sync
reboot

TCT Test

Move to the folder installed Native TCT program or Csharp TCT in host PC, run as the following;

HOST$ sudo python tct-setup.py clean
clean option is given
HOST$ sudo python tct-setup.py

In case of Native TCT

HOST$ python /opt/tct/tizen_native_4.0/scripts/tct-config-device.py

In case of Csharp TCT

HOST$ python /opt/tct/tizen_csharp_4.0/scripts/tct-config-device.py

and run TCT manager

HOST$ tct-mgr

Select "mobile" in profile menu, check the test function required and click 'run' button, then start testing. Some of examples between target functions and test items in Tizen 4.0 is refer to the below table.

Framework TCT Native TCT C#
Sensor tct-sensor-native-utc
tct-sensor-native-itc
Tizen.Sensor.Tests
Location tct-location-manager-native-itc
tct-location-manager-native-utc
Tizen.Location.Tests
Multimedia
Audio FW
Media Player
Camera
tct-sound-manager-native-itc
tct-sound-manager-native-utc
tct-audio-io-native-utc
tct-audio-io-native-utc
tct-player-native-itc
tct-player-native-utc
tct-camera-native-itc
tct-camera-native-utc
Bluetooth tct-bluetooth-native-utc
tct-bluetooth-native-itc
Wlan
WiFi
WiFi-Direct
tct-wifi-manager-native-utc
tct-wifi-manager-native-itc
tct-wifi-direct-native-utc
tct-wifi-direct-native-itc
tct-wifi-direct-native-ctc
Tizen.Network.Tests
Tizen.WiFidirect.Tests
System tct-device-native-ctc
tct-device-native-itc
tct-device-native-utc
tct-dlog-native-itc
tct-dlog-native-utc
Tizen.Device.Tests
Tizen.System.Tests

TCT Test Results

After finish testing, you can check the result included log message how many items is pass or not. The report of TCT results is saved on following directory in host PC.

TCT-Native results : /opt/tct/tizen_native_4.0/manager/result/
TCT-CSharp results : /opt/tct/tizen_csharp_4.0/manager/result/