Axe Test Automation PlatformGeneral discussion relating to the Axe Test Automation Platform from Odin Technology |
||
Posts by Odin employees marked:
|
Hello!!
I'm creating a function which opens a Txt file and check some data, when the data is not Ok I would like to create a report with some Red colors. I mean, The final log is like: - Passed(In green) - Function CheckData Passed -> ..... Warning -> ..... Failed -> ..... I want to fail the whole test (but I need to continue executing the test script till the end) when one item is failed, but i don't know how to do so. I'm using the command line AxeLogMessage to write that information in my log. How can I write Error and warning messages in Axe log? Thanks a lot!!
Hi,
Any failed 'val' action i.e. an action called 'val' or with a prefix of 'val.' will log a fail and continue the test. Any other action failure e.g. a failed 'set' will log a fail and abort the test. There are examples of both in the standard OdinPortal sample Axe project. AxeLogMessage is free-format so you can use that to log INFO/WARNING messages in any format you like. The Axe runtime does not have a concept of distinguishing between INFO and WARNING messages. Sam |