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

Text Box verification not working in Silverlight

3 Answers 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aswin
Top achievements
Rank 2
Aswin asked on 16 May 2013, 09:26 AM
Hi, I'm working on a Test scenario in Silverlight platform. It contains a User comments text-box field. I'm data driving it from Excel, that part works fine. After pasting the comment, I've created a Nested If-Else verify the text content in the text-box, so that accordingly a check-box has to be clicked.

There are 5 check-boxes, and only one of them has to be checked according to the comment entered in the text-box. But the test is always executing the last Else part in Nested-If...

P.S: I tested the same with a normal dummy HTML page and it is working perfectly fine. Is there any special steps to be applied or taken for Silverlight? What could be wrong, Help me out please. Thanks !

3 Answers, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 16 May 2013, 02:45 PM
Hi Aswin,

To overcome this, set the EnsureStateIsCurrent property of the verification step to True. This will refresh the DOM tree before performing the verification and should resolve the issue you are experiencing. See this video for a quick demonstration. 
 
Another option is to change the role of that step. You can do that by right-clicking on the step>Change Role>Set As Wait. Test Studio will wait for that condition to be true (up to the time set) before proceeding with the test (instead of checking once and failing if false). See this article for more information.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Aswin
Top achievements
Rank 2
answered on 17 May 2013, 04:12 AM
That really helped a lot... Thank you very much... :)
0
Plamen
Telerik team
answered on 17 May 2013, 06:23 AM
Hello Aswin,

You're very welcome! Please contact us again if you have further problems.

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