How will you set a unique four digit number in an edit
field in QTP?
Answers were Sorted based on User's Feedback
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 |
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 |
Syntax for how to call one script from another and Syntax to call one "Action" in another?
How many types of run modes are there in qtp?
in which case & which method we can use "native" property of an object ?
How comfortable are you in VB scripting?
What are the various versions of QTP that have been released so far? Please also mention the year of release for each version
How to differentiate the webedit field like user name and password? Please tell any other best answer is ther
how to retrieve the xml file data through qtp. can anybody send script for this..
What is throw Object?
what is the extension for the test version of the script?
Can any one send me the QTP Basic Coding Samples?
Suppose if a functionalityis not mensioned in requirement document and but its present in application. will it be consider as a bug and viceversa?
i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.