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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How many ways we can parameterize data in quicktest professional?

552


what is the difference between built-i function and In-built function?

1626


What are the steps involved in recovery scenario wizard?

518


What are the features and benefits of quick test pro (qtp 8.0)?

590


Shall we add Local Repository to shared object repository,if yes,how we add

5664






Define Error Pane of UFT?

684


I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!

1430


What is the latest version of qtp?

576


Mention the different actions types of qtp.

569


How to carry out bit map check points in QTP

1754


how to test Web application using QTP software

1557


How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric

1636


Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?

1511


Explain process of smart Identification in QTP?

595


How does you test a weblink which is changing dynamically?

544