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

Test Studio and Keyboard Event

1 Answer 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mood
Top achievements
Rank 1
Mood asked on 06 Dec 2012, 09:35 AM
Hello,

I use the test studio interface to create tests (to test a silverlight application )
I do not know how to test keyboard events.
The action is to press "ctrl" and hold to select multiple elements in a list with the mouse

How do I do this? Should I write code?

Thank you in advance

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 07 Dec 2012, 12:33 PM
Hi Mood,
Test Studio will record Keyboard actions. As it happens, however, CTRL clicks on their own will not be recorded. Instead what you can do is record a CTRL + Something click and then modify it to be just a CTRL click like this:
http://screencast.com/t/7EeHfCHNhEA

Test Studio will also record CTRL + Click steps. It records them as separate steps which seems bad but multiselection actually still works. You might have to set these clicks steps to SimulateRealClick=true however:
http://www.telerik.com/automated-testing-tools/blog/stoil-stoichev/12-09-04/regular-vs-simulated-clicks.aspx

Alternatively you can do this through code:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/test-execution-problems/invoke-blind-keyboard-typing.aspx

Let me know if you have additional questions on this.

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