Forum Discussion

mrouse's avatar
mrouse
Contributor
13 years ago

programmatic Question about checkpoints

I have been using checkpionts for some time now successfully.  My question is, "Is there a way to check that a checkpoint is successful programmatically.  I can see visually that the test passed in the test log via a green icon but I need to export the results to a text file where no one can see the green icon in the test log.



Thanks for any help.



Mike
  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Mike,



    Usually, checkpoints (namely - .Compare() method of the corresponding object) return True if compared entities are equal and False otherwise.

    So you may code something like this (untested pseudocode):

    if (Regions.Compare(object1, object2)) then

      Log.Message('Objects are equal');

    else

      Log.Warning('Objects are different');