From: gyeongseok.seo Date: Wed, 28 Nov 2012 02:25:39 +0000 (+0900) Subject: [Title] Added skeleton code about IDE's TC. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45c8f2f1cd580dfa32830d9d7c9bc2eb2a906b11;p=sdk%2Femulator%2Femulator-test.git [Title] Added skeleton code about IDE's TC. [Desc.] basic code added [Issue] #7526 Change-Id: Id12ae0cd37a3a1ed9642584fd7688dc592564687 --- diff --git a/vts/script/tc_compliance_web_ide.lua b/vts/script/tc_compliance_web_ide.lua new file mode 100644 index 0000000..7526668 --- /dev/null +++ b/vts/script/tc_compliance_web_ide.lua @@ -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 index 0000000..8d874df --- /dev/null +++ b/vts/src/TcIDE.cpp @@ -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 index 0000000..bd64d02 --- /dev/null +++ b/vts/src/TcIDE.h @@ -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