Forum Discussion

678's avatar
678
Regular Contributor
5 years ago

how to get what all rest call executed list

how can i get the all the list Rest calls executed on the project, i have bunch of test suites and test cases with dirrent kind of rest requests as test steps 

 

how can i get the list of what all rest requests executed  and how much time taken for each request 

5 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Not sure if you wanted to find some thing different. You mean to say find the passed tests of different methods of each service?
    • Cekay's avatar
      Cekay
      Contributor

      What I did:

      Create a Event: RequestFilter.filterRequest

      Added following Script

      String therequestUri = new String(context.getProperty("requestUri").toString())
      log.info " | The requestUrl is " + therequestUri

      Every call produces following log entry:

  • richie's avatar
    richie
    Community Hero

    Hi 678 

     

    Someone else put a project together to do something  - it lists out all the REST requests within a project

     

    It's just a bit of groovy

    def project = testRunner.testCase.testSuite.project
    log.info "Interfaces in project " + project.name
    for( iface in project.interfaceList )
    {
        log.info "Interface: " + iface.name
    }

     

    The above is contained within a groovy step.

     

    Would this suffice?

     

    Cheers,

     

    richie

     

     

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Thanks for the assistance, guys!

     

    678, did the suggestions help you? Please share with us the solution you've decided to use.

    • 678's avatar
      678
      Regular Contributor

      I need to log something like all interfaces of the project and executed time for it