Creating genuine front-end, user input (keystrokes and mouse clicks)

5 posts, 1 answers
  1. gnuftw
    gnuftw avatar
    24 posts
    Member since:
    May 2015

    Posted 22 May 2015 Link to this post

    Yo! 

    I am testing a WPF application and it is crucial that I simulate front-end, user peripheral input as genuinely as possible. If I want to enter some text into some textbox, how can I do this such that it is the same as a user physically using a keyboard with the app?

    I asked this question via email and was pointed to the 'Test Step Properties' section of the Test Studio documentation. I am a bit confused on how using properties like 'SimulateRealClick', 'SimulateRealTyping', and 'SimulateRealUser' can be implemented and how they are useful.

    If I create a LeftClick step, is Test Studio going to perform this click using the mouse or does it invoke a click on the WPF element? 

    Thanks!

  2. gnuftw
    gnuftw avatar
    24 posts
    Member since:
    May 2015

    Posted 26 May 2015 in reply to gnuftw Link to this post

    I believe I have figured out the answer to my own question. It seems that I can easily provide genuine peripheral input by selecting Simulating Real Clicks/Typing By Default in my Recording Options under Project Settings. Am I correct?
  3. Answer
    Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 27 May 2015 Link to this post

    Hello Maxwell,

    SimulateRealClick is whether to perform the click using the mouse rather than directly invoking a click on the DOM element.

    If you select this in the Project settings all click/typing steps will have this option enabled by default.

    You can also enabled this in the already recorded step in its properties (see the attached screen shot).

    Hope this helps. 

    Regards,
    Boyan Boev
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  4. gnuftw
    gnuftw avatar
    24 posts
    Member since:
    May 2015

    Posted 27 May 2015 in reply to Boyan Boev Link to this post

    Awesome, thanks Boyan.

     ~ Max

  5. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 28 May 2015 Link to this post

    Hi Maxwell,

    You are most welcome.

    If you need further assistance please let us know.

    Regards,
    Boyan Boev
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top