Skip to content

Adding custom elements in json output #1105

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

You must be logged in to vote

The existing JSON schema has no attribute that you can use to add this information.
You need to extend the existing JSON output format/schema to add the additional information.
You need to provide an own JSON formatter to add this additional data to the JSON output.

NOTE:
Formatters are an extension-point in behave.
Therefore, you are able to add your own format(ter) class and use it.
You probably need to override JSONFormatter.finish_current_scenario() for what you are trying to do.

SEE ALSO:

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
2 participants