----------------------------------------------
Author
----------------------------------------------
Copyright (c) 2015 Samsung Electronics Co., Ltd.

Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Authors:
        Ran Wang <ran22.wang@samsung.com>

----------------------------------------------
Introduction
----------------------------------------------
This test suite is for W3C Widget Interface specification testing:

http://www.w3.org/TR/2011/WD-widgets-apis-20110607/


----------------------------------------------
Test Environment
----------------------------------------------
1. Pre-install Testkit-Lite package on Host(ubuntu12.04 and ubuntu12.10).
   sudo apt-get install python-pip
   sudo pip install requests
   sudo dpkg -i testkit-lite-<version>.deb
2. Push "httpserver" into test machine.
   sdb root on
   sdb push httpserver /usr/bin
   sdb shell chmod +x /usr/bin/httpserver
3. Run the cases as "normal" user.


----------------------------------------------
Build and Run
----------------------------------------------
(Suppose you only got the source code set up on your test machine.
 If you have obtained tct-privilege-wrt-tests ZIP packages on the test machine, you can directly go to step 3;
 if you have not installed Testkit-Lite, you need to install the latest version.)

Steps:
1. Prepare for building by running the following command:
   cd tct-privilege-wrt-tests

2. Build ZIP package by running the following command:
   ./pack.sh

3. Unzip the package on the test machine by running the following command:
   unzip -o tct-privilege-wrt-tests-<version>.zip -d /opt/usr/media/tct

4. Install the package on the test machine by running the following command:
   /opt/usr/media/tct/opt/tct-privilege-wrt-tests/inst.sh

5. Run test cases by running the following command on host:
   testkit-lite -f device:/opt/usr/media/tct/opt/tct-privilege-wrt-tests/tests.xml -e "WRTLauncher" -o tct-privilege-wrt-tests.results.xml