Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Define object spy ?

1024


What is the use of running the scripts in Hidden-mode in UFT?

1227


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?

1908


What is the file extension of the code file and object repository file in QTP?

1109


Can we record an application running on a remote machine using qtp?

1171


What are the various types of Actions in UFT?

1072


How many types of Automation frameworks are there in UFT? Describe them.

1026


How many add-ins comes by default with quicktest professional (qtp)?

1004


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?

969


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

1784


What are some test assets and related extensions of qtp?

1034


Explain the qtp test phases.

1050


What is the recovery scenario in qtp?

1061


What is ‘object spy’ and what is the function of object spy in qtp?

1105


How can you close the second opened browser?

1416