externalRestQueryPanel <NET>
Hierarchy
- InteractionObject<NET>
- RestQueryPanel
Index
Constructors
Methods
Constructors
externalconstructor
Type parameters
- NET
Parameters
externalrootElement: PageElement<NET> | QuestionAdapter<PageElement<NET>>
externaloptionaloptions: InteractionObjectOptions
Returns RestQueryPanel<NET>
Methods
externalisPresent
Checks whether the interaction object's root element is present in the DOM.
Since
InteractionObjectimplementsOptional, you can assert on presence directly:Ensure.that(view, isPresent())Returns Answerable<boolean>
externalmethod
The HTTP method of the captured request (e.g.
'GET','POST','PUT','DELETE').Example
await actor.attemptsTo(
Ensure.that(restPanel.method(), equals('POST')),
);Returns QuestionAdapter<string>
externalurl
The request URL of the captured HTTP interaction.
Example
await actor.attemptsTo(
Ensure.that(restPanel.url(), includes('/api/checkout')),
);Returns QuestionAdapter<string>
externalstatusCode
The HTTP response status code (e.g.
'200','404','500').Example
await actor.attemptsTo(
Ensure.that(restPanel.statusCode(), equals('201')),
);Returns QuestionAdapter<string>
Interaction object representing a collapsible panel showing HTTP request/response details captured during test execution.
REST query panels appear inline within the activity tree of a scenario detail view, displaying the HTTP method, URL, and response status code of API interactions recorded by the
@serenity-js/restmodule.Instantiation (within a parent interaction object)
Usage in a test