Forum Discussion

vijayk1's avatar
vijayk1
Occasional Contributor
6 years ago
Solved

how to send request response to readyapi report using groovy

Hi Team,

 

I have a project which can be run on two endpoints and few request have different response.

 

Currently I'm executing Request and based on endpoint I've put assertion using groovy.

I've put log.info to print failure cause but I'm unable to write log.info into final junit type report, i'm only getting like below:

----------------- Messages ------------------------------
Assertion failed:

assert false


error at line: 46

how can I write requets and response in report or log.info in final report?

  • nmrao  Thanks.


    assert (X == 'X' ) : response

    This did the job.

     

     

    Thanks for help

     

    Regards,

    Vijay

6 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Assertion message will be part of the report, not the log.info
    • vijayk1's avatar
      vijayk1
      Occasional Contributor

      nmrao  Thanks.


      assert (X == 'X' ) : response

      This did the job.

       

       

      Thanks for help

       

      Regards,

      Vijay

      • nmrao's avatar
        nmrao
        Champion Level 3
        Glad to know that it helped.