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

    Function queryEntities

    • Ai

      Queries an entity set via HTTP GET with OData system query options.

      Type Parameters

      • TData = unknown

      Parameters

      • page: ODataHttpPage

        Playwright Page with request API.

      • serviceUrl: string

        OData service root URL.

      • entitySet: string

        Name of the entity set to query.

      • Optionaloptions: ODataQueryOptions

        Query options including $filter, $select, $expand, $orderby, $top, $skip.

      Returns Promise<ODataHttpResult<readonly TData[]>>

      Array of entities with HTTP status.

      ui5.odata.queryEntities

      Read a collection of OData entities with optional filtering, sorting, and paging.

      On success, returns an array of entities matching the query with HTTP status.

      Uses Playwright's request API to GET the entity set with OData query parameters. Supports $filter, $select, $expand, $orderby, $top, $skip. Parses both V2 (d.results) and V4 (value) formats.

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

      Query business entities for test data verification or setup (e.g., find products by price, list open POs).

      const result = await queryEntities(page, '/sap/opu/odata/sap/SVC/', 'Products', {
      filter: "Price gt 10",
      select: "Name,Price",
      top: 20,
      });