[Title] Added TC by web ide compliance.
authorgyeongseok.seo <gyeongseok.seo@samsung.com>
Thu, 29 Nov 2012 06:12:16 +0000 (15:12 +0900)
committergyeongseok.seo <gyeongseok.seo@samsung.com>
Thu, 29 Nov 2012 06:12:16 +0000 (15:12 +0900)
[Desc.] path command check, query command check
[Issue] #7526

Change-Id: I82ffadddbe1e108b63f9789350215029876b3487

vts/script/tc_compliance_web_ide.lua

index 8d30835..e8c1346 100644 (file)
@@ -53,6 +53,25 @@ function add_env_check_test(web_ide_suite)
     web_ide_suite:AddTest(tc_env_check);
 end
 
+-- Test - path command
+function add_app_install_path_cmd_test(web_ide_suite)
+    print (" === app install path command test === ");
+
+    -- path command
+    local path_cmd = ssdb("path command");
+    path_cmd:AddParam1("pkgcmd -a");
+    path_cmd:SetSuccessToken("Tizen Application Installation Path: /opt/usr/apps");
+
+    --make tc, and added case
+    tc_path_cmd = cmd_suite("app installation path command test");
+    tc_path_cmd:AddCmdTest(path_cmd);
+
+    tc_path_cmd:SetLevel(1);
+
+    -- add Test suite
+    web_ide_suite:AddTest(tc_path_cmd);
+end
+
 -- Test - create project
 function add_project_create_test(web_ide_suite)
     print (" === create project test === ");
@@ -180,6 +199,25 @@ function add_debug_run_test(web_ide_suite)
     web_ide_suite:AddTest(tc_debug_project);
 end
 
+-- Test - query project
+function add_query_test(web_ide_suite)
+    print (" === query project test=== " );
+
+    -- query project
+    local query = ssdb("query project");
+    query:AddParam1("wrt-launcher -l | grep GO1DlAQVYD");
+    query:SetSuccessToken("GO1DlAQVYD");
+
+    -- make tc, and added case
+    tc_query_project = cmd_suite("query webapp project");
+    tc_query_project:AddCmdTest(query);
+
+    tc_query_project:SetLevel(1);
+
+    -- add Test suite
+    web_ide_suite:AddTest(tc_query_project);
+end
+
 -- Test - uninstall project
 function add_uninstall_test(web_ide_suite)
     print (" === uninstall project test === " );
@@ -211,11 +249,13 @@ function test_compliance_web_ide(env)
 
     -- add test case
     add_env_check_test(web_ide_suite)
+    add_app_install_path_cmd_test(web_ide_suite)
     add_project_create_test(web_ide_suite)
     add_install_test(web_ide_suite)
     add_run_test(web_ide_suite)
     add_kill_test(web_ide_suite)
     add_debug_run_test(web_ide_suite)
+    add_query_test(web_ide_suite)
     add_uninstall_test(web_ide_suite)
 
     -- start