[Xamarin.UITest 0.6.8] KeyNotFoundException using tree command in repl

FredrikHaglundFredrikHaglund SEUniversity, Developer Group Leader ✭✭

Not sure where to report issues I find.

Sometimes I get the following exception when running the tree command in Repl. When it happens it I can close down repl and re-run the unit test and it is still there.

Deleting and redeploying the usually makes the tree command to return what's expected again.

Let me know if you need more ...

tree                                                                        
Execution failed with exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.                              
  at System.Collections.Generic.Dictionary`2[System.String,Xamarin.UITest.Queries.AppResult[]].get_Item (System.String key) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures.BuildTree (Xamarin.UITest.Queries.AppResult element, System.Collections.Generic.Dictionary`2 childrenDictionary) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures+<>c__DisplayClass12.<BuildTree>b__11 (Xamarin.UITest.Queries.AppResult x) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Xamarin.UITest.Queries.AppResult,Xamarin.UITest.Utils.TreeElement].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToArray[TreeElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures.BuildTree (Xamarin.UITest.Queries.AppResult element, System.Collections.Generic.Dictionary`2 childrenDictionary) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures+<>c__DisplayClass12.<BuildTree>b__11 (Xamarin.UITest.Queries.AppResult x) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Xamarin.UITest.Queries.AppResult,Xamarin.UITest.Utils.TreeElement].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToArray[TreeElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures.BuildTree (Xamarin.UITest.Queries.AppResult element, System.Collections.Generic.Dictionary`2 childrenDictionary) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures+<>c__DisplayClass12.<BuildTree>b__11 (Xamarin.UITest.Queries.AppResult x) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Xamarin.UITest.Queries.AppResult,Xamarin.UITest.Utils.TreeElement].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToArray[TreeElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures.BuildTree (Xamarin.UITest.Queries.AppResult element, System.Collections.Generic.Dictionary`2 childrenDictionary) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures+<>c__DisplayClass12.<BuildTree>b__11 (Xamarin.UITest.Queries.AppResult x) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Xamarin.UITest.Queries.AppResult,Xamarin.UITest.Utils.TreeElement].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToArray[TreeElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures.BuildTree (Xamarin.UITest.Queries.AppResult element, System.Collections.Generic.Dictionary`2 childrenDictionary) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures+<>c__DisplayClass12.<BuildTree>b__11 (Xamarin.UITest.Queries.AppResult x) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Xamarin.UITest.Queries.AppResult,Xamarin.UITest.Utils.TreeElement].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToArray[TreeElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures.BuildTree (Xamarin.UITest.Queries.AppResult element, System.Collections.Generic.Dictionary`2 childrenDictionary) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures+<>c__DisplayClass12.<BuildTree>b__11 (Xamarin.UITest.Queries.AppResult x) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Xamarin.UITest.Queries.AppResult,Xamarin.UITest.Utils.TreeElement].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToArray[TreeElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures.BuildTree (Xamarin.UITest.Queries.AppResult element, System.Collections.Generic.Dictionary`2 childrenDictionary) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures+<>c__DisplayClass12.<BuildTree>b__11 (Xamarin.UITest.Queries.AppResult x) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Xamarin.UITest.Queries.AppResult,Xamarin.UITest.Utils.TreeElement].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToArray[TreeElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures.BuildTree (Xamarin.UITest.Queries.AppResult element, System.Collections.Generic.Dictionary`2 childrenDictionary) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures+<>c__DisplayClass12.<BuildTree>b__11 (Xamarin.UITest.Queries.AppResult x) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Xamarin.UITest.Queries.AppResult,Xamarin.UITest.Utils.TreeElement].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToArray[TreeElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures.BuildTree (Xamarin.UITest.Queries.AppResult element, System.Collections.Generic.Dictionary`2 childrenDictionary) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures+<>c__DisplayClass12.<BuildTree>b__11 (Xamarin.UITest.Queries.AppResult x) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Xamarin.UITest.Queries.AppResult,Xamarin.UITest.Utils.TreeElement].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToArray[TreeElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures.BuildTree (Xamarin.UITest.Queries.AppResult element, System.Collections.Generic.Dictionary`2 childrenDictionary) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures+<>c__DisplayClassd.<Dump>b__a (Xamarin.UITest.Queries.AppResult x) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Xamarin.UITest.Queries.AppResult,Xamarin.UITest.Utils.TreeElement].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToArray[TreeElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSGestures.Dump () [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.Utils.TreePrintHelper.PrintTree (ITreePrinter treePrinter) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.Queries.AppPrintHelper.Tree (Nullable`1 console) [0x00000] in <filename unknown>:0 
  at <InteractiveExpressionClass>.Host (System.Object& $retval) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Evaluator.Evaluate (System.String input, System.Object& result, System.Boolean& result_set) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.Repl.Evaluation.MonoCSharpReplEngine.Evaluate (System.String line) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.Repl.Repl.ReplFacade.RunCode (System.String code) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.Repl.PromptHandler.PrintTree () [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.Repl.PromptHandler.HandleInput (ConsoleKeyInfo key) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.Repl.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
Sign In or Register to comment.