Skip to content

[Feature]: Add to APIResponse elapsed time and method name #34992

Open
@lozik4

Description

@lozik4

🚀 Feature Request

It is very important for api to check the response time.
The requests library has elpsed => elpsed.total_seconds()
I didn't find anything similar in playwright.
Also, in the response, I did not find where to extract the method with which I made the request. this is necessary for logging and reporting.

Example

in requests:

response.elapsed.total_seconds() -> Return time

response.request.method -> Return Requests method name

Motivation

It improves the API testing experience.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions