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 to attach a file to TD?

651


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.

2097


How can you write the scripts that operate on different objects depending on run-time information?

2114


How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))

1667


Describe function procedure in vbscript.

550






How to define array in qtp?

570


Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)

1380


How many types of status are there?

584


How to add synchronisation points in qtp?

577


can test automation improve test effectiveness?

1484


What is difference between run time object and test object?

551


What is system testing and what are the different types of tests you perform in system testing?

595


What is the file extension of the code file and object repository file in QTP?

593


after initiating one project for testing, when exacltly QTP tester role starts?

1397


What test cases can you automate using QTP?

642