This question is locked. New answers and comments are not allowed.
Hello,
I am writing a test that verifies the states of a bunch of tri-state check boxes (Telerik Silverlight controls) on a page. The states need to be verified against a list of expected check box states.
I have been able to record the test with the expected states hard-coded (see example below)- it is running fine.
However, I would now like to data-bind the test so that the verification steps get their expected states ("Unchecked" in the above example) from an external source which can be easily changed in future without modification of the test code.
However, I am unable to do this at the moment for the following reason:
I bound the test to the built-in database and added a row in the database with the expected values (I did rename the columns to something meaningful). For the expected values in the database, I used the same values as in the Value dropdown in the Properties of the verification step in the hard-coded version i.e. "Indeterminate", "Checked", "Unchecked". The problem is that when I click the Bindings dropdown on the Verification state, the Properties collection is empty.
Additional information:
The check boxes are children of a radtreeviewitem. I was not able to record the verification steps for the state of these check boxes in the normal way (i.e. hover over the control, choose the right level of the translator and click on it). Instead, I had to locate the radtreeviewitem in the DOM Browser, drill down to the check boxes, bring up their Element menu and then record the verification step for their state.
Is it not possible to do what I am trying above? If not, what am I missing? If it is not possible to do the above, is there any other way to accomplish the ultimate goal?
Your help would be much appreciated. Let me know if you have any questions.
Thanks,
Shashi
I am writing a test that verifies the states of a bunch of tri-state check boxes (Telerik Silverlight controls) on a page. The states need to be verified against a list of expected check box states.
I have been able to record the test with the expected states hard-coded (see example below)- it is running fine.
Verify UpdateCheckbox0's checked state is Unchecked
However, I would now like to data-bind the test so that the verification steps get their expected states ("Unchecked" in the above example) from an external source which can be easily changed in future without modification of the test code.
However, I am unable to do this at the moment for the following reason:
I bound the test to the built-in database and added a row in the database with the expected values (I did rename the columns to something meaningful). For the expected values in the database, I used the same values as in the Value dropdown in the Properties of the verification step in the hard-coded version i.e. "Indeterminate", "Checked", "Unchecked". The problem is that when I click the Bindings dropdown on the Verification state, the Properties collection is empty.
Additional information:
The check boxes are children of a radtreeviewitem. I was not able to record the verification steps for the state of these check boxes in the normal way (i.e. hover over the control, choose the right level of the translator and click on it). Instead, I had to locate the radtreeviewitem in the DOM Browser, drill down to the check boxes, bring up their Element menu and then record the verification step for their state.
Is it not possible to do what I am trying above? If not, what am I missing? If it is not possible to do the above, is there any other way to accomplish the ultimate goal?
Your help would be much appreciated. Let me know if you have any questions.
Thanks,
Shashi