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 can I change object description or check point values in qtp?

0 Answers  


How to handle the exceptions using recovery scenario manager In QTP?

2 Answers  


How to export data present in Datatable to an ".xls" file?

1 Answers   Crea,


what is exact difference between smoke and sanity testing?

6 Answers   Satyam,


when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks

0 Answers  






what is object spy

5 Answers   TCS,


Explain different type of event trigger option.

0 Answers  


actually how many hours per one day we will work on automation (qtp) in real time

1 Answers   Synechron,


what are the different Frame Works in Quick Test Proffessional testing

5 Answers   Wipro,


If already everything is tested using White-Box testing, then what is the need of using Black box testing?

3 Answers  


if my application shows 100 records and in my database having 200 records how i can validate using QTP tool?plz exp. in detail?

2 Answers   Wipro,


If object is not recognized by qtp but the object is standard object what is your approach?

0 Answers  


Categories