Bundle bundle = new Bundle();
bundle.AddItem("ImageIdx", "1");
+ _widgetView = new WidgetView("test", "test", 100, 100, 0);
+ if (_widgetView != null) { Tizen.Log.Debug("TCT", "[TestCase][WidgetView][WidgetView] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][WidgetView][WidgetView] Fail"); }
+ _widgetView = null;
+
+ if (_viewManager) { Tizen.Log.Debug("TCT", "[TestCase][WidgetViewManager][WidgetViewManager] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][WidgetViewManager][WidgetViewManager] Fail"); }
+
_widgetView = _viewManager.AddWidget("org.tizen.example.WidgetApplicationSample", bundle.Encode(), 600, 400, 0);
+ if (_widgetView) { Tizen.Log.Debug("TCT", "[TestCase][AddWidget][WidgetViewManager] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][AddWidget][WidgetViewManager] Fail"); }
+
+
_widgetView.WidgetContentUpdated += OnWidgetContentUpdated;
- _widgetView.Size2D = new Size2D(600, 400);
_widgetView.ParentOrigin = ParentOrigin.Center;
_widgetView.PivotPoint = PivotPoint.Center;
_widgetView.Position2D = new Position2D(-300, -200);
_widgetView.PositionUsesPivotPoint = true;
_window.Add(_widgetView);
- _widgetView.Size2D = new Size2D(550, 370);
+ _widgetView.Size2D = new Size2D(400, 400);
+ _widgetView.BackgroundColor = Color.Green;
Tizen.Log.Fatal("NUIWidget", "widget view WidgetID: " + _widgetView.WidgetID);
+ if (_widgetView.WidgetID == "org.tizen.example.WidgetApplicationSample") { Tizen.Log.Debug("TCT", "[TestCase][WidgetID][WidgetView] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][WidgetID][WidgetView] Fail"); }
+
Tizen.Log.Fatal("NUIWidget", "widget view InstanceID: " + _widgetView.InstanceID);
+ if (_widgetView.InstanceID != "") { Tizen.Log.Debug("TCT", "[TestCase][InstanceID][WidgetView] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][InstanceID][WidgetView] Fail"); }
+
Tizen.Log.Fatal("NUIWidget", "widget view ContentInfo: " + _widgetView.ContentInfo);
+ if (_widgetView.ContentInfo != "") { Tizen.Log.Debug("TCT", "[TestCase][ContentInfo][WidgetView] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][ContentInfo][WidgetView] Fail"); }
+
Tizen.Log.Fatal("NUIWidget", "widget view Title: " + _widgetView.Title);
+ if (_widgetView.Title == "WidgetApplicationSample") { Tizen.Log.Debug("TCT", "[TestCase][Title][WidgetView] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][Title][WidgetView] Fail"); }
+
Tizen.Log.Fatal("NUIWidget", "widget view UpdatePeriod: " + _widgetView.UpdatePeriod);
+ if (_widgetView.UpdatePeriod == 0) { Tizen.Log.Debug("TCT", "[TestCase][Title][UpdatePeriod] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][Title][UpdatePeriod] Fail"); }
+
+ Tizen.Log.Fatal("NUIWidget", "widget view LoadingText: " + _widgetView.LoadingText);
+ if (_widgetView.LoadingText == true) { Tizen.Log.Debug("TCT", "[TestCase][Title][LoadingText] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][Title][LoadingText] Fail"); }
AddEventHandler();
}
{
if (_widgetView != null)
{
- Tizen.Log.Fatal("NUIWidget", "Widget view will delete!");
+ bool ret = _widgetView.PermanentDelete;
+ if (ret == false) { Tizen.Log.Debug("TCT", "[TestCase][PermanentDelete][WidgetView] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][PermanentDelete][WidgetView] Fail"); }
+
+ ret = _widgetView.CancelTouchEvent();
+ if (ret) { Tizen.Log.Debug("TCT", "[TestCase][CancelTouchEvent][WidgetView] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][CancelTouchEvent][WidgetView] Fail"); }
_window.Remove(_widgetView);
- Tizen.Log.Fatal("NUIWidget", "Widget view will delete111111111!");
- _widgetView.TerminateWidget();
- Tizen.Log.Fatal("NUIWidget", "Widget view will delete22222222222!");
+
+ ret = _widgetView.TerminateWidget();
+ if (ret) { Tizen.Log.Debug("TCT", "[TestCase][TerminateWidget][WidgetView] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][TerminateWidget][WidgetView] Fail"); }
_widgetView.Dispose();
_widgetView = null;
{
if (_widgetView != null)
{
- _widgetView.ResumeWidget();
+ bool ret = _widgetView.ResumeWidget();
+ if (ret) { Tizen.Log.Debug("TCT", "[TestCase][ResumeWidget][WidgetView] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][ResumeWidget][WidgetView] Fail"); }
+
+ try
+ {
+ _widgetView.ActivateFaultedWidget();
+ }
+ catch (Exception exception)
+ {
+ Tizen.Log.Error("TCT", "[TestCase] Caught Exception" + exception.ToString());
+ Tizen.Log.Error("TCT", "[TestCase][ActivateFaultedWidget][WidgetView] Fail");
+ }
+ Tizen.Log.Debug("TCT", "[TestCase][ActivateFaultedWidget][WidgetView] Pass");
+
+ ret = _widgetView.Preview;
+ if (ret) { Tizen.Log.Debug("TCT", "[TestCase][Preview][WidgetView] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][Preview][WidgetView] Fail"); }
+
+ ret = _widgetView.WidgetStateFaulted;
+ if (!ret) { Tizen.Log.Debug("TCT", "[TestCase][WidgetStateFaulted][WidgetView] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][WidgetStateFaulted][WidgetView] Fail"); }
}
Tizen.Log.Fatal("NUIWidget", "Widget view has been resumed!");
return true;
{
if (_widgetView != null)
{
- _widgetView.PauseWidget();
+ bool ret = _widgetView.PauseWidget();
+ if (ret) { Tizen.Log.Debug("TCT", "[TestCase][PauseWidget][WidgetView] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][PauseWidget][WidgetView] Fail"); }
}
Tizen.Log.Fatal("NUIWidget", "Widget view has been paused!");
return true;
{
if (_widgetView != null)
{
- _widgetView.WidgetAdded += (src, arg) => {
+ _widgetView.WidgetAdded += (src, arg) =>
+ {
Tizen.Log.Fatal("NUIWidget", "Widget view added triggered");
+ Tizen.Log.Debug("TCT", "[TestCase][WidgetAdded][WidgetView] Pass");
+ if (arg != null)
+ {
+ Tizen.Log.Debug("TCT", "[TestCase][WidgetViewEventArgs][WidgetView] Pass");
+ if (arg.WidgetView != null) { Tizen.Log.Debug("TCT", "[TestCase][WidgetViewEventArgs.WidgetView][WidgetView] Pass"); }
+ else { Tizen.Log.Debug("TCT", "[TestCase][WidgetViewEventArgs.WidgetView][WidgetView] Fail"); }
+ }
+ else
+ {
+ Tizen.Log.Debug("TCT", "[TestCase][WidgetViewEventArgs][WidgetView] Fail");
+ }
};
- _widgetView.WidgetDeleted += (src, arg) => {
- Tizen.Log.Fatal("NUIWidget", "Widget view deleted triggered");
+ _widgetView.WidgetDeleted += (src, arg) =>
+ {
+ Tizen.Log.Fatal("NUIWidget", "[TestCase]Widget view deleted triggered");
+ Tizen.Log.Debug("TCT", "[TestCase][WidgetDeleted][WidgetView] Pass");
};
- _widgetView.WidgetCreationAborted += (src, arg) => {
- Tizen.Log.Fatal("NUIWidget", "Widget view creation aborted triggered");
+ _widgetView.WidgetCreationAborted += (src, arg) =>
+ {
+ Tizen.Log.Fatal("NUIWidget", "[TestCase]Widget view creation aborted triggered");
+ Tizen.Log.Debug("TCT", "[TestCase][WidgetCreationAborted][WidgetView] Pass");
};
-
- _widgetView.WidgetUpdatePeriodChanged += (src, arg) => {
- Tizen.Log.Fatal("NUIWidget", "Widget view update periodChanged triggered");
+ _widgetView.WidgetUpdatePeriodChanged += (src, arg) =>
+ {
+ Tizen.Log.Fatal("NUIWidget", "[TestCase]Widget view update periodChanged triggered");
+ Tizen.Log.Debug("TCT", "[TestCase][WidgetUpdatePeriodChanged][WidgetView] Pass");
};
- _widgetView.WidgetFaulted += (src, arg) => {
- Tizen.Log.Fatal("NUIWidget", "Widget view faulted triggered");
+ _widgetView.WidgetFaulted += (src, arg) =>
+ {
+ Tizen.Log.Fatal("NUIWidget", "[TestCase]Widget view faulted triggered");
+ Tizen.Log.Debug("TCT", "[TestCase][WidgetFaulted][WidgetView] Pass");
};
}
}
--- /dev/null
+/*
+ * Copyright (c) 2017 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.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.UIComponents;
+using Tizen.Applications;
+
+namespace Tizen.NUI.Tests
+{
+ [TestFixture]
+ [Description("Tizen.NUI.WidgetView test")]
+ public class WidgetViewTests
+ {
+ private ManualTestNUI _testPage;
+ private WearableManualTestNUI _wearTestPage;
+ private float _pointSize = 5.0f;
+
+ [SetUp]
+ public void Init()
+ {
+ LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Preconditions for each TEST");
+
+ AppControl myAppControl = new AppControl();
+ myAppControl.Operation = AppControlOperations.Default;
+ if (ManualTest.IsWearable())
+ {
+ myAppControl.ApplicationId = "org.tizen.example.WidgetViewWearableSample";
+ }
+ else
+ {
+ myAppControl.ApplicationId = "org.tizen.example.WidgetViewSample";
+ }
+ AppControl.SendLaunchRequest(myAppControl);
+
+ if (Window.Instance.Size.Width > 1000)
+ {
+ _pointSize = 20.0f;
+ }
+
+ if (ManualTest.IsWearable())
+ {
+ _pointSize = 4.0f;
+ _wearTestPage = WearableManualTestNUI.GetInstance();
+ }
+ else
+ {
+ _testPage = ManualTestNUI.GetInstance();
+ }
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Postconditions for each TEST");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : new WidgetView(string, string, int, int, float) should not be NULL")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.WidgetView C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Add button and click.")]
+ [Step(3, "Check if log show \"[TestCase][WidgetView][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task WidgetView_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : ActivateFaultedWidget() should be called without Exception")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.ActivateFaultedWidget M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Resume button and click.")]
+ [Step(3, "Check if log show \"[TestCase][ActivateFaultedWidget][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task ActivateFaultedWidget_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : CancelTouchEvent() should be called with true return value")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.CancelTouchEvent M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Delete button and click.")]
+ [Step(3, "Check if log show \"[TestCase][CancelTouchEvent][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task CancelTouchEvent_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : PauseWidget() should be called without error")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.PauseWidget M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Pause button and click.")]
+ [Step(3, "Check if log show \"[TestCase][PauseWidget][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task PauseWidget_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : ResumeWidget() should be called without error")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.ResumeWidget M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Resume button and click.")]
+ [Step(3, "Check if log show \"[TestCase][ResumeWidget][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task ResumeWidget_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : TerminateWidget() should be called without error")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.TerminateWidget M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Delete button and click.")]
+ [Step(3, "Check if log show \"[TestCase][TerminateWidget][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task TerminateWidget_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : ContentInfo should have proper value")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.ContentInfo M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Add button and click.")]
+ [Step(3, "Check if log show \"[TestCase][ContentInfo][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task ContentInfo_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : InstanceID should have proper value")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.InstanceID M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Add button and click.")]
+ [Step(3, "Check if log show \"[TestCase][InstanceID][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task InstanceID_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : LoadingText should have proper value")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.LoadingText M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Add button and click.")]
+ [Step(3, "Check if log show \"[TestCase][LoadingText][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task LoadingText_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : PermanentDelete should have proper value")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.PermanentDelete M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Delete button and click.")]
+ [Step(3, "Check if log show \"[TestCase][PermanentDelete][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task PermanentDelete_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : Preview should have proper value")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.Preview M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Resume button and click.")]
+ [Step(3, "Check if log show \"[TestCase][Preview][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task Preview_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : Title should have proper value")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.Title M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Add button and click.")]
+ [Step(3, "Check if log show \"[TestCase][Title][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task Title_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : UpdatePeriod should have proper value")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.UpdatePeriod M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Add button and click.")]
+ [Step(3, "Check if log show \"[TestCase][UpdatePeriod][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task UpdatePeriod_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : WidgetID should have proper value")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.WidgetID M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Add button and click.")]
+ [Step(3, "Check if log show \"[TestCase][WidgetID][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task WidgetID_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : WidgetStateFaulted should have proper value")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.WidgetStateFaulted M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Resume button and click.")]
+ [Step(3, "Check if log show \"[TestCase][WidgetStateFaulted][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task WidgetStateFaulted_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : WidgetAdded should be triggered without an error")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.WidgetAdded E")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "EVL")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Add button and click.")]
+ [Step(3, "Check if log show \"[TestCase][WidgetAdded][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task WidgetAdded_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : WidgetDeleted should be triggered without an error")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.WidgetDeleted E")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "EVL")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Delete button and click.")]
+ [Step(3, "Check if log show \"[TestCase][WidgetDeleted][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task WidgetDeleted_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : WidgetViewEventArgs should not be NULL")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.WidgetViewEventArgs.WidgetViewEventArgs C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Add button and click.")]
+ [Step(3, "Check if log show \"[TestCase][WidgetViewEventArgs][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task WidgetViewEventArgs_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : WidgetView should not be NULL")]
+ [Property("SPEC", "Tizen.NUI.WidgetView.WidgetViewEventArgs.WidgetView M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Add button and click.")]
+ [Step(3, "Check if log show \"[TestCase][WidgetViewEventArgs.WidgetView][WidgetView] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task WidgetView_WidgetViewEventArgs_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : WidgetViewManager should be called with proper return value")]
+ [Property("SPEC", "Tizen.NUI.WidgetViewManager.WidgetViewManager C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Add button and click.")]
+ [Step(3, "Check if log show \"[TestCase][WidgetViewManager][WidgetViewManager] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task WidgetViewManager_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("MANUAL TEST : AddWidget should be called with proper return value")]
+ [Property("SPEC", "Tizen.NUI.WidgetViewManager.AddWidget M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ [Precondition(1, "Open terminal to view logs")]
+ [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+ [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+ [Step(1, "Click run TC.")]
+ [Step(2, "Move Focus to Add button and click.")]
+ [Step(3, "Check if log show \"[TestCase][AddWidget][WidgetViewManager] Pass\".")]
+ [Postcondition(1, "Close the terminal")]
+ public async Task AddWidget_MANUAL_TEST()
+ {
+ await ManualTest.WaitForConfirm();
+ }
+
+ }
+}