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


Please Help Members By Posting Answers For Below Questions

Explain advantages and disadvantages of ddf?

595


How do you delete unwanted results in qtp?

598


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

23892


Connect to QC using AOM.

1229


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)

1844






Hello friends..... On which areas of an application we can not test with QTP

1553


How you can decide which type of object repository you have to use?

697


How does QTP identify an object?

607


what is the diff b/w assistive and mandatary rules of object repository in QTP???

1599


Can you write a script to check if the folder exists or not?

511


What are the types of object repository?

574


How you can find the absolute value of the number in qtp?

516


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?

1325


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?

1369


What is a Patch in QTP?

598