Praman — Agent-First SAP UI5 Test Automation Plugin - v1.2.0
    Preparing search index...

    Function getModelData

    • Ai

      Retrieves data from a UI5 OData model at the given path.

      Parameters

      • page: ODataPage

        Playwright Page (or compatible subset).

      • path: string

        OData model path (must start with '/').

      • Optionaloptions: ODataOptions

        OData options (timeout, modelName).

      Returns Promise<unknown>

      The data at the given path (array, object, or primitive).

      ui5.odata.getModelData

      Read data from the UI5 OData model at a specific binding path.

      On success, returns the data at the path (array, object, or primitive) from the model.

      Accesses the component's OData model via getData() or getProperty(). Path must start with '/'. Use modelName option for named models.

      sap.ui.model.odata.v2.ODataModel, sap.ui.model.odata.v4.ODataModel

      Read OData entity data from the UI5 model layer for data-level assertions.

      ODataError if path is invalid or model/data not found.

      const products = await getModelData(page, '/Products');
      const single = await getModelData(page, '/Products(1)', { modelName: 'catalog' });