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

Error typing on textbox if "SimulateRealUser" is set to True

5 Answers 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paulo
Top achievements
Rank 2
Paulo asked on 06 Jun 2013, 02:30 PM
Hi!

I'm testing a Silverlight application.
I have a step on my test that's to type something in a textbox.
The recording works fine, but in the execution that step fails, there is no text typed into the textbox.

I've found that if I set "SimulateRealUser" to False, in the execution the text is typed in the textboxes, and no errors occurs.

Could you explain me what's the difference between having "SimulateRealUser" to True or False, and why when it's set to True my step fails?

Thanks,
Paulo

5 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 07 Jun 2013, 07:35 AM
Hi Paulo,

I am sorry to hear you are running into this problem.

Unfortunately this is not expected behavior, we know about this bug, but fortunately there is an easy workaround.

You just need to change the SimulateRealUser property from True to False, as you did.

SimulateRealUser means Test Studio is going to simulate actually typing at the keyboard like a real person would. When it is set to False Test Studio will try to directly inject the value into that input field instead of typing on the keyboard. 

Thank you for your understanding.

Regards,
Boyan Boev
Telerik
Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
Reserve your seat today!
0
Paulo
Top achievements
Rank 2
answered on 07 Jun 2013, 09:43 AM
Hi,

Thanks for the reply.

What is weird is that until a few days ago with "SimulateRealUser" set to True, everything ran smoothly.
Suddenly,  this issue appeared.

Hope this issue to be fixed soon.

Thx,
Paulo
0
Boyan Boev
Telerik team
answered on 07 Jun 2013, 09:45 AM
Hello Paulo,

I believe this will be fixed as soon as possible.

Thank you for your feedback.
 

Regards,
Boyan Boev
Telerik
Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
Reserve your seat today!
0
Anand
Top achievements
Rank 1
answered on 27 Dec 2013, 06:48 PM
Hi,

Is this issue addressed? m still seeing this issue only in chrome.
Version 2013.1

Regards,
Anand
0
Rodney
Telerik team
answered on 27 Dec 2013, 07:57 PM
Hi Paulo,

This behavior is not scheduled to be addressed. Part of the issue is that Test Studio is designed to always clear the text before setting the new one. Part of the clear textbox procedure is to call keyPress for the 'End' key which unfortunately moves the selection to the last item. If this issue is negatively effecting your automation efforts, I recommend adding your experience to the public feedback item for impact. 

Although this won't be an issue in every case, we recommend setting SimulateRealUser to false when necessary. 


Regards,
Rodney
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Paulo
Top achievements
Rank 2
Answers by
Boyan Boev
Telerik team
Paulo
Top achievements
Rank 2
Anand
Top achievements
Rank 1
Rodney
Telerik team
Share this question
or