This is a migrated thread and some comments may be shown as answers.

Given key was not present in dictionary - extract variable

1 Answer 125 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Saima
Top achievements
Rank 1
Saima asked on 25 Jan 2011, 01:38 PM
Hi,

The variable used in extract step is not recognized by WEBUI, The test failed with error on the extract step

"The given key was not present in the dictionary'

Here is the log
Overall Result: Fail
'1/21/2011 12:34:59 PM' - 'Pass' : 1. Wait for '1000' msec.
'1/21/2011 12:35:13 PM' - 'Pass' : 2. Wait for Exists 'AnimatedCommonOuterBorderBorder'
'1/21/2011 12:35:14 PM' - 'Pass' : 3. Desktop command: LeftClick on DropDownMenuButtonRaddropdownbutton
'1/21/2011 12:35:17 PM' - 'Pass' : 4. radmenuitem: 'Add Content' click action.
'1/21/2011 12:35:17 PM' - 'NotRun' : 5. Desktop command: LeftClick on Item0Gridviewrow
'1/21/2011 12:35:17 PM' - 'NotRun' : 6. Click BtnOKRadbutton
'1/21/2011 12:35:23 PM' - 'Pass' : 7. LeftClick on PARTDropDownButtonTogglebutton
'1/21/2011 12:35:23 PM' - 'NotRun' : 8. LeftClick on Item5Grid
'1/21/2011 12:35:24 PM' - 'Pass' : 9. Wait for Exists 'Item71Border'
'1/21/2011 12:35:30 PM' - 'Pass' : 10. Wait for 'CrosstabTextblock' text Same 'Crosstab'
'1/21/2011 12:35:35 PM' - 'Pass' : 11. LeftClick on Item2Checkbox
'1/21/2011 12:35:38 PM' - 'Pass' : 12. Verify Item2Checkbox's checked state is Checked
'1/21/2011 12:35:39 PM' - 'Pass' : 13. Verify 'FilterTextblock' text Same 'Filter'
'1/21/2011 12:35:41 PM' - 'Pass' : 14. Click PARTApplyFilterButtonRadbutton
'1/21/2011 12:35:41 PM' - 'NotRun' : 15. LeftClick on PARTDropDownButtonTogglebutton
'1/21/2011 12:35:50 PM' - 'Pass' : 16. LeftClick on RegionByTextblock
'1/21/2011 12:35:51 PM' - 'Pass' : 17. Click BtnOKRadbutton
'1/21/2011 12:35:53 PM' - 'Fail' : 18. Extract 'RegionByTextblock' text into DataBindVariable $(content)
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
The given key was not present in the dictionary.
InnerException:
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Silverlight.Descriptors.PropertyVerificationDescriptor.ExtractData(SilverlightApp hostApp, DescriptorValueStore dataStore)
   at ArtOfTest.WebAii.Design.Extensibility.XamlVerificationDescriptor.ExtractData(IAutomationHost targetHost, DescriptorValueStore dataStore)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
------------------------------------------------------------
'1/21/2011 12:35:54 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'1/21/2011 12:35:54 PM' - Overall Result: Fail
'1/21/2011 12:35:54 PM' - Duration: [0 min: 55 sec: 468 msec]
------------------------------------------------------------

Please help me to resolve the issue.

Thanks,
Saima

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 25 Jan 2011, 05:13 PM
Hi Saima,

I just responded to you on this very issue in your original forum post.

Kind regards,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Tags
General Discussions
Asked by
Saima
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or