Skip to content

Commit 54f4dee

Browse files
committed
test(appium): remove BrowserStack session reporter
1 parent 3225e51 commit 54f4dee

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

appium/wdio.shared.conf.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,6 @@ export const sharedConfig: WebdriverIO.Config = {
5858
const externalId = sdkType === platform ? `appium-${sdkType}` : `appium-${sdkType}-${platform}`;
5959
await deleteUser(externalId);
6060
},
61-
// BrowserStack-only: report final session status to the BrowserStack
62-
// dashboard. The `browserstack_executor:` script is unsupported by local
63-
// Appium drivers and would otherwise log "Method is not implemented".
64-
// We also no-op if the session never initialized (e.g. a queue-limit
65-
// rejection during session create) — `browser.executeScript` won't exist.
66-
after: async function (result) {
67-
if (isLocal) return;
68-
if (typeof driver?.executeScript !== 'function') return;
69-
const status = result === 0 ? 'passed' : 'failed';
70-
const reason = result === 0 ? 'All tests passed' : 'Test failures';
71-
await driver.executeScript(
72-
`browserstack_executor: ${JSON.stringify({ action: 'setSessionStatus', arguments: { status, reason } })}`,
73-
[],
74-
);
75-
},
7661
};
7762

7863
export { bstackOptions };

0 commit comments

Comments
 (0)