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

Explain how you can find length of array in qtp?

0 Answers  


I have application it is one digital clock with all minutes and seconds. you have to identify the time to verify weather the time displayed is correct time or not? How do you automate this scenario?

2 Answers   TCS,


write the vb script for call to new action in qtp?

0 Answers  


what is vmodel?advantages and disadvantages of vmodel?

0 Answers   AZTEC,


what is active screen,keyboard view?

2 Answers   BirlaSoft,






Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project

0 Answers   T Mobile,


Key word driven framework

0 Answers   Wipro,


Can you brief the hurdles you faced during Automation testing?

0 Answers  


Give the syntax to load function at run time.

0 Answers  


How you will rate urself in QTP in the range of 0 to 5

0 Answers   Genpact,


How do we run the scripts in QTP ?? what are the three options....

4 Answers   HCL,


Could you suggest me best coaching for automation in Delhi or nearby area?

0 Answers  


Categories