PasswordBox Fill

5 posts, 0 answers
  1. Mike
    Mike avatar
    20 posts
    Member since:
    Aug 2011

    Posted 06 Nov 2011 Link to this post

    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
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 08 Nov 2011 Link to this post

    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.
  3. Mike
    Mike avatar
    20 posts
    Member since:
    Aug 2011

    Posted 09 Nov 2011 Link to this post

    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

  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 10 Nov 2011 Link to this post

    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.
  5. Mike
    Mike avatar
    20 posts
    Member since:
    Aug 2011

    Posted 26 Dec 2011 Link to this post

    Hello Stoich, I'm happy for the ticket to be closed.

    Kind Regards,
    Mike
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!