From 10f68f4f3d55a9386b9c7b2b8dcde7286aeb180e Mon Sep 17 00:00:00 2001 From: Sanghoon Lee Date: Wed, 16 Jan 2019 15:33:19 +0900 Subject: [PATCH] [Template][Non-ACR][Removed static keywords] Change-Id: Ifde89d3d5fcd1da69af57c6802a38b65c2eaf188 --- .../testcase/TSButton.cs | 20 ++++----- .../testcase/TSLog.cs | 44 +++++++++---------- .../testcase/TSSample.cs | 8 ++-- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/tool/script/template/Tizen.Newmodule.Manual.Tests/testcase/TSButton.cs b/tool/script/template/Tizen.Newmodule.Manual.Tests/testcase/TSButton.cs index eb6263dcf..0bf67985c 100755 --- a/tool/script/template/Tizen.Newmodule.Manual.Tests/testcase/TSButton.cs +++ b/tool/script/template/Tizen.Newmodule.Manual.Tests/testcase/TSButton.cs @@ -26,24 +26,24 @@ namespace Tizen.Sample.Tests [Description("Tizen.Sample.Button test")] public class ButtonTests { - private static TestPage _testPage = TestPage.GetInstance(); - private static Button _button; + private TestPage _testPage = TestPage.GetInstance(); + private Button _button; [SetUp] - public static void Init() + public void Init() { LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Preconditions for each TEST"); _button = new Button(); } [TearDown] - public static void Destroy() + public void Destroy() { LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Postconditions for each TEST"); _button = null; } - private static void CreateButton(string buttonText) + private void CreateButton(string buttonText) { LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "CreateButton"); @@ -66,7 +66,7 @@ namespace Tizen.Sample.Tests _testPage.ExecuteTC(layout); } - private static void OnClick(object sender, EventArgs e) + private void OnClick(object sender, EventArgs e) { // If your test is fail, you should set Assert.True(false , "msg"); Assert.True(true); @@ -85,7 +85,7 @@ namespace Tizen.Sample.Tests [Step(1, "Click run TC")] [Step(2, "Click button")] [Postcondition(1, "NA")] - public static async Task Clicked_CB() + public async Task Clicked_CB() { CreateButton("Click me!! Test: Handle event click button"); _button.Clicked += OnClick; @@ -93,7 +93,7 @@ namespace Tizen.Sample.Tests await ManualTest.WaitForConfirm(); } - private static void CreateButtonPage(string buttonText) + private void CreateButtonPage(string buttonText) { LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Init"); @@ -120,7 +120,7 @@ namespace Tizen.Sample.Tests }); } - public static void OnPressed(object sender, EventArgs e) + public void OnPressed(object sender, EventArgs e) { // pop layout _testPage.getNavigationPage().PopAsync(); @@ -141,7 +141,7 @@ namespace Tizen.Sample.Tests [Step(1, "Click run TC")] [Step(2, "Click button after new page shown")] [Postcondition(1, "NA")] - public static async Task Pressed_CB() + public async Task Pressed_CB() { CreateButtonPage("Click me!! Test: Handle event press button"); _button.Clicked += OnPressed; diff --git a/tool/script/template/Tizen.Newmodule.Manual.Tests/testcase/TSLog.cs b/tool/script/template/Tizen.Newmodule.Manual.Tests/testcase/TSLog.cs index 5e359aa5a..9abaacac1 100755 --- a/tool/script/template/Tizen.Newmodule.Manual.Tests/testcase/TSLog.cs +++ b/tool/script/template/Tizen.Newmodule.Manual.Tests/testcase/TSLog.cs @@ -23,17 +23,17 @@ namespace Tizen.Sample.Tests [TestFixture] [Description("Tizen::Log Tests")] public class LogTests { - - private static string TAG = "TCT"; - private static string _message; + + private string TAG = "TCT"; + private string _message; [SetUp] - public static void Init() + public void Init() { } [TearDown] - public static void Destroy() + public void Destroy() { } @@ -50,7 +50,7 @@ namespace Tizen.Sample.Tests [Step(1, "Click run TC")] [Step(2, "check if log show \"Debug log message\" with Tag \"TCT\" and type log \"D\".")] [Postcondition(1, "Close the terminal")] - public static async Task Debug_PRINT_TO_DLOG() { + public async Task Debug_PRINT_TO_DLOG() { /* * TEST CODE - MANUAL TEST * use command: "sdb dlog | grep TCT" to see log. @@ -58,7 +58,7 @@ namespace Tizen.Sample.Tests _message = "Debug log message"; Log.Debug(TAG, _message); - /* + /* * RESULT : PASS * log show "Debug log message" with Tag "TCT" and type log "D" */ @@ -79,15 +79,15 @@ namespace Tizen.Sample.Tests [Step(1, "Click run TC")] [Step(2, "Check if log show \"Error log message\" with Tag \"TCT\" and type log \"E\".")] [Postcondition(1, "Close the terminal")] - public static async Task Error_PRINT_TO_DLOG() { - /* + public async Task Error_PRINT_TO_DLOG() { + /* * TEST CODE - MANUAL TEST * use command: "sdb dlog | grep TCT" to see log. */ _message = "Error log message"; Log.Error(TAG, _message); - /* + /* * RESULT : PASS * log show "Error log message" with Tag "TCT" and type log "E" */ @@ -108,15 +108,15 @@ namespace Tizen.Sample.Tests [Step(1, "Click run TC")] [Step(2, "Check if log show \"Fatal log message\" with Tag \"TCT\" and type log \"F\".")] [Postcondition(1, "Close the terminal")] - public static async Task Fatal_PRINT_TO_DLOG() { - /* + public async Task Fatal_PRINT_TO_DLOG() { + /* * TEST CODE - MANUAL TEST * use command: "sdb dlog | grep TCT" to see log. */ _message = "Fatal log message"; Log.Fatal(TAG, _message); - /* + /* * RESULT : PASS * log show "Fatal log message" with Tag "TCT" and type log "F" */ @@ -137,15 +137,15 @@ namespace Tizen.Sample.Tests [Step(1, "Click run TC")] [Step(2, "Check if log show \"Info log message\" with Tag \"TCT\" and type log \"I\".")] [Postcondition(1, "Close the terminal")] - public static async Task Info_PRINT_TO_DLOG() { - /* + public async Task Info_PRINT_TO_DLOG() { + /* * TEST CODE - MANUAL TEST * use command: "sdb dlog | grep TCT" to see log. */ _message = "Info log message"; Log.Info(TAG, _message); - /* + /* * RESULT : PASS * log show "Info log message" with Tag "TCT" and type log "I" */ @@ -166,15 +166,15 @@ namespace Tizen.Sample.Tests [Step(1, "Click run TC")] [Step(2, "Check if log show \"Verbose log message\" with Tag \"TCT\" and type log \"V\".")] [Postcondition(1, "Close the terminal")] - public static async Task Verbose_PRINT_TO_DLOG() { - /* + public async Task Verbose_PRINT_TO_DLOG() { + /* * TEST CODE - MANUAL TEST * use command: "sdb dlog TCT" to see log. */ _message = "Verbose log message"; Log.Verbose(TAG, _message); - /* + /* * RESULT : PASS * log not show "Verbose log message" */ @@ -195,15 +195,15 @@ namespace Tizen.Sample.Tests [Step(1, "Click run TC")] [Step(2, "Check if log show \"Warn log message\" with Tag \"TCT\" and type log \"W\".")] [Postcondition(1, "Close the terminal")] - public static async Task Warn_PRINT_TO_DLOG() { - /* + public async Task Warn_PRINT_TO_DLOG() { + /* * TEST CODE - MANUAL TEST * use command: "sdb dlog | grep TCT" to see log. */ _message = "Warn log message"; Log.Warn(TAG, _message); - /* + /* * RESULT : PASS * log show "Warn log message" with Tag "TCT" and type log "W" */ diff --git a/tool/script/template/Tizen.Newmodule.Tests/testcase/TSSample.cs b/tool/script/template/Tizen.Newmodule.Tests/testcase/TSSample.cs index 9f03a3695..3423fb3bb 100755 --- a/tool/script/template/Tizen.Newmodule.Tests/testcase/TSSample.cs +++ b/tool/script/template/Tizen.Newmodule.Tests/testcase/TSSample.cs @@ -27,16 +27,16 @@ namespace Tizen.Sample.Tests { [Description("Sample Class Tests")] public class SampleTests { - private static string _message = "raycad"; + private string _message = "raycad"; [SetUp] - public static void Init() + public void Init() { LogUtils.Write(LogUtils.DEBUG , LogUtils.TAG , "Preconditions for each TEST"); } [TearDown] - public static void Destroy() + public void Destroy() { LogUtils.Write(LogUtils.DEBUG , LogUtils.TAG , "Postconditions for each TEST"); } @@ -48,7 +48,7 @@ namespace Tizen.Sample.Tests { [Property("SPEC_URL", "-")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Nguyen Truong Duong, duong.nt1@samsung.com")] - public static void Test1() + public void Test1() { var getValue = _message; Assert.IsInstanceOf(getValue, "Object should be string type."); -- 2.34.1