From: zhouleonlei Date: Thu, 1 Apr 2021 07:19:53 +0000 (+0800) Subject: [NUI][Non-ACR] Fix the app launching issues for NUI.Manual.Tests X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=decf6e5ded64291268616a86083ada23777df157;p=test%2Ftct%2Fcsharp%2Fapi.git [NUI][Non-ACR] Fix the app launching issues for NUI.Manual.Tests https://code.sec.samsung.net/jira/browse/TSDF-961 LaunchRejectedException occurs in all Log related tcs Change-Id: I9ebedca4dbf6f2fb7fb1cf6f415f3fa2a99a4351 --- diff --git a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/NUIApplicationManualWearableTest/NUIApplicationManualWearableTest.csproj b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/NUIApplicationManualWearableTest/NUIApplicationManualWearableTest.csproj old mode 100644 new mode 100755 index 81289ec..7399f43 --- a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/NUIApplicationManualWearableTest/NUIApplicationManualWearableTest.csproj +++ b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/NUIApplicationManualWearableTest/NUIApplicationManualWearableTest.csproj @@ -2,7 +2,8 @@ Exe - netcoreapp2.0 + tizen90 + Tizen @@ -18,7 +19,7 @@ - + Runtime diff --git a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/Tizen.NUI.NUIApplications.Manual.Tests/NUIApplicationsManualTests/NUIApplicationsManualTests.csproj b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/Tizen.NUI.NUIApplications.Manual.Tests/NUIApplicationsManualTests/NUIApplicationsManualTests.csproj index ce1e382..099a8c6 100755 --- a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/Tizen.NUI.NUIApplications.Manual.Tests/NUIApplicationsManualTests/NUIApplicationsManualTests.csproj +++ b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/Tizen.NUI.NUIApplications.Manual.Tests/NUIApplicationsManualTests/NUIApplicationsManualTests.csproj @@ -10,7 +10,8 @@ Exe - netcoreapp2.0 + tizen90 + Tizen @@ -37,7 +38,9 @@ - + + Runtime + diff --git a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/Tizen.NUI.NUIApplications.Manual.Tests/NUIApplicationsManualTests/src/NUIApplicationsManualTests.cs b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/Tizen.NUI.NUIApplications.Manual.Tests/NUIApplicationsManualTests/src/NUIApplicationsManualTests.cs index 3ff9e4e..96cc702 100755 --- a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/Tizen.NUI.NUIApplications.Manual.Tests/NUIApplicationsManualTests/src/NUIApplicationsManualTests.cs +++ b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/Tizen.NUI.NUIApplications.Manual.Tests/NUIApplicationsManualTests/src/NUIApplicationsManualTests.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; using Tizen.Applications; using Tizen.NUI; -using Tizen.NUI.UIComponents; +using Tizen.NUI.Components; using Tizen.NUI.BaseComponents; using Tizen.NUI.Constants; using Tizen; @@ -29,49 +29,44 @@ namespace NUIApplicationsManualTests { Tizen.NUI.Window.Instance.BackgroundColor = Color.White; - PushButton pauseButton = new PushButton(); - pauseButton.LabelText = "PAUSE"; + Button pauseButton = new Button(); + pauseButton.Text = "PAUSE"; pauseButton.Size2D = new Size2D(400, 80); pauseButton.Position2D = new Position2D(0, 0); pauseButton.Clicked += (obj, e) => { OnPause(); - return true; }; Window.Instance.Add(pauseButton); - PushButton resumeButton = new PushButton(); - resumeButton.LabelText = "RESUME"; + Button resumeButton = new Button(); + resumeButton.Text = "RESUME"; resumeButton.Size2D = new Size2D(400, 80); resumeButton.Position2D = new Position2D(0, 100); resumeButton.Clicked += (obj, e) => { OnResume(); - return true; }; Window.Instance.Add(resumeButton); - PushButton exitButton = new PushButton(); - exitButton.LabelText = "EXIT"; + Button exitButton = new Button(); + exitButton.Text = "EXIT"; exitButton.Size2D = new Size2D(400, 80); exitButton.Position2D = new Position2D(0, 200); - exitButton.Clicked += (obj, e) => { Exit(); - return true; }; Window.Instance.Add(exitButton); - PushButton addIdleButton = new PushButton(); - addIdleButton.LabelText = "ADDIDLE"; + Button addIdleButton = new Button(); + addIdleButton.Text = "ADDIDLE"; addIdleButton.Size2D = new Size2D(400, 80); addIdleButton.Position2D = new Position2D(0, 300); addIdleButton.Clicked += (obj, e) => { AddIdleTest addIdleTest = new AddIdleTest(MyDelegate); AddIdle(addIdleTest); - return true; }; Window.Instance.Add(addIdleButton); diff --git a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetApplicationSample/WidgetApplicationSample.csproj b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetApplicationSample/WidgetApplicationSample.csproj index dab83ae..6df1b02 100755 --- a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetApplicationSample/WidgetApplicationSample.csproj +++ b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetApplicationSample/WidgetApplicationSample.csproj @@ -2,7 +2,8 @@ Exe - netcoreapp2.0 + tizen90 + Tizen @@ -18,7 +19,9 @@ - + + Runtime + diff --git a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetApplicationWearableSample/WidgetApplicationWearableSample.csproj b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetApplicationWearableSample/WidgetApplicationWearableSample.csproj old mode 100644 new mode 100755 index eb1ab12..7399f43 --- a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetApplicationWearableSample/WidgetApplicationWearableSample.csproj +++ b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetApplicationWearableSample/WidgetApplicationWearableSample.csproj @@ -2,7 +2,8 @@ Exe - netcoreapp2.0 + tizen90 + Tizen @@ -18,7 +19,9 @@ - + + Runtime + diff --git a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetViewSample/WidgetViewSample.cs b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetViewSample/WidgetViewSample.cs index f26bf02..ec837ec 100755 --- a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetViewSample/WidgetViewSample.cs +++ b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetViewSample/WidgetViewSample.cs @@ -1,7 +1,7 @@ using System; using Tizen.NUI; using Tizen.NUI.BaseComponents; -using Tizen.NUI.UIComponents; +using Tizen.NUI.Components; using Tizen.Applications; using Tizen.Internals.Errors; @@ -12,12 +12,12 @@ namespace WidgetViewSample private WidgetViewManager _viewManager = null; private TableView _buttonContainer = null; private WidgetView _widgetView = null; - private PushButton _widgetAddBtn = null; - private PushButton _widgetDeleteBtn = null; - private PushButton _widgetPauseBtn = null; - private PushButton _widgetResumeBtn = null; - private PushButton _widgetResizeBtn = null; - private PushButton _widgetExitBtn = null; + private Button _widgetAddBtn = null; + private Button _widgetDeleteBtn = null; + private Button _widgetPauseBtn = null; + private Button _widgetResumeBtn = null; + private Button _widgetResizeBtn = null; + private Button _widgetExitBtn = null; private Window _window = null; private float _pointSize = 30.0f; @@ -70,48 +70,54 @@ namespace WidgetViewSample _window.Add(_buttonContainer); Tizen.Log.Fatal("NUIWidget", "Add table view"); - _widgetAddBtn = new PushButton(); - _widgetAddBtn.Label = CreateTextMap(_pointSize, "Add"); + _widgetAddBtn = new Button(); + _widgetAddBtn.PointSize = _pointSize; + _widgetAddBtn.Text = "Add"; _widgetAddBtn.Focusable = true; _widgetAddBtn.WidthResizePolicy = ResizePolicyType.FillToParent; _widgetAddBtn.HeightResizePolicy = ResizePolicyType.FillToParent; _widgetAddBtn.Clicked += OnAddBtnClicked; Tizen.Log.Fatal("NUIWidget", "Add button add"); - _widgetDeleteBtn = new PushButton(); - _widgetDeleteBtn.Label = CreateTextMap(_pointSize, "Delete"); + _widgetDeleteBtn = new Button(); + _widgetDeleteBtn.PointSize = _pointSize; + _widgetDeleteBtn.Text = "Delete"; _widgetDeleteBtn.Focusable = true; _widgetDeleteBtn.WidthResizePolicy = ResizePolicyType.FillToParent; _widgetDeleteBtn.HeightResizePolicy = ResizePolicyType.FillToParent; _widgetDeleteBtn.Clicked += OnDeleteBtnClicked; Tizen.Log.Fatal("NUIWidget", "Add button delete"); - _widgetPauseBtn = new PushButton(); - _widgetPauseBtn.Label = CreateTextMap(_pointSize, "Pause"); + _widgetPauseBtn = new Button(); + _widgetPauseBtn.PointSize = _pointSize; + _widgetPauseBtn.Text = "Pause"; _widgetPauseBtn.Focusable = true; _widgetPauseBtn.WidthResizePolicy = ResizePolicyType.FillToParent; _widgetPauseBtn.HeightResizePolicy = ResizePolicyType.FillToParent; _widgetPauseBtn.Clicked += OnPauseBtnClicked; Tizen.Log.Fatal("NUIWidget", "Add button pause"); - _widgetResumeBtn = new PushButton(); - _widgetResumeBtn.Label = CreateTextMap(_pointSize, "Resume"); + _widgetResumeBtn = new Button(); + _widgetResumeBtn.PointSize = _pointSize; + _widgetResumeBtn.Text = "Resume"; _widgetResumeBtn.Focusable = true; _widgetResumeBtn.WidthResizePolicy = ResizePolicyType.FillToParent; _widgetResumeBtn.HeightResizePolicy = ResizePolicyType.FillToParent; _widgetResumeBtn.Clicked += OnResumeBtnClicked; Tizen.Log.Fatal("NUIWidget", "Add button resume"); - _widgetResizeBtn = new PushButton(); - _widgetResizeBtn.Label = CreateTextMap(_pointSize, "Resize"); + _widgetResizeBtn = new Button(); + _widgetResizeBtn.PointSize = _pointSize; + _widgetResizeBtn.Text = "Resize"; _widgetResizeBtn.Focusable = true; _widgetResizeBtn.WidthResizePolicy = ResizePolicyType.FillToParent; _widgetResizeBtn.HeightResizePolicy = ResizePolicyType.FillToParent; _widgetResizeBtn.Clicked += OnResizeBtnClicked; Tizen.Log.Fatal("NUIWidget", "Add button Resize"); - _widgetExitBtn = new PushButton(); - _widgetExitBtn.Label = CreateTextMap(_pointSize, "Exit"); + _widgetExitBtn = new Button(); + _widgetExitBtn.PointSize = _pointSize; + _widgetExitBtn.Text = "Exit"; _widgetExitBtn.Focusable = true; _widgetExitBtn.WidthResizePolicy = ResizePolicyType.FillToParent; _widgetExitBtn.HeightResizePolicy = ResizePolicyType.FillToParent; @@ -177,7 +183,7 @@ namespace WidgetViewSample return e.ProposedView; } - private bool OnAddBtnClicked(object source, EventArgs e) + private void OnAddBtnClicked(object source, EventArgs e) { if (_widgetView == null) { @@ -253,8 +259,6 @@ namespace WidgetViewSample AddEventHandler(); } Tizen.Log.Fatal("NUIWidget", "Widget view has been created!"); - - return true; } public override void Exit() @@ -274,7 +278,7 @@ namespace WidgetViewSample Tizen.Log.Fatal("NUIWidget", "Get content string " + imageIdx); } - private bool OnDeleteBtnClicked(object source, EventArgs e) + private void OnDeleteBtnClicked(object source, EventArgs e) { if (_widgetView != null) { @@ -295,10 +299,9 @@ namespace WidgetViewSample _widgetView = null; } Tizen.Log.Fatal("NUIWidget", "Widget view has been removed!"); - return true; } - private bool OnResumeBtnClicked(object source, EventArgs e) + private void OnResumeBtnClicked(object source, EventArgs e) { if (_widgetView != null) { @@ -326,11 +329,10 @@ namespace WidgetViewSample else { Tizen.Log.Error("TCT", "[TestCase][WidgetStateFaulted][WidgetView] Fail"); } } Tizen.Log.Fatal("NUIWidget", "Widget view has been resumed!"); - return true; } - private bool OnPauseBtnClicked(object source, EventArgs e) + private void OnPauseBtnClicked(object source, EventArgs e) { if (_widgetView != null) { @@ -339,24 +341,21 @@ namespace WidgetViewSample else { Tizen.Log.Error("TCT", "[TestCase][PauseWidget][WidgetView] Fail"); } } Tizen.Log.Fatal("NUIWidget", "Widget view has been paused!"); - return true; } - private bool OnResizeBtnClicked(object source, EventArgs e) + private void OnResizeBtnClicked(object source, EventArgs e) { if (_widgetView != null) { _widgetView.Size2D = new Size2D(300, 200); } Tizen.Log.Fatal("NUIWidget", "Widget view has been resized!"); - return true; } - private bool OnExitBtnClicked(object source, EventArgs e) + private void OnExitBtnClicked(object source, EventArgs e) { Exit(); Tizen.Log.Fatal("NUIWidget", "Widget view has been resized!"); - return true; } private void AddEventHandler() diff --git a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetViewSample/WidgetViewSample.csproj b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetViewSample/WidgetViewSample.csproj index dab83ae..6df1b02 100755 --- a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetViewSample/WidgetViewSample.csproj +++ b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetViewSample/WidgetViewSample.csproj @@ -2,7 +2,8 @@ Exe - netcoreapp2.0 + tizen90 + Tizen @@ -18,7 +19,9 @@ - + + Runtime + diff --git a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetViewWearableSample/WidgetViewWearableSample.csproj b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetViewWearableSample/WidgetViewWearableSample.csproj old mode 100644 new mode 100755 index eb1ab12..7399f43 --- a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetViewWearableSample/WidgetViewWearableSample.csproj +++ b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetViewWearableSample/WidgetViewWearableSample.csproj @@ -2,7 +2,8 @@ Exe - netcoreapp2.0 + tizen90 + Tizen @@ -18,7 +19,9 @@ - + + Runtime + diff --git a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.NUIApplicationManualWearableTest-1.0.0.tpk b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.NUIApplicationManualWearableTest-1.0.0.tpk old mode 100644 new mode 100755 index 76b1151..5ab6845 Binary files a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.NUIApplicationManualWearableTest-1.0.0.tpk and b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.NUIApplicationManualWearableTest-1.0.0.tpk differ diff --git a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.NUIApplicationsManualTests-1.0.0.tpk b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.NUIApplicationsManualTests-1.0.0.tpk index 5004430..d5b14f4 100755 Binary files a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.NUIApplicationsManualTests-1.0.0.tpk and b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.NUIApplicationsManualTests-1.0.0.tpk differ diff --git a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetApplicationSample-1.0.0.tpk b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetApplicationSample-1.0.0.tpk index 7638abd..ea27c48 100755 Binary files a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetApplicationSample-1.0.0.tpk and b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetApplicationSample-1.0.0.tpk differ diff --git a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetApplicationWearableSample-1.0.0.tpk b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetApplicationWearableSample-1.0.0.tpk old mode 100644 new mode 100755 index d322c6c..4d0cb96 Binary files a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetApplicationWearableSample-1.0.0.tpk and b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetApplicationWearableSample-1.0.0.tpk differ diff --git a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetViewSample-1.0.0.tpk b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetViewSample-1.0.0.tpk index 829a00f..b38f228 100755 Binary files a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetViewSample-1.0.0.tpk and b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetViewSample-1.0.0.tpk differ diff --git a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetViewWearableSample-1.0.0.tpk b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetViewWearableSample-1.0.0.tpk old mode 100644 new mode 100755 index 82de0c9..e91d7a3 Binary files a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetViewWearableSample-1.0.0.tpk and b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetViewWearableSample-1.0.0.tpk differ