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



if i want to check text on the status bar how to test is i need the report also after getting the r..

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

if i want to check text on the status bar how to test is i need the report also after getting the r..

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

Post New Answer

More QTP Interview Questions

How can we export test results to an excel sheet in QTP??? Can any one provide sample coding for this?????

6 Answers   TCS,


what is descriptive programming?

5 Answers   Ordain Solutions,


how to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"

10 Answers   Aspire, MNC, Omega,


How would you export a script from one pc to another in qtp?

0 Answers  


Hi, i have a string like "INDIA". I need to display this string vertically in Msgbox?

3 Answers  






how to calculate no. of repeating characters in a a string..please give me the code

14 Answers   CTS, Hexaware,


How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)

0 Answers  


hi what is the use of "dim" in automation objective model or any where what is the use of "dim" plz tell me

3 Answers  


scalability testing comes under in which tool?

4 Answers   EpuraTech,


can objects recogonised without repository?

10 Answers   AZTEC,


What is time parameter?

1 Answers  


actually how many hours per one day we will work on automation(qtp) in real time

1 Answers   Synechron,


Categories