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

    Function getEntityCount

    • Ai

      Reads the number of entities in a binding from the UI5 model.

      Parameters

      • page: ODataPage

        Playwright Page (or compatible subset).

      • path: string

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

      • Optionaloptions: ODataOptions

        OData options (timeout, modelName).

      Returns Promise<number>

      The entity count (0 if no data or not an array).

      ui5.odata.getEntityCount

      Count the number of entities at a specific OData model path.

      Returns the array length at the path, or 0 if data is not an array or not loaded.

      Returns array length from getData() at the path. Returns 0 if not an array.

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

      Verify expected entity counts in list bindings.

      const count = await getEntityCount(page, '/Products');