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
Hi All, I need code for how to execute qtp scripts from excell sheet
how to convert 100 into hundred repees only and viceversa
How to handle the exceptions using recovery secnario manager in quicktest professional?
How can you write the scripts that operate on different objects depending on run-time information?
Explain sub procedure of vbscript.
How qtp identifies objects?
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
What are the methods used in UFT to handle exceptions or run-time errors?
How many ways we can parameterize data in quicktest professional?
In qtp, explain what is keyword driven automation framework?
when a test case is written how u test using qtp
How to recognise the webelement and verifying that webelement is enabled?
How to define array in qtp?
What is the differences between image check point and bit map check point?
Explain the differences between table and db checkpoints?