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

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

4 Answers 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
gnuftw
Top achievements
Rank 2
gnuftw asked on 22 May 2015, 05:55 PM

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!

4 Answers, 1 is accepted

Sort by
0
gnuftw
Top achievements
Rank 2
answered on 26 May 2015, 05:52 PM
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?
0
Accepted
Boyan Boev
Telerik team
answered on 27 May 2015, 06:55 AM
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!
0
gnuftw
Top achievements
Rank 2
answered on 27 May 2015, 02:26 PM

Awesome, thanks Boyan.

 ~ Max

0
Boyan Boev
Telerik team
answered on 28 May 2015, 07:44 AM
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!
Tags
General Discussions
Asked by
gnuftw
Top achievements
Rank 2
Answers by
gnuftw
Top achievements
Rank 2
Boyan Boev
Telerik team
Share this question
or