Skip to content

Instantly share code, notes, and snippets.

@thu2004
Created November 14, 2014 22:39
Show Gist options
  • Save thu2004/801197a7784aad714f34 to your computer and use it in GitHub Desktop.
Save thu2004/801197a7784aad714f34 to your computer and use it in GitHub Desktop.
Test output
Test Name: Automate
Test FullName: TestStack.White.UITests.ControlTests.ListControls.CheckedListBoxTest.Automate
Test Source: c:\Home\projects\White_UIAComWrapper\src\TestStack.White.UITests\WhiteTestBase.cs : line 42
Test Outcome: Failed
Test Duration: 0:00:06,248
Result Message:
TestStack.White.UITests.TestFailedException : Failed to run CanCheckItem for WinForms. Details:
System.InvalidCastException: Unable to cast object of type 'TestStack.White.UIItems.CheckBox' to type 'TestStack.White.UIItems.ListBoxItems.ListItem'.
at TestStack.White.UIItemList`1..ctor(List`1 collection, UIItemFactory factory, ActionListener actionListener) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\UIItemList.cs:line 26
at TestStack.White.UIItemList`1..ctor(List`1 collection, ActionListener actionListener) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\UIItemList.cs:line 21
at TestStack.White.UIItems.ListBoxItems.ListItems..ctor(List`1 collection, ActionListener actionListener) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\UIItems\ListBoxItems\ListItems.cs:line 12
at TestStack.White.UIItems.ListBoxItems.ListControl.get_Items() in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\UIItems\ListBoxItems\ListControl.cs:line 33
at TestStack.White.UIItems.ListBoxItems.ListControl.Item(String itemText) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\UIItems\ListBoxItems\ListControl.cs:line 41
at TestStack.White.UIItems.ListBoxItems.ListBox.IsChecked(String itemText) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\UIItems\ListBoxItems\ListBox.cs:line 17
at TestStack.White.Bricks.DelegateInvoker.ActionInvokerWrapper`2.Call(Object[] args) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\Bricks\DelegateInvoker.cs:line 182
at TestStack.White.Bricks.DynamicProxyInterceptors.Process(IInvocation invocation, CoreInterceptContext interceptedContext) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\Bricks\DynamicProxyInterceptors.cs:line 21
at TestStack.White.Interceptors.CoreInterceptor.Intercept(IInvocation invocation) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\Interceptors\CoreInterceptor.cs:line 31
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.Proxies.ListBoxProxy.IsChecked(String itemText)
at TestStack.White.UITests.ControlTests.ListControls.CheckedListBoxTest.CanCheckItem() in c:\Home\projects\White_UIAComWrapper\src\TestStack.White.UITests\ControlTests\ListControls\CheckedListBoxTest.cs:line 23
at TestStack.White.UITests.WhiteTestBase.RunTest(Action testAction, WindowsFramework[] runFor) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White.UITests\WhiteTestBase.cs:line 74
---- System.InvalidCastException : Unable to cast object of type 'TestStack.White.UIItems.CheckBox' to type 'TestStack.White.UIItems.ListBoxItems.ListItem'.
Result StackTrace:
at TestStack.White.UITests.WhiteTestBase.RunTest(Action testAction, WindowsFramework[] runFor) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White.UITests\WhiteTestBase.cs:line 90
at TestStack.White.UITests.ControlTests.ListControls.CheckedListBoxTest.ExecuteTestRun(WindowsFramework framework) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White.UITests\ControlTests\ListControls\CheckedListBoxTest.cs:line 16
at TestStack.White.UITests.WhiteTestBase.Automate() in c:\Home\projects\White_UIAComWrapper\src\TestStack.White.UITests\WhiteTestBase.cs:line 57
----- Inner Stack Trace -----
at TestStack.White.UIItemList`1..ctor(List`1 collection, UIItemFactory factory, ActionListener actionListener) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\UIItemList.cs:line 26
at TestStack.White.UIItemList`1..ctor(List`1 collection, ActionListener actionListener) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\UIItemList.cs:line 21
at TestStack.White.UIItems.ListBoxItems.ListItems..ctor(List`1 collection, ActionListener actionListener) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\UIItems\ListBoxItems\ListItems.cs:line 12
at TestStack.White.UIItems.ListBoxItems.ListControl.get_Items() in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\UIItems\ListBoxItems\ListControl.cs:line 33
at TestStack.White.UIItems.ListBoxItems.ListControl.Item(String itemText) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\UIItems\ListBoxItems\ListControl.cs:line 41
at TestStack.White.UIItems.ListBoxItems.ListBox.IsChecked(String itemText) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\UIItems\ListBoxItems\ListBox.cs:line 17
at TestStack.White.Bricks.DelegateInvoker.ActionInvokerWrapper`2.Call(Object[] args) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\Bricks\DelegateInvoker.cs:line 182
at TestStack.White.Bricks.DynamicProxyInterceptors.Process(IInvocation invocation, CoreInterceptContext interceptedContext) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\Bricks\DynamicProxyInterceptors.cs:line 21
at TestStack.White.Interceptors.CoreInterceptor.Intercept(IInvocation invocation) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White\Interceptors\CoreInterceptor.cs:line 31
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.Proxies.ListBoxProxy.IsChecked(String itemText)
at TestStack.White.UITests.ControlTests.ListControls.CheckedListBoxTest.CanCheckItem() in c:\Home\projects\White_UIAComWrapper\src\TestStack.White.UITests\ControlTests\ListControls\CheckedListBoxTest.cs:line 23
at TestStack.White.UITests.WhiteTestBase.RunTest(Action testAction, WindowsFramework[] runFor) in c:\Home\projects\White_UIAComWrapper\src\TestStack.White.UITests\WhiteTestBase.cs:line 74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment