How can we encrypt the username using recording mode in
login window? There is 2 encrypted types what are it



How can we encrypt the username using recording mode in login window? There is 2 encrypted types w..

Answer / amarendra kothuru

Methods for Encryption in QTP are as follows

1)SetSecure method -used only for TextBox object like
WinEdit/WebEdit etc...
E.g:Browser("test").Page("test").WebEdit
("test1").SetSecure "1HG76BHGJ89sd8Jkl9hjs988dsnjsk" 'encryp
tedtext


2)Crypt.Encrypt(valueToBeEncripted)
E.g: var_Value = Crypt.Encrypt("Tester")


Methods usage in Test Script
E.g:
pwd = "GetPasswordfromSomewhere"
e_pwd = Crypt.Encrypt(pwd)
Browser("dfgd").Dialog("pass").WinEdit("pwd").SetSecure
e_pwd

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

What are the points to be taken into consideration while doing desktop testing?

1 Answers   Cap Gemini,


What is the architecture of your project? Can any one answer for this question plz........

1 Answers  


Whenever we use GETROPROPERTY function.

7 Answers   NIIT,


example-date format is 01-jan-09 in QTP.How to convert this format to 01-01-09?

9 Answers   Tech Mahindra,


which type of testing process are you following in ur company? how to recognize a qtp page?

1 Answers  


what are the different Frame Works in Quick Test Proffessional testing

5 Answers   Wipro,


I have a web table,in that web table in 3rd row 4th coloumn i have a link how to click it with descriptive programming? I have a webedit without entering any value how to calculate the size of that field? I have a DB table , how to find the 5th highest salary? write query.

2 Answers   3i Infotech,


How do u do batch testing in WR & is it possible to do in QTP, if so explain?

1 Answers   Crea,


Hi. plz expalin abouit SetToProperty, SetRoProperty, GetToProperty, GetRoProperty,GetToPrperties. with examples.

6 Answers  


How to handle Dynamic Arrays?

0 Answers   Wipro,


How can you send user defined messages to test report?

1 Answers  


Hi Friends,I hav Just finished QTP course.Can any body suggest me which is the best place to go and post resume(Ban,Chennai,Pune,Mumbai,NCR,Kolkata).I mean how r calls in these cities,the best one?

3 Answers  


Categories