Ai
Reads the number of entities in a binding from the UI5 model.
Playwright Page (or compatible subset).
OData model path (must start with '/').
Optional
OData options (timeout, modelName).
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'); Copy
const count = await getEntityCount(page, '/Products');
Reads the number of entities in a binding from the UI5 model.