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
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
what function you write to do database testing with the help of qtp?
Explain how you can find length of array in qtp?
What are the differences between table and db checkpoints?
What is the use of ordinal identifier in qtp?
Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?
What are the factors on which script execution time is dependent?
What are the five challenges you faced in QTP?
• What type of testing questions will be asked for 2+ yrs exp people in interview?
What are the various types of Actions in UFT?
what is the difference between data driver & data driven and driver script?
If I change the object name in one action will it be updated in all the actions? Or not?
Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks
write a script to verify the image path(src property) of the images which are in web pages.