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

Exception - Blank cells in datasource

5 Answers 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Morten Røgenes
Top achievements
Rank 1
Morten Røgenes asked on 20 Sep 2010, 03:09 PM
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()
--------------------------------------------------

5 Answers, 1 is accepted

Sort by
0
Nikolai
Telerik team
answered on 21 Sep 2010, 09:02 AM
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
0
Accepted
Konstantin Petkov
Telerik team
answered on 22 Sep 2010, 09:58 AM
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
0
Morten Røgenes
Top achievements
Rank 1
answered on 22 Sep 2010, 12:15 PM
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 =)
0
Konstantin Petkov
Telerik team
answered on 22 Sep 2010, 01:23 PM
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
0
Morten Røgenes
Top achievements
Rank 1
answered on 22 Sep 2010, 02:11 PM
Thank you
I just verified that the problem is solved
Tags
General Discussions
Asked by
Morten Røgenes
Top achievements
Rank 1
Answers by
Nikolai
Telerik team
Konstantin Petkov
Telerik team
Morten Røgenes
Top achievements
Rank 1
Share this question
or