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

PasswordBox Fill

4 Answers 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mike
Top achievements
Rank 1
Mike asked on 06 Nov 2011, 04:27 PM
Hello,

Just wondering whether anyone else has run into this before. I have a typical logon screen with a logon name and password boxes. The password input is a WPF PasswordBox control. When I run a Test Studio test to test the logon process the logon fails even though the correct name and password are set in the actions.

Is there a problem filling in the password box control through ui automation? Unfortunately I am not able to debug the application at the same time so can't really check what the password is set to. Is this possible at all?

Thanks,

Mike

4 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 08 Nov 2011, 07:03 PM
Hello Mike,
    I've managed to reproduce what I believe is the issue you're experiencing.

Please check whether the SetPasswordTo step is set to SimulateRealUser=fasle (screenshot 1). If it is, set it to "true" and try rerunning the test. When I tried it with SimulateRealUser=false it set the correct password but the expected action didn't occur. What is most likely happening is the app is wired to the keypress events as user types into the input field. These events don't get fired when it's set False.We'll do a direct set test property on the input field, bypassing the keypress event handler. Basically this is expected behavior.

Please check this and let me know how it goes. 

Regards,
Stoich
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mike
Top achievements
Rank 1
answered on 09 Nov 2011, 09:18 PM

Hello Stoich,

 

Thanks for your reply. I did have the SimulateRealUser set to true however the rest of your information was very useful. My app does rely on the key up event so at least I understand what’s going on can work around it.

 

Thanks again,

 

Mike

0
Stoich
Telerik team
answered on 10 Nov 2011, 01:11 PM
Hi Mike,
   let me know whether you require additional assistance with this or should I go ahead and close the ticket?

All the best,
Stoich
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mike
Top achievements
Rank 1
answered on 26 Dec 2011, 06:37 PM
Hello Stoich, I'm happy for the ticket to be closed.

Kind Regards,
Mike
Tags
General Discussions
Asked by
Mike
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Mike
Top achievements
Rank 1
Share this question
or