Skip to main content
Version: 1.x

Variable: odataTest

const odataTest: TestType<PlaywrightTestArgs & PlaywrightTestOptions & ODataFixtures, PlaywrightWorkerArgs & PlaywrightWorkerOptions>

Standalone OData test object for focused OData testing.

Remarks​

Extends Playwright's base test with a top-level odata fixture. The odata fixture name does not collide with moduleTest, which declares only ui5 as its fixture key — odata is attached as a sub-property of ui5 via Object.assign, not as a Playwright fixture.

Capability​

odata.fixture

Example​

import { odataTest } from 'playwright-praman';

odataTest('fetch CSRF token', async ({ odata }) => {
const { token } = await odata.fetchCSRFToken('/sap/opu/odata/sap/SVC/');
});