java.lang.Object
net.thucydides.core.steps.events.StepEventBusEventBase
net.serenitybdd.screenplay.playwright.interactions.api.RecordPlaywrightRestQueryEvent
All Implemented Interfaces:
net.thucydides.core.steps.events.StepEventBusEvent

public class RecordPlaywrightRestQueryEvent extends net.thucydides.core.steps.events.StepEventBusEventBase
Event to record a Playwright API request/response to the Serenity test step.

This event is published when using APIRequest to make API calls. The request and response details will appear in the Serenity report alongside the test steps, similar to how RestAssured API calls are recorded.

  • Field Summary

    Fields inherited from class net.thucydides.core.steps.events.StepEventBusEventBase

    timestamp
  • Constructor Summary

    Constructors
    Constructor
    Description
    RecordPlaywrightRestQueryEvent(net.serenitybdd.model.rest.RestQuery restQuery)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     

    Methods inherited from class net.thucydides.core.steps.events.StepEventBusEventBase

    getScenarioId, getStepEventBus, getTimestamp, setStepEventBus

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RecordPlaywrightRestQueryEvent

      public RecordPlaywrightRestQueryEvent(net.serenitybdd.model.rest.RestQuery restQuery)
  • Method Details

    • play

      public void play()
    • toString

      public String toString()
      Overrides:
      toString in class Object