feat: Add Microsoft.Windows.AppLifecycle
APIs
#19080
Merged
Azure Pipelines / Uno.UI - CI
succeeded
Dec 23, 2024 in 1h 5m 15s
Build #5.6.0-PullRequest-19080-150683-19080.1230 had test failures
Details
- Failed: 947 (0.81%)
- Passed: 106,197 (90.95%)
- Other: 9,618 (8.24%)
- Total: 116,762
Annotations
Check failure on line 1 in When_Many_Targets_Collected()
azure-pipelines / Uno.UI - CI
When_Many_Targets_Collected()
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Assert.AreEqual failed. Expected:<5150>. Actual:<5171>.
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowAssertFailed(String assertionName, String message)
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual[Int32](Int32 expected, Int32 actual, IEqualityComparer`1 comparer, String message, Object[] parameters)
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual[Int32](Int32 expected, Int32 actual)
at Uno.UI.RuntimeTests.Tests.Windows_UI.Given_WeakEventHelper.When_Many_Targets_Collected()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Check failure on line 1 in ValidateOverflowScrollViewerDoesNotScrollWithArrowKeys()
azure-pipelines / Uno.UI - CI
ValidateOverflowScrollViewerDoesNotScrollWithArrowKeys()
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Expected object to be [865, 5], but found [865, 53].
at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
at FluentAssertions.Primitives.ObjectAssertions.Be(Object expected, String because, Object[] becauseArgs)
at Private.Infrastructure.TestServices.VERIFY_ARE_EQUAL[Point](Point actual, Point expected, String message)
at Microsoft.UI.Xaml.Tests.Enterprise.BaseDxamlTestClass.VERIFY_ARE_EQUAL[Point](Point actual, Point expected, String message)
at Windows.UI.Tests.Enterprise.CommandBarIntegrationTests.<>c__DisplayClass25_0.<ValidateOverflowScrollViewerDoesNotScrollWithArrowKeys>b__5()
at Private.Infrastructure.TestServices.<>c__DisplayClass1_0.<RunOnUIThread>b__0()
at Private.Infrastructure.UnitTestDispatcherCompat.<>c__DisplayClass18_0.<RunAsync>b__0()
--- End of stack trace from previous location ---
at Private.Infrastructure.TestServices.RunOnUIThread(Action action)
at Windows.UI.Tests.Enterprise.CommandBarIntegrationTests.<>c__DisplayClass25_0.<<ValidateOverflowScrollViewerDoesNotScrollWithArrowKeys>b__4>d.MoveNext()
--- End of stack trace from previous location ---
at Uno.UI.RuntimeTests.Helpers.TestHelper.RetryAssert(Func`1 assertion, Int32 count)
at Uno.UI.RuntimeTests.Helpers.TestHelper.RetryAssert(Func`1 assertion, Int32 count)
at Windows.UI.Tests.Enterprise.CommandBarIntegrationTests.ValidateOverflowScrollViewerDoesNotScrollWithArrowKeys()
at Uno.UI.Samples.Tests.UnitTestsControl.<>c__DisplayClass63_1.<<ExecuteTestsForInstance>g__InvokeTestMethod|5>d.MoveNext()
azure-pipelines / Uno.UI - CI
SamplesApp.UITests.Windows_ApplicationModel_Resources.ResourceLoader_Simple.ValidateResourceLoader_Simple
System.Exception : Error while performing WaitForElement(All().Marked("sampleControl"), "Timed out waiting for element...", 00:00:05, null, null)
----> System.TimeoutException : Timed out waiting for element...
TearDown : System.Exception : Error while performing Invoke("GetScreenshot", "0")
----> System.Net.Http.HttpRequestException : An error occurred while sending the request.
----> System.Net.Http.HttpIOException : The response ended prematurely. (ResponseEnded)
Raw output
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
at Xamarin.UITest.Android.AndroidApp.WaitForElement(Func`2 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at Uno.UITest.Xamarin.XamarinApp.WaitForElement(Func`2 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at SamplesApp.UITests.SampleControlUITestBase.Run(String metadataName, Boolean waitForSampleControl, Boolean skipInitialScreenshot, Int32 sampleLoadTimeout) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 472
at SamplesApp.UITests.Windows_ApplicationModel_Resources.ResourceLoader_Simple.ValidateResourceLoader_Simple() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_ApplicationModel_Resources/ResourceLoader_Simple.cs:line 20
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--TimeoutException
at Xamarin.UITest.Shared.WaitForHelper.WaitForAny[T](Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at Xamarin.UITest.Android.AndroidApp.<>c__DisplayClass80_0.<WaitForElement>b__0()
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
--TearDown
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
at Xamarin.UITest.Android.AndroidApp.Invoke(String methodName, Object argument)
at Uno.UITest.Xamarin.XamarinApp.Invoke(String methodName, Object argument)
at Uno.UITest.Helpers.BackdoorInvocationHelper.InvokeGeneric(IApp app, String methodName, Object arg1)
at SamplesApp.UITests.Extensions.AppExtensions.GetInAppScreenshot(IApp app) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Extensions/AppExtensions.cs:line 61
at SamplesApp.UITests.SampleControlUITestBase.GetNativeScreenshot(String title) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 347
at SamplesApp.UITests.SampleControlUITestBase.TakeScreenshot(String stepName, ScreenshotOptions options) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 307
at SamplesApp.UITests.SampleControlUITestBase.TakeScreenshot(String stepName, Nullable`1 ignoreInSnapshotCompare) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 288
at SamplesApp.UITests.SampleControlUITestBase.AfterEachTest() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 234
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--HttpRequestException
at Xamarin.UITest.Shared.Http.HttpClient.SendData(String endpoint, String method, HttpContent content, ExceptionPolicy exceptionPolicy, Nullable`1 timeOut)
at Xamarin.UITest.Shared.Http.HttpClient.Post(String endpoint, Object arguments, ExceptionPolicy exceptionPolicy, Nullable`1 timeOut)
at Xamarin.UITest.Android.AndroidGestures.Invoke(String methodName, Object[] arguments)
at Xamarin.UITest.Android.AndroidApp.<>c__DisplayClass88_0.<Invoke>b__0()
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
--HttpIOException
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
azure-pipelines / Uno.UI - CI
SamplesApp.UITests.Windows_UI_Core.SystemNavigationManagerTests.When_Hardware_Back_Button_Pressed
System.Exception : Error while performing WaitForElement(All().Marked("sampleControl"), "Timed out waiting for element...", 00:00:05, null, null)
----> System.TimeoutException : Timed out waiting for element...
TearDown : System.Exception : Error while performing Invoke("GetScreenshot", "0")
----> System.Net.Http.HttpRequestException : An error occurred while sending the request.
----> System.Net.Http.HttpIOException : The response ended prematurely. (ResponseEnded)
Raw output
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
at Xamarin.UITest.Android.AndroidApp.WaitForElement(Func`2 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at Uno.UITest.Xamarin.XamarinApp.WaitForElement(Func`2 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at SamplesApp.UITests.SampleControlUITestBase.Run(String metadataName, Boolean waitForSampleControl, Boolean skipInitialScreenshot, Int32 sampleLoadTimeout) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 472
at SamplesApp.UITests.Windows_UI_Core.SystemNavigationManagerTests.When_Hardware_Back_Button_Pressed() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_UI_Core/SystemNavigationManagerTests.cs:line 17
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--TimeoutException
at Xamarin.UITest.Shared.WaitForHelper.WaitForAny[T](Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at Xamarin.UITest.Android.AndroidApp.<>c__DisplayClass80_0.<WaitForElement>b__0()
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
--TearDown
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
at Xamarin.UITest.Android.AndroidApp.Invoke(String methodName, Object argument)
at Uno.UITest.Xamarin.XamarinApp.Invoke(String methodName, Object argument)
at Uno.UITest.Helpers.BackdoorInvocationHelper.InvokeGeneric(IApp app, String methodName, Object arg1)
at SamplesApp.UITests.Extensions.AppExtensions.GetInAppScreenshot(IApp app) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Extensions/AppExtensions.cs:line 61
at SamplesApp.UITests.SampleControlUITestBase.GetNativeScreenshot(String title) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 347
at SamplesApp.UITests.SampleControlUITestBase.TakeScreenshot(String stepName, ScreenshotOptions options) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 307
at SamplesApp.UITests.SampleControlUITestBase.TakeScreenshot(String stepName, Nullable`1 ignoreInSnapshotCompare) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 288
at SamplesApp.UITests.SampleControlUITestBase.AfterEachTest() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 234
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--HttpRequestException
at Xamarin.UITest.Shared.Http.HttpClient.SendData(String endpoint, String method, HttpContent content, ExceptionPolicy exceptionPolicy, Nullable`1 timeOut)
at Xamarin.UITest.Shared.Http.HttpClient.Post(String endpoint, Object arguments, ExceptionPolicy exceptionPolicy, Nullable`1 timeOut)
at Xamarin.UITest.Android.AndroidGestures.Invoke(String methodName, Object[] arguments)
at Xamarin.UITest.Android.AndroidApp.<>c__DisplayClass88_0.<Invoke>b__0()
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
--HttpIOException
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
Loading