Forum Discussion

678's avatar
678
Regular Contributor
7 years ago

How to transfer Assertion Value to Reports

How to transfer Assertion values to reports 

 

Basically i need a comparision on reports 

 

like in reports 

A = A

B = B

  • Lucian's avatar
    Lucian
    Community Hero
    if it is the junit html reports you want to customize this is not possible atm.

    i'm working on some custom html reports but it will take some time until they will be available
  • Hi 678,

     

    Try below code, it will fetch desired data and then you can export these values into excel or text file and can use later on:

     

    def obj = context.testCase.getTestStepByName("Get Quote");
    def assertions = obj.getAssertionList()
    assertions.each
    {
    	log.info(it.name +  ' --> ' + it.status)
    	log.info it.getToken() //it will display data inside assertion
    }

     

    Click "Accept as Solution" if my answer has helped, and remember to give "kudos" :)

     

    Thanks and Regards,

    Himanshu Tayal

    • 678's avatar
      678
      Regular Contributor

      HimanshuTayal

       

      Thank you for your code but i am looking to get this Assertion values on HTML reports generated by ReadyAPI 

       

      • HimanshuTayal's avatar
        HimanshuTayal
        Community Hero

        ohk, i never found any option, related to your query.

         

        In this scenario Lucian can help you as he is working on customized junit reporting.

         

        Click "Accept as Solution" if my answer has helped, and remember to give "kudos" :)

         

        Thanks and Regards,

        Himanshu Tayal