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

There is an excel file of 1 to 100 sheets how you will iterate through it?

530


I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?

1372


what is the diff between manual test plan document and automation test plan doc.can u explain indetail.

1642


How do you do batch testing in wr and is it possible to do in qtp, if so explain?

507


Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay

2664






hi, FOR 3+ QTP INTERVIEW, FOR EXAMPLE WE PUT ONLINE BANKING SYSTEM PROJECT IN OUR RESUME, IN PROJECT MANAGER ROUND...WHAT R THE MAJOR QUESTIONS ARE ASKED IN P.M? PLS TELL ME ATLEAST 10 QUESTIONS?.....AND IF POSSIBLE POST ANSWERS ALSO....

2437


What are the technics follow in writing VB script?

1532


How you can write contexts to text file in qtp?

591


Explain the concept of object repository?

528


How to use Environment parameterization? Explain with an example.

1481


Tell me one scenario, the complex functionality you have automated in your project?

1476


Hi All, I need code for how to execute qtp scripts from excell sheet

1465


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

1229


www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example

1728


What are the general steps involved in the data driven framework?

554