I'm having a problem to get the status(pass or fail) during
runtime for every iteration ran, and must get the results
stored to an excel sheet if possible.
Answer Posted / kaps
Reporter.ReportEvent is used to report custom test steps in QTP's test results tree
Syntax -Reporter.ReportEventEventStatus, ReportStepName, Details [, ImageFilePath]
Event Status can have values
0 or micPass - a pass status
1 or micFail - a fail status
2 or micDone - a message Done
3 or micWarning - a warning message to the result window
Result can be export to an excel sheet.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How smart identification works in qtp ?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
Explain the difference between call to action and copy action?
What is Test Fusion Report in QTP?
explain structured testing? plz guys with exp. do answer
Why script error occur in between recording in qtp?
How can I change object description or check point values in qtp?
What are the ways you can synchronize?
How do Parameterization and Data-Driving relate to each other in QTP?
How the exception handling can be done using quicktest professional (qtp)?
I have two For loop, first For loop does is creates a customer and input the customer info and then the second for loop within the first for loop does the follows which is capture the customer name and verify the with the data within the datatable. The problem I am coming across is that when it goes through the second time creating another customer and then verify the second customer then it creates the following during runtime. I want is to have the customer2 below Customer1 under the Customer_from_Apps. Any help will be greatly appreciate it. Customer Customer_from_Apps Customer_from_Apps1 Customer1 Customer 1 Customer2 Customer2 Window("Customer Desktop").Window("Customer Tracking (Privacy").WinObject("TreeView20WndClass").Click 92,244 runtimevalue = .VbTreeView("vbname:=AppServerTree").GetROProperty("Selectio n") Customer_Val= Datatable.GlobalSheet.AddParameter ("Customer_from_Apps",runtimevalue) row=datatable.getsheet("Global").GetRowCount For x=1 to row datatable.SetCurrentRow(x) Data_Val=Datatable.Value("Customer",dtGlobalSheet) If (trim(Customer_Val)=trim(Data_Val)) Then Reporter.ReportEvent micPass, "Customer validation successful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val else Reporter.ReportEvent micFail, "Cusotmer validation unsuccessful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val End If Next
How many types of recording modes in the qtp?
Whats the realtime QTP testing process
I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?
Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.