Test Studio and Keyboard Event

2 posts, 0 answers
  1. Mood
    Mood avatar
    3 posts
    Member since:
    Aug 2012

    Posted 06 Dec 2012 Link to this post

    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
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 07 Dec 2012 Link to this post

    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
Back to Top