08-15-2012, 05:07 PM
I am capturing some text in a checkpoint and I want to write it to an output file. I am at the stage where I can write my own text to the file but not the captured checkpoint text.
This is what I have:
QTPout2.WriteLine "Policy Number is: ", Value (Check Checkpoint("Premium Details"))
I have captured the "Premium Details" checkpoint and that displays in the run results report. "Policy Number is: " gets written to the output file, but I cannot get the value of the checkpoint to write to the output file. The code above gives a Type Mismatch error.
Does anyone have the proper syntax or method for this?
Thanks.
DublinSox
This is what I have:
QTPout2.WriteLine "Policy Number is: ", Value (Check Checkpoint("Premium Details"))
I have captured the "Premium Details" checkpoint and that displays in the run results report. "Policy Number is: " gets written to the output file, but I cannot get the value of the checkpoint to write to the output file. The code above gives a Type Mismatch error.
Does anyone have the proper syntax or method for this?
Thanks.
DublinSox