if i want to check text on the status bar how to test is
i need the report also after getting the result weather it
is matched or not?
Answers were Sorted based on User's Feedback
Answer / chsn
Use getroproperty to get text of the status bar
Use reportevent to report the text
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / praveen
We can use getvisibletext method to capture the text on the
status bar. Store the capture text in a variable.
syntax: Variable=object type("Object Name").getvisibletext()
By using following conditional statement in the script we
can check the text and report if is success or not.
If variable= "text" Then
reporter.reportevent micpass, "Text Captured", "Same"
else
reporter.reportevent micfail, "Text Captured", "different"
| Is This Answer Correct ? | 2 Yes | 3 No |
What is qtpro?
In QTP how to interact tool and application build?
Which property do you use to retrieve or assign data into a cell in a Data Table object?
How you automate testscripts one by one or modukewise or all at once
write a script to verify the image path(src property) of the images which are in web pages.(do it by Descriptive method by creating a description object)
What is the registration process and examination fees?
I am using Shared OR, and my collegues are also using Shared OR. How to merge Object Repositories?
h u call the function
why was automation used in the project?
What is test object model in quicktest professional?
How can we import a Open Office excel file in QTP
How to find the name of the machine where you are running your automation scripts in qtp?