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 |
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
what function you write to do database testing with the help of qtp?
What is the concept of firewalls?
what is error and fault in terms of software quality?
What information do the columns in the Keyword View show for each step?
how to merge object repositories in qtp for n different applications
Which method do you use to retrieve data from the WebList object?
what are the areas that cannot be tested using an automated tool? list a few
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.
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
Is it possible for QTP to capture the objects in word document.If so please give me the code.Thank you.
What phases are involved in testing an application in qtp?