Odin Technology - Automated Software Testing

Axe Test Automation Platform

General discussion relating to the Axe Test Automation Platform from Odin Technology

Posts by Odin employees marked:

How to create a Log with Error and warning messages?

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!!
Alexandre Bueno de Oliveira Send private email
Monday, July 23, 2012
 
 
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
Sam Warwick Send private email
Tuesday, July 24, 2012
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics