Whenever we use GETROPROPERTY function.
Answers were Sorted based on User's Feedback
when ever u want to capture the object value on that time
we can use GetROproperty.
RO Property means: Run time Objective propertys
means what are the objective properties that all are know
as RO properties.
for ex we can capture the value in result
window("calc").vbedit("A").set "10"
window("Calc").vbedit("B").set "20"
window("Calc").vbbutton("Add").click
c=window("Calc").vbedit("result").getROproperty("text")
i think this is working properly
if u have any quarries please call me 9823257761
raju.ippali@gmail.com
Is This Answer Correct ? | 14 Yes | 3 No |
Answer / sai krishna reddy.k
You can use the GetROProperty to retrieve the current
property value of objects in your application during the
test run.
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / nani4urs
Returns the current value of the test object property from
the object in the application
eg: wn u want to know the value of an object in run time
then we can use the getroproperty.
syntax: getroproperty(browser("nani").page("nani").object
("objectname","value"))
Is This Answer Correct ? | 11 Yes | 4 No |
Answer / sivareddy
"GETROPROPERTY" capture the properties of the object at
the script running postion
Syntax:getroproperty(browser("Siva").page("Siva").object
("objectname","value"))
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / rajaputra
It is used to get the Runtime object property.
By using this we can do Access control testing.
By using this we can know whether the object is
enable/disable OR editable/non-editable
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / softwaretester4u
if window("edit box").Getroproperty("Enabled") Then
perform operations
end if
Getroproperty retrives the values edit box ebaled or not
i think u got some answer if u required more subscribe
testingguru yahoo groups ask ur questions ,panel will
answer ur question
Is This Answer Correct ? | 5 Yes | 4 No |
GetROProperty is a methods by which user can the runtime value of a particular object while doing test Run.
ex: if user wanted to get value present in a text box.
strTxtValue= Browser("").page("").webEdit("").GetROProperty("value")
Is This Answer Correct ? | 0 Yes | 0 No |
Function to convert lowercase to uppercase in QTP Pls anybody can give the answer.. Thanks in advance...
How do u write a regular expression for date (dd/mm/yyyy) field ?
How do u retrieve data from a text file into different variables. i.e. in a text file named "source" , the data is like : india,1000,japan,200,china,50,singapore,45050 this is given in the first line of the text file. in the second line of the text file the dta is: sun,moon,planet,river,earth,water if u use "readline" method by using FSO concept u can retrieve the entire line in to a variable. but i want to import each field (ex: "india" in one variable, "1000" in another variable etc..). Apprecitae proper replies.
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
What are the parameters provided by QTP?
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
Is it possible to check the Run time value property of a field through a Database Checkpoint ? Further, is it possible to localize and mention a particular cell , in the database dynamically. My requirement is that I would need to check the status of a particular field , that would change from an "Active" state to a "Stopped" state dynamically.
Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.
VM1 = "Invalid username or password. Please try again. " VM2 = "Email id is required.Password is required. " VM3 = "Email id is an invalid e-mail address.Password is required. " VM4 = "Password is required. " VM5 = "Email id is required. " VM6 = "Email id is an invalid e-mail address. " 'Rowcount of the Local sheet Rowcount = DataTable.GetSheet("Invalid login transactions").GetRowCount 'Valid emailid and Password Emailid = "test@iteamic.com" Password = "Password0" 'For i = 1 to Rowcount 'Parameterised Email_id Browser("Browser").Page ("Page").WebEdit("emailAddress").Set DataTable("Email_id", dtLocalSheet) EID = Browser("Browser").Page ("Page").WebEdit("emailAddress").GetRoProperty("value") 'Parameterised Password Browser("Browser").Page ("Page").WebEdit("password").Set DataTable("Password", dtLocalSheet) PWD = Browser("Browser").Page ("Page").WebEdit("password").GetROProperty("Value") If EID = Emailid And PWD = Password Then Reporter.ReportEvent micPass, "EID & PWD check", "Email id and Password is correct, One iteration of Invalid login attempts is not being executed" Else Browser("Browser").Page("Page").WebButton ("Sign-In").Click 'Output value exported to the local sheet Browser("Browser").Page ("Page_2").Output CheckPoint("Home page_Sign in") 'Storing the output value in a variable(OUTPUT OUTPUT = Datatable.GetSheet ("Invalid login transactions").Getparameter ("Validation_message_signin").value 'comparing the Variable Output and the Validation message for a given input If OUTPUT = VM1 Then Reporter.ReportEvent micPass, "VM1", "Invalid username or password. Please try again. " else if OUTPUT = VM2 Then Reporter.ReportEvent micPass, "VM2", "Email id is required.Password is required. " else if OUTPUT = VM3 Then Reporter.ReportEvent micPass, "VM3", "Email id is an invalid e-mail address.Password is required. " else if OUTPUT = VM4 Then Reporter.ReportEvent micPass, "VM4", "Password is required. " else if OUTPUT = VM5 Then Reporter.ReportEvent micPass, "VM5", "Email id is required. " else if OUTPUT = VM6 Then Reporter.ReportEvent micPass, "VM6", "Email id is an invalid e-mail address. " else Reporter.ReportEvent micFail, "EID & PWD check_FAIL", "Validation message checkpoint failed. The captured v msg is not required" End if End if I am getting syntax error saying "Expected 'End If'" at the last line, Why is this? Kindly explain...
hi radhaka plz tell me clearly to handle the earrors with out isng recovery scnerio this is sreenivas from delhi
What is the function of Filter in QC . give with a real time example.
how to handle the textboxes where in it should take the sum like ex:: while posting a question in this site it will for what is the result of 6+3=__ where in we have to enter manually 9 and click on submit... but how to handle these cases in qtp.. can someone plz help me out wid dis...