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
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 |
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 |
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 |
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 |
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 |
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 |
Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji
Recovery Manager means..?
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
how to capture (or) checkpoint for chineese or any other language except english using QTP in a web page. ( my application have 24 language, how to check those lanugages using QTP? is it possible). Please let me know
how to download mercury qtp9.2 ny internet ?
How can we export test results to an excel sheet in QTP??? Can any one provide sample coding for this?????
Now it appears to be more than enough... I have learn entire QTP, I did whatever I could do but still facing lots of problem and those problems could be removed only after working in professional atmosphere. But still unable to expose myself as professionaly. It is becoming panic, It has been two years I am in manual testing and looking for the change but all the recruiters ask for QTP, but my problem is I don't have working experience with QTP. Kindly suggest me I really need effective suggestions. I dont have more caliber to work with present organization cause of salary reasons...boo.. hooo...hooo. My email address is alkaa.dugaal@gmail.com
can any one say that where we can download the QTP trail version ??????????
If there are some browsers opened and I don't how many browsers are open, Now I want to close all the browsers that I don't know how many are opened. What would be Descriptive programming for this in QTP using VB Script..??? Please send your answers.
As u told write Libarary files in QTP. Do u use ever oject repositary 0r spy while writing scripts and for which type of testing u prepared test scripts.
A web page title might be xxxx@xyz.com or xxxy@xxx.co or xyz@abc.in.Using what mandatory properties can be the page identified.Give the regular expression for that.
Explain the concept of how quicktest professional identifies object?