how we can take data in the username field text box into

variable in web application explain with example and give

all functions to get data into variables



how we can take data in the username field text box into variable in web application explain with..

Answer / sreeprasad

Any Application, it may be web or it may be window based

applications, we use getroproperty() method to get the data

from the Editbox.Same way if u want to set the data to the

editbox we use set()method.

for example:

Dim variable name

variable name = Browser(browser).page

(pagename).GetROproperty("Logical name")

if u want to print in dialogbox use msgbox()function OR

if u want to print in test result use reporter.reporter

event() function

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.

4 Answers   V2 Solutions,


I recorded a Web based Application running on JAVA and when I went to play them back a week later they didn't run. I noticed that the Browser was putting in a (Underscore and a Number) for each line so i re-recorded and noticed the Underscore line wasn't the same as what i recorded last week so any script I record today will not work next week because the browser settings or how QTP recognizes it keeps changing. This is the new line Browser("Bureau of Labor Statistics_4").Page("Bureau of Labor Statistics").JavaApplet("SurveyApplet").JavaList ("Select an Area").Select "U.S. city average" This is the old line 'Browser("Bureau of Labor Statistics_3").Page("Bureau of Labor Statistics").JavaApplet("SurveyApplet").JavaList ("Select an Area").Select "U.S. city average" Notice the Burearu of Labor Statistics_3 adn Burearu of Labor Statistics_4. Why does it change and how do I prevent it from changing.

5 Answers  


how to do spell check in QTP? reply please

8 Answers  


does test plan is in test strategy or test strategy is in test plan.

6 Answers   Microsoft, TCS,


How will you handle java tree in qtp?

0 Answers  






I want to do QTP Certification what is the pattern of Question paper.

0 Answers  


When I start recording any web application (either Mozilla or IE) QTP recognizes window instead of browser and also it does not show all the hierarchy tree of that particular web page. 1. Window("Mozilla Firefox").Check CheckPoint("Mozilla Firefox") 2. As everybody knows it should be browser("Mozilla Firefox").Check CheckPoint("Mozilla Firefox") I am using the windows vista, do you think it may be a problem of my settings in QTP or problem of my installation. Your kind responses will be appreciated. Thanks in advance. Satya

12 Answers  


How the exception handling can be done using quicktest professional?

0 Answers  


what is the purpose of SetTOProperty Method?

1 Answers   Cap Gemini, iGate, Wipro,


Give some brief idea about a) Active x check b) Alt property check c) Applet object check d) Frame object check e) Multimedia links check f) Server side image check g) Table object check

1 Answers   CTS,


Explain about the Test Fusion Report of QTP ?

1 Answers   Ordain Solutions,


how can we retrieve ten rows from the data table using loop concept?

4 Answers  


Categories