How will you set a unique four digit number in an edit
field in QTP?

Answers were Sorted based on User's Feedback



How will you set a unique four digit number in an edit field in QTP?..

Answer / 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

How will you set a unique four digit number in an edit field in QTP?..

Answer / bashur

using environment variable
you can write XML script to define environment variable in
notepad and save it as XML file.and when u executing qtp
main script call this environment variable.

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More QTP Interview Questions

how do you remove object repository at runtime and load object repository and verify it

2 Answers   Thomson Reuters,


can u please explain what is the exact difference between qtp8.2 and 9.0

0 Answers  


how can i prepare for QTP(8.2) to face interview ? give over view details?

52 Answers  


Hi let me ask one questin 1.How to use outputof the one function input to the another function pls give the script for above 2.what is the purpose of action parameter , how to create it

2 Answers  


Explain the concept of object repository and how QTP recognizes objects?

0 Answers  


How to connect QTP to Testdirector

4 Answers   BirlaSoft, Polaris,


what is purpose of automation?

3 Answers  


Ehat is the descriptive programing in QTP?

4 Answers  


HOW TO DO THE BATCH TESTING USING QTP?

2 Answers   Ordain Solutions,


If an application name is changes frequently i.e while recording it has name "Window1" and then while running its "Windows2" in this case how does QTP handles?

1 Answers   Crea,


How to pass parameters to Actions Pls anybody can give the answer.. Thanks in advance...

2 Answers   Navis,


For Passing Parameters from one Action to another Action we will use Input & Output parameters. Can any one tell how to use this Input & Output parameters with Example ?

2 Answers   TCS,


Categories