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
Explain advantages and disadvantages of ddf?
How do you delete unwanted results in qtp?
if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp
Connect to QC using AOM.
How we can use the database checkpoint on a java web based application in which the database connectivity is done using JDBC->Pure Java type (in this type there is no need to create a DSN). At present in QTP we can fetch database values using checkpoint only through DSN. Is there any programming for this if we don't have DSN (ODBC)
Hello friends..... On which areas of an application we can not test with QTP
How you can decide which type of object repository you have to use?
How does QTP identify an object?
what is the diff b/w assistive and mandatary rules of object repository in QTP???
Can you write a script to check if the folder exists or not?
What are the types of object repository?
How you can find the absolute value of the number in qtp?
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
What is a Patch in QTP?