Completed
Last Updated: 21 Feb 2014 16:14 by ADMIN
ADMIN
Stoich
Created on: 29 Jan 2014 09:21
Type: Bug Report
0
ArgumentNullException thrown when using RunSelectedStep on coded step
Repro and workaround: http://screencast.com/t/kfegZbi8

Failure Information: 
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[WebTest_CodedStep] : New Coded Step'.
InnerException:
System.ArgumentNullException: Value cannot be null.
Parameter name: list
   at System.Collections.ObjectModel.ReadOnlyCollection`1..ctor(IList`1 list)
   at ArtOfTest.WebAii.Core.Find.AllByExpression(HtmlFindExpression expression)
   at ArtOfTest.WebAii.Core.Find.AllByExpression(String[] expression)
   at Bjorn.WebTest.WebTest_CodedStep() in c:\Users\stoichev\Documents\Test Studio Projects\Bjorn\WebTest.tstest.cs:line 79
2 comments
ADMIN
Shtilianov
Posted on: 21 Feb 2014 16:14
The reason is that by using run selected on a single coded step, we don't get the automatic RefreshDomTree that is called during normal quick execution or in the case where there is a recorded step executing.
ADMIN
Shtilianov
Posted on: 21 Feb 2014 16:12
Note that in the case where only one coded step exists or the first step is coded step you still have to call RefreshDomTree in the beginning of the step. In other cases the problem is fixed and fix will be included in the service pack.