@wdio/browserstack-service 9.29.1 → 9.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Percy/Percy-Handler.d.ts +0 -1
- package/build/Percy/Percy.d.ts +0 -1
- package/build/Percy/PercyBinary.d.ts +0 -1
- package/build/Percy/PercyCaptureMap.d.ts +0 -1
- package/build/Percy/PercyHelper.d.ts +0 -1
- package/build/Percy/PercyLogger.d.ts +0 -1
- package/build/Percy/PercySDK.d.ts +0 -1
- package/build/accessibility-handler.d.ts +22 -1
- package/build/ai-handler.d.ts +0 -1
- package/build/bstackLogger.d.ts +0 -1
- package/build/cleanup.d.ts +0 -1
- package/build/cleanup.js +260 -202
- package/build/cli/apiUtils.d.ts +0 -1
- package/build/cli/cliLogger.d.ts +0 -1
- package/build/cli/cliUtils.d.ts +0 -8
- package/build/cli/eventDispatcher.d.ts +0 -1
- package/build/cli/frameworks/automationFramework.d.ts +0 -1
- package/build/cli/frameworks/constants/automationFrameworkConstants.d.ts +0 -1
- package/build/cli/frameworks/constants/testFrameworkConstants.d.ts +0 -1
- package/build/cli/frameworks/testFramework.d.ts +0 -1
- package/build/cli/frameworks/wdioAutomationFramework.d.ts +0 -1
- package/build/cli/frameworks/wdioMochaTestFramework.d.ts +0 -1
- package/build/cli/grpcClient.d.ts +2 -3
- package/build/cli/index.d.ts +2 -2
- package/build/cli/instances/automationFrameworkInstance.d.ts +0 -1
- package/build/cli/instances/testFrameworkInstance.d.ts +0 -1
- package/build/cli/instances/trackedContext.d.ts +0 -1
- package/build/cli/instances/trackedInstance.d.ts +0 -1
- package/build/cli/modules/accessibilityModule.d.ts +2 -2
- package/build/cli/modules/automateModule.d.ts +0 -1
- package/build/cli/modules/baseModule.d.ts +1 -2
- package/build/cli/modules/customTagsModule.d.ts +0 -1
- package/build/cli/modules/observabilityModule.d.ts +0 -1
- package/build/cli/modules/percyModule.d.ts +0 -1
- package/build/cli/modules/testHubModule.d.ts +0 -1
- package/build/cli/modules/webdriverIOModule.d.ts +0 -1
- package/build/cli/states/automationFrameworkState.d.ts +0 -1
- package/build/cli/states/hookState.d.ts +0 -1
- package/build/cli/states/testFrameworkState.d.ts +0 -1
- package/build/config.d.ts +2 -3
- package/build/constants.d.ts +2 -12
- package/build/crash-reporter.d.ts +0 -1
- package/build/cucumber-types.d.ts +0 -1
- package/build/custom-tags-handler.d.ts +0 -1
- package/build/customTags.d.ts +0 -1
- package/build/data-store.d.ts +0 -1
- package/build/exitHandler.d.ts +0 -1
- package/build/fetchWrapper.d.ts +2 -19
- package/build/fileStream.d.ts +0 -1
- package/build/grpc/generated/sdk-messages-accessibility.d.ts +75 -0
- package/build/grpc/generated/sdk-messages-ai.d.ts +51 -0
- package/build/grpc/generated/sdk-messages-observability.d.ts +43 -0
- package/build/grpc/generated/sdk-messages-percy.d.ts +15 -0
- package/build/grpc/generated/sdk-messages-testhub.d.ts +15 -0
- package/build/grpc/generated/sdk-messages.d.ts +287 -0
- package/build/grpc/generated/sdk.d.ts +281 -0
- package/build/grpc/index.d.ts +42 -0
- package/build/index.d.ts +7 -1
- package/build/index.js +7106 -995
- package/build/insights-handler.d.ts +2 -1
- package/build/instrumentation/funnelInstrumentation.d.ts +0 -1
- package/build/instrumentation/performance/constants.d.ts +0 -1
- package/build/instrumentation/performance/performance-tester.d.ts +0 -1
- package/build/launcher.d.ts +0 -1
- package/build/log4jsAppender.d.ts +0 -1
- package/build/logPatcher.d.ts +0 -1
- package/build/logReportingAPI.d.ts +0 -1
- package/build/module-hook-tracker.d.ts +0 -1
- package/build/reporter.d.ts +0 -1
- package/build/request-handler.d.ts +0 -1
- package/build/scripts/accessibility-scripts.d.ts +0 -1
- package/build/service.d.ts +0 -1
- package/build/testHub/utils.d.ts +0 -1
- package/build/testOps/featureStats.d.ts +0 -1
- package/build/testOps/featureUsage.d.ts +0 -1
- package/build/testOps/listener.d.ts +0 -1
- package/build/testOps/openRunsJournal.d.ts +6 -0
- package/build/testOps/requestUtils.d.ts +0 -1
- package/build/testOps/testOpsConfig.d.ts +0 -1
- package/build/testOps/usageStats.d.ts +0 -1
- package/build/testorchestration/apply-orchestration.d.ts +0 -1
- package/build/testorchestration/helpers.d.ts +0 -1
- package/build/testorchestration/request-utils.d.ts +0 -1
- package/build/testorchestration/test-ordering-server.d.ts +0 -1
- package/build/testorchestration/testorcherstrationhandler.d.ts +0 -1
- package/build/testorchestration/testorcherstrationutils.d.ts +0 -1
- package/build/types.d.ts +0 -8
- package/build/util.d.ts +11 -2
- package/package.json +43 -15
- package/src/proto/browserstack/sdk/v1/sdk-messages-accessibility.proto +71 -0
- package/src/proto/browserstack/sdk/v1/sdk-messages-ai.proto +48 -0
- package/src/proto/browserstack/sdk/v1/sdk-messages-observability.proto +39 -0
- package/src/proto/browserstack/sdk/v1/sdk-messages-percy.proto +10 -0
- package/src/proto/browserstack/sdk/v1/sdk-messages-testhub.proto +10 -0
- package/src/proto/browserstack/sdk/v1/sdk-messages.proto +276 -0
- package/src/proto/browserstack/sdk/v1/sdk.proto +41 -0
- package/build/Percy/Percy-Handler.d.ts.map +0 -1
- package/build/Percy/Percy.d.ts.map +0 -1
- package/build/Percy/PercyBinary.d.ts.map +0 -1
- package/build/Percy/PercyCaptureMap.d.ts.map +0 -1
- package/build/Percy/PercyHelper.d.ts.map +0 -1
- package/build/Percy/PercyLogger.d.ts.map +0 -1
- package/build/Percy/PercySDK.d.ts.map +0 -1
- package/build/accessibility-handler.d.ts.map +0 -1
- package/build/ai-handler.d.ts.map +0 -1
- package/build/bstackLogger.d.ts.map +0 -1
- package/build/caCert.d.ts +0 -7
- package/build/caCert.d.ts.map +0 -1
- package/build/cleanup.d.ts.map +0 -1
- package/build/cli/apiUtils.d.ts.map +0 -1
- package/build/cli/cliLogger.d.ts.map +0 -1
- package/build/cli/cliUtils.d.ts.map +0 -1
- package/build/cli/eventDispatcher.d.ts.map +0 -1
- package/build/cli/frameworks/automationFramework.d.ts.map +0 -1
- package/build/cli/frameworks/constants/automationFrameworkConstants.d.ts.map +0 -1
- package/build/cli/frameworks/constants/testFrameworkConstants.d.ts.map +0 -1
- package/build/cli/frameworks/testFramework.d.ts.map +0 -1
- package/build/cli/frameworks/wdioAutomationFramework.d.ts.map +0 -1
- package/build/cli/frameworks/wdioMochaTestFramework.d.ts.map +0 -1
- package/build/cli/grpcClient.d.ts.map +0 -1
- package/build/cli/index.d.ts.map +0 -1
- package/build/cli/instances/automationFrameworkInstance.d.ts.map +0 -1
- package/build/cli/instances/testFrameworkInstance.d.ts.map +0 -1
- package/build/cli/instances/trackedContext.d.ts.map +0 -1
- package/build/cli/instances/trackedInstance.d.ts.map +0 -1
- package/build/cli/modules/accessibilityModule.d.ts.map +0 -1
- package/build/cli/modules/automateModule.d.ts.map +0 -1
- package/build/cli/modules/baseModule.d.ts.map +0 -1
- package/build/cli/modules/customTagsModule.d.ts.map +0 -1
- package/build/cli/modules/observabilityModule.d.ts.map +0 -1
- package/build/cli/modules/percyModule.d.ts.map +0 -1
- package/build/cli/modules/testHubModule.d.ts.map +0 -1
- package/build/cli/modules/webdriverIOModule.d.ts.map +0 -1
- package/build/cli/states/automationFrameworkState.d.ts.map +0 -1
- package/build/cli/states/hookState.d.ts.map +0 -1
- package/build/cli/states/testFrameworkState.d.ts.map +0 -1
- package/build/config.d.ts.map +0 -1
- package/build/constants.d.ts.map +0 -1
- package/build/crash-reporter.d.ts.map +0 -1
- package/build/cucumber-types.d.ts.map +0 -1
- package/build/custom-tags-handler.d.ts.map +0 -1
- package/build/customTags.d.ts.map +0 -1
- package/build/data-store.d.ts.map +0 -1
- package/build/exitHandler.d.ts.map +0 -1
- package/build/fetchWrapper.d.ts.map +0 -1
- package/build/fileStream.d.ts.map +0 -1
- package/build/index.d.ts.map +0 -1
- package/build/insights-handler.d.ts.map +0 -1
- package/build/instrumentation/funnelInstrumentation.d.ts.map +0 -1
- package/build/instrumentation/performance/constants.d.ts.map +0 -1
- package/build/instrumentation/performance/performance-tester.d.ts.map +0 -1
- package/build/launcher.d.ts.map +0 -1
- package/build/log4jsAppender.d.ts.map +0 -1
- package/build/logPatcher.d.ts.map +0 -1
- package/build/logReportingAPI.d.ts.map +0 -1
- package/build/module-hook-tracker.d.ts.map +0 -1
- package/build/reporter.d.ts.map +0 -1
- package/build/request-handler.d.ts.map +0 -1
- package/build/scripts/accessibility-scripts.d.ts.map +0 -1
- package/build/service.d.ts.map +0 -1
- package/build/testHub/utils.d.ts.map +0 -1
- package/build/testOps/featureStats.d.ts.map +0 -1
- package/build/testOps/featureUsage.d.ts.map +0 -1
- package/build/testOps/listener.d.ts.map +0 -1
- package/build/testOps/requestUtils.d.ts.map +0 -1
- package/build/testOps/testOpsConfig.d.ts.map +0 -1
- package/build/testOps/usageStats.d.ts.map +0 -1
- package/build/testorchestration/apply-orchestration.d.ts.map +0 -1
- package/build/testorchestration/helpers.d.ts.map +0 -1
- package/build/testorchestration/request-utils.d.ts.map +0 -1
- package/build/testorchestration/test-ordering-server.d.ts.map +0 -1
- package/build/testorchestration/testorcherstrationhandler.d.ts.map +0 -1
- package/build/testorchestration/testorcherstrationutils.d.ts.map +0 -1
- package/build/types.d.ts.map +0 -1
- package/build/util.d.ts.map +0 -1
|
@@ -21,6 +21,8 @@ declare class _InsightsHandler {
|
|
|
21
21
|
private listener;
|
|
22
22
|
currentTestId: string | undefined;
|
|
23
23
|
cbtQueue: Array<CBTData>;
|
|
24
|
+
private readonly _ltsActive;
|
|
25
|
+
private readonly _ltsSessionId;
|
|
24
26
|
constructor(_browser: WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser, _framework?: string | undefined, _userCaps?: Capabilities.ResolvedTestrunnerCapabilities, _options?: BrowserstackConfig & BrowserstackOptions);
|
|
25
27
|
_isAppAutomate(): boolean;
|
|
26
28
|
registerListeners(): void;
|
|
@@ -94,4 +96,3 @@ declare class _InsightsHandler {
|
|
|
94
96
|
declare const InsightsHandler: typeof _InsightsHandler;
|
|
95
97
|
type InsightsHandler = _InsightsHandler;
|
|
96
98
|
export default InsightsHandler;
|
|
97
|
-
//# sourceMappingURL=insights-handler.d.ts.map
|
package/build/launcher.d.ts
CHANGED
package/build/logPatcher.d.ts
CHANGED
package/build/reporter.d.ts
CHANGED
package/build/service.d.ts
CHANGED
package/build/testHub/utils.d.ts
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TestData } from '../types.js';
|
|
2
|
+
export declare const ORPHAN_FAILURE_REASON = "Test run did not complete: the process was interrupted or terminated before the test finished (finalized by BrowserStack SDK exit cleanup)";
|
|
3
|
+
export declare function recordOpenRun(testData: TestData): void;
|
|
4
|
+
export declare function clearOpenRun(uuid?: string): void;
|
|
5
|
+
export declare function collectOrphanedRuns(): TestData[];
|
|
6
|
+
export declare function finalizeOrphanedRuns(): Promise<number>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { UploadType } from '../types.js';
|
|
2
2
|
export declare function uploadEventData(eventData: UploadType | Array<UploadType>, eventUrl?: string): Promise<void>;
|
|
3
3
|
export declare function sendScreenshots(eventData: Array<UploadType>): Promise<void>;
|
|
4
|
-
//# sourceMappingURL=requestUtils.d.ts.map
|
package/build/types.d.ts
CHANGED
|
@@ -53,13 +53,6 @@ export interface BrowserstackOptions extends Options.Testrunner {
|
|
|
53
53
|
selfHeal?: boolean;
|
|
54
54
|
}
|
|
55
55
|
export interface BrowserstackConfig {
|
|
56
|
-
/**
|
|
57
|
-
* Absolute path to a CA certificate (PEM, single cert or bundle) to trust for outbound
|
|
58
|
-
* HTTPS when behind an SSL-inspecting corporate proxy (Zscaler/Netskope/Forcepoint).
|
|
59
|
-
* Overridable via the `BROWSERSTACK_EXTRA_CA_CERTS` env var. Merged with the system
|
|
60
|
-
* trust store (never replaces it).
|
|
61
|
-
*/
|
|
62
|
-
proxyCaCertificate?: string;
|
|
63
56
|
/**
|
|
64
57
|
*`buildIdentifier` is a unique id to differentiate every execution that gets appended to
|
|
65
58
|
* buildName. Choose your buildIdentifier format from the available expressions:
|
|
@@ -452,4 +445,3 @@ export interface FunnelData {
|
|
|
452
445
|
event_properties: EventProperties;
|
|
453
446
|
}
|
|
454
447
|
export {};
|
|
455
|
-
//# sourceMappingURL=types.d.ts.map
|
package/build/util.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { BeforeCommandArgs, AfterCommandArgs } from '@wdio/reporter';
|
|
|
3
3
|
import type { ColorName } from 'chalk';
|
|
4
4
|
import type { UploadType, BrowserstackConfig, BrowserstackOptions, LaunchResponse } from './types.js';
|
|
5
5
|
import type { ITestCaseHookParameter } from './cucumber-types.js';
|
|
6
|
-
import type { StartBinSessionResponse } from '
|
|
6
|
+
import type { StartBinSessionResponse } from './grpc/index.js';
|
|
7
7
|
export type GitMetaData = {
|
|
8
8
|
name: string;
|
|
9
9
|
sha: string;
|
|
@@ -131,6 +131,8 @@ export declare function getCiInfo(): {
|
|
|
131
131
|
export declare function getGitMetaData(): Promise<GitMetaData | undefined>;
|
|
132
132
|
export declare function getUniqueIdentifier(test: Frameworks.Test, framework?: string): string;
|
|
133
133
|
export declare function getUniqueIdentifierForCucumber(world: ITestCaseHookParameter): string;
|
|
134
|
+
export declare function isLoadTestingSession(): boolean;
|
|
135
|
+
export declare function getLtsSessionId(): string;
|
|
134
136
|
export declare function getCloudProvider(browser: WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser): string;
|
|
135
137
|
export declare function isBrowserstackSession(browser?: WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser): boolean | undefined;
|
|
136
138
|
export declare function getScenarioExamples(world: ITestCaseHookParameter): string[] | undefined;
|
|
@@ -213,6 +215,14 @@ export declare function pollApi(url: string, params: Record<string, any>, header
|
|
|
213
215
|
export declare function executeAccessibilityScript<ReturnType>(browser: any, fnBody: string, arg?: unknown): Promise<ReturnType>;
|
|
214
216
|
export declare function generateHashCodeFromFields(fields: Array<string | object>): string;
|
|
215
217
|
export declare function getBooleanValueFromString(value: string | undefined): boolean;
|
|
218
|
+
/**
|
|
219
|
+
* SDK-3737: Coerce stringified booleans ('true'/'false', any case) in a flat
|
|
220
|
+
* options object to real booleans, leaving every other value untouched. Boolean-
|
|
221
|
+
* typed accessibility options (e.g. autoScanning) are commonly supplied as
|
|
222
|
+
* strings from JS config / env; without coercion they fail W3C caps validation
|
|
223
|
+
* and are silently dropped. Only the exact strings 'true'/'false' are converted.
|
|
224
|
+
*/
|
|
225
|
+
export declare function coerceStringBooleans<T extends Record<string, unknown>>(obj: T): T;
|
|
216
226
|
/**
|
|
217
227
|
* Validate boolean value from mixed types (boolean or string)
|
|
218
228
|
* Only accepts true boolean or string "true" (case insensitive)
|
|
@@ -246,4 +256,3 @@ export declare const performO11ySync: (browser: WebdriverIO.Browser) => Promise<
|
|
|
246
256
|
*/
|
|
247
257
|
export declare function isMultiRemoteCaps(capabilities: Capabilities.TestrunnerCapabilities): boolean;
|
|
248
258
|
export {};
|
|
249
|
-
//# sourceMappingURL=util.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/browserstack-service",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.30.0",
|
|
4
4
|
"description": "WebdriverIO service for better Browserstack integration",
|
|
5
|
-
"author": "
|
|
6
|
-
"homepage": "https://github.com/
|
|
5
|
+
"author": "BrowserStack <support@browserstack.com>",
|
|
6
|
+
"homepage": "https://github.com/browserstack/wdio-browserstack-service",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": ">=18.20.0"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/
|
|
14
|
-
"directory": "packages/
|
|
13
|
+
"url": "git+https://github.com/browserstack/wdio-browserstack-service.git",
|
|
14
|
+
"directory": "packages/browserstack-service"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"webdriverio",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"wdio-service"
|
|
21
21
|
],
|
|
22
22
|
"bugs": {
|
|
23
|
-
"url": "https://github.com/
|
|
23
|
+
"url": "https://github.com/browserstack/wdio-browserstack-service/issues"
|
|
24
24
|
},
|
|
25
25
|
"type": "module",
|
|
26
26
|
"types": "./build/index.d.ts",
|
|
@@ -30,20 +30,35 @@
|
|
|
30
30
|
"import": "./build/index.js"
|
|
31
31
|
},
|
|
32
32
|
"./cleanup": {
|
|
33
|
+
"types": "./build/cleanup.d.ts",
|
|
33
34
|
"import": "./build/cleanup.js",
|
|
34
35
|
"source": "./src/cleanup.ts"
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
38
|
"typeScriptVersion": "3.8.3",
|
|
39
|
+
"files": [
|
|
40
|
+
"build",
|
|
41
|
+
"src/proto/**/*.proto",
|
|
42
|
+
"browserstack-service.d.ts",
|
|
43
|
+
"README.md",
|
|
44
|
+
"LICENSE"
|
|
45
|
+
],
|
|
46
|
+
"scripts": {
|
|
47
|
+
"clean": "rimraf ./build src/grpc/generated",
|
|
48
|
+
"generate": "buf generate",
|
|
49
|
+
"build": "rimraf ./build src/grpc/generated && buf generate && node ./scripts/build.mjs && tsc -p tsconfig.prod.json",
|
|
50
|
+
"build:watch": "node ./scripts/build.mjs --watch",
|
|
51
|
+
"test": "vitest --run",
|
|
52
|
+
"test:watch": "vitest",
|
|
53
|
+
"prepack": "npm run build"
|
|
54
|
+
},
|
|
38
55
|
"dependencies": {
|
|
39
56
|
"@browserstack/ai-sdk-node": "1.5.17",
|
|
40
|
-
"@
|
|
57
|
+
"@bufbuild/protobuf": "^2.5.2",
|
|
58
|
+
"@grpc/grpc-js": "1.13.3",
|
|
41
59
|
"@percy/appium-app": "^2.0.9",
|
|
42
60
|
"@percy/selenium-webdriver": "^2.2.2",
|
|
43
61
|
"@types/gitconfiglocal": "^2.0.1",
|
|
44
|
-
"@wdio/logger": "9.29.1",
|
|
45
|
-
"@wdio/reporter": "9.29.1",
|
|
46
|
-
"@wdio/types": "9.29.1",
|
|
47
62
|
"browserstack-local": "^1.5.1",
|
|
48
63
|
"chalk": "^5.3.0",
|
|
49
64
|
"csv-writer": "^1.6.0",
|
|
@@ -53,21 +68,34 @@
|
|
|
53
68
|
"tar": "^7.5.11",
|
|
54
69
|
"undici": "^6.24.0",
|
|
55
70
|
"uuid": "^11.1.0",
|
|
56
|
-
"webdriverio": "9.29.1",
|
|
57
71
|
"winston-transport": "^4.5.0",
|
|
58
|
-
"yauzl": "^3.
|
|
72
|
+
"yauzl": "^3.4.0",
|
|
73
|
+
"@wdio/logger": "^9.0.0",
|
|
74
|
+
"@wdio/reporter": "^9.0.0",
|
|
75
|
+
"@wdio/types": "^9.0.0",
|
|
76
|
+
"webdriverio": "^9.0.0"
|
|
59
77
|
},
|
|
60
78
|
"peerDependencies": {
|
|
61
79
|
"@wdio/cli": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0"
|
|
62
80
|
},
|
|
63
81
|
"devDependencies": {
|
|
82
|
+
"@bufbuild/buf": "^1.55.1",
|
|
83
|
+
"@changesets/cli": "^2.27.9",
|
|
64
84
|
"@types/node": "^20.1.0",
|
|
65
85
|
"@types/tar": "^7.0.87",
|
|
66
86
|
"@types/yauzl": "^2.10.3",
|
|
67
|
-
"@wdio/globals": "9.
|
|
87
|
+
"@wdio/globals": "^9.0.0",
|
|
88
|
+
"@wdio/logger": "^9.0.0",
|
|
89
|
+
"@wdio/reporter": "^9.0.0",
|
|
90
|
+
"@wdio/types": "^9.0.0",
|
|
91
|
+
"esbuild": "^0.27.2",
|
|
92
|
+
"rimraf": "^6.0.1",
|
|
93
|
+
"ts-proto": "^2.7.5",
|
|
94
|
+
"typescript": "^5.8.3",
|
|
95
|
+
"vitest": "^3.2.4",
|
|
96
|
+
"webdriverio": "^9.0.0"
|
|
68
97
|
},
|
|
69
98
|
"publishConfig": {
|
|
70
99
|
"access": "public"
|
|
71
|
-
}
|
|
72
|
-
"gitHead": "cea4a759f7e78c798e7dd1a0794ae4aeec5acdbf"
|
|
100
|
+
}
|
|
73
101
|
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package browserstack.sdk.v1;
|
|
4
|
+
|
|
5
|
+
import "sdk-messages-observability.proto";
|
|
6
|
+
import "sdk-messages-testhub.proto";
|
|
7
|
+
|
|
8
|
+
message Accessibility {
|
|
9
|
+
bool success = 1;
|
|
10
|
+
optional AccessibilityOptions options = 2;
|
|
11
|
+
optional string error_trace_id = 3;
|
|
12
|
+
optional string code = 4;
|
|
13
|
+
repeated KeyMessage errors = 5;
|
|
14
|
+
optional bool is_app_accessibility = 6;
|
|
15
|
+
|
|
16
|
+
message AccessibilityOptions {
|
|
17
|
+
optional string status = 1;
|
|
18
|
+
repeated AccessibilityCapability capabilities = 2;
|
|
19
|
+
repeated AccessibilityScript scripts = 3;
|
|
20
|
+
optional AccessibilityCommandsToWrap commands_to_wrap = 4;
|
|
21
|
+
|
|
22
|
+
message AccessibilityCommandsToWrap {
|
|
23
|
+
repeated string scripts_to_run = 1;
|
|
24
|
+
repeated AccessibilityCommand commands = 2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message AccessibilityCommand {
|
|
28
|
+
string name = 1;
|
|
29
|
+
string library = 2;
|
|
30
|
+
string module = 3;
|
|
31
|
+
string class = 4;
|
|
32
|
+
string method = 5;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message AccessibilityScript {
|
|
36
|
+
string name = 1;
|
|
37
|
+
string command = 2;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message AccessibilityCapability {
|
|
41
|
+
string name = 1;
|
|
42
|
+
string value = 2;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message AccessibilityConfigRequest {
|
|
48
|
+
string bin_session_id = 1;
|
|
49
|
+
uint32 platform_index = 2;
|
|
50
|
+
string framework_name = 3;
|
|
51
|
+
string framework_version = 4;
|
|
52
|
+
string hub_url = 5;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message AccessibilityConfigResponse {
|
|
56
|
+
bool success = 1;
|
|
57
|
+
optional TestHub testhub = 2;
|
|
58
|
+
optional Accessibility accessibility = 3;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message AccessibilityResultRequest {
|
|
62
|
+
string bin_session_id = 1;
|
|
63
|
+
string test_run_id = 2;
|
|
64
|
+
string session_id = 3;
|
|
65
|
+
string result_type = 4;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message AccessibilityResultResponse {
|
|
69
|
+
bool success = 1;
|
|
70
|
+
bytes result_response = 2;
|
|
71
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package browserstack.sdk.v1;
|
|
4
|
+
|
|
5
|
+
message AIBrowserExtensionRequest {
|
|
6
|
+
string bin_session_id = 1;
|
|
7
|
+
string browser_name = 2;
|
|
8
|
+
string browser_version = 3;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message AIBrowserExtensionResponse {
|
|
12
|
+
bool success = 1;
|
|
13
|
+
optional string extension = 2;
|
|
14
|
+
optional string error = 3;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message AISelfHealGetRequest {
|
|
18
|
+
string bin_session_id = 1;
|
|
19
|
+
optional string platform_index = 2;
|
|
20
|
+
|
|
21
|
+
string framework_session_id = 3;
|
|
22
|
+
string locator_type = 4;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message AISelfHealGetResponse {
|
|
26
|
+
bool success = 1;
|
|
27
|
+
string framework_session_id = 2;
|
|
28
|
+
optional string locator_type = 3;
|
|
29
|
+
optional string locator_value = 4;
|
|
30
|
+
optional bool ai_healing = 5;
|
|
31
|
+
optional string error = 6;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message AISelfHealStepRequest {
|
|
35
|
+
string bin_session_id = 1;
|
|
36
|
+
optional string platform_index = 2;
|
|
37
|
+
|
|
38
|
+
string framework_session_id = 3;
|
|
39
|
+
bool is_success = 4;
|
|
40
|
+
string locator_type = 5;
|
|
41
|
+
string locator_value = 6;
|
|
42
|
+
string test_name = 7;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message AISelfHealStepResponse {
|
|
46
|
+
string framework_session_id = 1;
|
|
47
|
+
string execute_script = 2;
|
|
48
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package browserstack.sdk.v1;
|
|
4
|
+
|
|
5
|
+
import "sdk-messages-testhub.proto";
|
|
6
|
+
|
|
7
|
+
message KeyMessage {
|
|
8
|
+
string key = 1;
|
|
9
|
+
string message = 2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message Observability {
|
|
13
|
+
bool success = 1;
|
|
14
|
+
optional ObservabilityOptions options = 2;
|
|
15
|
+
optional string error_trace_id = 3;
|
|
16
|
+
optional string code = 4;
|
|
17
|
+
repeated KeyMessage errors = 5;
|
|
18
|
+
optional bytes options_as_bytes = 6;
|
|
19
|
+
|
|
20
|
+
message ObservabilityOptions {
|
|
21
|
+
optional string allow_screenshots = 1;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message ObservabilityConfigRequest {
|
|
26
|
+
string bin_session_id = 1;
|
|
27
|
+
uint32 platform_index = 2;
|
|
28
|
+
string test_framework_name = 3;
|
|
29
|
+
string test_framework_version = 4;
|
|
30
|
+
optional string hub_url = 5;
|
|
31
|
+
optional string capabilities = 6;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message ObservabilityConfigResponse {
|
|
35
|
+
bool success = 1;
|
|
36
|
+
optional TestHub testhub = 2;
|
|
37
|
+
optional Observability observability = 3;
|
|
38
|
+
optional string capabilities = 4;
|
|
39
|
+
}
|