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

data binding test

3 Answers 102 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.
Oleg
Top achievements
Rank 1
Oleg asked on 13 Mar 2012, 05:49 PM
i`d succesfully binding my xml file in Test Express test  (xml file has a few columns "job","city")
after that i`ve changed static text "qa" in typed text (inserted sucessully during test execution) to $(Input job). fails. where is mistake?

log:

'13.03.2012 18:42:13' - 'Fail' : 17. Type 'gara' into SearchBoxExtendedtextbox - DataDriven: [$(Input job)]
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Column name 'Input job' does not exist!
InnerException:
System.ArgumentException: Column name 'Input job' does not exist!
   в ArtOfTest.Common.Design.Data.DataResolver.GetMatchValue(Match match, DataRow data, Boolean throwError)
   в ArtOfTest.Common.Design.Data.DataResolver.GetMatchString(String expression, DataRow data, Boolean error)
   в ArtOfTest.Common.Design.Extensibility.Descriptors.AutomationDescriptor.BindData(String propertyName)
   в ArtOfTest.Common.Design.Extensibility.Descriptors.AutomationDescriptor.BindData[T](String propertyName)
   в ArtOfTest.WebAii.Design.IntrinsicTranslators.Silverlight.Descriptors.GenericSetTextActionDescriptor.Execute(IApplication autoHost)
   в ArtOfTest.WebAii.Design.Extensibility.XamlActionDescriptor.Execute(IAutomationHost autoHost)
   в ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'13.03.2012 18:42:13' - Detected a failure. Step is marked 'ContinueOnFailure=True' continuing test execution.
'13.03.2012 18:42:23' - 'Pass' : 18. Wait for '9500' msec.
'13.03.2012 18:42:24' - 'Pass' : 19. Press Back
'13.03.2012 18:42:34' - 'Pass' : 20. Wait for '9500' msec.
'13.03.2012 18:42:35' - 'Fail' : 21. Type 'd' into SearchBoxExtendedtextbox - DataDriven: [$(Input A)]





3 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 13 Mar 2012, 07:29 PM
Hello Oleg,

First, ensure you Attach the Column via the Data Driven Editor. Next, if your column is named Job, then that exact text is what should go in the expression:
  • $(Job)

The Input part is unnecessary unless your column name actually contains that.

Kind regards,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Oleg
Top achievements
Rank 1
answered on 14 Mar 2012, 02:55 PM
yes, thanks, it`s working. about verification. in you answer there is a referense to such picture http://www.telerik.com/automated-testing-tools/libraries/automatedtesting-kb-files/sa-quick-tasks.sflb
but i`m see this windows without verify text, bit verify visible is granted.why? what ..can i dooo?
0
Anthony
Telerik team
answered on 14 Mar 2012, 05:32 PM
Hello Oleg,

The available verifications are based on what type of element you're targeting. You may need to access the DOM Explorer from the Elements Menu and manually locate the correct element.

To continue troubleshooting, it would be helpful if you can provide a public site that contains the same type of element you're verifying so we can see the issue you're facing.

Kind regards,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Oleg
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Oleg
Top achievements
Rank 1
Share this question
or