Exception - Blank cells in datasource

6 posts, 1 answers
  1. Morten Røgenes
    Morten Røgenes avatar
    24 posts
    Member since:
    Apr 2010

    Posted 20 Sep 2010 Link to this post

    Hi,

    I just installed the newest version of test studio. This scenario has been working before, but now I get the exception below when I run tests that is bound to a datasource with an empty cell. I have bound a HtmlTextbox to this value.

    Is there a workaround for this? or do i need to type a ' ' character where I want no text? I liked it better when it skipped empty cells.

    Failure Information: 
    ~~~~~~~~~~~~~~~
    Cannot resolve binding expression '$(Address)' for property 'Text'! Please make sure the expression matches the data.
    InnerException:
    System.ArgumentException: Cannot resolve binding expression '$(Address)' for property 'Text'! Please make sure the expression matches the data.
       at ArtOfTest.Common.Design.Extensibility.Descriptors.AutomationDescriptor.BindData(String propertyName)
       at ArtOfTest.Common.Design.Extensibility.Descriptors.AutomationDescriptor.BindData[T](String propertyName)
       at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.SetTextActionDescriptor.Execute(Browser browser)
       at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
    --------------------------------------------------

  2. Nikolai
    Admin
    Nikolai avatar
    111 posts

    Posted 21 Sep 2010 Link to this post

    Hi Morten Røgenes,

    This is a new feature. We got customers complains about this so now when you pass empty string a error is thrown.  In general we didn't see a purpose for setting empty values. I will address the issue again to the team if we can make both scenarios possible.

    Thank you for your time.

    All the best,
    Nikolai
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Answer
    Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 22 Sep 2010 Link to this post

    Hi Morten,

    We definitely need to support both scenarios and we already have a fix for the problem you posted. Please try this custom build and post back should you need further assistance.

    I'm sorry for the temporary inconvenience!

    Kind regards,
    Konstantin Petkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. Morten Røgenes
    Morten Røgenes avatar
    24 posts
    Member since:
    Apr 2010

    Posted 22 Sep 2010 Link to this post

    Hi again,
    Thanks for the custom build. I just tried it, but I'm experiencing some weird behaviour with this build.
    It kinda fixed my problem, but here's the weird part.
    It always failed when it tried to get data from the source, giving this exception.

    '22.09.2010 13:07:31' - 'Fail' : 5. Set 'TxtAdmarea' text to '' - DataDriven: [$(Name)]
    --------------------------------------------------
    Failure Information:
    ~~~~~~~~~~~~~~~
    Column 'Text' does not belong to table AdmAreas$.
    InnerException:
    System.ArgumentException: Column 'Text' does not belong to table AdmAreas$.
       at System.Data.DataRow.GetDataColumn(String columnName)
       at System.Data.DataRow.get_Item(String columnName)
       at ArtOfTest.Common.Design.Extensibility.Descriptors.AutomationDescriptor.BindData(String propertyName)

    It looks for a column 'Text' which does not exist in the source. I then tried to rename my column from 'Name' to 'Text' and it worked. As a matter of fact, I only need to add an empty column named 'Text' for the test to run as expected. When I do, the textboxes still get the right data inserted into them. Anyway, thanks for adding this feature back in =)
  5. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 22 Sep 2010 Link to this post

    Hi Morten,

    We should have missed a case with the previous build. I'm was unable to replicate that with the latest build though so I asked the colleagues to upload the new build. You can find it at the same location and give it a go.

    Greetings,
    Konstantin Petkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Morten Røgenes
    Morten Røgenes avatar
    24 posts
    Member since:
    Apr 2010

    Posted 22 Sep 2010 Link to this post

    Thank you
    I just verified that the problem is solved
Back to Top