Forum Discussion

pinakipmishra's avatar
pinakipmishra
New Contributor
3 months ago

Allure reporting with softassertion

How can I add softassertion using Allure Report ? Do Ready API has any documentation for the same ?

  • Hi pinakipmishra 

    Try utilizing custom scripts within your test cases as ReadyAPI lacks native support for Allure Reports

    To add soft assertions to Allure Reporting in ReadyAPI, start by setting up Allure for your project, ensuring your test framework is compatible with JUnit and including the necessary Allure dependencies in your project's configuration.

    Then, leverage Groovy scripts to implement soft assertions, which enable your test to continue running even after encountering a failure, aggregating all errors and reporting them at the end, providing a comprehensive view of your test results.

    Hope this helps - Happy to help further!!
    Thank you very much and have a great one!
    Warm regards

  • Humashankar's avatar
    Humashankar
    Champion Level 3

    Hi pinakipmishra 

    Try utilizing custom scripts within your test cases as ReadyAPI lacks native support for Allure Reports

    To add soft assertions to Allure Reporting in ReadyAPI, start by setting up Allure for your project, ensuring your test framework is compatible with JUnit and including the necessary Allure dependencies in your project's configuration.

    Then, leverage Groovy scripts to implement soft assertions, which enable your test to continue running even after encountering a failure, aggregating all errors and reporting them at the end, providing a comprehensive view of your test results.

    Hope this helps - Happy to help further!!
    Thank you very much and have a great one!
    Warm regards