Ask a Question

How to save passwords?

SOLVED
mamathak
Not applicable

How to save passwords?

Hi,



  I am new to Test complete
and need help on saving the passwords.



 During testing, We often need to enter a user name
and password to log into the application as different users. I am entering the
passwords when recording the test but when I am playing the test back, its not
automatically entering the password. It is just stuck on the log in page, the
username is there but its stuck on the password field. Is there any way I can
generate the password automatically. The password need not be the secure one,
haven’t got any security issues. We just use a generic password for all the
users during testing.



Thanks for the help in Advance.


Mamatha

4 REPLIES 4


Hello Mamatha,





Please describe the problem more specifically. What do you mean by saying that TestComplete "stuck on the password field"? Does TestComplete post an error to the test log? Please create a new TestComplete project, record a test with the problematic page and reproduce the problem, then pack the entire project suite folder along with the test logs and send it to Support.



Best regards,
Alexey

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

I am sailing on the same boat. I am working on a Desktop application and needs UserName and Password for login. 

Currently I am saving the test passowrd in password type variable but I am wondering how can I retrieve that variable value in my Keyword Test and test login via TestComplete. 

 

Thanks in advance.

 

 

tristaanogre
Esteemed Contributor

The password type variable contains decryption already.  So, all you need to do is call the "Keys" on screen action and pass the variable to it.

 

Or, if you're doing script code, simply use the variable in the parameter of the Keys method.

 

TestComplete will take care o fthe rest.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

Awesome. Thank you so much Robert.

Appreciate it.

cancel
Showing results for 
Search instead for 
Did you mean: