Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get an encrypted text as input in input box of QTP script

Status
Not open for further replies.

QTPbeginner

Programmer
Jan 3, 2008
2
US
Hi,

I am beginner in QTP scripting. I created a recorded script to test some web page login.

I wanted to let the users put in the password dynamically, for that I used input box while scripting. How do I make the text input in the input box as encrypted like using setsecure in webedit.

I want the text entered to be displayed as encrypted text pwd instead of plainly text in the input box.

Plz help...

Thanks,
Sowmya
 
This isn't a QTP property, it's a property of the textbox object. The object has to be set to show the *****s as opposed to QTP managing this.

Does the object show the encrypted text when it's entered manually? And QTP shows the cleartext password? Is that the problem?

Cheers,
Dave

"Yes, I'll stop finding bugs in the software - as soon as you stop writing bugs into the software." <-- Me

For all your testing needs: Forum1393
 
Hi,

Yes, the password WebEdit object of the webpage displays as encrypted text using SetSecure method. But, the Input box i created for the user to dynamically enter password accepts only cleartext password, I want that also to be displayed as *****.

How do I do that?

Thanks,
Sowmya
 
You've got an automated test that pauses for user input?

Why's that? You'd be better defining a series of passwords and allowing the script to run unaided.

In any case, your inputbox as generated in QTP can't be set to encode the password AFAIK. You need to provide the password already encrypted to QTP using the Password Encoder tool, or the SetSecure method.



Cheers,
Dave

"Yes, I'll stop finding bugs in the software - as soon as you stop writing bugs into the software." <-- Me

For all your testing needs: Forum1393
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top