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 |
Can abody explain me Send keys concept
can anyone explain about the Descriptive programming in detail. I mean how to use in the script.
How to associate function library at a run time?
What is Descriptive Programing? In which cases, we will go for descriptive programing?
What are the advantages of Object Repository?
i need to learn the descriptive programming very well so for that what to do am reading the qtp user mannual but it is not so any materials or links with examples i want please help me
RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?
How can we log a defect in Testdirector from Q.T.P ?
what are the qtp tester responsibilities?
What are the features supported by UFT?
How can we disable smart identification at the time of recording? Ideally, smart identification should be enabled only at the run-time.
how to retrieve the value from data table to the script and using the value to be displayed in message box. an also retrieve the value of the output value during runtime to the script or separating and using that value in the script.