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

Password input is empty in a request

4 Answers 113 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 03 Oct 2016, 11:12 AM

There is a simple login form with a password input field (a username is a default).

So, when I type the password by hand using a keyboard I have a correct submit where the password corresponds which I enter.

But when I start a test from Telerik Test Studio with a step Enter text "password" in InputPassword
and click a login button the submit request has the password empty.

angular.element("#inputPassword")[0].value returns the valid value.

Control type for InputPassword  is HtmlInputPassword.
HTML of the form and submit function code are attached.

Please help. Where is a problem?

4 Answers, 1 is accepted

Sort by
0
Ivan
Top achievements
Rank 1
answered on 04 Oct 2016, 05:55 AM
I have found the answer. You should enable the SimulateRealTyping property.
0
Boyan Boev
Telerik team
answered on 04 Oct 2016, 01:19 PM
Hello Ivan,

I am happy that you have found the solution.

SimulateRealTyping acts as a real user against the browser and the application.

If you need further assistance please let us know.

Regards,
Boyan Boev
Telerik by Progress
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
parkway
Top achievements
Rank 1
answered on 13 Jun 2017, 06:21 AM

I guess the situation of mine is different from you. I tried to input the password and the blank became empty too. I have enabled the SimulateRealTyping property but it just became nothing no matter of using the keyboard by hand or the browser automatically. Lately I tried to reset my password and it against for my password is too simple without few special characters.( The original password was not set by me) so I had to ask help for the Safest Password Manager that I searched on the Internet and it gave me one. I tried this one to reset and it passed. I tried to log in again with the new one but I still can not make it. The last reason I can think of was my speed of PC cause there was too many files that inflected a lot.I tried to press them as ZIP and it became better. I just want to say the speed of my PC made these situation too many times, there is nothing wrong with the software and it works well. I just need somewhere safe to be my Best Password Keeper cause I need to encrypt every ZIP files.

 

0
Elena
Telerik team
answered on 16 Jun 2017, 06:41 AM
Hi,

Thank you for reaching us out. 

To double check what might be going worng with typing the password you could run the test with annotations toggled on (please refer to point 5 of this article). This will highlight the target elements of each step and will allow you to better understand if the execution is too fast and an execution delay is required or the password field is not correctly located and its find expression needs to be changed

Please let me know if there is any issue with Test Studio that you are facing! Thanks! 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Ivan
Top achievements
Rank 1
Answers by
Ivan
Top achievements
Rank 1
Boyan Boev
Telerik team
parkway
Top achievements
Rank 1
Elena
Telerik team
Share this question
or