If there are 5 radio buttons, My Excel will contain 5 columns with Yes or No. And 10 rows. For each run, the Yes/No will vary in the columns. Can anyone please help me in regard of this. Thanks. !!!
9 Answers, 1 is accepted
You should use True/False instead of Yes/No and simply data bind the radio buttons to column.
I recorded a video which demonstrates it.
Let me know if you need further assistance.
Boyan Boev
the Telerik team
Test Studio Trainings
Make me more clear please. Thanks !
Note: I'm working on Silverlight Platform.
Thank you for the clarification. Every action in Silverlight is a real action (that means that it affects the browser in the same way that a real user would affect the browser) therefore Test Studio is not recording "Check to be true".
The only way to databound the radio buttons is via a coded step.
if
(Data[
"Male"
].ToString()==
"True"
)
Pages.RadioButtonSample.FrameContent.SilverlightApp.TopButtonRadiobutton.Check(
true
);
else
{
Log.WriteLine(
"Male is False"
);
}
This will check the radio button if the "Male" column is True.
Here is a demonstration video.
Hope this helps.
Boyan Boev
the Telerik team
Test Studio Trainings
I am attaching a video which demonstrates the entire process from scratch.
Another very good source is our TV section.
Let me know if you need further assitance.
Boyan Boev
the Telerik team
Test Studio Trainings
But how do I save a Script step. And whenever I change the description of Coded step, Test studio is getting crashed. I don't think it is a problem with my Computer or my way of recording. Please help me sorting this thing out.
Herewith I'm attaching my Log:
The log says that there is some compile error (i.e. there is some syntax error in the code).
Please send us the test project or a screen shot of the coded step so we can investigate where the issue is.
Regarding the crashing of Test Studio I was not able to reproduce such a behavior. Please clear the application log, reproduce the issue and send us a copy of the log.
Hope to hear from you soon.
Boyan Boev
the Telerik team
Test Studio Trainings
I am glad you've managed to fix the issue you are experiencing.
Please don't hesitate if you have additional questions.
Regards,Boyan Boev
Telerik
Test Studio Trainings