From: Hwankyu Jhun Date: Wed, 26 Jun 2024 08:02:07 +0000 (+0900) Subject: [ComponentBased.Manual][Non-ACR] Fix TC descriptions X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F67%2F313467%2F2;p=test%2Ftct%2Fcsharp%2Fapi.git [ComponentBased.Manual][Non-ACR] Fix TC descriptions Widget Tests prints " Widget". Change-Id: I20d91ba2ce36fa164c36c89142bf9de734b9d31e Signed-off-by: Hwankyu Jhun --- diff --git a/tct-suite-vs/Tizen.ComponentBased.Manual.Tests/testcase/TSWidgetComponent.cs b/tct-suite-vs/Tizen.ComponentBased.Manual.Tests/testcase/TSWidgetComponent.cs index 98d04d3..a57fb2d 100755 --- a/tct-suite-vs/Tizen.ComponentBased.Manual.Tests/testcase/TSWidgetComponent.cs +++ b/tct-suite-vs/Tizen.ComponentBased.Manual.Tests/testcase/TSWidgetComponent.cs @@ -1,281 +1,281 @@ -/* - * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using System; -using System.Threading.Tasks; -using NUnit.Framework; -using NUnit.Framework.TUnit; -using Tizen.Applications; -using Xamarin.Forms; - -namespace Tizen.ComponentBasedApplication.Tests -{ - [TestFixture] - [Description("Tizen.Applications.ComponentBasedApplication widget component test")] - public class WidgetComponentTests - { - private TestPage _testPage = TestPage.GetInstance(); - private Button _comp_button; - private string _testAppId = "org.tizen.example.WidgetViewerApp.Tizen"; - private bool _isMobile = false; - private bool _isWearable = false; - private bool _isEmulator = false; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Preconditions for each TEST"); - _isMobile = ManualTest.IsMobile(); - _isWearable = ManualTest.IsWearable(); - _isEmulator = ManualTest.IsEmulator(); - _comp_button = new Button(); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Postconditions for each TEST"); - _comp_button = null; - } - - private void CreateCompButton(string btnText) - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "CreateButton"); - var layout = new StackLayout() - { - IsVisible = true, - HorizontalOptions = LayoutOptions.FillAndExpand, - VerticalOptions = LayoutOptions.FillAndExpand, - }; - - _comp_button = new Button() - { - Text = btnText, - VerticalOptions = LayoutOptions.Center, - HorizontalOptions = LayoutOptions.FillAndExpand, - }; - - layout.Children.Add(_comp_button); - _testPage.ExecuteTC(layout); - } - - private void OnClick(object sender, EventArgs e) - { - AppControl control = new AppControl(); - control.ApplicationId = _testAppId; - control.Operation = AppControlOperations.Default; - AppControl.SendLaunchRequest(control); - } - - [Test] - [Category("P1")] - [Description("MANUAL TEST : CreateWindowInfo() should be called before OnCreate function is called")] - [Property("SPEC", "Tizen.Applications.ComponentBased.Common.WidgetComponent.CreateWindowInfo M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] - [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] - [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] - [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] - [Step(1, "Click run TC")] - [Step(2, "Press 'Click me' button")] - [Step(3, "Check if log show \"ComponentBasedTest: CreateWindowInfo success\" before \"ComponentBasedTest: OnCreate\".")] - [Postcondition(1, "Close the terminal")] - public async Task CreateWindowInfo_MANUAL_TEST() - { - CreateCompButton("Click me!!"); - _comp_button.Clicked += OnClick; - - /* TEST CODE */ - await ManualTest.WaitForConfirm(); - _comp_button.Clicked -= OnClick; - } - - [Test] - [Category("P1")] - [Description("MANUAL TEST : OnCreate() should be called after CreateWindowInfo function is called")] - [Property("SPEC", "Tizen.Applications.ComponentBased.Common.WidgetComponent.OnCreate M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] - [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] - [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] - [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] - [Step(1, "Click run TC")] - [Step(2, "Press 'Click me' button")] - [Step(3, "Check if log show \"ComponentBasedTest: OnCreate\" after \"ComponentBasedTest: CreateWindowInfo success\".")] - [Postcondition(1, "Close the terminal")] - public async Task OnCreate_MANUAL_TEST() - { - CreateCompButton("Click me!!"); - _comp_button.Clicked += OnClick; - - /* TEST CODE */ - await ManualTest.WaitForConfirm(); - _comp_button.Clicked -= OnClick; - } - - [Test] - [Category("P1")] - [Description("MANUAL TEST : OnDestroy() should be called after Finish function is called")] - [Property("SPEC", "Tizen.Applications.ComponentBased.Common.WidgetComponent.OnDestroy M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] - [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] - [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] - [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] - [Step(1, "Click run TC")] - [Step(2, "Press 'Click me' button")] - [Step(3, "Terminate \"WidgetViewerApp.Tizen\" using a command \"app_launcher -t org.tizen.example.WidgetViewerApp.Tizen\"")] - [Step(4, "Check if log show \"ComponentBasedTest: OnDestroy\".")] - [Postcondition(1, "Close the terminal")] - public async Task OnDestroy_MANUAL_TEST() - { - CreateCompButton("Click me!!"); - _comp_button.Clicked += OnClick; - - /* TEST CODE */ - await ManualTest.WaitForConfirm(); - _comp_button.Clicked -= OnClick; - } - - [Test] - [Category("P1")] - [Description("MANUAL TEST : OnPause() should be called when the application is not visible")] - [Property("SPEC", "Tizen.Applications.ComponentBased.Common.WidgetComponent.OnPause M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] - [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] - [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] - [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] - [Step(1, "Click run TC")] - [Step(2, "Press 'Click me' button")] - [Step(3, "Press back button after \"ComponentBasedTest: OnResume\".")] - [Step(4, "Check if log show \"ComponentBasedTest: OnPause\".")] - [Postcondition(1, "Close the terminal")] - public async Task OnPause_MANUAL_TEST() - { - CreateCompButton("Click me!!"); - _comp_button.Clicked += OnClick; - - /* TEST CODE */ - await ManualTest.WaitForConfirm(); - _comp_button.Clicked -= OnClick; - } - - [Test] - [Category("P1")] - [Description("MANUAL TEST : OnResume() should be called after launch")] - [Property("SPEC", "Tizen.Applications.ComponentBased.Common.WidgetComponent.OnResume M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] - [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] - [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] - [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] - [Step(1, "Click run TC")] - [Step(2, "Press 'Click me' button")] - [Step(3, "Check if log show \"ComponentBasedTest: OnResume\".")] - [Postcondition(1, "Close the terminal")] - public async Task OnResume_MANUAL_TEST() - { - CreateCompButton("Click me!!"); - _comp_button.Clicked += OnClick; - - /* TEST CODE */ - await ManualTest.WaitForConfirm(); - _comp_button.Clicked -= OnClick; - } - - [Test] - [Category("P1")] - [Description("MANUAL TEST : OnStart() should be called after launch")] - [Property("SPEC", "Tizen.Applications.ComponentBased.Common.WidgetComponent.OnStart M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] - [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] - [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] - [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] - [Step(1, "Click run TC")] - [Step(2, "Press 'Click me' button")] - [Step(3, "Check if log show \"ComponentBasedTest: OnStart\".")] - [Postcondition(1, "Close the terminal")] - public async Task OnStart_MANUAL_TEST() - { - CreateCompButton("Click me!!"); - _comp_button.Clicked += OnClick; - - /* TEST CODE */ - await ManualTest.WaitForConfirm(); - _comp_button.Clicked -= OnClick; - } - - [Test] - [Category("P1")] - [Description("MANUAL TEST : OnStop() should be called when the application is terminated")] - [Property("SPEC", "Tizen.Applications.ComponentBased.Common.WidgetComponent.OnStop M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] - [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] - [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] - [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] - [Step(1, "Click run TC")] - [Step(2, "Press 'Click me' button")] - [Step(3, "Terminate \"WidgetViewerApp.Tizen\" using a command \"app_launcher -t org.tizen.example.WidgetViewerApp.Tizen\"")] - [Step(4, "Check if log show \"ComponentBasedTest: OnStop\" after \"ComponentBasedTest: OnPause\".")] - [Postcondition(1, "Close the terminal")] - public async Task OnStop_MANUAL_TEST() - { - CreateCompButton("Click me!!"); - _comp_button.Clicked += OnClick; - - /* TEST CODE */ - await ManualTest.WaitForConfirm(); - _comp_button.Clicked -= OnClick; - } - - [Test] - [Category("P1")] - [Description("MANUAL TEST : InitializeWindow() should be called after CreateWindowInfo function is called")] - [Property("SPEC", "Tizen.Applications.ComponentBased.Common.IWindowProxy.InitializeWindow M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] - [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] - [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] - [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] - [Step(1, "Click run TC")] - [Step(2, "Press 'Click me' button")] - [Step(3, "Check if log show \"ComponentBasedTest: InitializeWindow\".")] - [Postcondition(1, "Close the terminal")] - public async Task InitializeWindow_MANUAL_TEST() - { - CreateCompButton("Click me!!"); - _comp_button.Clicked += OnClick; - - /* TEST CODE */ - await ManualTest.WaitForConfirm(); - _comp_button.Clicked -= OnClick; - } - } -} - - - +/* + * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License + */ + +using System; +using System.Threading.Tasks; +using NUnit.Framework; +using NUnit.Framework.TUnit; +using Tizen.Applications; +using Xamarin.Forms; + +namespace Tizen.ComponentBasedApplication.Tests +{ + [TestFixture] + [Description("Tizen.Applications.ComponentBasedApplication widget component test")] + public class WidgetComponentTests + { + private TestPage _testPage = TestPage.GetInstance(); + private Button _comp_button; + private string _testAppId = "org.tizen.example.WidgetViewerApp.Tizen"; + private bool _isMobile = false; + private bool _isWearable = false; + private bool _isEmulator = false; + + [SetUp] + public void Init() + { + LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Preconditions for each TEST"); + _isMobile = ManualTest.IsMobile(); + _isWearable = ManualTest.IsWearable(); + _isEmulator = ManualTest.IsEmulator(); + _comp_button = new Button(); + } + + [TearDown] + public void Destroy() + { + LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Postconditions for each TEST"); + _comp_button = null; + } + + private void CreateCompButton(string btnText) + { + LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "CreateButton"); + var layout = new StackLayout() + { + IsVisible = true, + HorizontalOptions = LayoutOptions.FillAndExpand, + VerticalOptions = LayoutOptions.FillAndExpand, + }; + + _comp_button = new Button() + { + Text = btnText, + VerticalOptions = LayoutOptions.Center, + HorizontalOptions = LayoutOptions.FillAndExpand, + }; + + layout.Children.Add(_comp_button); + _testPage.ExecuteTC(layout); + } + + private void OnClick(object sender, EventArgs e) + { + AppControl control = new AppControl(); + control.ApplicationId = _testAppId; + control.Operation = AppControlOperations.Default; + AppControl.SendLaunchRequest(control); + } + + [Test] + [Category("P1")] + [Description("MANUAL TEST : CreateWindowInfo() should be called before OnCreate function is called")] + [Property("SPEC", "Tizen.Applications.ComponentBased.Common.WidgetComponent.CreateWindowInfo M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] + [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] + [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] + [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] + [Step(1, "Click run TC")] + [Step(2, "Press 'Click me' button")] + [Step(3, "Check if log show \"ComponentBasedTest: CreateWindowInfo success\" before \"ComponentBasedTest: OnCreate\".")] + [Postcondition(1, "Close the terminal")] + public async Task CreateWindowInfo_MANUAL_TEST() + { + CreateCompButton("Click me!!"); + _comp_button.Clicked += OnClick; + + /* TEST CODE */ + await ManualTest.WaitForConfirm(); + _comp_button.Clicked -= OnClick; + } + + [Test] + [Category("P1")] + [Description("MANUAL TEST : OnCreate() should be called after CreateWindowInfo function is called")] + [Property("SPEC", "Tizen.Applications.ComponentBased.Common.WidgetComponent.OnCreate M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] + [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] + [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] + [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] + [Step(1, "Click run TC")] + [Step(2, "Press 'Click me' button")] + [Step(3, "Check if log show \"ComponentBasedTest: OnCreate\" after \"ComponentBasedTest: CreateWindowInfo success\".")] + [Postcondition(1, "Close the terminal")] + public async Task OnCreate_MANUAL_TEST() + { + CreateCompButton("Click me!!"); + _comp_button.Clicked += OnClick; + + /* TEST CODE */ + await ManualTest.WaitForConfirm(); + _comp_button.Clicked -= OnClick; + } + + [Test] + [Category("P1")] + [Description("MANUAL TEST : OnDestroy() should be called after Finish function is called")] + [Property("SPEC", "Tizen.Applications.ComponentBased.Common.WidgetComponent.OnDestroy M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] + [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] + [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] + [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] + [Step(1, "Click run TC")] + [Step(2, "Press 'Click me' button")] + [Step(3, "Terminate \"WidgetViewerApp.Tizen\" using a command \"app_launcher -t org.tizen.example.WidgetViewerApp.Tizen\"")] + [Step(4, "Check if log show \"ComponentBasedTest: OnDestroy Widget\".")] + [Postcondition(1, "Close the terminal")] + public async Task OnDestroy_MANUAL_TEST() + { + CreateCompButton("Click me!!"); + _comp_button.Clicked += OnClick; + + /* TEST CODE */ + await ManualTest.WaitForConfirm(); + _comp_button.Clicked -= OnClick; + } + + [Test] + [Category("P1")] + [Description("MANUAL TEST : OnPause() should be called when the application is not visible")] + [Property("SPEC", "Tizen.Applications.ComponentBased.Common.WidgetComponent.OnPause M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] + [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] + [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] + [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] + [Step(1, "Click run TC")] + [Step(2, "Press 'Click me' button")] + [Step(3, "Press back button after \"ComponentBasedTest: OnResume Widget\".")] + [Step(4, "Check if log show \"ComponentBasedTest: OnPause Widget\".")] + [Postcondition(1, "Close the terminal")] + public async Task OnPause_MANUAL_TEST() + { + CreateCompButton("Click me!!"); + _comp_button.Clicked += OnClick; + + /* TEST CODE */ + await ManualTest.WaitForConfirm(); + _comp_button.Clicked -= OnClick; + } + + [Test] + [Category("P1")] + [Description("MANUAL TEST : OnResume() should be called after launch")] + [Property("SPEC", "Tizen.Applications.ComponentBased.Common.WidgetComponent.OnResume M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] + [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] + [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] + [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] + [Step(1, "Click run TC")] + [Step(2, "Press 'Click me' button")] + [Step(3, "Check if log show \"ComponentBasedTest: OnResume Widget\".")] + [Postcondition(1, "Close the terminal")] + public async Task OnResume_MANUAL_TEST() + { + CreateCompButton("Click me!!"); + _comp_button.Clicked += OnClick; + + /* TEST CODE */ + await ManualTest.WaitForConfirm(); + _comp_button.Clicked -= OnClick; + } + + [Test] + [Category("P1")] + [Description("MANUAL TEST : OnStart() should be called after launch")] + [Property("SPEC", "Tizen.Applications.ComponentBased.Common.WidgetComponent.OnStart M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] + [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] + [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] + [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] + [Step(1, "Click run TC")] + [Step(2, "Press 'Click me' button")] + [Step(3, "Check if log show \"ComponentBasedTest: OnStart\".")] + [Postcondition(1, "Close the terminal")] + public async Task OnStart_MANUAL_TEST() + { + CreateCompButton("Click me!!"); + _comp_button.Clicked += OnClick; + + /* TEST CODE */ + await ManualTest.WaitForConfirm(); + _comp_button.Clicked -= OnClick; + } + + [Test] + [Category("P1")] + [Description("MANUAL TEST : OnStop() should be called when the application is terminated")] + [Property("SPEC", "Tizen.Applications.ComponentBased.Common.WidgetComponent.OnStop M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] + [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] + [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] + [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] + [Step(1, "Click run TC")] + [Step(2, "Press 'Click me' button")] + [Step(3, "Terminate \"WidgetViewerApp.Tizen\" using a command \"app_launcher -t org.tizen.example.WidgetViewerApp.Tizen\"")] + [Step(4, "Check if log show \"ComponentBasedTest: OnStop Widget\" after \"ComponentBasedTest: OnPause Widget\".")] + [Postcondition(1, "Close the terminal")] + public async Task OnStop_MANUAL_TEST() + { + CreateCompButton("Click me!!"); + _comp_button.Clicked += OnClick; + + /* TEST CODE */ + await ManualTest.WaitForConfirm(); + _comp_button.Clicked -= OnClick; + } + + [Test] + [Category("P1")] + [Description("MANUAL TEST : InitializeWindow() should be called after CreateWindowInfo function is called")] + [Property("SPEC", "Tizen.Applications.ComponentBased.Common.IWindowProxy.InitializeWindow M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + [Property("AUTHOR", "ChangGyu Choi, changyu.choi@samsung.com")] + [Precondition(1, "Kill WidgetViewerApp.Tizen(AppID: org.tizen.example.WidgetViewerApp.Tizen) if app is alive.")] + [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")] + [Precondition(3, "Enter command \"sdb dlog ComponentBasedTest\" to terminal")] + [Step(1, "Click run TC")] + [Step(2, "Press 'Click me' button")] + [Step(3, "Check if log show \"ComponentBasedTest: InitializeWindow\".")] + [Postcondition(1, "Close the terminal")] + public async Task InitializeWindow_MANUAL_TEST() + { + CreateCompButton("Click me!!"); + _comp_button.Clicked += OnClick; + + /* TEST CODE */ + await ManualTest.WaitForConfirm(); + _comp_button.Clicked -= OnClick; + } + } +} + + +