We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d5b174 commit 0d29bfaCopy full SHA for 0d29bfa
examples/browser-load-testing-playwright/browser-load-test.ts
@@ -13,6 +13,14 @@ export const config = {
13
}
14
};
15
16
+export const before = {
17
+ engine: 'playwright',
18
+ testFunction: async function beforeFunctionHook(_page, userContext, _events) {
19
+ // Any scenario variables we add via userContext.vars in this before hook will be available in every VU
20
+ userContext.vars.testStartTime = new Date();
21
+ }
22
+};
23
+
24
export const scenarios = [
25
{
26
engine: 'playwright',
0 commit comments