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

how can u find the syntax errors or other script errors in your test during the execution of your QTP Test - (i.e., not after the execution/test run finished, but before finishing the test run)

2 Answers   HCL,


can i change the runtime properties of an object ? How can i check if a parameter exists in database ?

0 Answers  


can u please explain what r the challenges u faced in ur automation testing

2 Answers   Genpact,


Hi all, what is the latest version of QTP?

20 Answers   CTS,


what is standalone database

1 Answers   Wipro,






how to get the data from a winedit box in vb scripting and store it in a variable if data contains "_"(i.e data is TEST_1)

3 Answers  


How did you achieve reusability via QTP?

1 Answers  


In qtp, explain what is qrs file?

0 Answers  


What is QuickTest Automation Object Model? Where we can use AOM?

1 Answers  


What is Active Screen in QTP?

11 Answers  


Is the provision for integrating QTP with QC ,available from the version 9.0 onwards only or even 8.2 version has such provisions?

1 Answers  


Whenever we r keeping mouse pointer under the image we r getting image name. In qtp how can we do this thing.weather that name is coming or not?

5 Answers  


Categories