cancel
Showing results for 
Search instead for 
Did you mean: 

how to get what all rest call executed list

678
Regular Contributor

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 5
nmrao
Community Hero

Re: how to get what all rest call executed list

Not sure if you wanted to find some thing different. You mean to say find the passed tests of different methods of each service?


Regards,
Rao.
Cekay
Contributor

Re: how to get what all rest call executed list

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
Community Hero

Re: how to get what all rest call executed list

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

 

 

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
TanyaYatskovska
Community Manager

Re: how to get what all rest call executed list

Thanks for the assistance, guys!

 

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

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
678
Regular Contributor

Re: how to get what all rest call executed list

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

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors