14 Answers, 1 is accepted
I am attaching a simple test which is running against this online example and is data driven. I hope this helps.
Kind regards,
Pavel
the Telerik team
I have a question regarding how to data bind an Excel spreadsheet to a RadMaskedTextBox. Pavel's example test has steps in it like
"RadInput(RadMaskedTextBox1_wrapper)". These steps have properties that expose Binding Collections that include "InputValue". However, I don't see how to include test steps of type "RadInput", so all of my test steps that refer to RadMaskedTextBox only have "Property" exposed in the Binding Collection. How can I add a test step of type "RadInput" to my project? I assume that being able to do so will allow me to bind an Excel spreadsheet in the same manner as I have for regular text box input.
My environment: 2010 Q3 trial version of the WebUI Developer against a Silverlight application, Visual Studio 2010, Silverlight 4 on Windows 7 with IE8
Thanks.
-David
Hi David and Ivan,
These types of steps are created using the same type of process that you would use for regular textbox input. Record the step entering in some data into the appropriate RadInput field and the test step will be created in your project. After the test step is created, highlight it and then go into the Properties for the step, and then add the binding reference for the appropriate database.
In the provided example, Pavel used the "BuildInGrid" instead of binding an entire database (this way there is no need to include the spreadsheet, the test will run with the .aii and .resx files present).
If you try to type into the RadInput field while recording, does WebUI not record the test step for you to manipulate? Please let us know if this is the case so we can look closer at the RadInput setup you have for your Dev environment.
All the best,
Keaegan
the Telerik team
Hi Keaegan,
When I record the steps to enter text into the RadMaskedTextBox control, I get 2 steps (see attachment). The 1st step indicates where I click on the control and the 2nd step shows what I type in the text box. I do not get a step as shown in Pavel's example. The properties of both of these steps are the same (binding collections only shows "Properties" in both steps). Let me know if you need additional information.
Thanks.
-David
When I record test and type in to RadMaskedTextBox control, step is recorded but not as “RadInput(RadMaskedTextBox1_wrapper)”. It is recorded as "radmaskedtextbox: type ‘111’ text action."
"RadInput" step in your example have properties for binding but "radmaskedtextbox " step in my case don’t have it. So difference is in how step is recorded.
Best regards
Ivan
Let me first clarify where the difference comes from. Initially the thread has been started about RadMaskedTextBox for ASP.NET AJAX and you guys seem to be automating the Silverlight RadMaskedTextBox control. So these are separate controls having separate translators. In the ASP.NET control the data-binding is supported whereas we need to implement that for the Silverlight counterpart. I hope that clears the confusion.
I will forward your request to the responsible developer. You can expect the SL MaskedTextBox TypeText action to support data-binding in the next release (our 2010 Q3 Service Pack 2 is expected due in two weeks).
Please let us know if you have other questions.
Best wishes,
Konstantin Petkov
the Telerik team
For now I have one question. In development edition, there is no possibility to drag and drop test steps, so I don't know how to drop test step in to logical statement. Can you please help me with this?
Best regards
Ivan
I am sorry you appear to be having a problem with Drag & Drop of test steps. Which version of Visual Studio are you using? I just verified that Drag & Drop of test steps does actually work and it does drop into a logic step as expected.
What happens when you try?
Cody
today Drag & Drop is working. Confused and happy. Yesterday when I try to drag test step, I left click on test step and hold it, and when I pull mouse down next test step is selected, and so on. Today is working and I didn't change anything. I am using VS2010 Premium.
Best Regards
Ivan L
Sounds good. We'll keep watching for this. If by any chance you do discover when/how to break the drag & drop functionality, please let us know so we can figure it out and fix it.
I am wondering if, when it was failing, is it possible the step was in "edit" mode and shown in the attached screen shot? Drag & drop while the step is in edit mode is deliberately disabled. But you should be able to drag & drop other steps not in edit mode, even when one step is in edit mode.
Cody
just to confirm that I didn't have drag&drop recorded steps problem in VS2010 any more.
And want to ask you what about issue that Data Driven Test doesn't support for silverlight radmaskedtextbox control ?
Best regards
Ivan
We believe that we have already fixed the issue with Data driven tests for the RadMaskedTextBox.
Can you please try your tests with the latest internal build for the WebUI TestStudio from the (02.03.2011) and let us know if it works for you?
If you still experience this issue it will be really helpful if you can send us your falling test(s).
Regards,
Vladislav
the Telerik team
Thanks
Ivan