How will you set a unique four digit number in an edit
field in QTP?
Answer Posted / tvs ramakrishna chowdary
we can set 4 digit no in edit box field dynamically
-----------------------------------------------------
let assume password edit box is there
----------------------------------------
str="rama"
no=randomnumber(1000,10000)'here we are generating random
value between 1000,10000
pwd=str&no
password=crypt.encrypt(pwd)
objectheirarchy.edit("password").setsecure pwd
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
Define object spy ?
What is the use of running the scripts in Hidden-mode in UFT?
Hi all, I am using windows vista, I am in the process of learning QTP. When ever I try to work with insert mode in flight application , i am getting the error of 'Operation must use an update table query, fractional truncation(null) error. Can anyone help me regarding this?
What is the file extension of the code file and object repository file in QTP?
Can we record an application running on a remote machine using qtp?
What are the various types of Actions in UFT?
How many types of Automation frameworks are there in UFT? Describe them.
How many add-ins comes by default with quicktest professional (qtp)?
How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
What are some test assets and related extensions of qtp?
Explain the qtp test phases.
What is the recovery scenario in qtp?
What is ‘object spy’ and what is the function of object spy in qtp?
How can you close the second opened browser?