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 / pramod mallick

Dim currentStatus
currentStatus = Reporter.Filter

Reporter.Filter = rfEnableErrorsOnly
'2 0 - all , 1 - warning & fail, 2 - failed only, 3 -
'disable all (no status)

--- Here goes the checkpoint
Browser(b).Page(p).Check checkpoint chk1

'Restore the current
Reporter.Filter = currentStatus

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do know the number of browsers opened?

629


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

1845


How to use Environment parameterization? Explain with an example.

1485


before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...

7239


Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris

1750






What is object repository in qtp?

563


In qtp, how you can exit for loop?

529


Explain different type of event trigger option.

544


www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example

1733


Did QTP prove efficient for your project? Yes or No, explain?

6123


How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..

1630


What are the types of environment variables in qtp?

550


What is regular expression?

583


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

1365


how can i call function (which has link with excell sheet at a remote location) within another function

1579