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
What is a checkpoint? How many check points are there in qtp?
breef description of batch testing ?
What are the various automation frameworks available in qtp?
what frame work you are following?
I recorded a Web App with a Oracle backend using QTP 9.5 and for some reason the scripts don't play back> What am I missing at this point. I recorded the same Apps under Sybase and they work great. This is Oracle 10g. Why won't my scripts play back.
in a web page How to check and display a particular word from a paragraph?
What are the disadvantages of recording test cases in qtp?
what is the structure for the data driven framework
What are the types of environment variables in qtp?
How many add-ins comes by default with quicktest professional?
Explain how you can find the absolute value of the number in qtp?
What are metrics and matrix?
How many types of recording modes in qtp?
Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.
Is it possible to use two instances of UFT on the same machine? If not why?