Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setsecure method
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
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
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
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
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  What is a Method in QTP and how many types are method r there in QTP? vidyabr 1 4,459 07-28-2008, 02:14 PM
Last Post: surya_7mar

Forum Jump:


Users browsing this thread: 1 Guest(s)