I am executing a batchfile.In one script on one Button i
have inserted a checkpoint.It is in a loop,my checkpoint is
going to fail sometimes.That failed results only I have to
log in a file.How it's possible...pls give the solution for
this?
Answer Posted / sowmya
Well for this use [Reporter.ReportEvent status1/0 to
indicate pass/ fail micfail options:related message]
The above i gave is the syntax
u cd write as:
Reporter.ReportEvent 0 micfail checkpoint fail
If the case fails and you use reporter.reportevent, it would
get reported in the Test Results.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Who uses qtp tool?
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
what type of automation is follwed in the project?
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
Can any body please tell me the steps of keyword driven framework of QTP.
Explain different type of event trigger option.
How to release all resources file from the QTP?
Which environments does qtp support?
If u r using library files (Instead of Check Points) , How do u do bitmap check ?
what is actually contain test report? can anybody post the test report
How do I generate Test Results window using descriptive method ( run time ) after my test execution process? Please have a look of my below code. ========================================================= Dim qtApp Dim qtTest Dim qtResultsOpt Set qtApp = CreateObject("QuickTest.Application") qtApp.Launch qtApp.Visible = True qtApp.Options.Run.CaptureForTestResults = "Always" qtApp.Options.Run.RunMode = "Fast" qtApp.Options.Run.ViewResults = True qtApp.Open "C:\Automation\Example", True Set qtTest = qtApp.Test qtTest.Settings.Run.OnError = "NextStep" Set qtResultsOpt = CreateObject ("QuickTest.RunResultsOptions") qtResultsOpt.ResultsLocation = "C:\Automation\Example\Res1" qtTest.Run qtResultsOpt MsgBox qtTest.LastRunResults.Status qtTest.Close Set qtResultsOpt = Nothing Set qtTest = Nothing Set qtApp = Nothing ========================================================== This code is working fine, but Test Result window is not displaying after execution. Anybody can please help me regading the same. Thanks Akshaya Madali Capgemini India Pvt Ltd 9823213538
I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.
tell me abt a time when u had to go above &beyind the call of duty to get the job done
i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression