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

Answers were Sorted based on User's Feedback



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

Answer / deeps

We use the GetROProperty method to retrieve the current
value of a test object property from run time object in
your application.

Is This Answer Correct ?    4 Yes 1 No

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

Answer / deepa

We can also use "Output Value" method to get the value into
a data table.

Is This Answer Correct ?    2 Yes 1 No

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

Answer / girishkumar

example:
Dim variable name
variable name = Browser(browser).page
(pagename).webEdit(usernaem).GetROproperty(text)

in the above example, "text" is the object property which contain the data of the username field. this property will change based on the the type of class of object you selected. if you use object spy, you can get more object information in that you can select which object suitable to meet your requirement.
Ex: if you want to get data from list box, at that time you may use "items count" instead of "text".

EX:variable name = Browser(browser).page
(pagename).webList(Fly from).GetROproperty(items count)

Is This Answer Correct ?    0 Yes 0 No

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

Answer / sreenivas reddy

dont know abt getroproperty but to retrieve data from edit
box this is the statement ----var=browser("yahoo").page
("yahoo-login").webedit("username").getvisibletext
magbox var

Is This Answer Correct ?    2 Yes 3 No

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

Answer / hariprasad reddy

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 3 No

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

Answer / lcsekhar

i can tell you the procedure to get the data of username if
u can read properly then u might be getting the result.
just declare a variable
x=browser(browser).page(pagename).setROproperty("innertext")
msgbxo x
thats it

Is This Answer Correct ?    1 Yes 9 No

Post New Answer

More QTP Interview Questions

There are two tabs in the application suppose, A and B.On clicking the tab "A" one table grid will open. if u click on tab "B" Another table gride will open. Now can I do some operations on both table grids with a single table grid properties in the object repository? I have added all objects of the first table grid into the object repository Now iam checking enable/disable status of "save button" in the second table grid my code is like this val=javawindow("zseries").javabutton("save").getroproperty ("enabled") when I highlighting the save button in the object repository by keeping open the second tablegrid on the application.It is displaying the popup message"The selected object can not be found in the application" can I use properties of one table grid for both tabs if so how it is possible. Can anyone help me

2 Answers   Livetek,


I register user defined function in one test, I tried to call that function into other test. But that function not works in other test please give the direction for that.

1 Answers  


how can we group that these test cases only should be automated and in which order you execute that test cases?

2 Answers   BSL,


How can the expected image for a bitmap checkpoint be recaptured in QTP

2 Answers   Ordain Solutions,


Local Obj Repository and SOR are editable know, y we have to edit those.. i mean in which situation we need to edit those and how to do..? pls help me..

2 Answers  






what type of frame work used in your company?

2 Answers   HCL,


Can we Script any test case with out having Object repository? or Using Object Repository is a must

3 Answers   Crea,


How you can make an action as re-usable action?

0 Answers  


What are different types of frame works ?

3 Answers  


How u will open the build automatically in QTP except using Systemutil.run command

6 Answers  


How can you handle exceptions in qtp?

0 Answers  


I'm quite new at QTP. Im doing a web-based app testing. I create something new item and a new link is created in the home page. This link is dynamic as it changes every 3 seconds. Obviously the new link is not in my Object Repo and I am trying to find a way how can I do a check or get the propery of the link I created. I can do it on keyword, but I need to do a check on expert mode, vbscript. I always get an error that is not identified whenever i try to check it (browser(b),page(p).link(newlink). Any idea?

4 Answers  


Categories