Skip to content

Unstable unit test: System.Windows.Forms.UITests.ListViewTests.ListView_Tile_... #13291

Open
@LeafShi1

Description

@LeafShi1

Related #11227

Test

All of the tests about ListView Tile under System.Windows.Forms.UITests.ListViewTests

Issue description

   at System.ThrowingTraceListener.Fail(String message, String detailMessage) in /_/src/Common/tests/TestUtilities/ThrowingTraceListener.cs:line 12
   at System.Diagnostics.TraceInternal.Fail(String message, String detailMessage)
   at System.Diagnostics.TraceInternal.TraceProvider.Fail(String message, String detailMessage)
   at System.Diagnostics.Debug.Fail(String message, String detailMessage)
   at System.Diagnostics.Debug.Assert(Boolean condition, String message)
   at System.Windows.Forms.ListView.UpdateTileView() in /_/src/System.Windows.Forms/System/Windows/Forms/Controls/ListView/ListView.cs:line 5810
   at System.Windows.Forms.ListView.set_View(View value) in /_/src/System.Windows.Forms/System/Windows/Forms/Controls/ListView/ListView.cs:line 1835
   at System.Windows.Forms.UITests.ListViewTests.InitializeTileList(ListView listView, Int32 columnCount, Int32 subItemsCount, Size tileSize) in /_/src/test/integration/UIIntegrationTests/ListViewTests.cs:line 548
   at System.Windows.Forms.UITests.ListViewTests.<>c__DisplayClass6_0.<ListView_Tile_GetChildCount_ReturnsExpectedAsync>b__0(Form form, ListView listView) in /_/src/test/integration/UIIntegrationTests/ListViewTests.cs:line 190
   at System.Windows.Forms.UITests.ControlTestBase.<>c__DisplayClass32_0`1.<<RunFormAsync>b__0>d.MoveNext() in /_/src/test/integration/UIIntegrationTests/Infra/ControlTestBase.cs:line 317
--- End of stack trace from previous location ---
   at System.Windows.Forms.UITests.ControlTestBase.RunFormAsync[T](Func`1 createDialog, Func`3 testDriverAsync) in /_/src/test/integration/UIIntegrationTests/Infra/ControlTestBase.cs:line 343
   at System.Windows.Forms.UITests.ControlTestBase.RunSingleControlTestAsync[T](Func`3 testDriverAsync, Func`1 createControl, Func`1 createForm) in /_/src/test/integration/UIIntegrationTests/Infra/ControlTestBase.cs:line 246
   at System.Windows.Forms.UITests.ListViewTests.RunTestAsync(Func`3 runTest) in /_/src/test/integration/UIIntegrationTests/ListViewTests.cs:line 567
   at System.Windows.Forms.UITests.ListViewTests.ListView_Tile_GetChildCount_ReturnsExpectedAsync(Int32 columnCount, Int32 subItemsCount, Int32 width, Int32 height, Int32 expected) in /_/src/test/integration/UIIntegrationTests/ListViewTests.cs:line 188
--- End of stack trace from previous location ---
  • Error Message 2:

    • In X86 and X64 unit:
      System.ArgumentOutOfRangeException : InvalidArgument=Value of '0' is not valid for 'itemIndex'. (Parameter 'itemIndex')\r\nActual value was 0.

    • Stack trace:

at System.Windows.Forms.ListView.GetSubItemRect(Int32 itemIndex, Int32 subItemIndex, ItemBoundsPortion portion) in /_/src/System.Windows.Forms/System/Windows/Forms/Controls/ListView/ListView.cs:line 3667
   at System.Windows.Forms.ListView.GetSubItemRect(Int32 itemIndex, Int32 subItemIndex) in /_/src/System.Windows.Forms/System/Windows/Forms/Controls/ListView/ListView.cs:line 3629
   at System.Windows.Forms.ListViewItem.ListViewItemTileAccessibleObject.GetSubItemBounds(Int32 subItemIndex) in /_/src/System.Windows.Forms/System/Windows/Forms/Controls/ListView/ListViewItem.ListViewItemTileAccessibleObject.cs:line 125
   at System.Windows.Forms.ListViewItem.ListViewItemTileAccessibleObject.GetLastChildIndex() in /_/src/System.Windows.Forms/System/Windows/Forms/Controls/ListView/ListViewItem.ListViewItemTileAccessibleObject.cs:line 115
   at System.Windows.Forms.ListViewItem.ListViewItemTileAccessibleObject.GetChildCount() in /_/src/System.Windows.Forms/System/Windows/Forms/Controls/ListView/ListViewItem.ListViewItemTileAccessibleObject.cs:line 81
   at System.Windows.Forms.UITests.ListViewTests.<>c__DisplayClass6_0.<ListView_Tile_GetChildCount_ReturnsExpectedAsync>b__0(Form form, ListView listView) in /_/src/test/integration/UIIntegrationTests/ListViewTests.cs:line 192
   at System.Windows.Forms.UITests.ControlTestBase.<>c__DisplayClass32_0`1.<<RunFormAsync>b__0>d.MoveNext() in /_/src/test/integration/UIIntegrationTests/Infra/ControlTestBase.cs:line 317
--- End of stack trace from previous location ---
   at System.Windows.Forms.UITests.ControlTestBase.RunFormAsync[T](Func`1 createDialog, Func`3 testDriverAsync) in /_/src/test/integration/UIIntegrationTests/Infra/ControlTestBase.cs:line 343
   at System.Windows.Forms.UITests.ControlTestBase.RunSingleControlTestAsync[T](Func`3 testDriverAsync, Func`1 createControl, Func`1 createForm) in /_/src/test/integration/UIIntegrationTests/Infra/ControlTestBase.cs:line 246
   at System.Windows.Forms.UITests.ListViewTests.RunTestAsync(Func`3 runTest) in /_/src/test/integration/UIIntegrationTests/ListViewTests.cs:line 565
   at System.Windows.Forms.UITests.ListViewTests.ListView_Tile_GetChildCount_ReturnsExpectedAsync(Int32 columnCount, Int32 subItemsCount, Int32 width, Int32 height, Int32 expected) in /_/src/test/integration/UIIntegrationTests/ListViewTests.cs:line 186
--- End of stack trace from previous location ---

Metadata

Metadata

Assignees

Labels

test-bugProblem in test source code (most likely)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions