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

Hi, Can any body please tell me how to create framework in qtp & where i can get some material to learn about it. regards, rahulT

1 Answers  


Why u don’t like recording the script and writing the script

3 Answers   Wipro,


How to add multiple values in rows, under a single column of a run time datatable?

3 Answers   NIIT,


Is it possible to call win runner script in qtp?

0 Answers  


how can we do the frame work in qtp

0 Answers   L&T,


How to get data from excel sheet to the script? write the script.

6 Answers   Ever, Liquid Hub,


if you run one test script in internetexplorer the same test you run in mozilla ffirefox is it possible or not how is it.

1 Answers   Satyam,


How to handle the exceptions using recovery secnario manager in quicktest professional?

0 Answers  


can we use QTP for load testing instead of load runner?

3 Answers  


In Test Director bug rEPORTS, wHAT ARE THE CONTENTS(fIELDS)? iF yoU PREAPARE BUG REPORT IN eXCEL sHEET , hOW U SEND TO dEVELOPMENT TEAM THRW T.D?

1 Answers  


what is descriptive programming?

5 Answers   Ordain Solutions,


Test script is generated and it is enhanced.It is required to be saved.But the disk space is insufficient.You are not permitted to delete any scripts.How are you going to save?

1 Answers   Accenture, DELL,


Categories