Micro Focus QTP (UFT) Forums
Setsecure method - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Setsecure method (/Thread-Setsecure-method)



Setsecure method - karraaruna - 12-20-2010

Hi,

In my script when Iam entering any value in a textbox, qtp is recording the value in an encrypted manner,
Code:
JavaWindow("Client Information System").JavaInternalFrame("Client Demographics").JavaEdit("VTextField_4").SetSecure "4d0b772dc5d1e0c3"

It is difficult to debug when the value is unidentified. how to find out the value which is in encrypted

Thanks very much in advance


RE: Setsecure method - anjali.symantec@gmail.com - 12-21-2010

Hi there,
QTP gives you a tool to encrypt any string, but there is no tool for decrypt the string.
You are using the SetSecure method, try using only set method, it will take the value as it is.
This is what i understood from your problem, if this is not the case, can you send a more detailed explanation about your problem..

Thanks
Smile


RE: Setsecure method - manishbhalshankar - 12-21-2010

Hi Karraaruna,

The JavaEdit("VTextField_4") object of your application is a protected field thats why QTP has recorded SetSecure instead of Set. If you want to decode the encoded text, try to set the encoded string using SetSecure on a non protected field:

e.g. SomeNonProtectedJavaEdit("TextField").SetSecure "4d0b772dc5d1e0c3"

this will show the exact decoded string in the textfield.