Simple login test

1 Answer 116 Views
Test Configuration Test Recording
Arkadiusz
Top achievements
Rank 1
Arkadiusz asked on 29 Nov 2022, 03:44 PM

Hi 

I am trying to make a simple website login test. Everything works fine, but when I am trying to untick SimulateRealTyping it's entering login so quick it disappears and selects 'log in' button straightaway so I am ending up with blank 'login' slot and full 'password' slot on the website?

 

Hope it makes sense? Sorry, English isn't my native language.

Any help appreciated :) 

1 Answer, 1 is accepted

Sort by
0
Plamen Mitrev
Telerik team
answered on 30 Nov 2022, 10:09 AM

Hi Arkadiusz,

You are absolutely right that the test is executed quicker without the SimulateRealTyping option. This is because the command is executed through JavaScript code and the text is directly injected into the DOM tree. However, there is a potential issue with this approach and that is why we provided the option to use SimulateRealTyping.

The problem being that some input fields have specific events that need to be triggered by real mouse and keyboard actions or with additional JavaScript calls. In this case, the easiest solution would be to enable SimulateRealTyping. Thus Test Studio will behave as if a real user is entering the data and will trigger the same events that the user would. This has other benefits from testing perspective, as this is the closes you can get to how the real user uses the application.

I hope the above information and suggestion is helpful to you and the rest of the community. Please do not hesitate to continue this or start a new discussion, if you have any open questions.

Regards,
Plamen Mitrev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Test Studio course! Check it out at https://learn.telerik.com/.
Tags
Test Configuration Test Recording
Asked by
Arkadiusz
Top achievements
Rank 1
Answers by
Plamen Mitrev
Telerik team
Share this question
or