serenity-bdd / serenity-documentation

The main Serenity BDD documentation
Apache License 2.0
40 stars 61 forks source link

Chapter "Importing test results from external sources" is empty #32

Open YamStranger opened 8 years ago

YamStranger commented 8 years ago

It seems that this chapter should be updated

ghost commented 8 years ago

Would be great if I could import from pytest-bdd json:

http://pytest-bdd.readthedocs.io/en/latest/#reporting

asvdw commented 6 years ago

Any update about it ? Or any existing code to demonstrate it ? I really need to import manual test results into Serenity Reports ;)

wakaleo commented 6 years ago

You can write your own class that implements the TestOutcomeAdaptor interface (see https://github.com/serenity-bdd/serenity-core/blob/fca1739982754f6101b833409d02fa2a87c460d8/serenity-core/src/main/java/net/thucydides/core/reports/adaptors/TestOutcomeAdaptor.java and the examples in https://github.com/serenity-bdd/serenity-core/blob/fca1739982754f6101b833409d02fa2a87c460d8/serenity-core/src/test/groovy/net/thucydides/core/reports/adaptors/specflow/WhenLoadingSpecflowLogOutputAsTestOutcomes.groovy).

asvdw commented 6 years ago

"Waouw", what a quick reply, thank you ! I'll look at it and maybe write a basic "how-to"