Forum Discussion

tengel's avatar
tengel
Contributor
12 years ago

Custom TestLog Selections

The testlog provides us with Error, Warning, Message, Event and Checkpoint selections. Is there a way to add custom categories, such as 'Custom Error' that would not be as severe as an error, not as mild as a warning, and be a separate category from a Checkpoint?



We can have something happen that is technically not wrong with the script, so it is not an error. It is not a checkpoint, because we are not checking something.  We want to be able to view only these events, which may not necessarily be events either.  We want such items to be checkable on the same menu bar on the Test Log that the other selections listed above are on.  Among these items are custom exceptions that are handled internally in the script that do not appear as errors in the test log.  Certain values may also be obtained that we want to be able quickly find in the script.
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Tom,


     


    Currently, there is no way to do this. However, there is a similar suggestion in our DB, and your request has increased its rating. Thanks!


     


    At the moment, you can try using the Attr parameter of the Log.Message and Log.Warning methods to specify custom parameters for messages posted by your specific message and warning calls.