[comman][widget02][fix NA isuue of all cases] 60/262460/1
authortangkaiyuan <kaiyuan.tang@samsung.com>
Tue, 10 Aug 2021 23:35:20 +0000 (07:35 +0800)
committertangkaiyuan <kaiyuan.tang@samsung.com>
Tue, 10 Aug 2021 23:35:35 +0000 (07:35 +0800)
Change-Id: Id2187cabfbd82a0063782c2530f38020743a32c3
Signed-off-by: tangkaiyuan <kaiyuan.tang@samsung.com>
common/tct-widget02-w3c-tests/inst.wgt.py
common/tct-widget02-w3c-tests/tests.full.xml
common/tct-widget02-w3c-tests/tests.xml

index 31bd49daf1cf07d1034d4ddecdae69a9e93129bf..74f11ceac5b59fa0b347fcc8b4fbd07317992811 100755 (executable)
@@ -147,17 +147,17 @@ def instPKGs():
         if root.endswith("mediasrc"):
             continue
 
-#        for file in files:
-#            if file.endswith("%s.wgt" % PKG_NAME):
-#                if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
-#                    action_status = False
-#                (return_code, output) = doRemoteCMD(
-#                    "pkgcmd %s -i -t wgt -q -p %s/%s" % (GLOVAL_OPT, SRC_DIR, file))
-#                doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, file))
-#                for line in output:
-#                    if "Failure" in line:
-#                        action_status = False
-#                        break
+        for file in files:
+            if file.endswith("%s.wgt" % PKG_NAME):
+                if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
+                    action_status = False
+                (return_code, output) = doRemoteCMD(
+                    "pkgcmd %s -i -t wgt -q -p %s/%s" % (GLOVAL_OPT, SRC_DIR, file))
+                doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, file))
+                for line in output:
+                    if "Failure" in line:
+                        action_status = False
+                        break
 
     # Do some special copy/delete... steps
     '''
index 01f106cf5192595e2e5f596f8469c13394632230..b661a49cc9322f6429b714ca2e9f60ca8d7b26aa 100755 (executable)
         </specs>
       </testcase>
     </set>
-    <set name="WidgetPackaging_mobile" type="script">
+    <set name="WidgetPackaging_mobile" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
       </capabilities>
         </specs>
       </testcase>
     </set>
-    <set name="WidgetPackaging_wearable" type="script">
+    <set name="WidgetPackaging_wearable" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
       </capabilities>
         </specs>
       </testcase>
     </set>
-    <set name="WidgetPackaging_tv" type="script">
+    <set name="WidgetPackaging_tv" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>TV</value></capability>
       </capabilities>
         </specs>
       </testcase>
     </set>
-    <set name="WidgetPackaging_iot" type="script">
+    <set name="WidgetPackaging_iot" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile">
           <value>COMMON</value>
index edb0332c7df88c8e0b4e948cf90854952c888930..53ae809bb4f3dbf1026027f3578f21fafef0e637 100755 (executable)
@@ -2,7 +2,7 @@
 <?xml-stylesheet type="text/xsl" href="./testcase.xsl"?>
 <test_definition>
   <suite category="W3C/HTML5 APIs" name="tct-widget02-w3c-tests">
-    <set name="WidgetPackaging" type="script">
+    <set name="WidgetPackaging" type="js">
       <testcase component="W3C_HTML5 APIs/Widget/Widget Packaging and XML Configuration" execution_type="auto" id="WAC_PAKCONF_011" priority="P3" purpose="Test widget installation for the path include \ in the opposite direction.">
         <description>
           <test_script_entry timeout="90">{DEVICE_EXECUTION_MODE_30}_user@{DEVICE_SUITE_TARGET_30}/tct/opt/tct-widget02-w3c-tests/scripts/w3c_widget_launch.sh WAC_PAKCONF_011.wgt</test_script_entry>
         </description>
       </testcase>
     </set>
-    <set name="WidgetPackaging_mobile" type="script">
+    <set name="WidgetPackaging_mobile" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
       </capabilities>
         </description>
       </testcase>
     </set>
-    <set name="WidgetPackaging_wearable" type="script">
+    <set name="WidgetPackaging_wearable" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
       </capabilities>
         </description>
       </testcase>
     </set>
-    <!--set name="WidgetPackaging_tv" type="script">
+    <!--set name="WidgetPackaging_tv" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>TV</value></capability>
       </capabilities>
         </description>
       </testcase>
     </set-->
-    <set name="WidgetPackaging_iot" type="script">
+    <set name="WidgetPackaging_iot" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile">
           <value>COMMON</value>