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

can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?

0 Answers  


what function you write to do database testing with the help of qtp?

0 Answers  


What is the concept of firewalls?

2 Answers   CTS,


what is error and fault in terms of software quality?

0 Answers   TCS,


What information do the columns in the Keyword View show for each step?

1 Answers  






how to merge object repositories in qtp for n different applications

1 Answers  


Which method do you use to retrieve data from the WebList object?

1 Answers  


what are the areas that cannot be tested using an automated tool? list a few

7 Answers  


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

0 Answers  


I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing

0 Answers  


Is it possible for QTP to capture the objects in word document.If so please give me the code.Thank you.

2 Answers  


What phases are involved in testing an application in qtp?

0 Answers  


Categories