----------------------------------------------
License
----------------------------------------------
Copyright (c) 2012 Intel Corporation.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of works must retain the original copyright notice, this list
  of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the original copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.
* Neither the name of Intel Corporation nor the names of its contributors
  may be used to endorse or promote products derived from this work without
  specific prior written permission.

THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Authors:
        Yue, Jianhui <jianhuix.a.yue@intel.com>


----------------------------------------------
Introduction
----------------------------------------------
This test suite is for WRT functional stability testing.


----------------------------------------------
Test Environment
----------------------------------------------
  1. Run the cases as "root" user.
  2. Construct a widget which contains a file that the size is larger than half memory and rename the widget as "test-half-memory.wgt".
     [1]. Open the folder "test-half-memory" (suppose you only have the rpm package, unzip the rpm and find the test-half-memory.wgt, unzip the wgt as "test-half-memory").
     [2]. Push a file(larger than half memory) into the folder and rename the file as "zipzip.png".
     [3]. Access to "test-half-memory" folder, use the command :"zip -rq ../test-half-memory.wgt *" to create test-half-memory.wgt.
     [4]. Push test-half-memory.wgt into device(/opt/tct-stab-wrt-tests/).
----------------------------------------------


Installation
----------------------------------------------
./autogen
./configure prefix=/usr
make && make install


----------------------------------------------
Build and Run
----------------------------------------------
(Suppose you only get the source code which has been set up on your test device.
 If you have obtained tct-appwgt-wrt-tests RPM packages, you can go directly  to step 3 on the test device)

Steps:
    1. Prepare for building:
       cd tct-stab-wrt-tests
    2. Build RPM packages:
       ./pack.sh -t all
    3. Install RPM on the test device:
       rpm -ivh tct-stab-wrt-tests-<version>-<release>.<arch>.rpm
    4. Prepare to install widget application on the device:
       cd /opt/tct-stab-wrt-tests/
    5. Install WGT on the test device:
       pkgcmd -i -t wgt -q -p **.wgt
    6. Download and push the required resource files into device.
       1) image
          [1]. Download 2304x1296 PNG image to local device such as "c:/".
          [2]. Rename the downloaded image as "test.png"
          [3]. Push the image into device with command "sdb push c:/test.png /opt/media/Images/"
       2) music
          [1]. Download mp3 file to local device such as "c:/".
          [2]. Rename the downloaded file as "test.mp3"
          [3]. Push the image into device with command "sdb push c:/test.mp3 /opt/media/Videos/"
       3) video
          [1]. Download mp4 file to local device such as "c:/".
          [2]. Rename the downloaded file as "test.mp4"
          [3]. Push the image into device with command "sdb push c:/test.mp4 /opt/media/Videos/"
    7. Check the widget info when the widget has been installed:
       wrt-launcher -l
    8. Launch the widget:
       wrt-launcher -s <Application id>
    9. Uninstall WGT from the test device:
       pkgcmd -u -q -t wgt -n <application id>


----------------------------------------------
Known Issues
----------------------------------------------
    1. Chromium browser does not support the widget framework.
    2. The icons which are used in the test cases are contained in the associated widget package.

Note: If there is any defects in this test suite, please do not hesitate to contact us by the email jianhuix.a.yue@intel.com


----------------------------------------------
Todo
----------------------------------------------


