[Title] Added skeleton code about IDE's TC.
authorgyeongseok.seo <gyeongseok.seo@samsung.com>
Wed, 28 Nov 2012 02:25:39 +0000 (11:25 +0900)
committergyeongseok.seo <gyeongseok.seo@samsung.com>
Wed, 28 Nov 2012 03:12:29 +0000 (12:12 +0900)
[Desc.] basic code added
[Issue] #7526

Change-Id: Id12ae0cd37a3a1ed9642584fd7688dc592564687

vts/script/tc_compliance_web_ide.lua [new file with mode: 0644]
vts/src/TcIDE.cpp [new file with mode: 0644]
vts/src/TcIDE.h [new file with mode: 0644]

diff --git a/vts/script/tc_compliance_web_ide.lua b/vts/script/tc_compliance_web_ide.lua
new file mode 100644 (file)
index 0000000..7526668
--- /dev/null
@@ -0,0 +1,71 @@
+webidelib={}
+
+---------------------------------------------------------
+-- web ide module
+---------------------------------------------------------
+--///////////////////////////////////////////////////////
+--// author : gyeongseok.seo (gyeongseok.seo@samsung.com)
+--// created date : 2012/11/28
+--// updated date : ...
+--// comments : web ide test module
+--///////////////////////////////////////////////////////
+
+-- Test - command exist
+function add_command_exist_check_test(web_ide_suite)
+
+end
+
+-- Test - create project
+function add_project_create_test(web_ide_suite)
+
+end
+
+-- Test - install project
+function add_install_test(web_ide_suite)
+
+end
+
+-- Test - run project
+function add_run_test(web_ide_suite)
+
+end
+
+-- Test - kill project
+function add_kill_test(web_ide_suite)
+
+end
+
+-- Test - debug project
+function add_debug_run_test(web_ide_suite)
+
+end
+
+-- Test - uninstall project
+function add_uninstall_test(web_ide_suite)
+
+end
+
+
+-- all test create and launch function
+function test_compliance_web_ide(env)
+
+    print (" ===================== web ide compliance test start!!! ===================== ");
+
+    -- create test suite about IDE
+    web_ide_suite = TsIDE("compliance-web-ide-test");
+
+    -- add test case
+    add_command_exist_check_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_uninstall_test(web_ide_suite)
+
+    -- start
+    web_ide_suite:runTest();
+
+    print (" ===================== web ide compliance test end!!! ===================== ");
+end
+
diff --git a/vts/src/TcIDE.cpp b/vts/src/TcIDE.cpp
new file mode 100644 (file)
index 0000000..8d874df
--- /dev/null
@@ -0,0 +1,39 @@
+/////////////////////////////////////////
+// author : gyeongseok.seo (gyeongseok.seo@samsung.com)
+// created date : 2012/11/28
+// updated date : ...
+// comments : IDE test suite
+////////////////////////////////////////
+
+#include "TcIDE.h"
+#include "tccmd.h"
+#include "Report.h"
+
+namespace te_test {
+
+//
+// TsIDE
+//
+TsIDE::TsIDE(const char* name) : cmd_suite(name)
+{
+        SetLevel(eTC_LEVEL_TESTSUITE);
+}
+
+void TsIDE::Prepare()
+{
+
+}
+
+void TsIDE::runTest()
+{
+        Prepare();
+        Test();
+}
+
+void TsIDE::AddTest(TC* tc)
+{
+        Add(tc);
+}
+
+} // end of namespace
+
diff --git a/vts/src/TcIDE.h b/vts/src/TcIDE.h
new file mode 100644 (file)
index 0000000..bd64d02
--- /dev/null
@@ -0,0 +1,27 @@
+/////////////////////////////////////////
+// author : gyeongseok.seo (gyeongseok.seo@samsung.com)
+// created date : 2012/11/28
+// updated date : ...
+// comments : IDE test suite
+////////////////////////////////////////
+
+#ifndef __tcide_h__
+#define __tcide_h__
+
+#include "string.h"
+#include "tcbase.h"
+#include "tccmd.h"
+
+namespace te_test {
+
+class TsIDE : public cmd_suite
+{
+public:
+        TsIDE(const char* name);
+
+        virtual void Prepare();
+        void runTest();
+        void AddTest(TC* tc);
+}
+
+} // end of namespace