Skip to content

How to get Failed step/scenario errors in variable at Environment file? #1140

Closed Answered by jenisys
jigisha9 asked this question in Q&A
Discussion options

You must be logged in to vote

@jigisha9
As already stated:

  • The natural solution for this is to use a special Formatter
  • A Formatter is a extension-point in behave. Therefore, you can provide your own
  • Multiple formatters can be used at the same time, but only one should use stdout as output destination. The other should write to files or send messages somewhere else or …

ALTERNATIVE:

  • Use JUnitXML or JSON output and apply a post-processor that transforms the test-run information to your other test tool (test case management system, test database, …)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jenisys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants