browserstack-node-sdk 1.65.7 → 1.66.1
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/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages_pb.d.ts +118 -0
- package/generated/sdk-messages_pb.js +908 -0
- package/generated/sdk_grpc_pb.d.ts +10 -0
- package/generated/sdk_grpc_pb.js +74 -0
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/detox/a11ySetup.js +1 -0
- package/src/bin/detox/command.js +2 -0
- package/src/bin/detox/modifyDetoxConf.js +1 -0
- package/src/bin/detox/traEmitter.js +1 -0
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/detox-driver/a11y.js +574 -0
- package/src/detox-driver/allocationDriver.js +26 -0
- package/src/detox-driver/cloudPlatformAction.js +111 -0
- package/src/detox-driver/environment.js +253 -0
- package/src/detox-driver/expect.js +44 -0
- package/src/detox-driver/index.js +12 -0
- package/src/detox-driver/login-timeout-preload.js +25 -0
- package/src/detox-driver/runtimeDriver.js +351 -0
- package/src/detox-driver/session-reporter.js +41 -0
- package/src/detox-driver/tra-capture.js +81 -0
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a118_0x3bf286=a118_0xfbb8;function a118_0x17d8(){const _0x58e913=['Could\x20not\x20reach\x20the\x20BrowserStack\x20helper\x20process.\x20It\x20may\x20have\x20crashed\x20or\x20a\x20firewall\x20is\x20blocking\x20localhost\x20gRPC.\x20Tests\x20will\x20continue;\x20BrowserStack\x20features\x20may\x20be\x20degraded.','\x20details=','UNIMPLEMENTED','IGvaf','SERVER_FAILURE','209164XfAFIm','handle','status','5330889KMfgJJ','binary_unreachable','TIMEOUT','BINARY_UNREACHABLE','DEADLINE_EXCEEDED','yXALy','1937159PSpUrZ','invalid_request','warn','classify','UNAUTHENTICATED','messageFor','[BrowserStack]\x20','BrowserStack\x20SDK\x20sent\x20an\x20unexpected\x20request\x20to\x20its\x20helper.\x20Please\x20report\x20this\x20with\x20the\x20test\x20logs.','INVALID_ARGUMENT','EOIMA','UaEPU','EhxrM','\x20(rpc=','[BrowserStack]\x20gRPC\x20raw:\x20rpc=','CANCELLED','ABORTED','DATA_LOSS','Dqmku','@grpc/grpc-js','UNKNOWN','INVALID_REQUEST','2396892OghUil','message','RESOURCE_EXHAUSTED','debug','BUCKETS','auth_failed','BrowserStack\x20authentication\x20failed.\x20Verify\x20BROWSERSTACK_USERNAME\x20/\x20BROWSERSTACK_ACCESS_KEY\x20(env\x20or\x20browserstack.yml).','DfMxF','details','21gVcqNt','1272210EbTqUu','number','AUTH_FAILED','INTERNAL','The\x20BrowserStack\x20helper\x20hit\x20an\x20internal\x20error.\x20Tests\x20will\x20continue;\x20BrowserStack\x20features\x20may\x20be\x20degraded\x20-\x20please\x20retry.','8YTXJXk','The\x20BrowserStack\x20helper\x20did\x20not\x20respond\x20in\x20time.\x20Usually\x20a\x20transient\x20network\x20slowdown\x20-\x20retry\x20the\x20test.','code','667145AMdMKR','10XglozV','\x20bucket=','UNAVAILABLE','1013018NEKACR'];a118_0x17d8=function(){return _0x58e913;};return a118_0x17d8();}(function(_0xb1f6aa,_0xf0bde6){const _0x16807b=a118_0xfbb8,_0x40810b=_0xb1f6aa();while(!![]){try{const _0x51531d=-parseInt(_0x16807b(0xab))/0x1+parseInt(_0x16807b(0xaf))/0x2+parseInt(_0x16807b(0xdc))/0x3*(-parseInt(_0x16807b(0xb5))/0x4)+parseInt(_0x16807b(0xdd))/0x5+parseInt(_0x16807b(0xd3))/0x6+parseInt(_0x16807b(0xbe))/0x7*(-parseInt(_0x16807b(0xe2))/0x8)+-parseInt(_0x16807b(0xb8))/0x9*(-parseInt(_0x16807b(0xac))/0xa);if(_0x51531d===_0xf0bde6)break;else _0x40810b['push'](_0x40810b['shift']());}catch(_0x27cf01){_0x40810b['push'](_0x40810b['shift']());}}}(a118_0x17d8,0x6c1d3));function a118_0xfbb8(_0x52d8fc,_0x1c7347){const _0x17d88d=a118_0x17d8();return a118_0xfbb8=function(_0xfbb8f7,_0x47e3b7){_0xfbb8f7=_0xfbb8f7-0xa9;let _0x4ec03a=_0x17d88d[_0xfbb8f7];return _0x4ec03a;},a118_0xfbb8(_0x52d8fc,_0x1c7347);}const grpc=require(a118_0x3bf286(0xd0)),a118_0x28c1bc={};a118_0x28c1bc[a118_0x3bf286(0xbb)]=a118_0x3bf286(0xb9),a118_0x28c1bc[a118_0x3bf286(0xdf)]=a118_0x3bf286(0xd8),a118_0x28c1bc[a118_0x3bf286(0xba)]='timeout',a118_0x28c1bc[a118_0x3bf286(0xd2)]=a118_0x3bf286(0xbf),a118_0x28c1bc['SERVER_FAILURE']='server_failure',a118_0x28c1bc['UNKNOWN']='unknown';const BUCKETS=a118_0x28c1bc,a118_0x5e7cde={[BUCKETS['BINARY_UNREACHABLE']]:a118_0x3bf286(0xb0),[BUCKETS[a118_0x3bf286(0xdf)]]:a118_0x3bf286(0xd9),[BUCKETS[a118_0x3bf286(0xba)]]:a118_0x3bf286(0xa9),[BUCKETS['INVALID_REQUEST']]:a118_0x3bf286(0xc5),[BUCKETS[a118_0x3bf286(0xb4)]]:a118_0x3bf286(0xe1),[BUCKETS['UNKNOWN']]:'Unexpected\x20error\x20talking\x20to\x20the\x20BrowserStack\x20helper.\x20Please\x20report\x20this\x20with\x20the\x20test\x20logs.'},MESSAGES=a118_0x5e7cde;function classify(_0x1c1d4c){const _0x4b16d6=a118_0x3bf286,_0x17fc7a={};_0x17fc7a[_0x4b16d6(0xcf)]=function(_0x1c3afb,_0x32a93f){return _0x1c3afb!==_0x32a93f;},_0x17fc7a['UaEPU']='number';const _0x500a39=_0x17fc7a;if(!_0x1c1d4c)return BUCKETS[_0x4b16d6(0xd1)];const _0x4857a4=_0x1c1d4c[_0x4b16d6(0xaa)];if(_0x500a39[_0x4b16d6(0xcf)](typeof _0x4857a4,_0x500a39[_0x4b16d6(0xc8)]))return BUCKETS['UNKNOWN'];switch(_0x4857a4){case grpc[_0x4b16d6(0xb7)][_0x4b16d6(0xae)]:case grpc[_0x4b16d6(0xb7)][_0x4b16d6(0xcc)]:return BUCKETS[_0x4b16d6(0xbb)];case grpc[_0x4b16d6(0xb7)][_0x4b16d6(0xc2)]:case grpc[_0x4b16d6(0xb7)]['PERMISSION_DENIED']:return BUCKETS[_0x4b16d6(0xdf)];case grpc['status'][_0x4b16d6(0xbc)]:return BUCKETS[_0x4b16d6(0xba)];case grpc['status'][_0x4b16d6(0xc6)]:case grpc[_0x4b16d6(0xb7)]['NOT_FOUND']:case grpc[_0x4b16d6(0xb7)]['OUT_OF_RANGE']:case grpc['status']['ALREADY_EXISTS']:case grpc[_0x4b16d6(0xb7)]['FAILED_PRECONDITION']:return BUCKETS[_0x4b16d6(0xd2)];case grpc[_0x4b16d6(0xb7)][_0x4b16d6(0xe0)]:case grpc[_0x4b16d6(0xb7)][_0x4b16d6(0xd1)]:case grpc[_0x4b16d6(0xb7)][_0x4b16d6(0xce)]:case grpc[_0x4b16d6(0xb7)][_0x4b16d6(0xcd)]:case grpc[_0x4b16d6(0xb7)][_0x4b16d6(0xd5)]:case grpc[_0x4b16d6(0xb7)][_0x4b16d6(0xb2)]:return BUCKETS[_0x4b16d6(0xb4)];default:return BUCKETS['UNKNOWN'];}}function messageFor(_0x598bf1){return MESSAGES[_0x598bf1]||MESSAGES[BUCKETS['UNKNOWN']];}function handle(_0x40e18b,_0x168354,_0x1798c7,_0x3c6ca7='warn'){const _0x185a5b=a118_0x3bf286,_0x1f9410={'EOIMA':function(_0x577a86,_0x3ec618){return _0x577a86(_0x3ec618);},'yXALy':function(_0x1a3110,_0xb98776){return _0x1a3110===_0xb98776;},'DfMxF':'function','IGvaf':_0x185a5b(0xde),'EhxrM':function(_0x40c808,_0x246d7f){return _0x40c808(_0x246d7f);}},_0x19d1a7=_0x1f9410[_0x185a5b(0xc7)](classify,_0x168354),_0x4a7fdd=_0x185a5b(0xc4)+_0x1f9410[_0x185a5b(0xc7)](messageFor,_0x19d1a7)+_0x185a5b(0xca)+_0x40e18b+')';try{_0x1f9410[_0x185a5b(0xbd)](typeof _0x1798c7[_0x3c6ca7],_0x1f9410[_0x185a5b(0xda)])?_0x1798c7[_0x3c6ca7](_0x4a7fdd):_0x1798c7[_0x185a5b(0xc0)](_0x4a7fdd);}catch(_0x1db301){}try{const _0x3a1003=_0x168354&&_0x1f9410['yXALy'](typeof _0x168354[_0x185a5b(0xaa)],_0x1f9410[_0x185a5b(0xb3)])?_0x168354[_0x185a5b(0xaa)]:null,_0x2bdedd=_0x168354&&_0x168354[_0x185a5b(0xdb)]?_0x168354['details']:_0x168354&&_0x168354[_0x185a5b(0xd4)]?_0x168354[_0x185a5b(0xd4)]:_0x1f9410[_0x185a5b(0xc9)](String,_0x168354);_0x1798c7[_0x185a5b(0xd6)](_0x185a5b(0xcb)+_0x40e18b+_0x185a5b(0xad)+_0x19d1a7+'\x20code='+_0x3a1003+_0x185a5b(0xb1)+_0x2bdedd);}catch(_0x432155){}return _0x19d1a7;}const a118_0x509702={};a118_0x509702[a118_0x3bf286(0xd7)]=BUCKETS,a118_0x509702[a118_0x3bf286(0xc1)]=classify,a118_0x509702[a118_0x3bf286(0xc3)]=messageFor,a118_0x509702[a118_0x3bf286(0xb6)]=handle,module['exports']=a118_0x509702;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x2bfcbe=a119_0x42d9;(function(_0x4587ef,_0x287bcc){const _0x41341e=a119_0x42d9,_0x41f723=_0x4587ef();while(!![]){try{const _0x932500=parseInt(_0x41341e(0x141))/0x1+parseInt(_0x41341e(0x137))/0x2*(parseInt(_0x41341e(0x139))/0x3)+parseInt(_0x41341e(0x138))/0x4*(parseInt(_0x41341e(0x145))/0x5)+-parseInt(_0x41341e(0x14a))/0x6*(parseInt(_0x41341e(0x149))/0x7)+parseInt(_0x41341e(0x133))/0x8+-parseInt(_0x41341e(0x13d))/0x9+-parseInt(_0x41341e(0x148))/0xa*(parseInt(_0x41341e(0x131))/0xb);if(_0x932500===_0x287bcc)break;else _0x41f723['push'](_0x41f723['shift']());}catch(_0x58208b){_0x41f723['push'](_0x41f723['shift']());}}}(a119_0x3d46,0xbff0c));const {PLAYWRIGHT}=require(a119_0x2bfcbe(0x134)),a119_0x1bdb4e={};a119_0x1bdb4e['value']=0x0,a119_0x1bdb4e['toString']=function(){const _0x1c3adf=a119_0x2bfcbe,_0x4e09b0={};_0x4e09b0['XDFUp']=_0x1c3adf(0x13b);const _0x233341=_0x4e09b0;return _0x233341[_0x1c3adf(0x132)];};const a119_0x317ff7={};a119_0x317ff7['value']=0x1,a119_0x317ff7[a119_0x2bfcbe(0x146)]=function(){const _0x20093e=a119_0x2bfcbe,_0x5c6bb3={};_0x5c6bb3[_0x20093e(0x13e)]=_0x20093e(0x13c);const _0x2216e2=_0x5c6bb3;return _0x2216e2['UfPmG'];};const a119_0x5b68f3={};function a119_0x42d9(_0x2ff55f,_0x2e7dbc){const _0x3d4650=a119_0x3d46();return a119_0x42d9=function(_0x42d94c,_0x1d7569){_0x42d94c=_0x42d94c-0x131;let _0x34cd1c=_0x3d4650[_0x42d94c];return _0x34cd1c;},a119_0x42d9(_0x2ff55f,_0x2e7dbc);}a119_0x5b68f3['value']=0x2,a119_0x5b68f3[a119_0x2bfcbe(0x146)]=function(){const _0x568129=a119_0x2bfcbe,_0x33326f={};_0x33326f[_0x568129(0x144)]=_0x568129(0x142);const _0x21a36e=_0x33326f;return _0x21a36e[_0x568129(0x144)];};const a119_0x4feeaf={};a119_0x4feeaf[a119_0x2bfcbe(0x143)]=0x3,a119_0x4feeaf[a119_0x2bfcbe(0x146)]=function(){const _0x50491a=a119_0x2bfcbe,_0x2d13f5={};_0x2d13f5[_0x50491a(0x147)]=_0x50491a(0x13a);const _0x29f3dd=_0x2d13f5;return _0x29f3dd[_0x50491a(0x147)];};const a119_0x4e2714={};function a119_0x3d46(){const _0xe17bcd=['3688349TPGRsS','6AeJZrN','866899vSzYCb','XDFUp','7992344EGeiuH','../../utils/constants','jJttW','PtwbK','34QQebRM','3040024WRtCcy','41223VuyDjV','AutomationFrameworkState.EXECUTE','AutomationFrameworkState.NONE','AutomationFrameworkState.CREATE','4786542UtqIhC','UfPmG','AutomationFrameworkState.QUIT','find','983697crhXVi','AutomationFrameworkState.PLAYWRIGHT_DISPATCH','value','QUeln','10GbUvRJ','toString','FVNuR','240oYPuZr'];a119_0x3d46=function(){return _0xe17bcd;};return a119_0x3d46();}a119_0x4e2714['value']=0x4,a119_0x4e2714[a119_0x2bfcbe(0x146)]=function(){const _0x44c4d6=a119_0x2bfcbe,_0x210b3e={};_0x210b3e[_0x44c4d6(0x136)]='AutomationFrameworkState.IDLE';const _0x3225a0=_0x210b3e;return _0x3225a0[_0x44c4d6(0x136)];};const a119_0xf927ca={};a119_0xf927ca[a119_0x2bfcbe(0x143)]=0x5,a119_0xf927ca['toString']=function(){const _0x16ea7a=a119_0x2bfcbe,_0x3bd4a2={};_0x3bd4a2['jJttW']=_0x16ea7a(0x13f);const _0x1f4a6a=_0x3bd4a2;return _0x1f4a6a[_0x16ea7a(0x135)];};const AutomationFrameworkState=Object['freeze']({'NONE':a119_0x1bdb4e,'CREATE':a119_0x317ff7,'PLAYWRIGHT_DISPATCH':a119_0x5b68f3,'EXECUTE':a119_0x4feeaf,'IDLE':a119_0x4e2714,'QUIT':a119_0xf927ca,'fromValue'(_0x3b10e2){const _0x4d1f10=a119_0x2bfcbe;return Object['values'](AutomationFrameworkState)[_0x4d1f10(0x140)](_0x42c65c=>_0x42c65c[_0x4d1f10(0x143)]===_0x3b10e2);}});module['exports']=AutomationFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a120_0x396ffd=a120_0x49aa;(function(_0x4352e0,_0x5dc5e6){const _0x17ee05=a120_0x49aa,_0x553059=_0x4352e0();while(!![]){try{const _0x2a4c3b=parseInt(_0x17ee05(0x12b))/0x1+parseInt(_0x17ee05(0x12e))/0x2*(parseInt(_0x17ee05(0x130))/0x3)+-parseInt(_0x17ee05(0x131))/0x4*(-parseInt(_0x17ee05(0x11e))/0x5)+-parseInt(_0x17ee05(0x126))/0x6*(parseInt(_0x17ee05(0x120))/0x7)+parseInt(_0x17ee05(0x12d))/0x8*(-parseInt(_0x17ee05(0x11d))/0x9)+-parseInt(_0x17ee05(0x127))/0xa*(parseInt(_0x17ee05(0x129))/0xb)+parseInt(_0x17ee05(0x12c))/0xc;if(_0x2a4c3b===_0x5dc5e6)break;else _0x553059['push'](_0x553059['shift']());}catch(_0x17b3ca){_0x553059['push'](_0x553059['shift']());}}}(a120_0x19e8,0xac1a6));const a120_0x39584a={};function a120_0x49aa(_0xc8d148,_0x19e4f0){const _0x19e893=a120_0x19e8();return a120_0x49aa=function(_0x49aa81,_0x5c7bfe){_0x49aa81=_0x49aa81-0x11d;let _0x22fd00=_0x19e893[_0x49aa81];return _0x22fd00;},a120_0x49aa(_0xc8d148,_0x19e4f0);}a120_0x39584a[a120_0x396ffd(0x121)]=0x0,a120_0x39584a['toString']=function(){const _0x5b6b14=a120_0x396ffd,_0x25f50b={};_0x25f50b['BXvOC']=_0x5b6b14(0x11f);const _0x23efcd=_0x25f50b;return _0x23efcd[_0x5b6b14(0x124)];};const a120_0x188f9f={};a120_0x188f9f[a120_0x396ffd(0x121)]=0x1,a120_0x188f9f[a120_0x396ffd(0x128)]=function(){const _0x51a127=a120_0x396ffd,_0x18c5a6={};_0x18c5a6[_0x51a127(0x122)]='HookState.PRE';const _0x20088b=_0x18c5a6;return _0x20088b['PqTcI'];};const a120_0x51ee0a={};a120_0x51ee0a[a120_0x396ffd(0x121)]=0x2,a120_0x51ee0a['toString']=function(){const _0x2bda25=a120_0x396ffd,_0x11f0b5={};_0x11f0b5[_0x2bda25(0x12a)]='HookState.POST';const _0x1f3a75=_0x11f0b5;return _0x1f3a75[_0x2bda25(0x12a)];};const HookState=Object[a120_0x396ffd(0x125)]({'NONE':a120_0x39584a,'PRE':a120_0x188f9f,'POST':a120_0x51ee0a,'fromValue'(_0x585340){const _0x1f7a57=a120_0x396ffd;return Object[_0x1f7a57(0x123)](HookState)[_0x1f7a57(0x12f)](_0x1ec3f5=>_0x1ec3f5['value']===_0x585340);}});module['exports']=HookState;function a120_0x19e8(){const _0x18a907=['values','BXvOC','freeze','312nDpinv','4345840RVTdul','toString','11WHByBx','oUvks','917512YqYZPr','1394772kQrAsQ','86600AZGONR','2CNkIcz','find','3067899FYyJqw','417108PXAjMO','45THakBr','15ywPEUl','HookState.NONE','158249UDRcWO','value','PqTcI'];a120_0x19e8=function(){return _0x18a907;};return a120_0x19e8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a121_0x1787(_0x54dabe,_0x3428a9){const _0x568cec=a121_0x568c();return a121_0x1787=function(_0x17872e,_0x30f3be){_0x17872e=_0x17872e-0x6f;let _0x1120ff=_0x568cec[_0x17872e];return _0x1120ff;},a121_0x1787(_0x54dabe,_0x3428a9);}const a121_0x327cbf=a121_0x1787;(function(_0x443adc,_0x43472f){const _0x3b7b72=a121_0x1787,_0x53cfe2=_0x443adc();while(!![]){try{const _0x4f0d76=parseInt(_0x3b7b72(0x89))/0x1+parseInt(_0x3b7b72(0x7d))/0x2*(-parseInt(_0x3b7b72(0x85))/0x3)+parseInt(_0x3b7b72(0x8d))/0x4*(parseInt(_0x3b7b72(0x81))/0x5)+parseInt(_0x3b7b72(0x82))/0x6+-parseInt(_0x3b7b72(0x7c))/0x7*(-parseInt(_0x3b7b72(0x8f))/0x8)+parseInt(_0x3b7b72(0x78))/0x9+-parseInt(_0x3b7b72(0x8a))/0xa*(parseInt(_0x3b7b72(0x7b))/0xb);if(_0x4f0d76===_0x43472f)break;else _0x53cfe2['push'](_0x53cfe2['shift']());}catch(_0x505386){_0x53cfe2['push'](_0x53cfe2['shift']());}}}(a121_0x568c,0xa3287));const a121_0x58d83f={};a121_0x58d83f['value']=0x0,a121_0x58d83f[a121_0x327cbf(0x7f)]=function(){const _0x3f8a38=a121_0x327cbf,_0x1a9ca5={};_0x1a9ca5[_0x3f8a38(0x6f)]='TestFrameworkState.NONE';const _0x2ef76b=_0x1a9ca5;return _0x2ef76b['trclJ'];};const a121_0x52bd9c={};a121_0x52bd9c[a121_0x327cbf(0x8b)]=0x1,a121_0x52bd9c[a121_0x327cbf(0x7f)]=function(){const _0x486964=a121_0x327cbf,_0xbccd47={};_0xbccd47[_0x486964(0x83)]=_0x486964(0x91);const _0x55defd=_0xbccd47;return _0x55defd[_0x486964(0x83)];};const a121_0x475a79={};a121_0x475a79['value']=0x2,a121_0x475a79['toString']=function(){const _0x5ae775=a121_0x327cbf,_0x2b8e3c={};_0x2b8e3c[_0x5ae775(0x74)]=_0x5ae775(0x71);const _0x4ec131=_0x2b8e3c;return _0x4ec131['qfJdg'];};const a121_0x57eadd={};a121_0x57eadd['value']=0x3,a121_0x57eadd[a121_0x327cbf(0x7f)]=function(){const _0x3c4cbe=a121_0x327cbf,_0x424129={};_0x424129[_0x3c4cbe(0x76)]=_0x3c4cbe(0x84);const _0x4471f7=_0x424129;return _0x4471f7[_0x3c4cbe(0x76)];};const a121_0x5d5f8a={};a121_0x5d5f8a[a121_0x327cbf(0x8b)]=0x4,a121_0x5d5f8a[a121_0x327cbf(0x7f)]=function(){const _0x13db35=a121_0x327cbf,_0x42e047={};_0x42e047['pBeFT']=_0x13db35(0x72);const _0x1c31ab=_0x42e047;return _0x1c31ab[_0x13db35(0x87)];};const a121_0x4b775d={};a121_0x4b775d['value']=0x5,a121_0x4b775d['toString']=function(){const _0x27e818=a121_0x327cbf,_0x5518fb={};_0x5518fb[_0x27e818(0x92)]='TestFrameworkState.BEFORE_EACH';const _0x228cb1=_0x5518fb;return _0x228cb1[_0x27e818(0x92)];};const a121_0x3df543={};a121_0x3df543['value']=0x6,a121_0x3df543[a121_0x327cbf(0x7f)]=function(){const _0x42a67f=a121_0x327cbf,_0x434aa5={};_0x434aa5['dPZzT']=_0x42a67f(0x7a);const _0x44443e=_0x434aa5;return _0x44443e['dPZzT'];};const a121_0x2f86fa={};a121_0x2f86fa[a121_0x327cbf(0x8b)]=0x7,a121_0x2f86fa[a121_0x327cbf(0x7f)]=function(){const _0x3f3690=a121_0x327cbf,_0x38483d={};_0x38483d['JPHyt']=_0x3f3690(0x77);const _0xdaa1f4=_0x38483d;return _0xdaa1f4[_0x3f3690(0x70)];};const a121_0x509156={};a121_0x509156['value']=0x8,a121_0x509156['toString']=function(){const _0x503e56=a121_0x327cbf,_0xd842bf={};_0xd842bf[_0x503e56(0x7e)]=_0x503e56(0x79);const _0x21aea3=_0xd842bf;return _0x21aea3[_0x503e56(0x7e)];};const a121_0x3390d2={};a121_0x3390d2[a121_0x327cbf(0x8b)]=0x9,a121_0x3390d2[a121_0x327cbf(0x7f)]=function(){const _0x5683f0=a121_0x327cbf,_0x231907={};_0x231907[_0x5683f0(0x75)]=_0x5683f0(0x90);const _0x9581e7=_0x231907;return _0x9581e7[_0x5683f0(0x75)];};function a121_0x568c(){const _0x474b4f=['3znafbw','NbLye','pBeFT','PHIYD','578872tkUvVd','480OMCDtY','value','lupWE','12wxhmZc','TestFrameworkState.TEST_SCREENSHOT','24UXtWBn','TestFrameworkState.LOG_REPORT','TestFrameworkState.BEFORE_ALL','LYFAM','trclJ','JPHyt','TestFrameworkState.LOG','TestFrameworkState.INIT_TEST','values','qfJdg','pGWUC','bjEQt','TestFrameworkState.TEST','9301824MKdIFG','TestFrameworkState.STEP','TestFrameworkState.AFTER_EACH','402853VqaVeX','1077202qvwNYO','1004252IQlibt','ZOjOG','toString','exports','169805GpJuQG','4514256VHwVRW','ngLgZ','TestFrameworkState.SETUP_FIXTURE'];a121_0x568c=function(){return _0x474b4f;};return a121_0x568c();}const a121_0x1698e5={};a121_0x1698e5[a121_0x327cbf(0x8b)]=0xa,a121_0x1698e5[a121_0x327cbf(0x7f)]=function(){const _0x183a50=a121_0x327cbf,_0x3560ef={};_0x3560ef['lupWE']='TestFrameworkState.AFTER_ALL';const _0x15c1fd=_0x3560ef;return _0x15c1fd[_0x183a50(0x8c)];};const a121_0x380393={};a121_0x380393[a121_0x327cbf(0x8b)]=0xb,a121_0x380393['toString']=function(){const _0x238abd=a121_0x327cbf,_0x5b6583={};_0x5b6583[_0x238abd(0x88)]=_0x238abd(0x8e);const _0x528dfd=_0x5b6583;return _0x528dfd[_0x238abd(0x88)];};const a121_0x4e61cd={};a121_0x4e61cd[a121_0x327cbf(0x8b)]=0xc,a121_0x4e61cd['toString']=function(){const _0x13d0a7=a121_0x327cbf,_0x489740={};_0x489740[_0x13d0a7(0x86)]='TestFrameworkState.TEST_STEP';const _0x6bf0ef=_0x489740;return _0x6bf0ef['NbLye'];};const TestFrameworkState=Object['freeze']({'NONE':a121_0x58d83f,'BEFORE_ALL':a121_0x52bd9c,'LOG':a121_0x475a79,'SETUP_FIXTURE':a121_0x57eadd,'INIT_TEST':a121_0x5d5f8a,'BEFORE_EACH':a121_0x4b775d,'AFTER_EACH':a121_0x3df543,'TEST':a121_0x2f86fa,'STEP':a121_0x509156,'LOG_REPORT':a121_0x3390d2,'AFTER_ALL':a121_0x1698e5,'TEST_SCREENSHOT':a121_0x380393,'TEST_STEP':a121_0x4e61cd,'fromValue'(_0x17cfb4){const _0x54c5d1=a121_0x327cbf;return Object[_0x54c5d1(0x73)](TestFrameworkState)['find'](_0x5d240=>_0x5d240[_0x54c5d1(0x8b)]===_0x17cfb4);}});module[a121_0x327cbf(0x80)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a118_0x5bd1(){const _0x3fc2bc=['asdTM','unlinkSync','BuildLevel','Created\x20folder:\x20%s','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','debug','TestHubModule','426nRUXPU','https','QxPcw','trim','__jestCurrentTestIdentifier','tkHim','startsWith','resolveInstance','path','./browserstackCLI','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','addMultipleEntries','getState','17878BUgufN','1004296JNTsTR','uploadAttachments','http','toObject','ZpoUB','uFwlv','jrCiO','bIqXl','existsSync','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','modules','util','retry','./framework/automationFramework','size','name','jest','close','93090AQoXCj','message','POST','gCIGQ','getInstance','force','buildHashedId','yvzic','DFAxb','testhubConfig','join','DkrKS','TiYWm','fQvGj','SkIHr','BLBCl','copyFileSync','415yVxWoI','383592zmkUGi','KEY_TEST_ATTACHMENTS','PWrmo','toFixed','rmSync','330IRBlah','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','YJNcm','clearAttachments','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','uploadAttachmentsManager','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','getAllData','cgpOV','get','778188gaZmEb','MxzRR','trackFile','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20',',\x20filepath:\x20','basename','zOFfz','QJtcz','mkdirSync','45459DuBGvr','error','KEY_FILE_NAME','iRbbn','KEY_FILE_PATH','TLDtO','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','IwPhH','isRunning','getTestFramework','snEaw','KEY_FILE_SIZE','getTrackedInstance','exports','createWriteStream','logger','nfJcr','format','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','tVLzl','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','https://','homedir','getCurrentTestUUID','./cliUtils','KEY_TEST_ID','GipGk','mRCfn','testInfo','function','4120kprlNC','statusCode','yJQOh','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','TestLevel','TEST','finish','statSync','kKBPv','WPHHQ','mNrDF','VjauY','hPCfH','__workerDetails','iegMG','pipe','cYkNY','./TestInfo','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','zpNsQ','getTestIdentifierFromTestInfo','setTestDetails','SaojG'];a118_0x5bd1=function(){return _0x3fc2bc;};return a118_0x5bd1();}const a118_0x513c75=a118_0x2e07;function a118_0x2e07(_0x50461d,_0x31efac){const _0x5bd1cc=a118_0x5bd1();return a118_0x2e07=function(_0x2e07d0,_0x1ce069){_0x2e07d0=_0x2e07d0-0xdf;let _0x4bc299=_0x5bd1cc[_0x2e07d0];return _0x4bc299;},a118_0x2e07(_0x50461d,_0x31efac);}(function(_0x12d716,_0x69b28d){const _0x21aa28=a118_0x2e07,_0x4222ee=_0x12d716();while(!![]){try{const _0x1a8619=parseInt(_0x21aa28(0x12c))/0x1+parseInt(_0x21aa28(0x13e))/0x2+parseInt(_0x21aa28(0x14d))/0x3+parseInt(_0x21aa28(0xee))/0x4*(parseInt(_0x21aa28(0x13d))/0x5)+parseInt(_0x21aa28(0x10c))/0x6*(-parseInt(_0x21aa28(0x119))/0x7)+-parseInt(_0x21aa28(0x11a))/0x8+parseInt(_0x21aa28(0x156))/0x9*(-parseInt(_0x21aa28(0x143))/0xa);if(_0x1a8619===_0x69b28d)break;else _0x4222ee['push'](_0x4222ee['shift']());}catch(_0x512322){_0x4222ee['push'](_0x4222ee['shift']());}}}(a118_0x5bd1,0x2623a));const os=require('os'),fs=require('fs'),path=require(a118_0x513c75(0x114)),util=require(a118_0x513c75(0x125)),BrowserstackCLI=require(a118_0x513c75(0x115)),https=require(a118_0x513c75(0x10d)),http=require(a118_0x513c75(0x11c)),AutomationFramework=require(a118_0x513c75(0x127)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a118_0x513c75(0xff)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require('../../helpers/classLogger.js');class uploadAttachmentsManager{static [a118_0x513c75(0xdf)]=createClassLogger(a118_0x513c75(0x148));static[a118_0x513c75(0x11b)](_0x547ff3,_0x226c18=![]){const _0xeb6958=a118_0x513c75,_0x18db1b={};_0x18db1b['iegMG']=function(_0xcd9855,_0x474cf4){return _0xcd9855/_0x474cf4;},_0x18db1b[_0xeb6958(0xf0)]=function(_0x131867,_0x1e2785){return _0x131867*_0x1e2785;},_0x18db1b[_0xeb6958(0xfa)]=function(_0x59d90b,_0xfdb79d){return _0x59d90b>_0xfdb79d;},_0x18db1b[_0xeb6958(0x145)]='Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.',_0x18db1b['unzgP']='File\x20downloaded\x20to:\x20%s',_0x18db1b[_0xeb6958(0x134)]=function(_0x3a014b,_0xb3c27e){return _0x3a014b===_0xb3c27e;},_0x18db1b[_0xeb6958(0x11e)]=_0xeb6958(0xf4),_0x18db1b[_0xeb6958(0x140)]=_0xeb6958(0x149),_0x18db1b[_0xeb6958(0x139)]=_0xeb6958(0x100),_0x18db1b['Onyfe']='Attachment\x20recevied\x20for\x20path:\x20%s',_0x18db1b[_0xeb6958(0x104)]='.browserstack',_0x18db1b[_0xeb6958(0x14e)]=_0xeb6958(0x147),_0x18db1b[_0xeb6958(0x14b)]='Created\x20.browserstack\x20folder\x20at:\x20%s',_0x18db1b['WPHHQ']=_0xeb6958(0x108),_0x18db1b[_0xeb6958(0x133)]=_0xeb6958(0x109),_0x18db1b['TiYWm']=_0xeb6958(0xe5),_0x18db1b['gCIGQ']='http://',_0x18db1b[_0xeb6958(0x105)]=_0xeb6958(0x157),_0x18db1b[_0xeb6958(0x13a)]=_0xeb6958(0x116),_0x18db1b['DkrKS']=function(_0x21c6ae,_0x2ba329){return _0x21c6ae/_0x2ba329;},_0x18db1b[_0xeb6958(0x154)]=function(_0xd4ea2c,_0x160c13){return _0xd4ea2c*_0x160c13;},_0x18db1b[_0xeb6958(0x11f)]=function(_0x3d0f03,_0x1f57ec){return _0x3d0f03>_0x1f57ec;},_0x18db1b['nNkkg']='File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.';const _0x401ed6=_0x18db1b;this[_0xeb6958(0xdf)][_0xeb6958(0x10a)](util['format'](_0x401ed6['Onyfe'],_0x547ff3));const _0xfdb768=os[_0xeb6958(0xe6)](),_0x2ff17f=path[_0xeb6958(0x136)](_0xfdb768,_0x401ed6[_0xeb6958(0x104)]);!fs[_0xeb6958(0x122)](_0x2ff17f)&&(this['logger'][_0xeb6958(0x10a)](util[_0xeb6958(0xe1)](_0x401ed6[_0xeb6958(0x14e)],_0x2ff17f)),fs[_0xeb6958(0x155)](_0x2ff17f),this[_0xeb6958(0xdf)][_0xeb6958(0x10a)](util[_0xeb6958(0xe1)](_0x401ed6[_0xeb6958(0x14b)],_0x2ff17f)));const _0xad5670=BrowserstackCLI['getInstance']()['modules'][_0xeb6958(0x10b)]?.[_0xeb6958(0x135)]?.['toObject']()?.[_0xeb6958(0x132)],_0xe282c7=path['join'](_0x2ff17f,_0xad5670);!fs[_0xeb6958(0x122)](_0xe282c7)&&(fs[_0xeb6958(0x155)](_0xe282c7),this[_0xeb6958(0xdf)][_0xeb6958(0x10a)](util[_0xeb6958(0xe1)](_0x401ed6[_0xeb6958(0xf7)],_0xe282c7)));if(_0x401ed6[_0xeb6958(0x134)](_0x547ff3[_0xeb6958(0x10f)](),'')){this[_0xeb6958(0xdf)][_0xeb6958(0x10a)](util[_0xeb6958(0xe1)](_0x401ed6[_0xeb6958(0x133)]));return;}if(_0x547ff3[_0xeb6958(0x112)](_0x401ed6[_0xeb6958(0x138)])||_0x547ff3[_0xeb6958(0x112)](_0x401ed6[_0xeb6958(0x12f)])){const _0x5a6adb=_0x547ff3[_0xeb6958(0x112)](_0x401ed6[_0xeb6958(0x138)])?https:http,_0x31e3fd=path[_0xeb6958(0x152)](_0x547ff3),_0x1c0cc4=path[_0xeb6958(0x136)](_0xe282c7,_0x31e3fd),_0x510a52=fs[_0xeb6958(0x164)](_0x1c0cc4);_0x5a6adb[_0xeb6958(0x14c)](_0x547ff3,_0x298da7=>{const _0x4b3f50=_0xeb6958,_0x2966d0={'GipGk':function(_0x381cb1,_0x36bb2f){const _0x1a221b=a118_0x2e07;return _0x401ed6[_0x1a221b(0xfc)](_0x381cb1,_0x36bb2f);},'zpNsQ':function(_0x4193c2,_0x534aa3){return _0x401ed6['yJQOh'](_0x4193c2,_0x534aa3);},'tkHim':function(_0x584a41,_0x3b6602){const _0x5e241c=a118_0x2e07;return _0x401ed6[_0x5e241c(0xfa)](_0x584a41,_0x3b6602);},'BLBCl':_0x401ed6[_0x4b3f50(0x145)],'YrFcl':_0x401ed6['unzgP']};if(_0x401ed6[_0x4b3f50(0x134)](_0x298da7[_0x4b3f50(0xef)],0xc8))_0x298da7[_0x4b3f50(0xfd)](_0x510a52),_0x510a52['on'](_0x401ed6[_0x4b3f50(0x11e)],()=>{const _0x20c84d=_0x4b3f50;_0x510a52[_0x20c84d(0x12b)]();const _0x30d374=fs['statSync'](_0x1c0cc4),_0x21934e=_0x2966d0[_0x20c84d(0xea)](_0x30d374[_0x20c84d(0x128)],_0x2966d0[_0x20c84d(0x101)](0x400,0x400));if(_0x2966d0[_0x20c84d(0x111)](_0x21934e,0x64)){this[_0x20c84d(0xdf)][_0x20c84d(0x10a)](util[_0x20c84d(0xe1)](_0x2966d0[_0x20c84d(0x13b)],_0x21934e[_0x20c84d(0x141)](0x2))),fs[_0x20c84d(0x106)](_0x1c0cc4);return;}this[_0x20c84d(0xdf)][_0x20c84d(0x10a)](util[_0x20c84d(0xe1)](_0x2966d0['YrFcl'],_0x1c0cc4)),uploadAttachmentsManager['trackFile'](_0x1c0cc4,_0x226c18);});else{this['logger']['debug'](util[_0x4b3f50(0xe1)](_0x401ed6[_0x4b3f50(0x140)],_0x298da7[_0x4b3f50(0xef)])),_0x510a52[_0x4b3f50(0x12b)](),fs[_0x4b3f50(0x106)](_0x1c0cc4);return;}})['on'](_0x401ed6[_0xeb6958(0x105)],_0xfd6c27=>{const _0x10f6d9=_0xeb6958;this[_0x10f6d9(0xdf)][_0x10f6d9(0x10a)](util[_0x10f6d9(0xe1)](_0x401ed6['fQvGj'],_0xfd6c27['message'])),_0x510a52[_0x10f6d9(0x12b)](),fs[_0x10f6d9(0x106)](_0x1c0cc4);return;});}else{if(!fs['existsSync'](_0x547ff3)){this[_0xeb6958(0xdf)]['debug'](util[_0xeb6958(0xe1)](_0x401ed6[_0xeb6958(0x13a)],_0x547ff3));return;}const _0x3c6795=fs[_0xeb6958(0xf5)](_0x547ff3),_0x45b7ea=_0x401ed6[_0xeb6958(0x137)](_0x3c6795[_0xeb6958(0x128)],_0x401ed6[_0xeb6958(0x154)](0x400,0x400));if(_0x401ed6[_0xeb6958(0x11f)](_0x45b7ea,0x64)){this[_0xeb6958(0xdf)]['debug'](util[_0xeb6958(0xe1)](_0x401ed6['nNkkg'],_0x45b7ea[_0xeb6958(0x141)](0x2)));return;}const _0x22b315=path[_0xeb6958(0x152)](_0x547ff3),_0x42e718=path[_0xeb6958(0x136)](_0xe282c7,_0x22b315);fs[_0xeb6958(0x13c)](_0x547ff3,_0x42e718),uploadAttachmentsManager[_0xeb6958(0x14f)](_0x42e718,_0x226c18);}}static['trackFile'](_0x283417,_0x300d04){const _0x36eac2=a118_0x513c75,_0x32f144={'cYkNY':function(_0x38a4ec,_0x5edf89){return _0x38a4ec(_0x5edf89);},'VjauY':_0x36eac2(0x115),'QxPcw':_0x36eac2(0xe8),'mRCfn':function(_0x3d03a9,_0x12f35c){return _0x3d03a9===_0x12f35c;},'bIqXl':_0x36eac2(0x12a),'blyNr':_0x36eac2(0xed),'snEaw':_0x36eac2(0x144),'cxdpg':_0x36eac2(0x107),'iRbbn':_0x36eac2(0xf2),'tVLzl':'trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','IwPhH':'./state/testFrameworkState','mNrDF':'./state/hookState','TLDtO':_0x36eac2(0xe4),'jrCiO':'Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','JqvGn':'Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload'};try{let _0x3f0cf9;const _0x26a84e=global[_0x36eac2(0xfb)]?.['currentTest']?.[_0x36eac2(0xec)],_0x1b4545=_0x32f144[_0x36eac2(0xfe)](require,_0x32f144[_0x36eac2(0xf9)]),_0x25eb4f=_0x32f144[_0x36eac2(0xfe)](require,_0x32f144[_0x36eac2(0x10e)]),_0x22252f=_0x1b4545[_0x36eac2(0x130)]()[_0x36eac2(0x15e)]()&&_0x32f144['mRCfn'](_0x25eb4f['getTestFrameworkDetail']()?.[_0x36eac2(0x129)]?.['toLowerCase'](),_0x32f144[_0x36eac2(0x121)]);if(_0x22252f){_0x3f0cf9=global[_0x36eac2(0x110)];if(!_0x3f0cf9){const _0x4ac358=AutomationFramework[_0x36eac2(0x162)]();_0x3f0cf9=AutomationFramework[_0x36eac2(0x118)](_0x4ac358,PlaywrightDriverModule[_0x36eac2(0xe9)],'');}this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](_0x36eac2(0x123)+_0x3f0cf9);}else{if(!_0x26a84e){const _0x150afc=AutomationFramework[_0x36eac2(0x162)]();_0x3f0cf9=AutomationFramework[_0x36eac2(0x118)](_0x150afc,PlaywrightDriverModule[_0x36eac2(0xe9)],'');}else _0x3f0cf9=TestInfo[_0x36eac2(0x102)](_0x26a84e,_0x26a84e[_0x36eac2(0x126)]);this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](_0x36eac2(0x150)+_0x3f0cf9);}if(!_0x3f0cf9)try{const _0x248f21=_0x1b4545[_0x36eac2(0x130)](),_0x20c453=_0x248f21&&_0x248f21['getTestFramework']();_0x3f0cf9=_0x20c453&&_0x32f144[_0x36eac2(0xeb)](typeof _0x20c453[_0x36eac2(0xe7)],_0x32f144['blyNr'])&&_0x20c453[_0x36eac2(0xe7)]()||_0x3f0cf9;}catch(_0x9825ec){this[_0x36eac2(0xdf)]['debug']('trackFile:\x20node-generic\x20testId\x20fallback\x20failed:\x20'+(_0x9825ec&&_0x9825ec['message']));}if(!_0x3f0cf9){this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](_0x32f144[_0x36eac2(0x160)]);return;}const _0x3aa29e={[TestFrameworkConstants[_0x36eac2(0x161)]]:fs[_0x36eac2(0xf5)](_0x283417)[_0x36eac2(0x128)],[TestFrameworkConstants[_0x36eac2(0x158)]]:path[_0x36eac2(0x152)](_0x283417),[TestFrameworkConstants[_0x36eac2(0x15a)]]:_0x283417,[TestFrameworkConstants['KEY_FILE_LEVEL']]:_0x300d04?_0x32f144['cxdpg']:_0x32f144[_0x36eac2(0x159)]};if(_0x22252f){const _0x2739a1=_0x1b4545[_0x36eac2(0x130)]()[_0x36eac2(0x15f)]();if(!_0x2739a1){this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](_0x32f144[_0x36eac2(0xe3)]);return;}const _0x234e5a=_0x32f144[_0x36eac2(0xfe)](require,_0x32f144[_0x36eac2(0x15d)]),_0x58b755=_0x32f144[_0x36eac2(0xfe)](require,_0x32f144[_0x36eac2(0xf8)]),_0xe5c033=_0x2739a1[_0x36eac2(0x113)](_0x234e5a[_0x36eac2(0xf3)],_0x58b755[_0x36eac2(0x12e)]);if(!_0xe5c033){this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](_0x32f144[_0x36eac2(0x15b)]);return;}const _0xf8bbc8=_0xe5c033[_0x36eac2(0x14a)]()[_0x36eac2(0x14c)](_0x3f0cf9)||{},_0x1dcda0=_0xf8bbc8[TestFrameworkConstants[_0x36eac2(0x13f)]]||{},_0x414081={..._0x1dcda0};_0x414081[_0x283417]=_0x3aa29e;const _0x54beb1=_0x414081,_0x34d42d={[TestFrameworkConstants[_0x36eac2(0x13f)]]:_0x54beb1},_0x400e70={};_0x400e70[_0x3f0cf9]=_0x34d42d,_0xe5c033[_0x36eac2(0x117)](_0x400e70),this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](_0x36eac2(0x15c)+_0x3f0cf9+_0x36eac2(0x151)+_0x283417);}else{const _0x10654e=TestInfo['getTestDetails'](_0x3f0cf9),_0x62020a=_0x10654e[TestFrameworkConstants[_0x36eac2(0x13f)]]||{};_0x62020a[_0x283417]=_0x3aa29e,_0x10654e[TestFrameworkConstants[_0x36eac2(0x13f)]]=_0x62020a,TestInfo[_0x36eac2(0x103)](_0x3f0cf9,_0x10654e),this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](_0x36eac2(0xf1)+_0x3f0cf9+_0x36eac2(0x151)+_0x283417);}this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](util[_0x36eac2(0xe1)](_0x32f144[_0x36eac2(0x120)],_0x283417));}catch(_0x526323){this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](util[_0x36eac2(0xe1)](_0x32f144['JqvGn'],_0x526323[_0x36eac2(0x12d)]));}}static[a118_0x513c75(0x146)](){const _0x3749b2=a118_0x513c75,_0x3835a5={};_0x3835a5[_0x3749b2(0xe0)]='.browserstack',_0x3835a5[_0x3749b2(0xf6)]=_0x3749b2(0xe2),_0x3835a5['zOFfz']='Cleared\x20attachment\x20folder';const _0x216db1=_0x3835a5,_0x2b2dbc=os[_0x3749b2(0xe6)](),_0x3ad666=path[_0x3749b2(0x136)](_0x2b2dbc,_0x216db1[_0x3749b2(0xe0)]);if(!fs[_0x3749b2(0x122)](_0x3ad666))return;const _0x251a9c=BrowserstackCLI[_0x3749b2(0x130)]()[_0x3749b2(0x124)][_0x3749b2(0x10b)]?.[_0x3749b2(0x135)]?.[_0x3749b2(0x11d)]()?.['buildHashedId'],_0x390545=_0x251a9c?path[_0x3749b2(0x136)](_0x3ad666,_0x251a9c):null;if(!_0x390545||!fs['existsSync'](_0x390545)){this['logger'][_0x3749b2(0x10a)](util[_0x3749b2(0xe1)](_0x216db1[_0x3749b2(0xf6)],_0x251a9c));return;}const _0x426482={};_0x426482['recursive']=!![],_0x426482[_0x3749b2(0x131)]=!![],fs[_0x3749b2(0x142)](_0x390545,_0x426482),this['logger'][_0x3749b2(0x10a)](util[_0x3749b2(0xe1)](_0x216db1[_0x3749b2(0x153)]));}}module[a118_0x513c75(0x163)]=uploadAttachmentsManager;
|
|
1
|
+
function a122_0x3d02(){const _0x484006=['trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','createWriteStream','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','KEY_FILE_PATH','finish','lIiXv','format','addMultipleEntries','logger','trackFile','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','emuoQ','ISeaQ','RgCsH','testhubConfig','grRen','./framework/automationFramework','existsSync','join','getState','./state/testFrameworkState','uploadAttachments','IwOCj','uVmHe','KEY_FILE_LEVEL','homedir','http://','error','dEdDo','PJbjQ','basename','20JuyMSV','fwDSN','aKnTc','util','Created\x20.browserstack\x20folder\x20at:\x20%s','getTestFramework','mYMKI','2928414nrxKeq','currentTest','GSagU',',\x20filepath:\x20','595481dMxJPI','https','close','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','UKpaD','toFixed','.browserstack','unlinkSync','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','statSync','jiVZQ','4GqarQQ','Cleared\x20attachment\x20folder','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','KEY_FILE_NAME','SlcTb','16523748jsSnYL','name','./TestInfo','KEY_FILE_SIZE','./state/hookState','get','size','./browserstackCLI','force','resolveInstance','POST','vuvlq','function','CrgRh','QGPDx','xCjYk','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','../../helpers/classLogger.js','__jestCurrentTestIdentifier','rYNTs','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','Created\x20folder:\x20%s','hxjwz','1529300wFvtja','SyZpK','https://','http','2552284rphwQF','clearAttachments','getTrackedInstance','message','path','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','mkdirSync','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','10140120qkGTNL','qYEfN','kemAu','buildHashedId','FPTdQ','tLXPY','getInstance','vBtxc','startsWith','getCurrentTestUUID','zjSce','cSZoJ','./cliUtils','setTestDetails','./modules/playwrightDriverModule','tDnMV','owyXv','getTestFrameworkDetail','455884dgRuGB','debug','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','KEY_TEST_ATTACHMENTS','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','ayxYD','getTestDetails','biNzF','__workerDetails','TEST','getTestIdentifierFromTestInfo','statusCode','kvkUu','TestHubModule','BuildLevel','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','retry','HnIqq','MrevV','3bpyffW','trackFile:\x20node-generic\x20testId\x20fallback\x20failed:\x20','modules','pLiJZ'];a122_0x3d02=function(){return _0x484006;};return a122_0x3d02();}const a122_0x23b9b1=a122_0x2b14;(function(_0x43f440,_0x2065ac){const _0x23312f=a122_0x2b14,_0x4297b4=_0x43f440();while(!![]){try{const _0x3f8085=-parseInt(_0x23312f(0x193))/0x1*(parseInt(_0x23312f(0x19f))/0x2)+parseInt(_0x23312f(0x1ec))/0x3*(-parseInt(_0x23312f(0x1d9))/0x4)+-parseInt(_0x23312f(0x1bb))/0x5+-parseInt(_0x23312f(0x18f))/0x6+parseInt(_0x23312f(0x1bf))/0x7+-parseInt(_0x23312f(0x1c7))/0x8+parseInt(_0x23312f(0x1a4))/0x9*(parseInt(_0x23312f(0x188))/0xa);if(_0x3f8085===_0x2065ac)break;else _0x4297b4['push'](_0x4297b4['shift']());}catch(_0x3c3bc2){_0x4297b4['push'](_0x4297b4['shift']());}}}(a122_0x3d02,0xa39e3));const os=require('os'),fs=require('fs'),path=require(a122_0x23b9b1(0x1c3)),util=require(a122_0x23b9b1(0x18b)),BrowserstackCLI=require(a122_0x23b9b1(0x1ab)),https=require(a122_0x23b9b1(0x194)),http=require(a122_0x23b9b1(0x1be)),AutomationFramework=require(a122_0x23b9b1(0x179)),PlaywrightDriverModule=require(a122_0x23b9b1(0x1d5)),TestInfo=require(a122_0x23b9b1(0x1a6)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require(a122_0x23b9b1(0x1b5));function a122_0x2b14(_0x160e49,_0x22c50e){const _0x3d0291=a122_0x3d02();return a122_0x2b14=function(_0x2b140a,_0x5f4cd4){_0x2b140a=_0x2b140a-0x16e;let _0x5c57ad=_0x3d0291[_0x2b140a];return _0x5c57ad;},a122_0x2b14(_0x160e49,_0x22c50e);}class uploadAttachmentsManager{static [a122_0x23b9b1(0x171)]=createClassLogger('uploadAttachmentsManager');static[a122_0x23b9b1(0x17e)](_0x4b0353,_0x3fa73c=![]){const _0x1b698d=a122_0x23b9b1,_0x3bfe79={};_0x3bfe79['gKprX']=function(_0x3dbfbc,_0x49284a){return _0x3dbfbc/_0x49284a;},_0x3bfe79[_0x1b698d(0x1ef)]=function(_0x5313c4,_0x3e2bd5){return _0x5313c4*_0x3e2bd5;},_0x3bfe79[_0x1b698d(0x1c8)]=function(_0x5c92f1,_0x262389){return _0x5c92f1>_0x262389;},_0x3bfe79['SlcTb']=_0x1b698d(0x1e8),_0x3bfe79[_0x1b698d(0x1c9)]='File\x20downloaded\x20to:\x20%s',_0x3bfe79[_0x1b698d(0x1d7)]=function(_0x491acb,_0x3ad848){return _0x491acb===_0x3ad848;},_0x3bfe79[_0x1b698d(0x1cb)]=_0x1b698d(0x1f4),_0x3bfe79[_0x1b698d(0x1de)]=_0x1b698d(0x1c4),_0x3bfe79[_0x1b698d(0x19e)]=_0x1b698d(0x1f2),_0x3bfe79[_0x1b698d(0x176)]='Attachment\x20recevied\x20for\x20path:\x20%s',_0x3bfe79[_0x1b698d(0x1d1)]=_0x1b698d(0x19a),_0x3bfe79[_0x1b698d(0x174)]='.browserstack\x20folder\x20not\x20found\x20at:\x20%s',_0x3bfe79[_0x1b698d(0x1b1)]=_0x1b698d(0x18c),_0x3bfe79[_0x1b698d(0x185)]=_0x1b698d(0x1b9),_0x3bfe79['kvkUu']=_0x1b698d(0x173),_0x3bfe79['PJbjQ']=_0x1b698d(0x1bd),_0x3bfe79['KdXdq']=_0x1b698d(0x183),_0x3bfe79['biNzF']=_0x1b698d(0x184),_0x3bfe79[_0x1b698d(0x1d2)]=_0x1b698d(0x1b8),_0x3bfe79['DwzpZ']=function(_0x1296d4,_0x5cebf1){return _0x1296d4/_0x5cebf1;},_0x3bfe79[_0x1b698d(0x1b7)]=function(_0x36f2b9,_0xaa0e36){return _0x36f2b9*_0xaa0e36;},_0x3bfe79['QGPDx']=function(_0x430084,_0x484568){return _0x430084>_0x484568;},_0x3bfe79[_0x1b698d(0x1b3)]=_0x1b698d(0x196);const _0x5af808=_0x3bfe79;this['logger'][_0x1b698d(0x1da)](util[_0x1b698d(0x16f)](_0x5af808[_0x1b698d(0x176)],_0x4b0353));const _0xc8aab4=os[_0x1b698d(0x182)](),_0x372023=path['join'](_0xc8aab4,_0x5af808[_0x1b698d(0x1d1)]);!fs['existsSync'](_0x372023)&&(this['logger'][_0x1b698d(0x1da)](util['format'](_0x5af808[_0x1b698d(0x174)],_0x372023)),fs[_0x1b698d(0x1c5)](_0x372023),this[_0x1b698d(0x171)][_0x1b698d(0x1da)](util[_0x1b698d(0x16f)](_0x5af808[_0x1b698d(0x1b1)],_0x372023)));const _0x5c5044=BrowserstackCLI['getInstance']()[_0x1b698d(0x1ee)][_0x1b698d(0x1e6)]?.['testhubConfig']?.['toObject']()?.[_0x1b698d(0x1ca)],_0x4d4bae=path[_0x1b698d(0x17b)](_0x372023,_0x5c5044);!fs[_0x1b698d(0x17a)](_0x4d4bae)&&(fs[_0x1b698d(0x1c5)](_0x4d4bae),this[_0x1b698d(0x171)]['debug'](util['format'](_0x5af808[_0x1b698d(0x185)],_0x4d4bae)));if(_0x5af808[_0x1b698d(0x1d7)](_0x4b0353['trim'](),'')){this[_0x1b698d(0x171)]['debug'](util['format'](_0x5af808[_0x1b698d(0x1e5)]));return;}if(_0x4b0353[_0x1b698d(0x1cf)](_0x5af808[_0x1b698d(0x186)])||_0x4b0353[_0x1b698d(0x1cf)](_0x5af808['KdXdq'])){const _0x2eb5bc=_0x4b0353['startsWith'](_0x5af808['PJbjQ'])?https:http,_0x256417=path['basename'](_0x4b0353),_0x1bd67f=path[_0x1b698d(0x17b)](_0x4d4bae,_0x256417),_0x34f374=fs[_0x1b698d(0x1f1)](_0x1bd67f);_0x2eb5bc[_0x1b698d(0x1a9)](_0x4b0353,_0xe27ff2=>{const _0x2a0c16=_0x1b698d,_0x1a2ac9={'IwOCj':function(_0x3faba3,_0x155bf9){return _0x5af808['gKprX'](_0x3faba3,_0x155bf9);},'eNMqP':function(_0x24314f,_0x4ffe4a){const _0x27a14e=a122_0x2b14;return _0x5af808[_0x27a14e(0x1ef)](_0x24314f,_0x4ffe4a);},'GzRNl':function(_0xdcf33d,_0x56dbc9){const _0x3b49c6=a122_0x2b14;return _0x5af808[_0x3b49c6(0x1c8)](_0xdcf33d,_0x56dbc9);},'MrevV':_0x5af808[_0x2a0c16(0x1a3)],'ISeaQ':_0x5af808[_0x2a0c16(0x1c9)]};if(_0x5af808[_0x2a0c16(0x1d7)](_0xe27ff2[_0x2a0c16(0x1e4)],0xc8))_0xe27ff2['pipe'](_0x34f374),_0x34f374['on'](_0x5af808[_0x2a0c16(0x1cb)],()=>{const _0x1badf0=_0x2a0c16;_0x34f374[_0x1badf0(0x195)]();const _0x534f99=fs[_0x1badf0(0x19d)](_0x1bd67f),_0x31df21=_0x1a2ac9[_0x1badf0(0x17f)](_0x534f99[_0x1badf0(0x1aa)],_0x1a2ac9['eNMqP'](0x400,0x400));if(_0x1a2ac9['GzRNl'](_0x31df21,0x64)){this[_0x1badf0(0x171)][_0x1badf0(0x1da)](util[_0x1badf0(0x16f)](_0x1a2ac9[_0x1badf0(0x1eb)],_0x31df21[_0x1badf0(0x199)](0x2))),fs[_0x1badf0(0x19b)](_0x1bd67f);return;}this[_0x1badf0(0x171)][_0x1badf0(0x1da)](util['format'](_0x1a2ac9[_0x1badf0(0x175)],_0x1bd67f)),uploadAttachmentsManager[_0x1badf0(0x172)](_0x1bd67f,_0x3fa73c);});else{this['logger']['debug'](util['format'](_0x5af808[_0x2a0c16(0x1de)],_0xe27ff2[_0x2a0c16(0x1e4)])),_0x34f374[_0x2a0c16(0x195)](),fs['unlinkSync'](_0x1bd67f);return;}})['on'](_0x5af808[_0x1b698d(0x1e0)],_0x1f6577=>{const _0x488a15=_0x1b698d;this[_0x488a15(0x171)][_0x488a15(0x1da)](util[_0x488a15(0x16f)](_0x5af808[_0x488a15(0x19e)],_0x1f6577[_0x488a15(0x1c2)])),_0x34f374['close'](),fs[_0x488a15(0x19b)](_0x1bd67f);return;});}else{if(!fs['existsSync'](_0x4b0353)){this[_0x1b698d(0x171)]['debug'](util[_0x1b698d(0x16f)](_0x5af808[_0x1b698d(0x1d2)],_0x4b0353));return;}const _0x2b3229=fs[_0x1b698d(0x19d)](_0x4b0353),_0x3ff025=_0x5af808['DwzpZ'](_0x2b3229[_0x1b698d(0x1aa)],_0x5af808[_0x1b698d(0x1b7)](0x400,0x400));if(_0x5af808[_0x1b698d(0x1b2)](_0x3ff025,0x64)){this[_0x1b698d(0x171)][_0x1b698d(0x1da)](util['format'](_0x5af808[_0x1b698d(0x1b3)],_0x3ff025['toFixed'](0x2)));return;}const _0x42a1ca=path[_0x1b698d(0x187)](_0x4b0353),_0x25c6a6=path[_0x1b698d(0x17b)](_0x4d4bae,_0x42a1ca);fs['copyFileSync'](_0x4b0353,_0x25c6a6),uploadAttachmentsManager[_0x1b698d(0x172)](_0x25c6a6,_0x3fa73c);}}static[a122_0x23b9b1(0x172)](_0x37cf0d,_0x1e507b){const _0x5d66b0=a122_0x23b9b1,_0x5aa10c={'mNQGW':function(_0x4bd6d6,_0x5399c3){return _0x4bd6d6(_0x5399c3);},'fwDSN':'./browserstackCLI','lIiXv':function(_0x4cc250,_0x990302){return _0x4cc250(_0x990302);},'HnIqq':_0x5d66b0(0x1d3),'SyZpK':function(_0xaea300,_0x41e2a2){return _0xaea300===_0x41e2a2;},'vuvlq':'jest','tLXPY':function(_0x1ed154,_0x2d58bf){return _0x1ed154===_0x2d58bf;},'FbvcS':_0x5d66b0(0x1b0),'grRen':_0x5d66b0(0x1db),'vBtxc':_0x5d66b0(0x1e7),'rkKYj':'TestLevel','tDnMV':_0x5d66b0(0x1b4),'teflQ':_0x5d66b0(0x17d),'wGRkx':_0x5d66b0(0x1a8),'UKpaD':_0x5d66b0(0x1f0),'hxjwz':_0x5d66b0(0x19c),'aKnTc':_0x5d66b0(0x197)};try{let _0x587843;const _0x5da8cf=global[_0x5d66b0(0x1e1)]?.[_0x5d66b0(0x190)]?.['testInfo'],_0x577691=_0x5aa10c['mNQGW'](require,_0x5aa10c[_0x5d66b0(0x189)]),_0x34e8d2=_0x5aa10c[_0x5d66b0(0x16e)](require,_0x5aa10c[_0x5d66b0(0x1ea)]),_0xedd81c=_0x577691[_0x5d66b0(0x1cd)]()['isRunning']()&&_0x5aa10c[_0x5d66b0(0x1bc)](_0x34e8d2[_0x5d66b0(0x1d8)]()?.[_0x5d66b0(0x1a5)]?.['toLowerCase'](),_0x5aa10c[_0x5d66b0(0x1af)]);if(_0xedd81c){_0x587843=global[_0x5d66b0(0x1b6)];if(!_0x587843){const _0x76c9a9=AutomationFramework[_0x5d66b0(0x1c1)]();_0x587843=AutomationFramework[_0x5d66b0(0x17c)](_0x76c9a9,PlaywrightDriverModule['KEY_TEST_ID'],'');}this[_0x5d66b0(0x171)]['debug'](_0x5d66b0(0x1a1)+_0x587843);}else{if(!_0x5da8cf){const _0x1122b2=AutomationFramework[_0x5d66b0(0x1c1)]();_0x587843=AutomationFramework[_0x5d66b0(0x17c)](_0x1122b2,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0x587843=TestInfo[_0x5d66b0(0x1e3)](_0x5da8cf,_0x5da8cf[_0x5d66b0(0x1e9)]);this[_0x5d66b0(0x171)]['debug']('trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20'+_0x587843);}if(!_0x587843)try{const _0x1f6444=_0x577691[_0x5d66b0(0x1cd)](),_0x7a0cd3=_0x1f6444&&_0x1f6444[_0x5d66b0(0x18d)]();_0x587843=_0x7a0cd3&&_0x5aa10c[_0x5d66b0(0x1cc)](typeof _0x7a0cd3[_0x5d66b0(0x1d0)],_0x5aa10c['FbvcS'])&&_0x7a0cd3[_0x5d66b0(0x1d0)]()||_0x587843;}catch(_0x1eb8f9){this[_0x5d66b0(0x171)][_0x5d66b0(0x1da)](_0x5d66b0(0x1ed)+(_0x1eb8f9&&_0x1eb8f9[_0x5d66b0(0x1c2)]));}if(!_0x587843){this[_0x5d66b0(0x171)][_0x5d66b0(0x1da)](_0x5aa10c[_0x5d66b0(0x178)]);return;}const _0x109f87={[TestFrameworkConstants[_0x5d66b0(0x1a7)]]:fs['statSync'](_0x37cf0d)[_0x5d66b0(0x1aa)],[TestFrameworkConstants[_0x5d66b0(0x1a2)]]:path[_0x5d66b0(0x187)](_0x37cf0d),[TestFrameworkConstants[_0x5d66b0(0x1f3)]]:_0x37cf0d,[TestFrameworkConstants[_0x5d66b0(0x181)]]:_0x1e507b?_0x5aa10c[_0x5d66b0(0x1ce)]:_0x5aa10c['rkKYj']};if(_0xedd81c){const _0x345280=_0x577691[_0x5d66b0(0x1cd)]()[_0x5d66b0(0x18d)]();if(!_0x345280){this[_0x5d66b0(0x171)][_0x5d66b0(0x1da)](_0x5aa10c[_0x5d66b0(0x1d6)]);return;}const _0x4e989e=_0x5aa10c['mNQGW'](require,_0x5aa10c['teflQ']),_0x2f5136=_0x5aa10c[_0x5d66b0(0x16e)](require,_0x5aa10c['wGRkx']),_0x2ff35c=_0x345280[_0x5d66b0(0x1ad)](_0x4e989e[_0x5d66b0(0x1e2)],_0x2f5136[_0x5d66b0(0x1ae)]);if(!_0x2ff35c){this[_0x5d66b0(0x171)][_0x5d66b0(0x1da)](_0x5aa10c[_0x5d66b0(0x198)]);return;}const _0x3ad1a9=_0x2ff35c['getAllData']()[_0x5d66b0(0x1a9)](_0x587843)||{},_0x4734ca=_0x3ad1a9[TestFrameworkConstants[_0x5d66b0(0x1dc)]]||{},_0x20b4b9={..._0x4734ca};_0x20b4b9[_0x37cf0d]=_0x109f87;const _0x3f79ef=_0x20b4b9,_0x42e4e6={[TestFrameworkConstants[_0x5d66b0(0x1dc)]]:_0x3f79ef},_0x4d0a82={};_0x4d0a82[_0x587843]=_0x42e4e6,_0x2ff35c[_0x5d66b0(0x170)](_0x4d0a82),this[_0x5d66b0(0x171)]['debug']('trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20'+_0x587843+_0x5d66b0(0x192)+_0x37cf0d);}else{const _0xfdf04c=TestInfo[_0x5d66b0(0x1df)](_0x587843),_0x18ff67=_0xfdf04c[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{};_0x18ff67[_0x37cf0d]=_0x109f87,_0xfdf04c[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]=_0x18ff67,TestInfo[_0x5d66b0(0x1d4)](_0x587843,_0xfdf04c),this[_0x5d66b0(0x171)][_0x5d66b0(0x1da)](_0x5d66b0(0x1c6)+_0x587843+_0x5d66b0(0x192)+_0x37cf0d);}this[_0x5d66b0(0x171)]['debug'](util[_0x5d66b0(0x16f)](_0x5aa10c[_0x5d66b0(0x1ba)],_0x37cf0d));}catch(_0xad5a78){this['logger']['debug'](util[_0x5d66b0(0x16f)](_0x5aa10c[_0x5d66b0(0x18a)],_0xad5a78['message']));}}static[a122_0x23b9b1(0x1c0)](){const _0x32ec16=a122_0x23b9b1,_0x7a30b7={};_0x7a30b7['GSagU']=_0x32ec16(0x19a),_0x7a30b7[_0x32ec16(0x18e)]=_0x32ec16(0x1dd),_0x7a30b7[_0x32ec16(0x180)]=_0x32ec16(0x1a0);const _0x296b18=_0x7a30b7,_0x3d0cfb=os['homedir'](),_0xbe4416=path[_0x32ec16(0x17b)](_0x3d0cfb,_0x296b18[_0x32ec16(0x191)]);if(!fs[_0x32ec16(0x17a)](_0xbe4416))return;const _0x1c647e=BrowserstackCLI[_0x32ec16(0x1cd)]()[_0x32ec16(0x1ee)][_0x32ec16(0x1e6)]?.[_0x32ec16(0x177)]?.['toObject']()?.[_0x32ec16(0x1ca)],_0x52c6e3=_0x1c647e?path[_0x32ec16(0x17b)](_0xbe4416,_0x1c647e):null;if(!_0x52c6e3||!fs['existsSync'](_0x52c6e3)){this[_0x32ec16(0x171)][_0x32ec16(0x1da)](util[_0x32ec16(0x16f)](_0x296b18[_0x32ec16(0x18e)],_0x1c647e));return;}const _0x1fa42c={};_0x1fa42c['recursive']=!![],_0x1fa42c[_0x32ec16(0x1ac)]=!![],fs['rmSync'](_0x52c6e3,_0x1fa42c),this[_0x32ec16(0x171)]['debug'](util[_0x32ec16(0x16f)](_0x296b18[_0x32ec16(0x180)]));}}module['exports']=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a119_0x5bf0(){const _0x564b30=['failed','YvyWp','getHookRunEventData','YrXwY','NgcfG','muahe','5074808bJopoD','_gitConfigured','emvwQ','sendTestRunEventForCucumber','../../../helpers/helper.js','testStepResult','OCeMj','RCnwO','KNNdr','119839DLLJaX','pdGdJ','finishedAt','flatMap','GHSwt','scenario','hook','KDTIA','BEFORE_EACH','message','vvawn','getTestUUID','feature','exception','tagExpression','failure','../../../helpers/logger.js','WgxJE','OXfvq','hooks','astNodeIds','tWwCo','pkoRp','eJbrG','LcUuz','backtrace','exports','VehjP','ptuPq','eHTjj','1285628mAdLpe','every','testCaseFinished','eJAtS','CqORl','examples','forEach','HookRunStarted','FAILED','getHookResult','sourceReference','IZBIL','finished_at','javascript','CZlEX','pending','sendHook','xVRFG','NMUlu','NxahB','SKIPPED','length','../TestInfo.js','split','tableBody','Habxb','result','AgCUi','FiOLt','150836ZfoTWf','failureType','uuid','AssertionError','ViZnl','duration_in_ms','1407035mWanTI','createHookData','winstonLogger','format','XPGOc','cells','push','_gitConfigPath','xEjhD','util','lwDfZ','dtYCB','includes','failure_type','map','status','uri','getScenarioExamples','unknown','qerHD','failureData','debug','rule','toLowerCase','dtMML','configureGit','timestamp','IPmol','174UXhfpo','match','find','path','skipped','16216UVMhgr','children','lXKja','toString','test','filter','aucjM','getCucumberHookType','UnhandledError','2538834doAKNz','9dDJrRb','name','testStepFinished','hookId','tags','toISOString','zUxVI','nanos','VVxGA','relative','pickleStepId','cucumber','createTestFrameworkData','cWUnw','jgSEF','value'];a119_0x5bf0=function(){return _0x564b30;};return a119_0x5bf0();}const a119_0x5bd6c7=a119_0x15b4;(function(_0xc5a199,_0x1b6077){const _0x425e1d=a119_0x15b4,_0x5ef48c=_0xc5a199();while(!![]){try{const _0x513fec=parseInt(_0x425e1d(0x193))/0x1+parseInt(_0x425e1d(0x1b1))/0x2+parseInt(_0x425e1d(0x1fe))/0x3+-parseInt(_0x425e1d(0x215))/0x4+-parseInt(_0x425e1d(0x1d4))/0x5+-parseInt(_0x425e1d(0x1f0))/0x6*(-parseInt(_0x425e1d(0x1ce))/0x7)+parseInt(_0x425e1d(0x1f5))/0x8*(parseInt(_0x425e1d(0x1ff))/0x9);if(_0x513fec===_0x1b6077)break;else _0x5ef48c['push'](_0x5ef48c['shift']());}catch(_0x18bd87){_0x5ef48c['push'](_0x5ef48c['shift']());}}}(a119_0x5bf0,0xa76ad));function a119_0x15b4(_0x548d63,_0xd0053b){const _0x5bf002=a119_0x5bf0();return a119_0x15b4=function(_0x15b4f0,_0x3e4d04){_0x15b4f0=_0x15b4f0-0x192;let _0x5c8c87=_0x5bf002[_0x15b4f0];return _0x5c8c87;},a119_0x15b4(_0x548d63,_0xd0053b);}const path=require(a119_0x5bd6c7(0x1f3)),util=require(a119_0x5bd6c7(0x1dd)),{getGitMetaData,isUndefined,nestedKeyValue,deriveCucumberHookName,isSdkSetupHook}=require(a119_0x5bd6c7(0x219)),logger=require(a119_0x5bd6c7(0x1a3))[a119_0x5bd6c7(0x1d6)],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require(a119_0x5bd6c7(0x1c7)),hooksMap={};class CucumberUtils{constructor(){const _0x34cbca=a119_0x5bd6c7;this[_0x34cbca(0x216)]=![],this['_gitConfigPath']=null;}async[a119_0x5bd6c7(0x20b)](_0x1083c7,_0x53aa80,_0x2216a8,_0x4cac89,_0x5e2b4c,_0x541833){const _0x3e76b9=a119_0x5bd6c7,_0x56b790={'LuCeQ':function(_0x36e96f,_0xb4a4e5){return _0x36e96f===_0xb4a4e5;},'KwcRn':_0x3e76b9(0x1b9),'RCnwO':_0x3e76b9(0x20f),'eJAtS':function(_0x475f29,_0x40b81f){return _0x475f29===_0x40b81f;},'IhelW':_0x3e76b9(0x1c5),'ViZnl':_0x3e76b9(0x1f4),'tWwCo':function(_0x5a4f80,_0x106b04){return _0x5a4f80||_0x106b04;},'aucjM':function(_0x5275f8,_0x3fe82c){return _0x5275f8+_0x3fe82c;},'pdGdJ':function(_0x574142,_0x5ec188){return _0x574142+_0x5ec188;},'WgxJE':_0x3e76b9(0x1f9),'AgCUi':_0x3e76b9(0x1be),'KNNdr':_0x3e76b9(0x20a),'Habxb':_0x3e76b9(0x1c0),'LcUuz':'passed','emvwQ':function(_0xaec6dc,_0x4e0b00){return _0xaec6dc!==_0x4e0b00;},'YvyWp':function(_0x3cb946,_0x4b51c5){return _0x3cb946/_0x4b51c5;},'EHxHB':function(_0x3fd132,_0x1e1335){return _0x3fd132===_0x1e1335;},'FiOLt':'strip-ansi','GHSwt':function(_0x355162,_0x264af6){return _0x355162(_0x264af6);},'CZlEX':_0x3e76b9(0x1e6),'NyEyo':_0x3e76b9(0x1d1),'efHlj':'UnhandledError'},{feature:_0x30a8c9,scenario:_0x2c964e,steps:_0x27dc0f,uuid:_0x48e2af,startedAt:_0x2d0053,finishedAt:_0x3ffad9}=_0x56b790[_0x3e76b9(0x1a8)](_0x1083c7,{}),_0xdf9ac3=this[_0x3e76b9(0x1e5)](_0x4cac89,_0x53aa80);await this[_0x3e76b9(0x1ed)]();const _0x2f7947=_0xdf9ac3?_0x56b790[_0x3e76b9(0x1fb)](_0x56b790[_0x3e76b9(0x1fb)](_0x56b790[_0x3e76b9(0x194)](_0x53aa80[_0x3e76b9(0x200)],'\x20('),_0xdf9ac3['join'](',\x20')),')'):_0x53aa80[_0x3e76b9(0x200)],_0x318b12={'id':_0x5e2b4c,'uuid':_0x5e2b4c,'startedAt':_0x2d0053,'finishedAt':_0x3ffad9,'type':_0x56b790[_0x3e76b9(0x1a4)],'body':{'lang':_0x56b790[_0x3e76b9(0x1cc)],'code':null},'name':_0x2f7947,'scopes':[_0x30a8c9&&_0x30a8c9[_0x3e76b9(0x200)]?_0x30a8c9['name']:''],'tags':_0x53aa80[_0x3e76b9(0x203)]?_0x53aa80[_0x3e76b9(0x203)][_0x3e76b9(0x1e2)](({name:_0x4984ad})=>_0x4984ad):[],'file_name':_0x53aa80['uri'],'location':_0x53aa80[_0x3e76b9(0x1e4)],'vc_filepath':this[_0x3e76b9(0x1db)]&&_0x53aa80['uri']?path[_0x3e76b9(0x208)](this['_gitConfigPath'],_0x53aa80[_0x3e76b9(0x1e4)]):null,'framework':_0x56b790[_0x3e76b9(0x192)],'result':_0x56b790[_0x3e76b9(0x1ca)],'meta':{'feature':_0x30a8c9,'scenario':_0x2c964e,'steps':_0x27dc0f,'examples':_0xdf9ac3},'customRerunParam':{'rerun_name':_0x2f7947}};if(_0x2216a8[_0x3e76b9(0x1b3)]&&_0x27dc0f){const _0x4a353c=_0x2216a8[_0x3e76b9(0x1b3)];let _0x26a127=_0x56b790[_0x3e76b9(0x1ab)];_0x27dc0f[_0x3e76b9(0x1b2)](_0xb2db1a=>{const _0x41dda1=_0x3e76b9;if(_0x56b790['LuCeQ'](_0xb2db1a[_0x41dda1(0x1cb)],_0x56b790['KwcRn']))return _0x26a127=_0x56b790['RCnwO'],_0x4a353c[_0x41dda1(0x1a2)]=_0xb2db1a[_0x41dda1(0x1a2)],_0x4a353c[_0x41dda1(0x1cf)]=_0xb2db1a[_0x41dda1(0x1cf)],![];else{if(_0x56b790[_0x41dda1(0x1b4)](_0xb2db1a[_0x41dda1(0x1cb)],_0x56b790['IhelW']))return _0x26a127=_0x56b790[_0x41dda1(0x1d2)],![];}return!![];}),_0x318b12[_0x3e76b9(0x195)]=new Date()['toISOString'](),_0x318b12['result']=_0x26a127;_0x4a353c[_0x3e76b9(0x1ee)]&&_0x56b790[_0x3e76b9(0x217)](_0x4a353c[_0x3e76b9(0x1ee)][_0x3e76b9(0x206)],undefined)?_0x318b12['duration_in_ms']=_0x56b790[_0x3e76b9(0x210)](_0x4a353c[_0x3e76b9(0x1ee)][_0x3e76b9(0x206)],0xf4240):_0x318b12[_0x3e76b9(0x1d3)]=undefined;if(_0x56b790['EHxHB'](_0x26a127,_0x56b790[_0x3e76b9(0x21c)])){const {default:_0x4474cb}=await import(_0x56b790[_0x3e76b9(0x1cd)]);_0x318b12[_0x3e76b9(0x1a2)]=[{'backtrace':[_0x4a353c['failure']?_0x56b790[_0x3e76b9(0x197)](_0x4474cb,_0x4a353c[_0x3e76b9(0x1a2)]):_0x56b790[_0x3e76b9(0x1bf)]]}],_0x318b12['failure_reason']=_0x4a353c[_0x3e76b9(0x1a2)]?_0x56b790['GHSwt'](_0x4474cb,_0x4a353c['failure']):_0x4a353c['message'],_0x4a353c[_0x3e76b9(0x1cf)]&&(_0x318b12['failure_type']=_0x4a353c[_0x3e76b9(0x1cf)][_0x3e76b9(0x1f1)](/AssertError/)?_0x56b790['NyEyo']:_0x56b790['efHlj']);}}return _0x318b12;}['getHookRunEventData'](_0x39b0b1,_0xb097cc,_0x3c6762,_0x3a2e72,_0x65f406,_0xbca526){const _0x14587f=a119_0x5bd6c7,_0x1701f5={'XAbjY':function(_0x5a7cab,_0x1bd2da){return _0x5a7cab===_0x1bd2da;},'dtYCB':'HookRunFinished','pJteu':function(_0x3e0e17,_0x1c2e5f,_0x5d1f2d){return _0x3e0e17(_0x1c2e5f,_0x5d1f2d);},'muahe':'sourceReference','eHTjj':_0x14587f(0x1e4),'NMUlu':_0x14587f(0x1c0),'dtMML':_0x14587f(0x199),'VehjP':function(_0x44df51,_0x54822f,_0x3eb568,_0x318139){return _0x44df51(_0x54822f,_0x3eb568,_0x318139);},'cWUnw':function(_0x17357c,_0x520caf,_0x1b9957){return _0x17357c(_0x520caf,_0x1b9957);},'xVRFG':_0x14587f(0x198),'YrXwY':'name','dgWBK':_0x14587f(0x1be),'IZBIL':'feature','NxahB':function(_0x7476b,_0x54e053,_0x58300f){return _0x7476b(_0x54e053,_0x58300f);},'jWhCo':'cucumber'};try{if(_0x1701f5['XAbjY'](_0x3c6762,_0x1701f5[_0x14587f(0x1df)])){const _0x3967d4=new Date()['toISOString'](),_0x42abaa=hooksMap[_0xb097cc];if(!_0x42abaa)return;const _0xf2691c=_0x42abaa['find'](_0x3f2579=>_0x3f2579[_0x14587f(0x1d0)]===_0x3a2e72['id']);if(!_0xf2691c)return;const _0x199ee4=this[_0x14587f(0x1ba)](_0x39b0b1,_0xb097cc);_0xf2691c[_0x14587f(0x1cb)]=_0x199ee4[_0x14587f(0x1e3)],_0xf2691c[_0x14587f(0x1bd)]=_0x3967d4,_0xf2691c[_0x14587f(0x1e1)]=_0x199ee4[_0x14587f(0x1cf)];const _0x513492={};return _0x513492[_0x14587f(0x1ac)]=_0x199ee4[_0x14587f(0x1e8)],_0xf2691c['failure_data']=[_0x513492],_0xf2691c;}const _0x2627e2=TestInfo[_0x14587f(0x19e)](_0xb097cc),_0x1723cf=_0x39b0b1[_0x14587f(0x1a6)][_0x14587f(0x1f2)](_0x1c39c8=>_0x1c39c8['id']===_0x3a2e72[_0x14587f(0x202)]),_0x3df3d4=_0x1701f5['pJteu'](nestedKeyValue,_0x1723cf,[_0x1701f5[_0x14587f(0x214)],_0x1701f5[_0x14587f(0x1b0)]]),_0x2cf584=new Date()[_0x14587f(0x204)](),_0xa7e0cf=_0x1701f5[_0x14587f(0x1c3)],_0x4207b5=_0x1723cf[_0x14587f(0x1a1)]?_0x1723cf['tagExpression'][_0x14587f(0x1c8)]('\x20')[_0x14587f(0x1fa)](_0x4426fb=>_0x4426fb[_0x14587f(0x1e0)]('@')):[],_0x2a467c={'uuid':_0x3a2e72['id'],'type':_0x1701f5[_0x14587f(0x1ec)],'hook_type':_0xbca526,'name':_0x1701f5[_0x14587f(0x1ae)](deriveCucumberHookName,_0x1723cf[_0x14587f(0x200)],_0xbca526,_0x1701f5[_0x14587f(0x20c)](nestedKeyValue,_0x65f406,[_0x1701f5[_0x14587f(0x1c2)],_0x1701f5[_0x14587f(0x212)]])),'body':{'lang':_0x1701f5['dgWBK'],'code':null},'tags':_0x4207b5,'test_run_id':_0x2627e2,'scope':_0x1701f5[_0x14587f(0x20c)](nestedKeyValue,_0x65f406,[_0x1701f5[_0x14587f(0x1bc)],_0x1701f5[_0x14587f(0x212)]]),'scopes':[_0x1701f5[_0x14587f(0x1c4)](nestedKeyValue,_0x65f406,[_0x1701f5[_0x14587f(0x1bc)],_0x1701f5[_0x14587f(0x212)]])||''],'file_name':_0x3df3d4,'location':_0x3df3d4,'vc_filepath':this[_0x14587f(0x1db)]&&_0x3df3d4?path[_0x14587f(0x208)](this[_0x14587f(0x1db)],_0x3df3d4):null,'result':_0xa7e0cf,'started_at':_0x2cf584,'framework':_0x1701f5['jWhCo']};return _0x2a467c;}catch(_0x25499f){logger[_0x14587f(0x1e9)]('Exception\x20in\x20getHookRunEventData:\x20'+util[_0x14587f(0x1d7)](_0x25499f)+'\x20');}}async[a119_0x5bd6c7(0x1d5)](_0x1d429a,_0x2fd43b,_0x41f66f,_0x13844b,_0x2313ae,_0x4d6b10){const _0x13bc93=a119_0x5bd6c7,_0x405aa8={'ptuPq':function(_0x436191,_0x1792cf){return _0x436191===_0x1792cf;},'pkoRp':_0x13bc93(0x1b8),'IPmol':function(_0x56db49,_0x12ac8c,_0x1335b1){return _0x56db49(_0x12ac8c,_0x1335b1);},'XPGOc':_0x13bc93(0x1bb),'xEjhD':_0x13bc93(0x1e4)};try{const _0x284491=_0x13844b[_0x13bc93(0x1f2)](_0x470844=>_0x470844['id']===_0x2313ae);if(!_0x284491['hookId'])return;const _0x32d8ef=this['getCucumberHookType'](_0x13844b,_0x284491),_0x482a14=this[_0x13bc93(0x211)](_0x1d429a,_0x2fd43b,_0x41f66f,_0x284491,_0x4d6b10,_0x32d8ef);if(!_0x482a14)return;_0x405aa8[_0x13bc93(0x1af)](_0x41f66f,_0x405aa8[_0x13bc93(0x1a9)])&&(hooksMap[_0x2fd43b]?hooksMap[_0x2fd43b][_0x13bc93(0x1da)](_0x482a14):hooksMap[_0x2fd43b]=[_0x482a14]);const _0x58dd48=_0x1d429a[_0x13bc93(0x1a6)][_0x13bc93(0x1f2)](_0x2cf3fc=>_0x2cf3fc['id']===_0x284491[_0x13bc93(0x202)]),_0x13277e=_0x405aa8[_0x13bc93(0x1ef)](nestedKeyValue,_0x58dd48,[_0x405aa8[_0x13bc93(0x1d8)],_0x405aa8[_0x13bc93(0x1dc)]]);if(!_0x13277e)return;else{if(_0x405aa8[_0x13bc93(0x1ef)](isSdkSetupHook,_0x13277e,_0x482a14[_0x13bc93(0x200)]))return;}return _0x482a14;}catch(_0x3e23b8){logger['debug']('Exception\x20in\x20createHookData:\x20'+util['format'](_0x3e23b8)+'\x20');}}['getHookResult'](_0x5e35de,_0x127625){const _0x37b3fa=a119_0x5bd6c7,_0x2fa36a={};_0x2fa36a[_0x37b3fa(0x20d)]=function(_0x590ebe,_0x42ab48){return _0x590ebe===_0x42ab48;},_0x2fa36a[_0x37b3fa(0x205)]=_0x37b3fa(0x20f),_0x2fa36a[_0x37b3fa(0x21b)]=function(_0x346833,_0x1d0693){return _0x346833===_0x1d0693;},_0x2fa36a[_0x37b3fa(0x19a)]=function(_0xfe014b,_0x109513){return _0xfe014b===_0x109513;},_0x2fa36a[_0x37b3fa(0x1e7)]=_0x37b3fa(0x1fd),_0x2fa36a[_0x37b3fa(0x19d)]=_0x37b3fa(0x1d1),_0x2fa36a['eJbrG']=function(_0x3a03bb,_0x17d632){return _0x3a03bb||_0x17d632;};const _0x52bb4a=_0x2fa36a,_0x3f2602=_0x5e35de[_0x37b3fa(0x201)][_0x127625][_0x37b3fa(0x21a)];let _0x332121,_0x23e57b;return _0x3f2602&&_0x52bb4a[_0x37b3fa(0x20d)](_0x3f2602[_0x37b3fa(0x1e3)][_0x37b3fa(0x1f8)]()['toLowerCase'](),_0x52bb4a['zUxVI'])&&(_0x332121=_0x52bb4a[_0x37b3fa(0x21b)](_0x3f2602['exception'],undefined)?_0x3f2602[_0x37b3fa(0x19c)]:_0x3f2602[_0x37b3fa(0x1a0)][_0x37b3fa(0x19c)],_0x23e57b=_0x52bb4a[_0x37b3fa(0x19a)](_0x3f2602['exception'],undefined)?_0x52bb4a['qerHD']:_0x3f2602[_0x37b3fa(0x19c)][_0x37b3fa(0x1f1)](/Assert/)?_0x52bb4a['vvawn']:_0x52bb4a['qerHD']),{'status':_0x3f2602[_0x37b3fa(0x1e3)][_0x37b3fa(0x1eb)](),'failureType':_0x52bb4a[_0x37b3fa(0x1aa)](_0x23e57b,null),'failureData':!_0x332121?null:[_0x332121]};}[a119_0x5bd6c7(0x1fc)](_0x8b07c7,_0x5b7cd5){const _0x3660a4=a119_0x5bd6c7,_0x5e623f={};_0x5e623f[_0x3660a4(0x213)]=function(_0x199b6d,_0x276af1){return _0x199b6d===_0x276af1;},_0x5e623f[_0x3660a4(0x1f7)]='AFTER_EACH',_0x5e623f[_0x3660a4(0x1b5)]=_0x3660a4(0x19b);const _0x3eef13=_0x5e623f;let _0x3a7f2f=![];for(const _0x2e9a7d of _0x8b07c7){_0x2e9a7d[_0x3660a4(0x209)]&&(_0x3a7f2f=!![]);if(_0x3eef13[_0x3660a4(0x213)](_0x5b7cd5['id'],_0x2e9a7d['id']))return _0x3a7f2f?_0x3eef13['lXKja']:_0x3eef13[_0x3660a4(0x1b5)];}}['getScenarioExamples']=(_0x536274,_0x84a86e)=>{const _0x57d487=a119_0x5bd6c7,_0x2ae46e={};_0x2ae46e[_0x57d487(0x1a5)]=function(_0x23261e,_0x5b3694){return _0x23261e===_0x5b3694;},_0x2ae46e[_0x57d487(0x1de)]=function(_0x2fad63,_0x3b7e94){return _0x2fad63===_0x3b7e94;},_0x2ae46e[_0x57d487(0x207)]=function(_0x5b0c74,_0x4a2739){return _0x5b0c74>_0x4a2739;};const _0x148f8d=_0x2ae46e;if(!(_0x84a86e[_0x57d487(0x1a7)]&&_0x148f8d[_0x57d487(0x207)](_0x84a86e[_0x57d487(0x1a7)][_0x57d487(0x1c6)],0x1)))return;const _0x3c44d9=_0x84a86e[_0x57d487(0x1a7)][0x0],_0x3801fb=_0x84a86e[_0x57d487(0x1a7)][0x1],_0x20b14f=_0x536274[_0x57d487(0x19f)]&&_0x536274[_0x57d487(0x19f)]['children']?_0x536274[_0x57d487(0x19f)][_0x57d487(0x1f6)]:undefined;let _0xf2a3ad=[];_0x20b14f&&_0x20b14f[_0x57d487(0x1b7)](_0x53d3f8=>{const _0x45b7d7=_0x57d487;if(_0x53d3f8[_0x45b7d7(0x1ea)])_0x53d3f8[_0x45b7d7(0x1ea)][_0x45b7d7(0x1f6)][_0x45b7d7(0x1b7)](_0x3f0c04=>{const _0x2dff17=_0x45b7d7;if(_0x3f0c04[_0x2dff17(0x198)]&&_0x148f8d[_0x2dff17(0x1a5)](_0x3f0c04['scenario']['id'],_0x3c44d9)&&_0x3f0c04['scenario']['examples']){const _0x38436f=_0x3f0c04[_0x2dff17(0x198)][_0x2dff17(0x1b6)][_0x2dff17(0x196)](_0x326363=>_0x326363[_0x2dff17(0x1c9)])[_0x2dff17(0x1f2)](_0x556130=>_0x556130['id']===_0x3801fb);let _0x1d3f23;_0x38436f&&_0x38436f['cells']?_0x1d3f23=_0x38436f[_0x2dff17(0x1d9)][_0x2dff17(0x1e2)](_0x509bea=>_0x509bea[_0x2dff17(0x20e)]):_0x1d3f23=[],_0x1d3f23&&(_0xf2a3ad=_0x1d3f23);}});else{if(_0x53d3f8[_0x45b7d7(0x198)]&&_0x148f8d[_0x45b7d7(0x1de)](_0x53d3f8['scenario']['id'],_0x3c44d9)&&_0x53d3f8[_0x45b7d7(0x198)][_0x45b7d7(0x1b6)]){const _0xf20440=_0x53d3f8[_0x45b7d7(0x198)][_0x45b7d7(0x1b6)][_0x45b7d7(0x196)](_0x370923=>_0x370923[_0x45b7d7(0x1c9)])[_0x45b7d7(0x1f2)](_0x5e8b1c=>_0x5e8b1c['id']===_0x3801fb);let _0x372da4;_0xf20440&&_0xf20440[_0x45b7d7(0x1d9)]?_0x372da4=_0xf20440[_0x45b7d7(0x1d9)][_0x45b7d7(0x1e2)](_0x43f901=>_0x43f901[_0x45b7d7(0x20e)]):_0x372da4=[],_0x372da4&&(_0xf2a3ad=_0x372da4);}}});if(_0xf2a3ad[_0x57d487(0x1c6)])return _0xf2a3ad;return;};async[a119_0x5bd6c7(0x1ed)](){const _0x203b34=a119_0x5bd6c7,_0x2c9a59={'sAdMz':function(_0x1e5d8c){return _0x1e5d8c();}};if(this['_gitConfigured'])return this[_0x203b34(0x1db)];const _0x180f4f=await _0x2c9a59['sAdMz'](getGitMetaData);_0x180f4f&&(this[_0x203b34(0x1db)]=_0x180f4f['root']),this[_0x203b34(0x216)]=!![];}}module[a119_0x5bd6c7(0x1ad)]=o11yClassErrorHandler(CucumberUtils,['configureGit','getScenarioExamples',a119_0x5bd6c7(0x1fc),a119_0x5bd6c7(0x1ba),a119_0x5bd6c7(0x1c1),a119_0x5bd6c7(0x211),a119_0x5bd6c7(0x218),a119_0x5bd6c7(0x20b)]);
|
|
1
|
+
const a123_0x3dfc23=a123_0x409e;function a123_0x409e(_0x3fbead,_0x3fab2a){const _0xdfe8bf=a123_0xdfe8();return a123_0x409e=function(_0x409ee3,_0x858239){_0x409ee3=_0x409ee3-0x16d;let _0x341902=_0xdfe8bf[_0x409ee3];return _0x341902;},a123_0x409e(_0x3fbead,_0x3fab2a);}(function(_0x283dfd,_0x10ccbe){const _0x38b28a=a123_0x409e,_0x41c844=_0x283dfd();while(!![]){try{const _0x486ab0=parseInt(_0x38b28a(0x1a9))/0x1+parseInt(_0x38b28a(0x173))/0x2+parseInt(_0x38b28a(0x1bf))/0x3*(parseInt(_0x38b28a(0x1e2))/0x4)+parseInt(_0x38b28a(0x1a8))/0x5+parseInt(_0x38b28a(0x1ac))/0x6*(-parseInt(_0x38b28a(0x185))/0x7)+parseInt(_0x38b28a(0x1ce))/0x8+-parseInt(_0x38b28a(0x179))/0x9*(parseInt(_0x38b28a(0x1c1))/0xa);if(_0x486ab0===_0x10ccbe)break;else _0x41c844['push'](_0x41c844['shift']());}catch(_0x219a36){_0x41c844['push'](_0x41c844['shift']());}}}(a123_0xdfe8,0x41888));function a123_0xdfe8(){const _0x5d768d=['sourceReference','find','forEach','EfMyR','gHnbw','relative','TMxPP','THYof','length','snsJJ','createTestFrameworkData','tagExpression','aHhTr','testStepFinished','root','duration_in_ms','sSnEQ','examples','262698LcXSff','flatMap','2131320mqsEIz','wpDqS','message','toLowerCase','format','Bgyis','includes','YszSE','finishedAt','uuid','gaqdu','passed','OTmjJ','2145952mfrRBd','pKrwy','failureData','timestamp','hooks','jZofS','uri','hfTuo','bWbDt','fRErM','ZKjfC','RItSu','pgVtK','astNodeIds','failure_type','../TestInfo.js','result','GEyEa','Tkogd','nanos','4ujhjOi','split','pickleStepId','name','value','sendTestRunEventForCucumber','exception','afLjW','failure','apZls','unknown','getCucumberHookType','ZkQky','tScAj','cucumber','xYcZX','AssertionError','twbOR','ayzcJ','512138efZeoI','hfSzM','tableBody','TgNdf','NgGfd','Exception\x20in\x20getHookRunEventData:\x20','9pILMgc','toString','TRHLi','hook','path','cells','createHookData','kbaGK','scenario','status','tags','javascript','573447RyoiDn','failureType','util','children','ROIry','strip-ansi','HookRunStarted','../../../helpers/test-observability/error-handler.js','debug','../../../helpers/logger.js','yYdSP','XXXCV','../../../helpers/helper.js','getHookResult','pending','feature','_gitConfigPath','toISOString','getScenarioExamples','match','xAuBW','configureGit','sendHook','map','PBFyq','testCaseFinished','ionsU','failed','AFTER_EACH','winstonLogger','LSGYu','zeKcx','getHookRunEventData','rule','HookRunFinished','1172580HFbPqr','126687yBLPhc','skipped','_gitConfigured','36WHJTOz'];a123_0xdfe8=function(){return _0x5d768d;};return a123_0xdfe8();}const path=require(a123_0x3dfc23(0x17d)),util=require(a123_0x3dfc23(0x187)),{getGitMetaData,isUndefined,nestedKeyValue,deriveCucumberHookName,isSdkSetupHook}=require(a123_0x3dfc23(0x191)),logger=require(a123_0x3dfc23(0x18e))[a123_0x3dfc23(0x1a2)],{o11yClassErrorHandler}=require(a123_0x3dfc23(0x18c)),TestInfo=require(a123_0x3dfc23(0x1dd)),hooksMap={};class CucumberUtils{constructor(){const _0x18221c=a123_0x3dfc23;this[_0x18221c(0x1ab)]=![],this[_0x18221c(0x195)]=null;}async['createTestFrameworkData'](_0x1ff081,_0x1ddc1c,_0x3d15a6,_0x23c3dd,_0x5b3d93,_0x55314b){const _0x3c97e7=a123_0x3dfc23,_0x4ac417={'twbOR':function(_0x51818b,_0x5245d1){return _0x51818b===_0x5245d1;},'LvKFV':'FAILED','ionsU':'failed','tScAj':'SKIPPED','ZfTXa':_0x3c97e7(0x1aa),'TRHLi':function(_0x1d1b84,_0x4c6d2c){return _0x1d1b84||_0x4c6d2c;},'tHDjA':function(_0x17d0e9,_0x50ae2a){return _0x17d0e9+_0x50ae2a;},'apZls':function(_0x1d8f38,_0x3826d3){return _0x1d8f38+_0x3826d3;},'hfSzM':function(_0x55682e,_0xe6b57){return _0x55682e+_0xe6b57;},'THYof':'test','gaqdu':_0x3c97e7(0x184),'JTkcT':_0x3c97e7(0x16e),'LSGYu':_0x3c97e7(0x193),'hfTuo':_0x3c97e7(0x1cc),'NgGfd':function(_0x42f8cb,_0x688f74){return _0x42f8cb!==_0x688f74;},'pmQVN':function(_0x8bf5c3,_0x45f040){return _0x8bf5c3/_0x45f040;},'euKGO':function(_0x515d30,_0x2ade38){return _0x515d30===_0x2ade38;},'bWbDt':_0x3c97e7(0x18a),'idWuo':function(_0x1f2b69,_0xa640c){return _0x1f2b69(_0xa640c);},'RItSu':_0x3c97e7(0x1ec),'XXXCV':function(_0x230f1d,_0xbe8038){return _0x230f1d(_0xbe8038);},'UovNa':_0x3c97e7(0x170),'hZmcF':'UnhandledError'},{feature:_0x25f799,scenario:_0x52074f,steps:_0xf00664,uuid:_0x5d491b,startedAt:_0x15cc10,finishedAt:_0x466797}=_0x4ac417[_0x3c97e7(0x17b)](_0x1ff081,{}),_0x1730f6=this['getScenarioExamples'](_0x23c3dd,_0x1ddc1c);await this[_0x3c97e7(0x19a)]();const _0xec9777=_0x1730f6?_0x4ac417['tHDjA'](_0x4ac417[_0x3c97e7(0x1eb)](_0x4ac417[_0x3c97e7(0x174)](_0x1ddc1c[_0x3c97e7(0x1e5)],'\x20('),_0x1730f6['join'](',\x20')),')'):_0x1ddc1c['name'],_0x29fda8={'id':_0x5b3d93,'uuid':_0x5b3d93,'startedAt':_0x15cc10,'finishedAt':_0x466797,'type':_0x4ac417[_0x3c97e7(0x1b4)],'body':{'lang':_0x4ac417[_0x3c97e7(0x1cb)],'code':null},'name':_0xec9777,'scopes':[_0x25f799&&_0x25f799[_0x3c97e7(0x1e5)]?_0x25f799['name']:''],'tags':_0x1ddc1c[_0x3c97e7(0x183)]?_0x1ddc1c[_0x3c97e7(0x183)][_0x3c97e7(0x19c)](({name:_0x288480})=>_0x288480):[],'file_name':_0x1ddc1c[_0x3c97e7(0x1d4)],'location':_0x1ddc1c[_0x3c97e7(0x1d4)],'vc_filepath':this[_0x3c97e7(0x195)]&&_0x1ddc1c[_0x3c97e7(0x1d4)]?path[_0x3c97e7(0x1b2)](this[_0x3c97e7(0x195)],_0x1ddc1c['uri']):null,'framework':_0x4ac417['JTkcT'],'result':_0x4ac417[_0x3c97e7(0x1a3)],'meta':{'feature':_0x25f799,'scenario':_0x52074f,'steps':_0xf00664,'examples':_0x1730f6},'customRerunParam':{'rerun_name':_0xec9777}};if(_0x3d15a6[_0x3c97e7(0x19e)]&&_0xf00664){const _0x28d859=_0x3d15a6[_0x3c97e7(0x19e)];let _0x45168c=_0x4ac417[_0x3c97e7(0x1d5)];_0xf00664['every'](_0x2df5b9=>{const _0x10458=_0x3c97e7;if(_0x4ac417['twbOR'](_0x2df5b9[_0x10458(0x1de)],_0x4ac417['LvKFV']))return _0x45168c=_0x4ac417[_0x10458(0x19f)],_0x28d859[_0x10458(0x1ea)]=_0x2df5b9['failure'],_0x28d859[_0x10458(0x186)]=_0x2df5b9[_0x10458(0x186)],![];else{if(_0x4ac417[_0x10458(0x171)](_0x2df5b9[_0x10458(0x1de)],_0x4ac417[_0x10458(0x16d)]))return _0x45168c=_0x4ac417['ZfTXa'],![];}return!![];}),_0x29fda8[_0x3c97e7(0x1c9)]=new Date()[_0x3c97e7(0x196)](),_0x29fda8[_0x3c97e7(0x1de)]=_0x45168c;_0x28d859[_0x3c97e7(0x1d1)]&&_0x4ac417[_0x3c97e7(0x177)](_0x28d859[_0x3c97e7(0x1d1)][_0x3c97e7(0x1e1)],undefined)?_0x29fda8[_0x3c97e7(0x1bc)]=_0x4ac417['pmQVN'](_0x28d859[_0x3c97e7(0x1d1)][_0x3c97e7(0x1e1)],0xf4240):_0x29fda8[_0x3c97e7(0x1bc)]=undefined;if(_0x4ac417['euKGO'](_0x45168c,_0x4ac417[_0x3c97e7(0x19f)])){const {default:_0x1d362e}=await import(_0x4ac417[_0x3c97e7(0x1d6)]);_0x29fda8[_0x3c97e7(0x1ea)]=[{'backtrace':[_0x28d859[_0x3c97e7(0x1ea)]?_0x4ac417['idWuo'](_0x1d362e,_0x28d859['failure']):_0x4ac417[_0x3c97e7(0x1d9)]]}],_0x29fda8['failure_reason']=_0x28d859[_0x3c97e7(0x1ea)]?_0x4ac417[_0x3c97e7(0x190)](_0x1d362e,_0x28d859[_0x3c97e7(0x1ea)]):_0x28d859[_0x3c97e7(0x1c3)],_0x28d859[_0x3c97e7(0x186)]&&(_0x29fda8[_0x3c97e7(0x1dc)]=_0x28d859[_0x3c97e7(0x186)][_0x3c97e7(0x198)](/AssertError/)?_0x4ac417['UovNa']:_0x4ac417['hZmcF']);}}return _0x29fda8;}[a123_0x3dfc23(0x1a5)](_0x2690a0,_0x1cdab8,_0x3ddabe,_0x4c7fc5,_0x9641b6,_0x3ffbca){const _0x8aa3c5=a123_0x3dfc23,_0xb03a19={'fGAAf':function(_0x31f34d,_0x21917d){return _0x31f34d===_0x21917d;},'OTmjJ':_0x8aa3c5(0x1a7),'jZofS':function(_0x50b9ba,_0xae8050,_0xd948d4){return _0x50b9ba(_0xae8050,_0xd948d4);},'ppHpg':_0x8aa3c5(0x1ad),'xYcZX':_0x8aa3c5(0x1d4),'zeKcx':_0x8aa3c5(0x193),'eMOJX':_0x8aa3c5(0x17c),'SZcvz':function(_0x475816,_0x119765,_0x11bf03,_0x4669aa){return _0x475816(_0x119765,_0x11bf03,_0x4669aa);},'MJpZE':function(_0x4e50b3,_0x4ea594,_0x2aff9a){return _0x4e50b3(_0x4ea594,_0x2aff9a);},'pKrwy':_0x8aa3c5(0x181),'sSnEQ':_0x8aa3c5(0x1e5),'ayzcJ':_0x8aa3c5(0x184),'EfMyR':function(_0x51916b,_0xd83a3a,_0x5016dd){return _0x51916b(_0xd83a3a,_0x5016dd);},'gHnbw':_0x8aa3c5(0x194),'jYMGe':function(_0x15a753,_0x450ee2,_0x399ada){return _0x15a753(_0x450ee2,_0x399ada);},'TgNdf':_0x8aa3c5(0x16e)};try{if(_0xb03a19['fGAAf'](_0x3ddabe,_0xb03a19[_0x8aa3c5(0x1cd)])){const _0x3bc7d1=new Date()[_0x8aa3c5(0x196)](),_0x29834b=hooksMap[_0x1cdab8];if(!_0x29834b)return;const _0x27deda=_0x29834b[_0x8aa3c5(0x1ae)](_0x570196=>_0x570196[_0x8aa3c5(0x1ca)]===_0x4c7fc5['id']);if(!_0x27deda)return;const _0x3470e1=this[_0x8aa3c5(0x192)](_0x2690a0,_0x1cdab8);_0x27deda['result']=_0x3470e1[_0x8aa3c5(0x182)],_0x27deda['finished_at']=_0x3bc7d1,_0x27deda['failure_type']=_0x3470e1['failureType'];const _0x57da83={};return _0x57da83['backtrace']=_0x3470e1[_0x8aa3c5(0x1d0)],_0x27deda['failure_data']=[_0x57da83],_0x27deda;}const _0x366917=TestInfo['getTestUUID'](_0x1cdab8),_0x364996=_0x2690a0[_0x8aa3c5(0x1d2)]['find'](_0x4a580e=>_0x4a580e['id']===_0x4c7fc5['hookId']),_0x43e4fe=_0xb03a19[_0x8aa3c5(0x1d3)](nestedKeyValue,_0x364996,[_0xb03a19['ppHpg'],_0xb03a19[_0x8aa3c5(0x16f)]]),_0x2bf370=new Date()[_0x8aa3c5(0x196)](),_0x426082=_0xb03a19[_0x8aa3c5(0x1a4)],_0x5f3b19=_0x364996[_0x8aa3c5(0x1b8)]?_0x364996[_0x8aa3c5(0x1b8)][_0x8aa3c5(0x1e3)]('\x20')['filter'](_0x88977d=>_0x88977d[_0x8aa3c5(0x1c7)]('@')):[],_0x35d0f0={'uuid':_0x4c7fc5['id'],'type':_0xb03a19['eMOJX'],'hook_type':_0x3ffbca,'name':_0xb03a19['SZcvz'](deriveCucumberHookName,_0x364996[_0x8aa3c5(0x1e5)],_0x3ffbca,_0xb03a19['MJpZE'](nestedKeyValue,_0x9641b6,[_0xb03a19[_0x8aa3c5(0x1cf)],_0xb03a19[_0x8aa3c5(0x1bd)]])),'body':{'lang':_0xb03a19[_0x8aa3c5(0x172)],'code':null},'tags':_0x5f3b19,'test_run_id':_0x366917,'scope':_0xb03a19[_0x8aa3c5(0x1b0)](nestedKeyValue,_0x9641b6,[_0xb03a19['gHnbw'],_0xb03a19[_0x8aa3c5(0x1bd)]]),'scopes':[_0xb03a19['jYMGe'](nestedKeyValue,_0x9641b6,[_0xb03a19[_0x8aa3c5(0x1b1)],_0xb03a19[_0x8aa3c5(0x1bd)]])||''],'file_name':_0x43e4fe,'location':_0x43e4fe,'vc_filepath':this[_0x8aa3c5(0x195)]&&_0x43e4fe?path['relative'](this[_0x8aa3c5(0x195)],_0x43e4fe):null,'result':_0x426082,'started_at':_0x2bf370,'framework':_0xb03a19[_0x8aa3c5(0x176)]};return _0x35d0f0;}catch(_0x29a0af){logger[_0x8aa3c5(0x18d)](_0x8aa3c5(0x178)+util['format'](_0x29a0af)+'\x20');}}async[a123_0x3dfc23(0x17f)](_0x23a37f,_0x473222,_0x5a2e88,_0x1ea40f,_0x2d5fc7,_0x4a680e){const _0x10b4c5=a123_0x3dfc23,_0x7a48b7={'YszSE':function(_0x2729c6,_0x4b2875){return _0x2729c6===_0x4b2875;},'yYdSP':_0x10b4c5(0x18b),'TMxPP':function(_0x5c7a96,_0x116b59,_0x291cd1){return _0x5c7a96(_0x116b59,_0x291cd1);},'GEyEa':_0x10b4c5(0x1ad),'PBFyq':_0x10b4c5(0x1d4),'xAuBW':function(_0xb76dfb,_0x588fc2,_0x4f835d){return _0xb76dfb(_0x588fc2,_0x4f835d);}};try{const _0xf9899e=_0x1ea40f[_0x10b4c5(0x1ae)](_0x39afd9=>_0x39afd9['id']===_0x2d5fc7);if(!_0xf9899e['hookId'])return;const _0x5c593e=this['getCucumberHookType'](_0x1ea40f,_0xf9899e),_0x28a3be=this['getHookRunEventData'](_0x23a37f,_0x473222,_0x5a2e88,_0xf9899e,_0x4a680e,_0x5c593e);if(!_0x28a3be)return;_0x7a48b7[_0x10b4c5(0x1c8)](_0x5a2e88,_0x7a48b7[_0x10b4c5(0x18f)])&&(hooksMap[_0x473222]?hooksMap[_0x473222]['push'](_0x28a3be):hooksMap[_0x473222]=[_0x28a3be]);const _0x320712=_0x23a37f['hooks'][_0x10b4c5(0x1ae)](_0x16262f=>_0x16262f['id']===_0xf9899e['hookId']),_0xf092b7=_0x7a48b7[_0x10b4c5(0x1b3)](nestedKeyValue,_0x320712,[_0x7a48b7[_0x10b4c5(0x1df)],_0x7a48b7[_0x10b4c5(0x19d)]]);if(!_0xf092b7)return;else{if(_0x7a48b7[_0x10b4c5(0x199)](isSdkSetupHook,_0xf092b7,_0x28a3be[_0x10b4c5(0x1e5)]))return;}return _0x28a3be;}catch(_0x51d837){logger[_0x10b4c5(0x18d)]('Exception\x20in\x20createHookData:\x20'+util[_0x10b4c5(0x1c5)](_0x51d837)+'\x20');}}[a123_0x3dfc23(0x192)](_0x4a0edd,_0x7e130){const _0x1c28fb=a123_0x3dfc23,_0x1eb290={};_0x1eb290[_0x1c28fb(0x180)]=function(_0xc87897,_0xd88b42){return _0xc87897===_0xd88b42;},_0x1eb290[_0x1c28fb(0x1ee)]=_0x1c28fb(0x1a0),_0x1eb290['snsJJ']='UnhandledError',_0x1eb290[_0x1c28fb(0x1da)]=_0x1c28fb(0x170),_0x1eb290[_0x1c28fb(0x1b9)]=function(_0x55a196,_0x3972f1){return _0x55a196||_0x3972f1;};const _0x5c816a=_0x1eb290,_0x4d3052=_0x4a0edd[_0x1c28fb(0x1ba)][_0x7e130]['testStepResult'];let _0x8c02d2,_0x5af8e5;return _0x4d3052&&_0x5c816a['kbaGK'](_0x4d3052['status'][_0x1c28fb(0x17a)]()[_0x1c28fb(0x1c4)](),_0x5c816a[_0x1c28fb(0x1ee)])&&(_0x8c02d2=_0x5c816a[_0x1c28fb(0x180)](_0x4d3052[_0x1c28fb(0x1e8)],undefined)?_0x4d3052['message']:_0x4d3052[_0x1c28fb(0x1e8)][_0x1c28fb(0x1c3)],_0x5af8e5=_0x5c816a[_0x1c28fb(0x180)](_0x4d3052[_0x1c28fb(0x1e8)],undefined)?_0x5c816a[_0x1c28fb(0x1b6)]:_0x4d3052['message'][_0x1c28fb(0x198)](/Assert/)?_0x5c816a['pgVtK']:_0x5c816a[_0x1c28fb(0x1b6)]),{'status':_0x4d3052[_0x1c28fb(0x182)][_0x1c28fb(0x1c4)](),'failureType':_0x5c816a['aHhTr'](_0x5af8e5,null),'failureData':!_0x8c02d2?null:[_0x8c02d2]};}['getCucumberHookType'](_0x349253,_0x40ee37){const _0x30ef28=a123_0x3dfc23,_0x341ad3={};_0x341ad3[_0x30ef28(0x1d8)]=function(_0xb5b016,_0x24c87c){return _0xb5b016===_0x24c87c;},_0x341ad3[_0x30ef28(0x1e9)]=_0x30ef28(0x1a1),_0x341ad3[_0x30ef28(0x189)]='BEFORE_EACH';const _0x538b78=_0x341ad3;let _0xea1eaf=![];for(const _0x16275a of _0x349253){_0x16275a[_0x30ef28(0x1e4)]&&(_0xea1eaf=!![]);if(_0x538b78[_0x30ef28(0x1d8)](_0x40ee37['id'],_0x16275a['id']))return _0xea1eaf?_0x538b78[_0x30ef28(0x1e9)]:_0x538b78[_0x30ef28(0x189)];}}[a123_0x3dfc23(0x197)]=(_0x5ad020,_0x5ab938)=>{const _0x1906c1=a123_0x3dfc23,_0x1fc0ac={};_0x1fc0ac[_0x1906c1(0x1e0)]=function(_0x547f95,_0x5d0462){return _0x547f95===_0x5d0462;},_0x1fc0ac[_0x1906c1(0x1d7)]=function(_0x2c0746,_0x3f2fb6){return _0x2c0746>_0x3f2fb6;};const _0x43dd4c=_0x1fc0ac;if(!(_0x5ab938[_0x1906c1(0x1db)]&&_0x43dd4c['fRErM'](_0x5ab938[_0x1906c1(0x1db)][_0x1906c1(0x1b5)],0x1)))return;const _0x3de21b=_0x5ab938[_0x1906c1(0x1db)][0x0],_0xcad138=_0x5ab938[_0x1906c1(0x1db)][0x1],_0x159de3=_0x5ad020[_0x1906c1(0x194)]&&_0x5ad020[_0x1906c1(0x194)]['children']?_0x5ad020[_0x1906c1(0x194)][_0x1906c1(0x188)]:undefined;let _0x577a2d=[];_0x159de3&&_0x159de3[_0x1906c1(0x1af)](_0x1155d5=>{const _0xce2409=_0x1906c1,_0x3fa51e={'wpDqS':function(_0x276001,_0x4152f6){const _0x4f6905=a123_0x409e;return _0x43dd4c[_0x4f6905(0x1e0)](_0x276001,_0x4152f6);}};if(_0x1155d5[_0xce2409(0x1a6)])_0x1155d5[_0xce2409(0x1a6)][_0xce2409(0x188)][_0xce2409(0x1af)](_0x4c055f=>{const _0x1f641f=_0xce2409;if(_0x4c055f[_0x1f641f(0x181)]&&_0x3fa51e[_0x1f641f(0x1c2)](_0x4c055f['scenario']['id'],_0x3de21b)&&_0x4c055f[_0x1f641f(0x181)][_0x1f641f(0x1be)]){const _0x1ba1d8=_0x4c055f[_0x1f641f(0x181)][_0x1f641f(0x1be)]['flatMap'](_0x36e117=>_0x36e117['tableBody'])[_0x1f641f(0x1ae)](_0x225604=>_0x225604['id']===_0xcad138);let _0x47f130;_0x1ba1d8&&_0x1ba1d8[_0x1f641f(0x17e)]?_0x47f130=_0x1ba1d8[_0x1f641f(0x17e)]['map'](_0x1b762a=>_0x1b762a[_0x1f641f(0x1e6)]):_0x47f130=[],_0x47f130&&(_0x577a2d=_0x47f130);}});else{if(_0x1155d5[_0xce2409(0x181)]&&_0x43dd4c[_0xce2409(0x1e0)](_0x1155d5['scenario']['id'],_0x3de21b)&&_0x1155d5[_0xce2409(0x181)][_0xce2409(0x1be)]){const _0x4a502f=_0x1155d5[_0xce2409(0x181)]['examples'][_0xce2409(0x1c0)](_0x5a58bc=>_0x5a58bc[_0xce2409(0x175)])[_0xce2409(0x1ae)](_0x3b7e13=>_0x3b7e13['id']===_0xcad138);let _0x17a80f;_0x4a502f&&_0x4a502f['cells']?_0x17a80f=_0x4a502f['cells']['map'](_0x244e08=>_0x244e08[_0xce2409(0x1e6)]):_0x17a80f=[],_0x17a80f&&(_0x577a2d=_0x17a80f);}}});if(_0x577a2d['length'])return _0x577a2d;return;};async[a123_0x3dfc23(0x19a)](){const _0x365c4f=a123_0x3dfc23,_0x54068d={'Bgyis':function(_0x237df1){return _0x237df1();}};if(this[_0x365c4f(0x1ab)])return this[_0x365c4f(0x195)];const _0x477036=await _0x54068d[_0x365c4f(0x1c6)](getGitMetaData);_0x477036&&(this[_0x365c4f(0x195)]=_0x477036[_0x365c4f(0x1bb)]),this[_0x365c4f(0x1ab)]=!![];}}module['exports']=o11yClassErrorHandler(CucumberUtils,[a123_0x3dfc23(0x19a),a123_0x3dfc23(0x197),a123_0x3dfc23(0x1ed),a123_0x3dfc23(0x192),a123_0x3dfc23(0x19b),'getHookRunEventData',a123_0x3dfc23(0x1e7),a123_0x3dfc23(0x1b7)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a120_0x2be6e7=a120_0x3f58;(function(_0x21df52,_0x433040){const _0x35d830=a120_0x3f58,_0x5e1d4e=_0x21df52();while(!![]){try{const _0x18e71c=parseInt(_0x35d830(0xf1))/0x1+-parseInt(_0x35d830(0xa5))/0x2+parseInt(_0x35d830(0xd5))/0x3+parseInt(_0x35d830(0x104))/0x4*(parseInt(_0x35d830(0x156))/0x5)+parseInt(_0x35d830(0xc9))/0x6*(-parseInt(_0x35d830(0x111))/0x7)+-parseInt(_0x35d830(0xf7))/0x8+parseInt(_0x35d830(0x131))/0x9;if(_0x18e71c===_0x433040)break;else _0x5e1d4e['push'](_0x5e1d4e['shift']());}catch(_0x4096a5){_0x5e1d4e['push'](_0x5e1d4e['shift']());}}}(a120_0x2d06,0xe7639));const path=require(a120_0x2be6e7(0xd4)),util=require(a120_0x2be6e7(0x120)),crypto=require(a120_0x2be6e7(0x147)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a120_0x2be6e7(0x13b)),logger=require('../../../helpers/logger.js')[a120_0x2be6e7(0x13e)],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require(a120_0x2be6e7(0xe8)),{failureData,getFailureType,PathHelper}=require(a120_0x2be6e7(0x142)),stackTrace=require('stack-trace'),{pickUserFrameFile}=require(a120_0x2be6e7(0xd9)),a120_0x127965={};a120_0x127965[a120_0x2be6e7(0xac)]=a120_0x2be6e7(0x10b),a120_0x127965[a120_0x2be6e7(0x150)]='AFTER_ALL',a120_0x127965[a120_0x2be6e7(0xad)]=a120_0x2be6e7(0xb1),a120_0x127965[a120_0x2be6e7(0x10f)]=a120_0x2be6e7(0x149);const HOOK_TYPES_MAP=a120_0x127965,hooksMap={};class JestUtils{constructor(){const _0xa6fb84=a120_0x2be6e7;this[_0xa6fb84(0xbb)]=![],this['_gitConfigPath']=null,this[_0xa6fb84(0x13d)]=new PathHelper({'cwd':process[_0xa6fb84(0xee)]()},undefined);}async[a120_0x2be6e7(0xc0)](_0x43c64f,_0x2a0020,_0x238fb0=a120_0x2be6e7(0x12d),_0x2874d2=undefined){const _0x439143=a120_0x2be6e7,_0x180017={'TmwUr':_0x439143(0xf8),'vYLDp':'jest-circus','NiCoJ':_0x439143(0x155),'liwWG':function(_0x1a4ec6,_0x101f36){return _0x1a4ec6!==_0x101f36;},'bMyVA':'test','bQuzl':function(_0x2156a4,_0xb9cc7d){return _0x2156a4!==_0xb9cc7d;},'uPqCr':_0x439143(0x15a),'EiRfZ':function(_0x42369f,_0x21af3b){return _0x42369f!==_0x21af3b;},'MOdDT':_0x439143(0x10e),'kgbUE':function(_0x14d9f1,_0x46ce08){return _0x14d9f1===_0x46ce08;},'qieGL':_0x439143(0xda),'wcofT':_0x439143(0x137),'RgrRb':function(_0x18238b,_0x375309){return _0x18238b===_0x375309;},'CIhfu':_0x439143(0x12d),'AjQEM':function(_0xd37ba9,_0xf832c1){return _0xd37ba9>_0xf832c1;},'pfxkr':_0x439143(0xbe),'rQyEm':_0x439143(0x122),'blRFz':function(_0x14dd28,_0x37e278){return _0x14dd28!==_0x37e278;},'NrbCz':function(_0x342374,_0x563b52){return _0x342374-_0x563b52;},'ZoAcr':'javascript','uueFP':'jest','zRQzn':function(_0x15f0ae,_0x5b1b27){return _0x15f0ae(_0x5b1b27);},'ZPZzM':function(_0x2c3cb6,_0x539b8f){return _0x2c3cb6===_0x539b8f;}};logger['debug']('Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20'+_0x238fb0+',\x20testIdentifier:\x20'+_0x2a0020);try{if(!_0x43c64f)return logger[_0x439143(0xe4)](_0x180017['TmwUr']),null;if(_0x43c64f['fn']&&_0x43c64f['fn'][_0x439143(0x128)]()[_0x439143(0xca)](/browserstack internal helper hook/))return null;await this[_0x439143(0xa8)]();let _0x298c13;try{_0x298c13=this[_0x439143(0x110)](_0x43c64f);if(_0x298c13&&_0x298c13['includes'](_0x180017[_0x439143(0xef)]))return null;}catch(_0x10ccb7){logger[_0x439143(0xe4)](_0x439143(0x134)+util[_0x439143(0xf2)](_0x10ccb7)),_0x298c13=null;}const _0x429acc=this[_0x439143(0x101)](_0x43c64f),_0x246b62=this['getName'](_0x43c64f),_0x206926=_0x298c13?this[_0x439143(0x13d)][_0x439143(0x124)](_0x298c13):_0x180017[_0x439143(0xe0)];let _0x89706e=[];const _0x44236a=_0x43c64f['errorsDetailed']||_0x43c64f[_0x439143(0x118)];if(_0x180017['liwWG'](_0x44236a,undefined))_0x89706e=[_0x44236a,_0x180017[_0x439143(0x14e)]];else _0x180017['bQuzl'](_0x2874d2,undefined)&&(_0x89706e=[_0x2874d2,_0x180017[_0x439143(0x108)]]);const _0xd62753=_0x180017[_0x439143(0x12c)](_0x44236a,undefined)?util['inspect'](_0x44236a[0x0]):_0x180017[_0x439143(0x105)](_0x2874d2,undefined)?_0x2874d2[_0x439143(0x128)]():undefined;let _0x194eb7=_0x180017['MOdDT'];if(_0x180017[_0x439143(0x129)](_0x238fb0,_0x180017[_0x439143(0x12e)]))_0x194eb7=_0x180017[_0x439143(0x11f)];else _0x180017[_0x439143(0xb8)](_0x238fb0,_0x180017[_0x439143(0x158)])&&(_0x44236a&&_0x180017[_0x439143(0xf0)](_0x44236a[_0x439143(0x15d)],0x0)?_0x194eb7=_0x180017[_0x439143(0xa7)]:_0x194eb7=_0x180017[_0x439143(0x119)]);let _0x85a49e=null;if(_0x180017['blRFz'](_0x43c64f['duration'],undefined))_0x85a49e=_0x43c64f['duration'];else(_0x238fb0[_0x439143(0xca)](/Finished/)||_0x238fb0['match'](/Skipped/))&&(_0x43c64f[_0x439143(0xc3)]&&(_0x85a49e=_0x180017['NrbCz'](Date['now'](),new Date(_0x43c64f[_0x439143(0xc3)])[_0x439143(0x112)]())));const _0x353004=_0x43c64f['fn']?_0x43c64f['fn'][_0x439143(0x128)]():null,_0x5c2b8f={'id':_0x2a0020,'uuid':_0x2a0020,'startedAt':_0x43c64f[_0x439143(0xc3)]||new Date()[_0x439143(0x14c)](),'finishedAt':_0x238fb0[_0x439143(0xca)](/Finished/)||_0x238fb0[_0x439143(0xca)](/Skipped/)?new Date()[_0x439143(0x14c)]():null,'type':_0x180017[_0x439143(0x14e)],'body':{'lang':_0x180017['ZoAcr'],'code':_0x353004},'name':_0x246b62,'errorsDetailed':_0x180017[_0x439143(0xf0)](_0x44236a?.[_0x439143(0x15d)],0x0)?_0x44236a[0x0]:_0x44236a?_0x44236a:undefined,'scopes':_0x429acc,'file_name':_0x206926,'location':_0x206926,'vc_filepath':this[_0x439143(0xa6)]&&_0x298c13?path[_0x439143(0x14b)](this['_gitConfigPath'],_0x298c13):null,'framework':_0x180017['uueFP'],'result':_0x194eb7,'failure_reason':_0xd62753,'duration_in_ms':_0x85a49e,'failure':failureData['apply'](null,_0x89706e),'failure_type':!_0xd62753?null:_0x180017[_0x439143(0x159)](getFailureType,_0xd62753),'retry_of':_0x43c64f[_0x439143(0xe7)]||null,'customRerunParam':{'rerun_name':_0x246b62}};_0x180017[_0x439143(0x132)](_0x238fb0,_0x180017[_0x439143(0x12e)])&&!_0x5c2b8f[_0x439143(0x100)]&&(_0x5c2b8f[_0x439143(0x100)]=_0x5c2b8f['finishedAt']);const _0x5275b6=_0x5c2b8f[_0x439143(0xe2)]&&_0x5c2b8f[_0x439143(0xe2)][0x0];return _0x5275b6&&(_0x5c2b8f[_0x439143(0xae)]=_0x5275b6['backtrace'],_0x5c2b8f[_0x439143(0xde)]=_0x5275b6[_0x439143(0xe1)]),(_0x180017['ZPZzM'](_0x238fb0,_0x180017[_0x439143(0x158)])||_0x180017['kgbUE'](_0x238fb0,_0x180017[_0x439143(0x12e)]))&&(_0x43c64f[_0x439143(0xd0)]&&(_0x5c2b8f[_0x439143(0xd0)]=_0x43c64f['hooks'])),_0x5c2b8f;}catch(_0x23716f){return logger[_0x439143(0xe4)]('Exception\x20in\x20createTestFrameworkData:\x20'+util['format'](_0x23716f)),null;}}async['createHookData'](_0x5ce3df,_0x191a7d,_0x445e1c,_0x32f9fb){const _0x197e04=a120_0x2be6e7,_0x157720={'Hjikk':_0x197e04(0xf6),'APpog':_0x197e04(0x138),'zLmPs':_0x197e04(0x139),'kmBan':_0x197e04(0x141),'DwFtl':_0x197e04(0x10e),'LCxJh':function(_0x540d66,_0x4e25e8){return _0x540d66===_0x4e25e8;},'rkjAv':'HookRunFinished','Hjvtl':function(_0x27483c,_0x3ca5c9){return _0x27483c>_0x3ca5c9;},'bJwfl':_0x197e04(0xbe),'KEsme':function(_0x53ebab,_0x28e590){return _0x53ebab(_0x28e590);},'wsNZk':_0x197e04(0x10a),'mHmdE':_0x197e04(0x122),'XyRBE':_0x197e04(0xdd),'OHlax':'javascript','fjcFN':'jest','kjOWx':'HookRunStarted'};logger[_0x197e04(0xe4)](_0x197e04(0x13a)+_0x445e1c+_0x197e04(0x13f)+_0x191a7d+_0x197e04(0xf3)+_0x32f9fb);try{if(!_0x5ce3df)return logger[_0x197e04(0xe4)](_0x157720['Hjikk']),null;if(this[_0x197e04(0x133)](_0x5ce3df))return null;await this['configureGit']();let _0x2790bc=null;try{_0x2790bc=this[_0x197e04(0x110)](_0x5ce3df);if(_0x2790bc&&_0x2790bc[_0x197e04(0x126)](_0x157720[_0x197e04(0x11c)]))return null;if(_0x2790bc&&_0x2790bc['includes'](_0x157720[_0x197e04(0xbd)]))return null;}catch(_0x325a2a){logger['debug'](_0x197e04(0x106)+util['format'](_0x325a2a));}const _0x3ee537=_0x2790bc?this[_0x197e04(0x13d)]['prefixTestPath'](_0x2790bc):_0x2790bc,_0x97e9e3=this[_0x197e04(0xb4)](_0x5ce3df),_0x7cbf7=_0x5ce3df[_0x197e04(0x14d)]||_0x157720[_0x197e04(0xdc)],_0xa72761=HOOK_TYPES_MAP[_0x7cbf7]||_0x7cbf7[_0x197e04(0xab)](),_0x2e5574=_0x5ce3df['parent']&&_0x5ce3df[_0x197e04(0xfc)][_0x197e04(0x11b)]?_0x5ce3df['parent']['name']:'';let _0x262242=_0x157720[_0x197e04(0xe6)],_0x15ec76=null,_0x2f7bf4=null,_0x491990=null,_0xfd430f=null;_0x157720[_0x197e04(0xb0)](_0x445e1c,_0x157720[_0x197e04(0x107)])&&(_0xfd430f=new Date()[_0x197e04(0x14c)](),_0x5ce3df[_0x197e04(0x113)]&&_0x157720[_0x197e04(0x11e)](_0x5ce3df[_0x197e04(0x113)][_0x197e04(0x15d)],0x0)?(_0x262242=_0x157720[_0x197e04(0xeb)],_0x2f7bf4=util[_0x197e04(0x136)](_0x5ce3df[_0x197e04(0x113)][0x0]),_0x15ec76=_0x157720[_0x197e04(0x12f)](getFailureType,_0x2f7bf4),_0x491990=failureData[_0x197e04(0xe9)](null,[_0x5ce3df[_0x197e04(0x113)],_0x157720[_0x197e04(0x123)]])):_0x262242=_0x157720[_0x197e04(0xcd)]);const _0x3a68d4={'uuid':_0x191a7d,'type':_0x157720[_0x197e04(0x157)],'hook_type':_0xa72761,'name':_0x97e9e3,'body':{'lang':_0x157720[_0x197e04(0x109)],'code':_0x5ce3df['fn']?_0x5ce3df['fn']['toString']():null},'tags':[],'test_run_id':_0x32f9fb,'scope':_0x2e5574,'scopes':[_0x2e5574],'file_name':_0x3ee537,'location':_0x3ee537,'vc_filepath':this['_gitConfigPath']&&_0x2790bc?path['relative'](this['_gitConfigPath'],_0x2790bc):null,'result':_0x262242,'started_at':_0x5ce3df['started_at']||new Date()[_0x197e04(0x14c)](),'finished_at':_0xfd430f,'failure_type':_0x15ec76,'failure_reason':_0x2f7bf4,'failure_data':_0x491990,'framework':_0x157720[_0x197e04(0xec)]};return _0x157720[_0x197e04(0xb0)](_0x445e1c,_0x157720[_0x197e04(0xaf)])&&(hooksMap[_0x32f9fb]?hooksMap[_0x32f9fb][_0x197e04(0x151)](_0x3a68d4):hooksMap[_0x32f9fb]=[_0x3a68d4]),_0x3a68d4;}catch(_0x5d1727){return logger[_0x197e04(0xe4)](_0x197e04(0xe5)+util[_0x197e04(0xf2)](_0x5d1727)),null;}}[a120_0x2be6e7(0x148)](_0x3ca7a3,_0x1b635f,_0x2a005f){const _0x4a990b=a120_0x2be6e7,_0x254b09={'MTdOK':function(_0x4dbb81,_0x59e743){return _0x4dbb81>_0x59e743;},'lTOmI':'failed','oVsnV':function(_0x4dacb5,_0x539e5d){return _0x4dacb5(_0x539e5d);},'yckEc':_0x4a990b(0x10a),'qyyyE':_0x4a990b(0x122)};try{const _0x7830f3=hooksMap[_0x3ca7a3];if(!_0x7830f3)return null;const _0x314f5a=_0x7830f3[_0x4a990b(0xb5)](_0xab4626=>_0xab4626[_0x4a990b(0x125)]===_0x1b635f);if(!_0x314f5a)return null;return _0x314f5a[_0x4a990b(0xd1)]=new Date()[_0x4a990b(0x14c)](),_0x2a005f[_0x4a990b(0x113)]&&_0x254b09[_0x4a990b(0x154)](_0x2a005f[_0x4a990b(0x113)][_0x4a990b(0x15d)],0x0)?(_0x314f5a[_0x4a990b(0xd2)]=_0x254b09[_0x4a990b(0xdf)],_0x314f5a[_0x4a990b(0xcb)]=util[_0x4a990b(0x136)](_0x2a005f[_0x4a990b(0x113)][0x0]),_0x314f5a[_0x4a990b(0x15c)]=_0x254b09['oVsnV'](getFailureType,_0x314f5a[_0x4a990b(0xcb)]),_0x314f5a[_0x4a990b(0x153)]=failureData['apply'](null,[_0x2a005f[_0x4a990b(0x113)],_0x254b09[_0x4a990b(0xd3)]])):_0x314f5a[_0x4a990b(0xd2)]=_0x254b09['qyyyE'],_0x314f5a;}catch(_0x50c90f){return logger['debug']('Exception\x20in\x20getHookRunEventData:\x20'+util[_0x4a990b(0xf2)](_0x50c90f)),null;}}[a120_0x2be6e7(0xb4)](_0x5857ec){const _0x290b14=a120_0x2be6e7,_0x561679={};_0x561679[_0x290b14(0xb9)]=function(_0x38e044,_0x343e24){return _0x38e044!==_0x343e24;},_0x561679[_0x290b14(0xaa)]='test',_0x561679[_0x290b14(0xb2)]='Unknown\x20Test';const _0x10a81c=_0x561679;if(_0x10a81c[_0x290b14(0xb9)](_0x5857ec['type'],_0x10a81c[_0x290b14(0xaa)]))return'\x22'+_0x5857ec[_0x290b14(0x14d)]+_0x290b14(0x116)+(_0x5857ec['parent']&&_0x5857ec['parent'][_0x290b14(0x11b)])+'\x22';return _0x5857ec[_0x290b14(0x11b)]||_0x10a81c[_0x290b14(0xb2)];}[a120_0x2be6e7(0x101)](_0x2cbfad){const _0x1d48e8=a120_0x2be6e7,_0x5b517d={};_0x5b517d['aLWHA']=function(_0xbf46b8,_0x3a5374){return _0xbf46b8!==_0x3a5374;},_0x5b517d['ggZTj']=_0x1d48e8(0xc8);const _0x24057a=_0x5b517d,_0x365d1f=[];if(_0x2cbfad&&_0x2cbfad[_0x1d48e8(0xfc)]){let _0x5f596a=_0x2cbfad['parent'];while(_0x5f596a&&_0x5f596a[_0x1d48e8(0x11b)]&&_0x24057a[_0x1d48e8(0x11d)](_0x5f596a[_0x1d48e8(0x11b)],'')&&_0x24057a[_0x1d48e8(0x11d)](_0x5f596a[_0x1d48e8(0x11b)],_0x24057a['ggZTj'])){_0x365d1f[_0x1d48e8(0x151)](_0x5f596a[_0x1d48e8(0x11b)]),_0x5f596a=_0x5f596a['parent'];}}return _0x365d1f[_0x1d48e8(0x117)](),_0x365d1f;}[a120_0x2be6e7(0x110)](_0x4d2bd7){const _0x27a796=a120_0x2be6e7,_0x1e1093={'sBjig':function(_0x1d0bd4,_0x15183b){return _0x1d0bd4(_0x15183b);}};if(_0x4d2bd7[_0x27a796(0xbf)])return _0x4d2bd7[_0x27a796(0xbf)];if(_0x4d2bd7['asyncError'])try{const _0x1c4b4=stackTrace[_0x27a796(0x12a)][_0x27a796(0x10c)](stackTrace,_0x4d2bd7['asyncError']),_0x52050e=_0x1e1093[_0x27a796(0x146)](pickUserFrameFile,_0x1c4b4);if(_0x52050e)return _0x52050e;logger[_0x27a796(0xe4)](_0x27a796(0xc4)+_0x1c4b4[_0x27a796(0x15d)]+')');}catch(_0xb7f160){logger[_0x27a796(0xe4)](_0x27a796(0xce)+util[_0x27a796(0xf2)](_0xb7f160));}return null;}[a120_0x2be6e7(0x133)](_0x27d99b){const _0x2dda90=a120_0x2be6e7,_0x2681ba={};_0x2681ba[_0x2dda90(0x102)]='jest-circus';const _0x3183d0=_0x2681ba;try{const _0x4e4d31=this['getRootParentFile'](_0x27d99b);if(!_0x4e4d31||_0x4e4d31['includes'](_0x3183d0['fszMR']))return!![];}catch(_0x32dde0){logger[_0x2dda90(0xe4)](_0x2dda90(0x15f)+util[_0x2dda90(0xf2)](_0x32dde0));}return![];}[a120_0x2be6e7(0x144)](_0x538bd3=null){const _0x1e37e5=a120_0x2be6e7;try{const _0x4668da=_0x538bd3||global[_0x1e37e5(0xd8)]||{};if(global[_0x1e37e5(0xea)])return global['__jestCurrentTestIdentifier'];if(_0x4668da?.[_0x1e37e5(0x10d)]?.['testAnalyticsId'])return _0x4668da['currentTest'][_0x1e37e5(0xdb)];if(_0x4668da?.['currentTest']?.['id'])return _0x4668da[_0x1e37e5(0x10d)]['id'];return null;}catch(_0x39e253){return logger[_0x1e37e5(0xe4)](_0x1e37e5(0x130)+util[_0x1e37e5(0xf2)](_0x39e253)),null;}}async[a120_0x2be6e7(0xa8)](){const _0x33d35a=a120_0x2be6e7,_0xf749ff={'QGRNK':function(_0xdff50b){return _0xdff50b();}};if(this['_gitConfigured'])return this[_0x33d35a(0xa6)];const _0x1e6323=await _0xf749ff[_0x33d35a(0xed)](getGitMetaData);_0x1e6323&&(this[_0x33d35a(0xa6)]=_0x1e6323[_0x33d35a(0xa9)]),this[_0x33d35a(0xbb)]=!![];}['clearHooksMap'](_0x3a9508){hooksMap[_0x3a9508]&&delete hooksMap[_0x3a9508];}[a120_0x2be6e7(0xbc)](_0x5d3f12){const _0x5a3533=a120_0x2be6e7,_0x39ffb1={'BkXTz':'jest-circus','SQlkr':function(_0x183970,_0x466341){return _0x183970(_0x466341);},'FPNxH':_0x5a3533(0x14a)};if(_0x5d3f12[_0x5a3533(0xbf)])return _0x5d3f12[_0x5a3533(0xbf)];if(_0x5d3f12[_0x5a3533(0x140)]){try{const _0x44f6b3=stackTrace['parse'](_0x5d3f12[_0x5a3533(0x140)]);if(_0x44f6b3[0x0]&&_0x44f6b3[0x0][_0x5a3533(0xb3)]){const _0x1982a7=_0x44f6b3[0x0][_0x5a3533(0xb3)]();if(_0x1982a7&&!_0x1982a7[_0x5a3533(0x126)](_0x39ffb1['BkXTz']))return _0x1982a7;}}catch(_0x502994){logger[_0x5a3533(0xe4)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x5a3533(0xf2)](_0x502994));}if(_0x5d3f12[_0x5a3533(0x140)][_0x5a3533(0xd7)]){const _0x24bcc8=_0x5d3f12['asyncError']['stack']['split']('\x0a');for(const _0x5b2559 of _0x24bcc8){const _0x3da43a=_0x5b2559[_0x5a3533(0xca)](/at (.+?):\d+:\d+/);if(_0x3da43a&&_0x3da43a[0x1]&&!_0x3da43a[0x1]['includes'](_0x39ffb1[_0x5a3533(0x145)]))return _0x3da43a[0x1];}}}let _0x852152=_0x5d3f12[_0x5a3533(0xfc)];while(_0x852152){if(_0x852152[_0x5a3533(0xbf)])return _0x852152[_0x5a3533(0xbf)];if(_0x852152[_0x5a3533(0x140)])try{const _0x5ca5c7=stackTrace[_0x5a3533(0x12a)](_0x852152[_0x5a3533(0x140)]);if(_0x5ca5c7[0x0]&&_0x5ca5c7[0x0]['getFileName']){const _0x5f3a9e=_0x5ca5c7[0x0]['getFileName']();if(_0x5f3a9e&&!_0x5f3a9e[_0x5a3533(0x126)](_0x39ffb1[_0x5a3533(0x145)]))return _0x5f3a9e;}}catch(_0x558a15){}_0x852152=_0x852152['parent'];}try{const _0x58a010=_0x39ffb1['SQlkr'](require,_0x39ffb1[_0x5a3533(0x15e)]);if(_0x58a010&&_0x58a010['getState']){const _0x12186b=_0x58a010[_0x5a3533(0xc5)]();if(_0x12186b&&_0x12186b[_0x5a3533(0xe3)])return _0x12186b[_0x5a3533(0xe3)];}}catch(_0x30a003){logger['debug'](_0x5a3533(0x135)+util['format'](_0x30a003));}return null;}['createJestTestIdentifier'](_0x4ce086){const _0x9ca2cc=a120_0x2be6e7,_0x7c091b={};_0x7c091b[_0x9ca2cc(0xf4)]=_0x9ca2cc(0x12b),_0x7c091b['qtvHw']=function(_0xd2e768,_0x1fa6e8){return _0xd2e768!==_0x1fa6e8;},_0x7c091b[_0x9ca2cc(0x114)]='ROOT_DESCRIBE_BLOCK',_0x7c091b[_0x9ca2cc(0xd6)]=_0x9ca2cc(0x138),_0x7c091b[_0x9ca2cc(0xc6)]=_0x9ca2cc(0xfa),_0x7c091b[_0x9ca2cc(0xf9)]=_0x9ca2cc(0x115);const _0x459ba4=_0x7c091b;try{if(!_0x4ce086)return logger[_0x9ca2cc(0xfd)](_0x459ba4[_0x9ca2cc(0xf4)]),null;const _0x453ad2=_0x4ce086[_0x9ca2cc(0x127)]||_0x4ce086[_0x9ca2cc(0x11b)]||_0x4ce086[_0x9ca2cc(0xc1)]||_0x4ce086[_0x9ca2cc(0x103)];let _0x3e0d3a=_0x453ad2;if(_0x4ce086['parent']&&_0x4ce086[_0x9ca2cc(0xfc)][_0x9ca2cc(0x11b)]&&_0x459ba4['qtvHw'](_0x4ce086['parent'][_0x9ca2cc(0x11b)],_0x459ba4[_0x9ca2cc(0x114)])){const _0x42cad4=_0x4ce086[_0x9ca2cc(0x11b)]||_0x4ce086['title'];_0x42cad4&&(_0x3e0d3a=_0x4ce086[_0x9ca2cc(0xfc)][_0x9ca2cc(0x11b)]+'\x20'+_0x42cad4);}let _0x1da23c=_0x4ce086[_0x9ca2cc(0xe3)];if(!_0x1da23c&&_0x4ce086['asyncError']){try{const _0x5f366e=stackTrace[_0x9ca2cc(0x12a)](_0x4ce086[_0x9ca2cc(0x140)]);if(_0x5f366e[0x0]&&_0x5f366e[0x0]['getFileName']){const _0x1449ba=_0x5f366e[0x0][_0x9ca2cc(0xb3)]();_0x1449ba&&!_0x1449ba[_0x9ca2cc(0x126)](_0x459ba4[_0x9ca2cc(0xd6)])&&(_0x1da23c=_0x1449ba);}}catch(_0x207c9b){logger[_0x9ca2cc(0xe4)](_0x9ca2cc(0x14f)+util[_0x9ca2cc(0xf2)](_0x207c9b));}if(!_0x1da23c&&_0x4ce086[_0x9ca2cc(0x140)][_0x9ca2cc(0xd7)]){const _0x4df1af=_0x4ce086[_0x9ca2cc(0x140)][_0x9ca2cc(0xd7)][_0x9ca2cc(0xb7)]('\x0a');for(const _0x32ff70 of _0x4df1af){const _0x2d61b8=_0x32ff70[_0x9ca2cc(0xca)](/at (.+?):\d+:\d+/);if(_0x2d61b8&&_0x2d61b8[0x1]&&!_0x2d61b8[0x1][_0x9ca2cc(0x126)](_0x459ba4[_0x9ca2cc(0xd6)])){_0x1da23c=_0x2d61b8[0x1];break;}}}}const _0x878b93=_0x1da23c+'::'+_0x3e0d3a,_0x1853ea=crypto['createHash'](_0x459ba4[_0x9ca2cc(0xc6)])[_0x9ca2cc(0xc7)](_0x878b93)[_0x9ca2cc(0x11a)](_0x459ba4[_0x9ca2cc(0xf9)])['substring'](0x0,0x8),_0x1a11a3=process[_0x9ca2cc(0xfe)]+_0x9ca2cc(0xcc)+_0x1853ea;return logger[_0x9ca2cc(0xe4)](_0x9ca2cc(0x15b)+_0x1a11a3+_0x9ca2cc(0xff)+_0x878b93),_0x1a11a3;}catch(_0x281579){return logger['error']('[jestUtils]\x20Error\x20creating\x20identifier:\x20'+util[_0x9ca2cc(0xf2)](_0x281579)),null;}}[a120_0x2be6e7(0x121)](_0x1687ad){const _0x27cdb8=a120_0x2be6e7,_0x2ff840={};_0x2ff840[_0x27cdb8(0x152)]=_0x27cdb8(0xc2);const _0x16a008=_0x2ff840;if(!_0x1687ad)return logger[_0x27cdb8(0xe4)](_0x16a008[_0x27cdb8(0x152)]),null;const _0x447930=this[_0x27cdb8(0xbc)](_0x1687ad),_0x2526aa={};_0x2526aa[_0x27cdb8(0x11b)]=_0x1687ad[_0x27cdb8(0x11b)]||_0x1687ad[_0x27cdb8(0xc1)],_0x2526aa[_0x27cdb8(0xfc)]=_0x1687ad['parent'],_0x2526aa['testPath']=_0x447930,_0x2526aa[_0x27cdb8(0x140)]=_0x1687ad['asyncError'];const _0x4d1b6d=_0x2526aa;return this[_0x27cdb8(0xfb)](_0x4d1b6d);}[a120_0x2be6e7(0x143)](_0x57d9cc,_0x274540=null){const _0x1f1820=a120_0x2be6e7,_0x1d95f0={};_0x1d95f0[_0x1f1820(0xf5)]=_0x1f1820(0x13c);const _0x42a139=_0x1d95f0;if(!_0x57d9cc)return logger[_0x1f1820(0xe4)](_0x42a139[_0x1f1820(0xf5)]),_0x274540;if(_0x57d9cc[_0x1f1820(0xb6)])return logger[_0x1f1820(0xe4)](_0x1f1820(0xcf)+_0x57d9cc['testIdentifier']),_0x57d9cc[_0x1f1820(0xb6)];return this[_0x1f1820(0xfb)](_0x57d9cc)||_0x274540;}}module[a120_0x2be6e7(0xba)]=o11yClassErrorHandler(JestUtils,['configureGit',a120_0x2be6e7(0x101),a120_0x2be6e7(0x110),'getName',a120_0x2be6e7(0x133),'getTestIdentifier',a120_0x2be6e7(0xc0),'createHookData',a120_0x2be6e7(0x148),'clearHooksMap',a120_0x2be6e7(0xbc),a120_0x2be6e7(0xfb),'createIdentifierFromJestTest',a120_0x2be6e7(0x143)]);function a120_0x3f58(_0x25f64e,_0x384084){const _0x2d064e=a120_0x2d06();return a120_0x3f58=function(_0x3f5801,_0xfc4d17){_0x3f5801=_0x3f5801-0xa5;let _0x4aea7b=_0x2d064e[_0x3f5801];return _0x4aea7b;},a120_0x3f58(_0x25f64e,_0x384084);}function a120_0x2d06(){const _0xde56e3=['lTOmI','NiCoJ','expanded','failure','testPath','debug','Exception\x20in\x20createHookData:\x20','DwFtl','retryOf','../TestInfo.js','apply','__jestCurrentTestIdentifier','bJwfl','fjcFN','QGRNK','cwd','vYLDp','AjQEM','103111BEJPwU','format',',\x20testRunId:\x20','CHouU','WTOvw','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','8513888xTVdLG','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','oTQmY','md5','createJestTestIdentifier','parent','error','pid','\x20from\x20compositeKey:\x20','startedAt','getHierarchy','fszMR','displayName','134580eWGccW','bQuzl','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','rkjAv','uPqCr','OHlax','test','BEFORE_ALL','call','currentTest','pending','afterEach','getRootParentFile','658pddFoY','getTime','errorsDetailed','gMNEe','hex','\x22\x20hook\x20for\x20\x22','reverse','errors','rQyEm','digest','name','APpog','aLWHA','Hjvtl','wcofT','util','createIdentifierFromJestTest','passed','wsNZk','prefixTestPath','uuid','includes','fullName','toString','kgbUE','parse','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','EiRfZ','TestRunFinished','qieGL','KEsme','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','7827003xCGzku','ZPZzM','isJestInternalHook','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','inspect','skipped','jest-circus','browserstack-node-agent/src/bin/jest','Creating\x20hook\x20data\x20for\x20eventType:\x20','../../../helpers/helper.js','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','_paths','winstonLogger',',\x20hookUUID:\x20','asyncError','unknown','../../../helpers/test-observability/utils','recreateIdentifierFromTestInfo','getTestIdentifier','BkXTz','sBjig','crypto','getHookRunEventData','AFTER_EACH','expect','relative','toISOString','type','bMyVA','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','afterAll','push','KHKxU','failure_data','MTdOK','File\x20path\x20could\x20not\x20be\x20found','240oKTwvq','XyRBE','CIhfu','zRQzn','err','[jestUtils]\x20Created\x20identifier:\x20','failure_type','length','FPNxH','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','85554ttJILI','_gitConfigPath','pfxkr','configureGit','root','wcTsM','toUpperCase','beforeAll','beforeEach','failure_backtrace','kjOWx','LCxJh','BEFORE_EACH','eGiCT','getFileName','getName','find','testIdentifier','split','RgrRb','caDXM','exports','_gitConfigured','extractTestFilePath','zLmPs','failed','file','createTestFrameworkData','title','[jestUtils]\x20No\x20test\x20object\x20provided','started_at','[jestUtils]\x20pickUserFrameFile\x20found\x20no\x20user\x20frame\x20(trace\x20length=','getState','rBxMV','update','ROOT_DESCRIBE_BLOCK','68358zTMCjs','match','failure_reason',':jest-','mHmdE','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','hooks','finished_at','result','yckEc','path','1613958REqnWF','cnOaH','stack','__workerDetails','../../../helpers/stackFrameUtils','TestRunSkipped','testAnalyticsId','kmBan','hook','failure_reason_expanded'];a120_0x2d06=function(){return _0xde56e3;};return a120_0x2d06();}
|
|
1
|
+
const a124_0x5d5489=a124_0x1a4d;(function(_0x540b5b,_0x1c9bf4){const _0x3c8b04=a124_0x1a4d,_0x5d7851=_0x540b5b();while(!![]){try{const _0x1d9fe0=parseInt(_0x3c8b04(0x1e9))/0x1+parseInt(_0x3c8b04(0x214))/0x2+parseInt(_0x3c8b04(0x28d))/0x3*(parseInt(_0x3c8b04(0x1fc))/0x4)+parseInt(_0x3c8b04(0x22c))/0x5*(parseInt(_0x3c8b04(0x238))/0x6)+-parseInt(_0x3c8b04(0x28b))/0x7*(parseInt(_0x3c8b04(0x26e))/0x8)+parseInt(_0x3c8b04(0x1f3))/0x9+-parseInt(_0x3c8b04(0x20b))/0xa;if(_0x1d9fe0===_0x1c9bf4)break;else _0x5d7851['push'](_0x5d7851['shift']());}catch(_0x305fe1){_0x5d7851['push'](_0x5d7851['shift']());}}}(a124_0x5985,0x2f070));const path=require(a124_0x5d5489(0x1e4)),util=require(a124_0x5d5489(0x201)),crypto=require(a124_0x5d5489(0x215)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a124_0x5d5489(0x27c)),logger=require(a124_0x5d5489(0x253))['winstonLogger'],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require(a124_0x5d5489(0x1df)),{failureData,getFailureType,PathHelper}=require(a124_0x5d5489(0x206)),stackTrace=require(a124_0x5d5489(0x25c)),{pickUserFrameFile}=require('../../../helpers/stackFrameUtils'),a124_0x46b15c={};a124_0x46b15c['beforeAll']='BEFORE_ALL',a124_0x46b15c['afterAll']='AFTER_ALL',a124_0x46b15c[a124_0x5d5489(0x1f4)]='BEFORE_EACH',a124_0x46b15c['afterEach']=a124_0x5d5489(0x235);function a124_0x5985(){const _0x40041b=['failure_reason','tLwQi','Creating\x20hook\x20data\x20for\x20eventType:\x20','1206504QWxYJY','beforeEach','XJWPG','extractTestFilePath','push','zJuAx','HookRunFinished','BVVgl',',\x20testRunId:\x20','22892TqYEJl','cfqrQ','Failed\x20to\x20get\x20root\x20parent\x20file:\x20',',\x20testIdentifier:\x20','includes','util','failure_data','getFileName','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','digest','../../../helpers/test-observability/utils','Rxtha','SQQuz','isJestInternalHook','retryOf','6977760rYhHrZ','kPMRv','length','parent','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','getHierarchy','failure','expect','CiWYa','696428NrBwNp','crypto','tTXNz','TestRunFinished','LGKXj','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','createHookData','testAnalyticsId','IXbvL','errors','pending','cERYc','fullName','\x22\x20hook\x20for\x20\x22','error','createJestTestIdentifier','TestRunSkipped','EEExJ','result','split','toString','started_at','finished_at','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','243260hZUxXP','ooUDA','exports',',\x20hookUUID:\x20','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','parse','file','ucCYs','type','AFTER_EACH','_gitConfigured','debug','36DwJFBi','BMzXU','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','_paths','createTestFrameworkData','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','err','getRootParentFile','lhKWk','qFpCU','update','prefixTestPath','match','apply','inspect','fLxVW','hgkEJ','File\x20path\x20could\x20not\x20be\x20found','clearHooksMap','javascript','lOznX','Exception\x20in\x20getHookRunEventData:\x20','format','[jestUtils]\x20No\x20test\x20object\x20provided','IbgHb','rBDmy','../../../helpers/logger.js','getHookRunEventData','jest','testIdentifier','toUpperCase','createHash','failure_backtrace','startedAt','IvnsI','stack-trace','finishedAt','KEeoX','substring','zyDUc','ZZVGX','errorsDetailed','fJaRa','relative','duration','failure_reason_expanded','lXXlJ','GuMHq','rWHFl','hook','HYRnJ','asyncError','toISOString','16YAVWmo','name','tWBgO','configureGit','DHRFZ','__jestCurrentTestIdentifier','Yynul','getTestIdentifier','test','stack','WavXc',':jest-','getName','hooks','../../../helpers/helper.js','title','cdKGA','reverse','[jestUtils]\x20pickUserFrameFile\x20found\x20no\x20user\x20frame\x20(trace\x20length=','HookRunStarted','CphQO','unknown','cwd','testPath','passed','getState','expanded','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','kPHNK','101444LtGpUb','failure_type','39uxeXDJ','VUDNO','_gitConfigPath','failed','ZAxbY','../TestInfo.js','currentTest','ROOT_DESCRIBE_BLOCK','displayName','pid','path','[jestUtils]\x20Error\x20creating\x20identifier:\x20','mwIwb','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','[jestUtils]\x20Created\x20identifier:\x20','70803aRyrUB','doLaU','CIyEP','fvfWA','hsrWu','jest-circus','kxBZb'];a124_0x5985=function(){return _0x40041b;};return a124_0x5985();}function a124_0x1a4d(_0x19bc86,_0x6a612f){const _0x5985a2=a124_0x5985();return a124_0x1a4d=function(_0x1a4d2f,_0x553d0c){_0x1a4d2f=_0x1a4d2f-0x1db;let _0x4464a1=_0x5985a2[_0x1a4d2f];return _0x4464a1;},a124_0x1a4d(_0x19bc86,_0x6a612f);}const HOOK_TYPES_MAP=a124_0x46b15c,hooksMap={};class JestUtils{constructor(){const _0x23c022=a124_0x5d5489;this[_0x23c022(0x236)]=![],this[_0x23c022(0x1dc)]=null,this[_0x23c022(0x23b)]=new PathHelper({'cwd':process[_0x23c022(0x284)]()},undefined);}async[a124_0x5d5489(0x23c)](_0x428f53,_0x37fc55,_0xcbd6fa=a124_0x5d5489(0x217),_0x38bfe2=undefined){const _0x5513c9=a124_0x5d5489,_0x3d1ffd={'kPMRv':_0x5513c9(0x23e),'GBrwv':_0x5513c9(0x1ee),'hsrWu':_0x5513c9(0x24a),'HYRnJ':function(_0x39c486,_0x15540d){return _0x39c486!==_0x15540d;},'ooUDA':'test','CiWYa':_0x5513c9(0x23f),'RcBsS':function(_0x518aab,_0x2d1484){return _0x518aab!==_0x2d1484;},'SXzgG':_0x5513c9(0x21e),'lXXlJ':function(_0x53a21f,_0x1d9de6){return _0x53a21f===_0x1d9de6;},'IbgHb':_0x5513c9(0x224),'fvfWA':'skipped','cfqrQ':_0x5513c9(0x217),'tLwQi':function(_0x5fbb8d,_0x549ccb){return _0x5fbb8d>_0x549ccb;},'zyDUc':'failed','cERYc':_0x5513c9(0x286),'GuMHq':function(_0x3c0bdf,_0x4011c2){return _0x3c0bdf-_0x4011c2;},'lOznX':'javascript','mwIwb':_0x5513c9(0x255),'RtRdR':function(_0x4147e3,_0x11c8b8){return _0x4147e3(_0x11c8b8);},'CphQO':function(_0x1b4f21,_0x44cfe7){return _0x1b4f21===_0x44cfe7;}};logger[_0x5513c9(0x237)](_0x5513c9(0x22b)+_0xcbd6fa+_0x5513c9(0x1ff)+_0x37fc55);try{if(!_0x428f53)return logger[_0x5513c9(0x237)](_0x3d1ffd[_0x5513c9(0x20c)]),null;if(_0x428f53['fn']&&_0x428f53['fn'][_0x5513c9(0x228)]()[_0x5513c9(0x245)](/browserstack internal helper hook/))return null;await this[_0x5513c9(0x271)]();let _0x510b19;try{_0x510b19=this['getRootParentFile'](_0x428f53);if(_0x510b19&&_0x510b19[_0x5513c9(0x200)](_0x3d1ffd['GBrwv']))return null;}catch(_0x4a2772){logger[_0x5513c9(0x237)](_0x5513c9(0x1fe)+util[_0x5513c9(0x24f)](_0x4a2772)),_0x510b19=null;}const _0x517d44=this[_0x5513c9(0x210)](_0x428f53),_0x101e34=this[_0x5513c9(0x27a)](_0x428f53),_0x16fece=_0x510b19?this[_0x5513c9(0x23b)]['prefixTestPath'](_0x510b19):_0x3d1ffd[_0x5513c9(0x1ed)];let _0x1043a6=[];const _0x4e634c=_0x428f53[_0x5513c9(0x262)]||_0x428f53[_0x5513c9(0x21d)];if(_0x3d1ffd[_0x5513c9(0x26b)](_0x4e634c,undefined))_0x1043a6=[_0x4e634c,_0x3d1ffd[_0x5513c9(0x22d)]];else _0x3d1ffd[_0x5513c9(0x26b)](_0x38bfe2,undefined)&&(_0x1043a6=[_0x38bfe2,_0x3d1ffd[_0x5513c9(0x213)]]);const _0x47c468=_0x3d1ffd[_0x5513c9(0x26b)](_0x4e634c,undefined)?util[_0x5513c9(0x247)](_0x4e634c[0x0]):_0x3d1ffd['RcBsS'](_0x38bfe2,undefined)?_0x38bfe2[_0x5513c9(0x228)]():undefined;let _0x508d0f=_0x3d1ffd['SXzgG'];if(_0x3d1ffd[_0x5513c9(0x267)](_0xcbd6fa,_0x3d1ffd['IbgHb']))_0x508d0f=_0x3d1ffd[_0x5513c9(0x1ec)];else _0x3d1ffd[_0x5513c9(0x267)](_0xcbd6fa,_0x3d1ffd[_0x5513c9(0x1fd)])&&(_0x4e634c&&_0x3d1ffd[_0x5513c9(0x1f1)](_0x4e634c['length'],0x0)?_0x508d0f=_0x3d1ffd[_0x5513c9(0x260)]:_0x508d0f=_0x3d1ffd[_0x5513c9(0x21f)]);let _0x38e905=null;if(_0x3d1ffd[_0x5513c9(0x26b)](_0x428f53[_0x5513c9(0x265)],undefined))_0x38e905=_0x428f53[_0x5513c9(0x265)];else(_0xcbd6fa[_0x5513c9(0x245)](/Finished/)||_0xcbd6fa[_0x5513c9(0x245)](/Skipped/))&&(_0x428f53[_0x5513c9(0x229)]&&(_0x38e905=_0x3d1ffd[_0x5513c9(0x268)](Date['now'](),new Date(_0x428f53[_0x5513c9(0x229)])['getTime']())));const _0x33ad88=_0x428f53['fn']?_0x428f53['fn'][_0x5513c9(0x228)]():null,_0x50c21a={'id':_0x37fc55,'uuid':_0x37fc55,'startedAt':_0x428f53[_0x5513c9(0x229)]||new Date()['toISOString'](),'finishedAt':_0xcbd6fa[_0x5513c9(0x245)](/Finished/)||_0xcbd6fa[_0x5513c9(0x245)](/Skipped/)?new Date()[_0x5513c9(0x26d)]():null,'type':_0x3d1ffd[_0x5513c9(0x22d)],'body':{'lang':_0x3d1ffd[_0x5513c9(0x24d)],'code':_0x33ad88},'name':_0x101e34,'errorsDetailed':_0x3d1ffd['tLwQi'](_0x4e634c?.[_0x5513c9(0x20d)],0x0)?_0x4e634c[0x0]:_0x4e634c?_0x4e634c:undefined,'scopes':_0x517d44,'file_name':_0x16fece,'location':_0x16fece,'vc_filepath':this[_0x5513c9(0x1dc)]&&_0x510b19?path[_0x5513c9(0x264)](this[_0x5513c9(0x1dc)],_0x510b19):null,'framework':_0x3d1ffd[_0x5513c9(0x1e6)],'result':_0x508d0f,'failure_reason':_0x47c468,'duration_in_ms':_0x38e905,'failure':failureData['apply'](null,_0x1043a6),'failure_type':!_0x47c468?null:_0x3d1ffd['RtRdR'](getFailureType,_0x47c468),'retry_of':_0x428f53[_0x5513c9(0x20a)]||null,'customRerunParam':{'rerun_name':_0x101e34}};_0x3d1ffd[_0x5513c9(0x267)](_0xcbd6fa,_0x3d1ffd['IbgHb'])&&!_0x50c21a['startedAt']&&(_0x50c21a[_0x5513c9(0x25a)]=_0x50c21a[_0x5513c9(0x25d)]);const _0x289222=_0x50c21a[_0x5513c9(0x211)]&&_0x50c21a[_0x5513c9(0x211)][0x0];return _0x289222&&(_0x50c21a[_0x5513c9(0x259)]=_0x289222['backtrace'],_0x50c21a[_0x5513c9(0x266)]=_0x289222[_0x5513c9(0x288)]),(_0x3d1ffd[_0x5513c9(0x282)](_0xcbd6fa,_0x3d1ffd['cfqrQ'])||_0x3d1ffd[_0x5513c9(0x267)](_0xcbd6fa,_0x3d1ffd[_0x5513c9(0x251)]))&&(_0x428f53[_0x5513c9(0x27b)]&&(_0x50c21a['hooks']=_0x428f53[_0x5513c9(0x27b)])),_0x50c21a;}catch(_0x3f7e3d){return logger[_0x5513c9(0x237)]('Exception\x20in\x20createTestFrameworkData:\x20'+util[_0x5513c9(0x24f)](_0x3f7e3d)),null;}}async['createHookData'](_0x23d90a,_0x5e1432,_0x523200,_0x1fdffc){const _0x590538=a124_0x5d5489,_0x47d4cc={'TqvZK':_0x590538(0x289),'yTdUH':_0x590538(0x1ee),'hgkEJ':'browserstack-node-agent/src/bin/jest','rBDmy':_0x590538(0x283),'qFpCU':_0x590538(0x21e),'kmegQ':function(_0x1fbe59,_0x3c2c8f){return _0x1fbe59===_0x3c2c8f;},'SQQuz':_0x590538(0x1f9),'Rxtha':function(_0x274dcb,_0x277127){return _0x274dcb>_0x277127;},'Yynul':'failed','doLaU':function(_0x54b72c,_0x12d7d4){return _0x54b72c(_0x12d7d4);},'CIyEP':_0x590538(0x276),'hyiFA':_0x590538(0x286),'IvnsI':_0x590538(0x26a),'cdKGA':_0x590538(0x24c),'kxBZb':'jest','kPHNK':function(_0x3dc020,_0x5ceb88){return _0x3dc020===_0x5ceb88;},'ncFHl':_0x590538(0x281)};logger[_0x590538(0x237)](_0x590538(0x1f2)+_0x523200+_0x590538(0x22f)+_0x5e1432+_0x590538(0x1fb)+_0x1fdffc);try{if(!_0x23d90a)return logger[_0x590538(0x237)](_0x47d4cc['TqvZK']),null;if(this['isJestInternalHook'](_0x23d90a))return null;await this['configureGit']();let _0xb90d5e=null;try{_0xb90d5e=this[_0x590538(0x240)](_0x23d90a);if(_0xb90d5e&&_0xb90d5e[_0x590538(0x200)](_0x47d4cc['yTdUH']))return null;if(_0xb90d5e&&_0xb90d5e['includes'](_0x47d4cc[_0x590538(0x249)]))return null;}catch(_0x30d5bc){logger[_0x590538(0x237)](_0x590538(0x1e7)+util['format'](_0x30d5bc));}const _0x73b553=_0xb90d5e?this[_0x590538(0x23b)][_0x590538(0x244)](_0xb90d5e):_0xb90d5e,_0x1c643d=this[_0x590538(0x27a)](_0x23d90a),_0x5cb968=_0x23d90a[_0x590538(0x234)]||_0x47d4cc[_0x590538(0x252)],_0x59e2d8=HOOK_TYPES_MAP[_0x5cb968]||_0x5cb968[_0x590538(0x257)](),_0x462e56=_0x23d90a['parent']&&_0x23d90a[_0x590538(0x20e)]['name']?_0x23d90a[_0x590538(0x20e)][_0x590538(0x26f)]:'';let _0x3a6f30=_0x47d4cc[_0x590538(0x242)],_0x5b0096=null,_0x1dba3f=null,_0xc98ec0=null,_0x40dfdf=null;_0x47d4cc['kmegQ'](_0x523200,_0x47d4cc[_0x590538(0x208)])&&(_0x40dfdf=new Date()['toISOString'](),_0x23d90a[_0x590538(0x262)]&&_0x47d4cc[_0x590538(0x207)](_0x23d90a['errorsDetailed'][_0x590538(0x20d)],0x0)?(_0x3a6f30=_0x47d4cc[_0x590538(0x274)],_0x1dba3f=util[_0x590538(0x247)](_0x23d90a['errorsDetailed'][0x0]),_0x5b0096=_0x47d4cc[_0x590538(0x1ea)](getFailureType,_0x1dba3f),_0xc98ec0=failureData[_0x590538(0x246)](null,[_0x23d90a[_0x590538(0x262)],_0x47d4cc[_0x590538(0x1eb)]])):_0x3a6f30=_0x47d4cc['hyiFA']);const _0x17a542={'uuid':_0x5e1432,'type':_0x47d4cc[_0x590538(0x25b)],'hook_type':_0x59e2d8,'name':_0x1c643d,'body':{'lang':_0x47d4cc[_0x590538(0x27e)],'code':_0x23d90a['fn']?_0x23d90a['fn']['toString']():null},'tags':[],'test_run_id':_0x1fdffc,'scope':_0x462e56,'scopes':[_0x462e56],'file_name':_0x73b553,'location':_0x73b553,'vc_filepath':this[_0x590538(0x1dc)]&&_0xb90d5e?path[_0x590538(0x264)](this[_0x590538(0x1dc)],_0xb90d5e):null,'result':_0x3a6f30,'started_at':_0x23d90a[_0x590538(0x229)]||new Date()['toISOString'](),'finished_at':_0x40dfdf,'failure_type':_0x5b0096,'failure_reason':_0x1dba3f,'failure_data':_0xc98ec0,'framework':_0x47d4cc[_0x590538(0x1ef)]};return _0x47d4cc[_0x590538(0x28a)](_0x523200,_0x47d4cc['ncFHl'])&&(hooksMap[_0x1fdffc]?hooksMap[_0x1fdffc][_0x590538(0x1f7)](_0x17a542):hooksMap[_0x1fdffc]=[_0x17a542]),_0x17a542;}catch(_0x7dcef2){return logger[_0x590538(0x237)]('Exception\x20in\x20createHookData:\x20'+util[_0x590538(0x24f)](_0x7dcef2)),null;}}[a124_0x5d5489(0x254)](_0x419fd1,_0x275db7,_0xb90c5f){const _0x4e61ba=a124_0x5d5489,_0x2542b4={'fJaRa':function(_0x1607a6,_0x528734){return _0x1607a6>_0x528734;},'tWBgO':_0x4e61ba(0x1dd),'pDDec':function(_0x209784,_0x273ba9){return _0x209784(_0x273ba9);},'BVVgl':_0x4e61ba(0x276),'HDzCk':'passed'};try{const _0x584f69=hooksMap[_0x419fd1];if(!_0x584f69)return null;const _0xc0ac05=_0x584f69['find'](_0x12c427=>_0x12c427['uuid']===_0x275db7);if(!_0xc0ac05)return null;return _0xc0ac05[_0x4e61ba(0x22a)]=new Date()['toISOString'](),_0xb90c5f[_0x4e61ba(0x262)]&&_0x2542b4[_0x4e61ba(0x263)](_0xb90c5f[_0x4e61ba(0x262)][_0x4e61ba(0x20d)],0x0)?(_0xc0ac05[_0x4e61ba(0x226)]=_0x2542b4[_0x4e61ba(0x270)],_0xc0ac05[_0x4e61ba(0x1f0)]=util[_0x4e61ba(0x247)](_0xb90c5f['errorsDetailed'][0x0]),_0xc0ac05[_0x4e61ba(0x28c)]=_0x2542b4['pDDec'](getFailureType,_0xc0ac05[_0x4e61ba(0x1f0)]),_0xc0ac05[_0x4e61ba(0x202)]=failureData[_0x4e61ba(0x246)](null,[_0xb90c5f['errorsDetailed'],_0x2542b4[_0x4e61ba(0x1fa)]])):_0xc0ac05[_0x4e61ba(0x226)]=_0x2542b4['HDzCk'],_0xc0ac05;}catch(_0x5f54d6){return logger[_0x4e61ba(0x237)](_0x4e61ba(0x24e)+util[_0x4e61ba(0x24f)](_0x5f54d6)),null;}}[a124_0x5d5489(0x27a)](_0x189687){const _0x5e4728=a124_0x5d5489,_0x126326={};_0x126326[_0x5e4728(0x218)]=function(_0x16aa01,_0x3a5294){return _0x16aa01!==_0x3a5294;},_0x126326['tTXNz']='test',_0x126326[_0x5e4728(0x1db)]='Unknown\x20Test';const _0x116b74=_0x126326;if(_0x116b74[_0x5e4728(0x218)](_0x189687[_0x5e4728(0x234)],_0x116b74[_0x5e4728(0x216)]))return'\x22'+_0x189687[_0x5e4728(0x234)]+_0x5e4728(0x221)+(_0x189687[_0x5e4728(0x20e)]&&_0x189687[_0x5e4728(0x20e)]['name'])+'\x22';return _0x189687['name']||_0x116b74[_0x5e4728(0x1db)];}['getHierarchy'](_0x408de3){const _0x2ea23e=a124_0x5d5489,_0x1153fb={};_0x1153fb[_0x2ea23e(0x25e)]=function(_0x38768f,_0x2d310d){return _0x38768f!==_0x2d310d;},_0x1153fb['IXbvL']=function(_0x3d5997,_0x58b58c){return _0x3d5997!==_0x58b58c;},_0x1153fb[_0x2ea23e(0x1de)]=_0x2ea23e(0x1e1);const _0x384275=_0x1153fb,_0x1901f3=[];if(_0x408de3&&_0x408de3[_0x2ea23e(0x20e)]){let _0x1b1acf=_0x408de3['parent'];while(_0x1b1acf&&_0x1b1acf['name']&&_0x384275[_0x2ea23e(0x25e)](_0x1b1acf[_0x2ea23e(0x26f)],'')&&_0x384275[_0x2ea23e(0x21c)](_0x1b1acf[_0x2ea23e(0x26f)],_0x384275['ZAxbY'])){_0x1901f3[_0x2ea23e(0x1f7)](_0x1b1acf[_0x2ea23e(0x26f)]),_0x1b1acf=_0x1b1acf['parent'];}}return _0x1901f3[_0x2ea23e(0x27f)](),_0x1901f3;}[a124_0x5d5489(0x240)](_0x5c9b12){const _0x19ad80=a124_0x5d5489,_0xec7a84={'ucCYs':function(_0x130d03,_0x5f2989){return _0x130d03(_0x5f2989);}};if(_0x5c9b12[_0x19ad80(0x232)])return _0x5c9b12[_0x19ad80(0x232)];if(_0x5c9b12[_0x19ad80(0x26c)])try{const _0x1b97be=stackTrace[_0x19ad80(0x231)]['call'](stackTrace,_0x5c9b12['asyncError']),_0x38b85a=_0xec7a84[_0x19ad80(0x233)](pickUserFrameFile,_0x1b97be);if(_0x38b85a)return _0x38b85a;logger['debug'](_0x19ad80(0x280)+_0x1b97be['length']+')');}catch(_0x5b9342){logger[_0x19ad80(0x237)](_0x19ad80(0x204)+util['format'](_0x5b9342));}return null;}['isJestInternalHook'](_0x18e955){const _0x4c08b4=a124_0x5d5489,_0xc21a7c={};_0xc21a7c['lhKWk']=_0x4c08b4(0x1ee);const _0x1ac5f2=_0xc21a7c;try{const _0xa6cd80=this[_0x4c08b4(0x240)](_0x18e955);if(!_0xa6cd80||_0xa6cd80[_0x4c08b4(0x200)](_0x1ac5f2[_0x4c08b4(0x241)]))return!![];}catch(_0x345d5e){logger[_0x4c08b4(0x237)](_0x4c08b4(0x219)+util['format'](_0x345d5e));}return![];}[a124_0x5d5489(0x275)](_0x11402a=null){const _0x24a68f=a124_0x5d5489;try{const _0x23cc3c=_0x11402a||global['__workerDetails']||{};if(global[_0x24a68f(0x273)])return global['__jestCurrentTestIdentifier'];if(_0x23cc3c?.[_0x24a68f(0x1e0)]?.[_0x24a68f(0x21b)])return _0x23cc3c['currentTest'][_0x24a68f(0x21b)];if(_0x23cc3c?.['currentTest']?.['id'])return _0x23cc3c[_0x24a68f(0x1e0)]['id'];return null;}catch(_0x2855ff){return logger[_0x24a68f(0x237)](_0x24a68f(0x23d)+util[_0x24a68f(0x24f)](_0x2855ff)),null;}}async['configureGit'](){const _0x401118=a124_0x5d5489,_0x342ae8={'oJYoy':function(_0x595968){return _0x595968();}};if(this[_0x401118(0x236)])return this[_0x401118(0x1dc)];const _0x5e8eea=await _0x342ae8['oJYoy'](getGitMetaData);_0x5e8eea&&(this[_0x401118(0x1dc)]=_0x5e8eea['root']),this[_0x401118(0x236)]=!![];}[a124_0x5d5489(0x24b)](_0x4ee156){hooksMap[_0x4ee156]&&delete hooksMap[_0x4ee156];}[a124_0x5d5489(0x1f6)](_0x46c746){const _0x5610d6=a124_0x5d5489,_0x1b5dbc={'rWHFl':_0x5610d6(0x1ee),'ZZVGX':function(_0x51dfb5,_0x279c03){return _0x51dfb5(_0x279c03);},'fLxVW':_0x5610d6(0x212)};if(_0x46c746[_0x5610d6(0x232)])return _0x46c746['file'];if(_0x46c746[_0x5610d6(0x26c)]){try{const _0x35004e=stackTrace[_0x5610d6(0x231)](_0x46c746[_0x5610d6(0x26c)]);if(_0x35004e[0x0]&&_0x35004e[0x0][_0x5610d6(0x203)]){const _0x456e05=_0x35004e[0x0][_0x5610d6(0x203)]();if(_0x456e05&&!_0x456e05[_0x5610d6(0x200)](_0x1b5dbc[_0x5610d6(0x269)]))return _0x456e05;}}catch(_0x38ac97){logger['debug'](_0x5610d6(0x23a)+util['format'](_0x38ac97));}if(_0x46c746[_0x5610d6(0x26c)][_0x5610d6(0x277)]){const _0x57d758=_0x46c746[_0x5610d6(0x26c)][_0x5610d6(0x277)][_0x5610d6(0x227)]('\x0a');for(const _0x20bcb4 of _0x57d758){const _0x37e680=_0x20bcb4['match'](/at (.+?):\d+:\d+/);if(_0x37e680&&_0x37e680[0x1]&&!_0x37e680[0x1][_0x5610d6(0x200)](_0x1b5dbc[_0x5610d6(0x269)]))return _0x37e680[0x1];}}}let _0x39ccd1=_0x46c746[_0x5610d6(0x20e)];while(_0x39ccd1){if(_0x39ccd1['file'])return _0x39ccd1[_0x5610d6(0x232)];if(_0x39ccd1[_0x5610d6(0x26c)])try{const _0x881c96=stackTrace[_0x5610d6(0x231)](_0x39ccd1[_0x5610d6(0x26c)]);if(_0x881c96[0x0]&&_0x881c96[0x0][_0x5610d6(0x203)]){const _0x44b828=_0x881c96[0x0]['getFileName']();if(_0x44b828&&!_0x44b828[_0x5610d6(0x200)](_0x1b5dbc['rWHFl']))return _0x44b828;}}catch(_0x1354cb){}_0x39ccd1=_0x39ccd1[_0x5610d6(0x20e)];}try{const _0x56fb9d=_0x1b5dbc[_0x5610d6(0x261)](require,_0x1b5dbc[_0x5610d6(0x248)]);if(_0x56fb9d&&_0x56fb9d[_0x5610d6(0x287)]){const _0x2bfc82=_0x56fb9d['getState']();if(_0x2bfc82&&_0x2bfc82['testPath'])return _0x2bfc82[_0x5610d6(0x285)];}}catch(_0x2795b5){logger['debug'](_0x5610d6(0x230)+util[_0x5610d6(0x24f)](_0x2795b5));}return null;}[a124_0x5d5489(0x223)](_0x58d3a0){const _0x5b3641=a124_0x5d5489,_0x2be1be={};_0x2be1be['FIqGK']=_0x5b3641(0x20f),_0x2be1be[_0x5b3641(0x239)]=function(_0x5eb278,_0xb88ee6){return _0x5eb278!==_0xb88ee6;},_0x2be1be['DHRFZ']=_0x5b3641(0x1e1),_0x2be1be[_0x5b3641(0x278)]=_0x5b3641(0x1ee),_0x2be1be[_0x5b3641(0x1f5)]='md5',_0x2be1be['EEExJ']='hex';const _0x8c989f=_0x2be1be;try{if(!_0x58d3a0)return logger['error'](_0x8c989f['FIqGK']),null;const _0x568d2f=_0x58d3a0[_0x5b3641(0x220)]||_0x58d3a0[_0x5b3641(0x26f)]||_0x58d3a0[_0x5b3641(0x27d)]||_0x58d3a0[_0x5b3641(0x1e2)];let _0x460f15=_0x568d2f;if(_0x58d3a0[_0x5b3641(0x20e)]&&_0x58d3a0[_0x5b3641(0x20e)][_0x5b3641(0x26f)]&&_0x8c989f[_0x5b3641(0x239)](_0x58d3a0['parent'][_0x5b3641(0x26f)],_0x8c989f[_0x5b3641(0x272)])){const _0x3aae59=_0x58d3a0['name']||_0x58d3a0[_0x5b3641(0x27d)];_0x3aae59&&(_0x460f15=_0x58d3a0[_0x5b3641(0x20e)][_0x5b3641(0x26f)]+'\x20'+_0x3aae59);}let _0x28a7e7=_0x58d3a0[_0x5b3641(0x285)];if(!_0x28a7e7&&_0x58d3a0[_0x5b3641(0x26c)]){try{const _0x4d9354=stackTrace[_0x5b3641(0x231)](_0x58d3a0[_0x5b3641(0x26c)]);if(_0x4d9354[0x0]&&_0x4d9354[0x0]['getFileName']){const _0x1c6946=_0x4d9354[0x0][_0x5b3641(0x203)]();_0x1c6946&&!_0x1c6946['includes'](_0x8c989f[_0x5b3641(0x278)])&&(_0x28a7e7=_0x1c6946);}}catch(_0x28e087){logger[_0x5b3641(0x237)](_0x5b3641(0x23a)+util[_0x5b3641(0x24f)](_0x28e087));}if(!_0x28a7e7&&_0x58d3a0[_0x5b3641(0x26c)]['stack']){const _0x57a769=_0x58d3a0[_0x5b3641(0x26c)][_0x5b3641(0x277)][_0x5b3641(0x227)]('\x0a');for(const _0xe0dfb2 of _0x57a769){const _0x253a0a=_0xe0dfb2['match'](/at (.+?):\d+:\d+/);if(_0x253a0a&&_0x253a0a[0x1]&&!_0x253a0a[0x1][_0x5b3641(0x200)](_0x8c989f[_0x5b3641(0x278)])){_0x28a7e7=_0x253a0a[0x1];break;}}}}const _0x3cc6e6=_0x28a7e7+'::'+_0x460f15,_0xc0290a=crypto[_0x5b3641(0x258)](_0x8c989f[_0x5b3641(0x1f5)])[_0x5b3641(0x243)](_0x3cc6e6)[_0x5b3641(0x205)](_0x8c989f[_0x5b3641(0x225)])[_0x5b3641(0x25f)](0x0,0x8),_0x2a411d=process[_0x5b3641(0x1e3)]+_0x5b3641(0x279)+_0xc0290a;return logger[_0x5b3641(0x237)](_0x5b3641(0x1e8)+_0x2a411d+'\x20from\x20compositeKey:\x20'+_0x3cc6e6),_0x2a411d;}catch(_0x1908ef){return logger[_0x5b3641(0x222)](_0x5b3641(0x1e5)+util[_0x5b3641(0x24f)](_0x1908ef)),null;}}['createIdentifierFromJestTest'](_0x805fa9){const _0x2afe41=a124_0x5d5489,_0x253b1f={};_0x253b1f['ehaqj']=_0x2afe41(0x250);const _0x192b1e=_0x253b1f;if(!_0x805fa9)return logger[_0x2afe41(0x237)](_0x192b1e['ehaqj']),null;const _0x48e986=this[_0x2afe41(0x1f6)](_0x805fa9),_0x3e27ee={};_0x3e27ee[_0x2afe41(0x26f)]=_0x805fa9[_0x2afe41(0x26f)]||_0x805fa9[_0x2afe41(0x27d)],_0x3e27ee[_0x2afe41(0x20e)]=_0x805fa9['parent'],_0x3e27ee['testPath']=_0x48e986,_0x3e27ee[_0x2afe41(0x26c)]=_0x805fa9['asyncError'];const _0x58e216=_0x3e27ee;return this[_0x2afe41(0x223)](_0x58e216);}['recreateIdentifierFromTestInfo'](_0x15f0ac,_0x3a5edb=null){const _0xa9dbec=a124_0x5d5489,_0x3f5178={};_0x3f5178[_0xa9dbec(0x1f8)]='[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation';const _0x1c9b14=_0x3f5178;if(!_0x15f0ac)return logger[_0xa9dbec(0x237)](_0x1c9b14['zJuAx']),_0x3a5edb;if(_0x15f0ac['testIdentifier'])return logger[_0xa9dbec(0x237)]('[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20'+_0x15f0ac[_0xa9dbec(0x256)]),_0x15f0ac[_0xa9dbec(0x256)];return this[_0xa9dbec(0x223)](_0x15f0ac)||_0x3a5edb;}}module[a124_0x5d5489(0x22e)]=o11yClassErrorHandler(JestUtils,['configureGit',a124_0x5d5489(0x210),a124_0x5d5489(0x240),a124_0x5d5489(0x27a),a124_0x5d5489(0x209),'getTestIdentifier',a124_0x5d5489(0x23c),a124_0x5d5489(0x21a),a124_0x5d5489(0x254),'clearHooksMap','extractTestFilePath',a124_0x5d5489(0x223),'createIdentifierFromJestTest','recreateIdentifierFromTestInfo']);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a121_0x4764(){const _0x2b52fc=['message','getPackageVersion','setBrowserstackConfig','File\x20path\x20is\x20required','handleApp','bcwty','QpUoR','2435805GMbkoR','1568660PuPMuk','SDK_SETUP','BROWSERSTACK_SKIP_SESSION_NAME','deviceName','[TRACE:node-generic]\x20beforeExit\x20safety\x20net\x20—\x20stopping\x20binary','getBrowserDisplayName','parallelsPerPlatform','WKZee','index','then','jLAsn','file','getPlatformName','991305QKpVud','[TRACE:node-generic]\x20Binary\x20bootstrapped,\x20starting\x20parallelVanillaRun','LXOvC','sHiST','push','configuration','../utils/constants','\x20resolves\x20outside\x20the\x20project\x20directory\x20and\x20was\x20rejected','../v2/browserstackCLI','101WOAhNi','parse','configPath','tywTe','warn','../../helpers/BrowserStackSetup','isVersionSupported','config','1328253xaCakb','[TRACE:node-generic]\x20Accessibility:\x20enabled=','assign','winstonLogger','debug','\x20browser\x20version\x20greater\x20than\x20','modifyBrowserStackW3CCaps','../../helpers/accessibility-automation/helper','proxySettings','browser_version','IWNyv','browserName','BROWSERSTACK_PRODUCT_MAP','length','stringify','finally','lKjzL','accessibilityOptions','FAOmt','SDK_CLEANUP','rMEvQ','end','BROWSERSTACK_TEST_ACCESSIBILITY_YML','[TRACE:node-generic]\x20CLI\x20enabled\x20—\x20using\x20Binary\x20Flow','EVENTS',':\x20the\x20JSON-wire\x20protocol\x20was\x20removed\x20in\x20selenium-webdriver\x204,\x20so\x20this\x20run\x20will\x20use\x20W3C.\x20Pin\x20selenium-webdriver\x203.x\x20if\x20an\x20MJSONWP\x20session\x20is\x20required.','env','info','useW3C:\x20false\x20has\x20no\x20effect\x20with\x20selenium-webdriver\x20','bootstrap','2013704ugWCDG','browserstack.accessibilityOptions.scannerVersion','launchBuild','forEach','8lpqGKN','__accessibilityOptions','qXqct','Config\x20yml\x20is\x20required','BROWSERSTACK_SKIP_SESSION_STATUS','setupBrowserstackLocal','vanilla','isFinite','exports','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','isChildConnected','3872105UEbjaq','isUndefined','vCycL','Accessibility\x20Automation\x20is\x20not\x20supported\x20with\x20w3c:\x20false.\x20Skipping\x20accessibility\x20for\x20this\x20run.','[TRACE:node-generic]\x20Error\x20during\x20stop:\x20','start','xcdhK','../test-runner','../../helpers/logger','isTrue','DHzrK','useW3C','ookQl','../../helpers/testhub/testhubHandler','getHubUrl','beforeExit','GULJp','PqmBE','NODE_GENERIC','finalExecution','6WVOmzW','../../helpers/performance/constants','isBrowserSupportedForAccessibility','../v2/cliUtils','11762PqSJRN','args','modifyBrowserStackCaps','[TRACE:node-generic]\x20Accessibility\x20config\x20enriched\x20with\x20binary\x20scannerVersion=','existsSync','stop','ZVmkp','platforms','startsWith','../../helpers/performance/performance-tester','accessibility','Mdslz','path','BECkb','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','\x20doesn\x27t\x20exist','isCliEnabled','[TRACE:node-generic]\x20parallelVanillaRun\x20complete,\x20stopping\x20binary','FiooH','isMainConnected','isBrowserstackInfra','[TRACE:node-generic]\x20Error\x20enriching\x20accessibility\x20config:\x20','browserVersion','isRunning'];a121_0x4764=function(){return _0x2b52fc;};return a121_0x4764();}function a121_0x204f(_0x312d13,_0xa7142e){const _0x476469=a121_0x4764();return a121_0x204f=function(_0x204fb3,_0x428bc8){_0x204fb3=_0x204fb3-0x105;let _0x31638c=_0x476469[_0x204fb3];return _0x31638c;},a121_0x204f(_0x312d13,_0xa7142e);}const a121_0x12c59d=a121_0x204f;(function(_0x259f8a,_0x83055d){const _0x2f283a=a121_0x204f,_0x5e5e20=_0x259f8a();while(!![]){try{const _0x2375b7=parseInt(_0x2f283a(0x143))/0x1*(parseInt(_0x2f283a(0x10d))/0x2)+-parseInt(_0x2f283a(0x14b))/0x3+-parseInt(_0x2f283a(0x169))/0x4+-parseInt(_0x2f283a(0x178))/0x5*(-parseInt(_0x2f283a(0x109))/0x6)+parseInt(_0x2f283a(0x13a))/0x7*(-parseInt(_0x2f283a(0x16d))/0x8)+parseInt(_0x2f283a(0x12c))/0x9+-parseInt(_0x2f283a(0x12d))/0xa;if(_0x2375b7===_0x83055d)break;else _0x5e5e20['push'](_0x5e5e20['shift']());}catch(_0x28823c){_0x5e5e20['push'](_0x5e5e20['shift']());}}}(a121_0x4764,0x60495));const fs=require('fs'),path=require(a121_0x12c59d(0x119)),{default:BrowserStackSetup}=require(a121_0x12c59d(0x148)),helper=require('../../helpers/helper'),PerformanceTester=require(a121_0x12c59d(0x116)),PerformanceEvents=require(a121_0x12c59d(0x10a))[a121_0x12c59d(0x163)],utilities=require('../../helpers/utilities'),{parallelVanillaRun}=require(a121_0x12c59d(0x17f)),TestHubHandler=require(a121_0x12c59d(0x185)),BrowserstackCLI=require(a121_0x12c59d(0x142)),logger=require(a121_0x12c59d(0x180))[a121_0x12c59d(0x14e)],CLIUtils=require(a121_0x12c59d(0x10c)),{FRAMEWORKS}=require(a121_0x12c59d(0x140)),accessibilityHelper=require(a121_0x12c59d(0x152));async function run(_0x27d774,_0x42f88d,_0x425089){const _0x2a2e8e=a121_0x12c59d,_0x341f46={'DHzrK':_0x2a2e8e(0x173),'JbaDv':_0x2a2e8e(0x11b),'GULJp':function(_0x2b7ec4,_0x40715f){return _0x2b7ec4(_0x40715f);},'vCycL':function(_0x4a2f41,_0xb6592e){return _0x4a2f41(_0xb6592e);},'sHiST':function(_0x596ff5,_0xfdae6c){return _0x596ff5(_0xfdae6c);},'bcwty':function(_0x1bacfb,_0x4d525f){return _0x1bacfb(_0x4d525f);},'FiooH':function(_0x256d07,_0x111bb){return _0x256d07>_0x111bb;},'WKZee':'on\x20non-BrowserStack\x20infrastructure\x20','jLAsn':_0x2a2e8e(0x131),'FAOmt':function(_0x91c82d,_0x3281ac){return _0x91c82d(_0x3281ac);},'VkGqB':_0x2a2e8e(0x128),'Luels':function(_0x1195c3,_0x585cc4){return _0x1195c3!==_0x585cc4;},'qXqct':function(_0x3437eb,_0x3a0076){return _0x3437eb+_0x3a0076;},'xcdhK':function(_0x2ce5c3,_0x227dd9){return _0x2ce5c3(_0x227dd9);},'IWNyv':_0x2a2e8e(0x170),'dWLcs':'selenium-webdriver','QpUoR':function(_0x32487b,_0x54a4d8,_0x52dd53){return _0x32487b(_0x54a4d8,_0x52dd53);},'rvdsI':function(_0x185dc0,_0x3a434e){return _0x185dc0>=_0x3a434e;},'rMEvQ':function(_0x309cb6,_0x560570){return _0x309cb6>_0x560570;},'uzmZX':function(_0x2ac5ff,_0x5a7512){return _0x2ac5ff&&_0x5a7512;},'Mdslz':_0x2a2e8e(0x17b),'tywTe':function(_0xb30f14,_0x5308ae){return _0xb30f14(_0x5308ae);},'ookQl':'../../helpers/testhub/utils','bvCLc':_0x2a2e8e(0x162),'ZVmkp':_0x2a2e8e(0x13b),'klcqV':_0x2a2e8e(0x16a),'BECkb':function(_0x217cef,_0x3d57b5){return _0x217cef*_0x3d57b5;},'PqmBE':_0x2a2e8e(0x11e),'fIZPo':'[TRACE:node-generic]\x20CLI\x20not\x20enabled\x20—\x20using\x20Direct\x20Flow','lKjzL':function(_0x3fa71b,_0x5c768b){return _0x3fa71b*_0x5c768b;},'LXOvC':_0x2a2e8e(0x187)};await _0x425089['initialize'](_0x27d774);!BrowserstackCLI['getInstance']()[_0x2a2e8e(0x124)]()&&await _0x425089[_0x2a2e8e(0x172)]();await helper[_0x2a2e8e(0x129)](_0x425089[_0x2a2e8e(0x14a)]);const _0xf190f0=[];if(helper['isUndefined'](_0x27d774['_'][0x1]))throw _0x341f46[_0x2a2e8e(0x15d)](Error,_0x341f46['VkGqB']);const _0x129360=process['cwd'](),_0x5a4a48=path['resolve'](_0x129360,_0x27d774['_'][0x1]);if(_0x341f46['Luels'](_0x5a4a48,_0x129360)&&!_0x5a4a48[_0x2a2e8e(0x115)](_0x341f46[_0x2a2e8e(0x16f)](_0x129360,path['sep'])))throw _0x341f46[_0x2a2e8e(0x17e)](Error,'File\x20path\x20'+_0x27d774['_'][0x1]+_0x2a2e8e(0x141));if(!fs[_0x2a2e8e(0x111)](_0x5a4a48))throw _0x341f46[_0x2a2e8e(0x13d)](Error,'File\x20'+_0x27d774['_'][0x1]+_0x2a2e8e(0x11c));if(!_0x425089[_0x2a2e8e(0x14a)])throw _0x341f46['xcdhK'](Error,_0x341f46[_0x2a2e8e(0x155)]);const _0x36a756=helper[_0x2a2e8e(0x183)](_0x425089['config']);if(!_0x36a756){const _0x252e88=helper[_0x2a2e8e(0x126)](_0x341f46['dWLcs']),_0x5c7000=_0x341f46[_0x2a2e8e(0x12b)](parseInt,_0x252e88,0xa);Number[_0x2a2e8e(0x174)](_0x5c7000)&&_0x341f46['rvdsI'](_0x5c7000,0x4)&&logger[_0x2a2e8e(0x147)](_0x2a2e8e(0x167)+_0x252e88+_0x2a2e8e(0x164));}_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x114)]&&_0x341f46[_0x2a2e8e(0x15f)](_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x114)][_0x2a2e8e(0x158)],0x0)&&_0x425089[_0x2a2e8e(0x14a)]['platforms'][_0x2a2e8e(0x16c)]((_0x1424f0,_0x4fc969)=>{const _0x2a8c96=_0x2a2e8e;_0x36a756?_0xf190f0[_0x2a8c96(0x13e)](helper[_0x2a8c96(0x151)](_0x425089[_0x2a8c96(0x14a)],_0x341f46[_0x2a8c96(0x182)],_0x4fc969)):_0xf190f0[_0x2a8c96(0x13e)](helper[_0x2a8c96(0x10f)](_0x425089[_0x2a8c96(0x14a)],_0x341f46[_0x2a8c96(0x182)],_0x4fc969));});let _0x13250a,_0x403dc0;const _0xa67e92=[];if(_0x341f46[_0x2a2e8e(0x11f)](_0xf190f0[_0x2a2e8e(0x158)],0x0))_0xf190f0['forEach']((_0x30d11b,_0x2f4dd7)=>{const _0x22ae49=_0x2a2e8e,_0x3fdd47={};_0x3fdd47[_0x22ae49(0x135)]=_0x2f4dd7,_0x13250a={'server':helper[_0x22ae49(0x186)](_0x425089['config']),'proxySettings':_0x425089[_0x22ae49(0x14a)]['proxySettings'],'platform':helper[_0x22ae49(0x139)](_0x30d11b),'platformCaps':Object[_0x22ae49(0x14d)](_0x3fdd47,_0x425089[_0x22ae49(0x14a)]['platforms'][_0x2f4dd7])};const _0x5b956b={'capability':_0x30d11b,..._0x13250a};_0x5b956b[_0x22ae49(0x138)]=_0x5a4a48,_0x5b956b[_0x22ae49(0x10e)]=_0x42f88d;const _0x1a938f={};_0x1a938f[_0x22ae49(0x13f)]=_0x5b956b,_0x403dc0=_0x1a938f,_0xa67e92[_0x22ae49(0x13e)](_0x403dc0);});else{let _0x507ccf;_0x36a756?_0x507ccf=helper['modifyBrowserStackW3CCaps'](_0x425089[_0x2a2e8e(0x14a)],_0x341f46[_0x2a2e8e(0x182)],0x0):_0x507ccf=helper[_0x2a2e8e(0x10f)](_0x425089[_0x2a2e8e(0x14a)],_0x341f46[_0x2a2e8e(0x182)],0x0);_0x13250a={'server':helper[_0x2a2e8e(0x186)](_0x425089[_0x2a2e8e(0x14a)]),'proxySettings':_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x153)]};const _0x2ff434={'capability':_0x507ccf,..._0x13250a};_0x2ff434[_0x2a2e8e(0x138)]=_0x5a4a48,_0x2ff434['args']=_0x42f88d;const _0x355578={};_0x355578[_0x2a2e8e(0x13f)]=_0x2ff434,_0x403dc0=_0x355578,_0xa67e92[_0x2a2e8e(0x13e)](_0x403dc0);}const _0x5f45ef=_0x425089[_0x2a2e8e(0x14a)]['testContextOptions']||{};process[_0x2a2e8e(0x165)][_0x2a2e8e(0x12f)]=_0x341f46['vCycL'](String,helper[_0x2a2e8e(0x181)](_0x5f45ef['skipSessionName'])),process[_0x2a2e8e(0x165)][_0x2a2e8e(0x171)]=_0x341f46['sHiST'](String,helper[_0x2a2e8e(0x181)](_0x5f45ef['skipSessionStatus']));!helper[_0x2a2e8e(0x179)](_0x425089['config'][_0x2a2e8e(0x15c)])&&(process['env'][_0x2a2e8e(0x176)]=JSON[_0x2a2e8e(0x159)](_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x15c)]));let _0x47faab=_0x425089['config'][_0x2a2e8e(0x117)];_0x47faab=_0x47faab||accessibilityHelper['checkAccessibilityPlatformConfig'](_0x425089['config']);_0x341f46['uzmZX'](_0x47faab,!_0x36a756)&&(logger['warn'](_0x341f46[_0x2a2e8e(0x118)]),_0x47faab=![]);process[_0x2a2e8e(0x165)][_0x2a2e8e(0x161)]=_0x47faab;if(_0x47faab){const _0x4cd209=helper[_0x2a2e8e(0x121)]();(_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x114)]||[])['forEach'](_0x51bd12=>{const _0x4ce3eb=_0x2a2e8e;if(!_0x51bd12||_0x51bd12[_0x4ce3eb(0x130)])return;const _0x63e179=_0x51bd12[_0x4ce3eb(0x156)];if(!accessibilityHelper[_0x4ce3eb(0x10b)](_0x63e179)){logger[_0x4ce3eb(0x147)](_0x341f46['JbaDv']);return;}const _0x15029b=_0x51bd12[_0x4ce3eb(0x123)]||_0x51bd12[_0x4ce3eb(0x154)];if(helper[_0x4ce3eb(0x179)](_0x15029b)||!Number[_0x4ce3eb(0x174)](_0x341f46[_0x4ce3eb(0x105)](parseFloat,_0x341f46['vCycL'](String,_0x15029b))))return;const _0x1034ec=accessibilityHelper['getMinVersionForBrowser'](_0x63e179,_0x4cd209),_0x4358e0=_0x341f46[_0x4ce3eb(0x17a)](parseFloat,_0x1034ec),_0xec02b4=_0x341f46[_0x4ce3eb(0x13d)](parseFloat,_0x341f46['bcwty'](String,_0x15029b)),_0x911369=Number[_0x4ce3eb(0x174)](_0x4358e0)?_0x341f46[_0x4ce3eb(0x11f)](_0xec02b4,_0x4358e0):accessibilityHelper[_0x4ce3eb(0x149)](_0x15029b,_0x1034ec);if(!_0x911369){const _0x5f1828=accessibilityHelper[_0x4ce3eb(0x132)](_0x63e179),_0x253b25=_0x4cd209?'':_0x341f46[_0x4ce3eb(0x134)];logger['warn']('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x5f1828+_0x4ce3eb(0x150)+_0x1034ec+'\x20'+_0x253b25+'.');}});}logger[_0x2a2e8e(0x166)](_0x2a2e8e(0x14c)+_0x47faab);const _0x271084=BrowserstackCLI['getInstance']();CLIUtils['setFrameworkDetail'](FRAMEWORKS[_0x2a2e8e(0x107)],FRAMEWORKS[_0x2a2e8e(0x107)]);const {getProductMap:_0xd91a66}=_0x341f46[_0x2a2e8e(0x146)](require,_0x341f46[_0x2a2e8e(0x184)]);process[_0x2a2e8e(0x165)][_0x2a2e8e(0x157)]=JSON[_0x2a2e8e(0x159)](_0x341f46[_0x2a2e8e(0x12a)](_0xd91a66,_0x425089[_0x2a2e8e(0x14a)])),_0x271084[_0x2a2e8e(0x127)](_0x425089[_0x2a2e8e(0x14a)],_0x425089[_0x2a2e8e(0x145)],_0x425089['cliConfig']);if(_0x271084[_0x2a2e8e(0x11d)]()){logger[_0x2a2e8e(0x166)](_0x341f46['bvCLc']);try{await _0x271084[_0x2a2e8e(0x168)](),logger['info'](_0x341f46[_0x2a2e8e(0x113)]);try{const _0xefec49=global[_0x2a2e8e(0x16e)]||{},_0x28fac1=_0xefec49[_0x341f46['klcqV']];if(_0x28fac1){const _0x23069c=JSON[_0x2a2e8e(0x144)](process[_0x2a2e8e(0x165)][_0x2a2e8e(0x176)]||'{}');_0x23069c['scannerVersion']=_0x28fac1,process[_0x2a2e8e(0x165)][_0x2a2e8e(0x176)]=JSON['stringify'](_0x23069c),logger['info'](_0x2a2e8e(0x110)+_0x28fac1);}}catch(_0x588896){logger[_0x2a2e8e(0x14f)](_0x2a2e8e(0x122)+_0x588896['message']);}const _0x39d0b9=_0x341f46[_0x2a2e8e(0x11a)](_0x425089['config']['platforms']['length']||0x1,_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x133)]||0x1);PerformanceTester['end'](PerformanceEvents[_0x2a2e8e(0x12e)]),await _0x341f46[_0x2a2e8e(0x12b)](parallelVanillaRun,_0xa67e92,_0x39d0b9),logger[_0x2a2e8e(0x166)](_0x341f46[_0x2a2e8e(0x106)]),await _0x271084[_0x2a2e8e(0x112)]();}catch(_0x492450){logger['error']('[TRACE:node-generic]\x20Binary\x20Flow\x20error:\x20'+_0x492450['message']);try{await _0x271084['stop']();}catch(_0x2c5741){logger[_0x2a2e8e(0x14f)](_0x2a2e8e(0x17c)+_0x2c5741[_0x2a2e8e(0x125)]);}}finally{PerformanceTester['start'](PerformanceEvents[_0x2a2e8e(0x15e)]),await utilities[_0x2a2e8e(0x108)](_0x425089);}}else{logger[_0x2a2e8e(0x166)](_0x341f46['fIZPo']);const _0x447208=await TestHubHandler[_0x2a2e8e(0x16b)](_0x341f46['DHzrK'],_0x425089),_0x48261f=_0x341f46[_0x2a2e8e(0x15b)](_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x114)][_0x2a2e8e(0x158)]||0x1,_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x133)]||0x1);PerformanceTester[_0x2a2e8e(0x160)](PerformanceEvents['SDK_SETUP']),_0x341f46[_0x2a2e8e(0x12b)](parallelVanillaRun,_0xa67e92,_0x48261f)[_0x2a2e8e(0x136)](_0x19ea2a=>{})[_0x2a2e8e(0x15a)](async()=>{const _0x13cd8d=_0x2a2e8e;PerformanceTester[_0x13cd8d(0x17d)](PerformanceEvents[_0x13cd8d(0x15e)]),await utilities[_0x13cd8d(0x108)](_0x425089);});}process['on'](_0x341f46[_0x2a2e8e(0x13c)],async()=>{const _0x51cf2d=_0x2a2e8e;try{(_0x271084[_0x51cf2d(0x120)]||_0x271084[_0x51cf2d(0x177)])&&(logger['info'](_0x341f46[_0x51cf2d(0x137)]),await _0x271084[_0x51cf2d(0x112)]());}catch(_0x48c104){}});}module[a121_0x12c59d(0x175)]=run;
|
|
2
|
+
'use strict';const a125_0xd0d202=a125_0x3c22;function a125_0x1dbf(){const _0x3e959e=['isUndefined',':\x20the\x20JSON-wire\x20protocol\x20was\x20removed\x20in\x20selenium-webdriver\x204,\x20so\x20this\x20run\x20will\x20use\x20W3C.\x20Pin\x20selenium-webdriver\x203.x\x20if\x20an\x20MJSONWP\x20session\x20is\x20required.','launchBuild','push','setFrameworkDetail','File\x20path\x20is\x20required','dvGlJ','[TRACE:node-generic]\x20Error\x20enriching\x20accessibility\x20config:\x20','JqGkM','platforms','useW3C:\x20false\x20has\x20no\x20effect\x20with\x20selenium-webdriver\x20','getPackageVersion','getInstance','isMainConnected','../../helpers/performance/performance-tester','path','2rNNwJg','file','sep','isFinite','bELVR','5NqhUGH','checkAccessibilityPlatformConfig','XhcZt','nylmA','zURbj','cliConfig','../../helpers/performance/constants','GVqZh','isVersionSupported','existsSync','message','WQgsC','354232jHoFud','env','BROWSERSTACK_SKIP_SESSION_NAME','qCKHW','26334fETXsU','setupBrowserstackLocal','../../helpers/BrowserStackSetup','[TRACE:node-generic]\x20Binary\x20Flow\x20error:\x20','nSTww','config','BfmaG','setBrowserstackConfig','\x20browser\x20version\x20greater\x20than\x20','start','getPlatformName','[TRACE:node-generic]\x20CLI\x20not\x20enabled\x20—\x20using\x20Direct\x20Flow','zRVax','info','modifyBrowserStackCaps','wegDp','470PflHlP','../test-runner','../v2/browserstackCLI','debug','LZUnx','browserName','scannerVersion','deviceName','proxySettings','parallelsPerPlatform','[TRACE:node-generic]\x20Binary\x20bootstrapped,\x20starting\x20parallelVanillaRun','SDK_SETUP','\x20doesn\x27t\x20exist','modifyBrowserStackW3CCaps','[TRACE:node-generic]\x20Error\x20during\x20stop:\x20','stringify','841668cgHYNm','isCliEnabled','assign','vIkjd','warn','SDK_CLEANUP','203SQVtQX','[TRACE:node-generic]\x20Accessibility\x20config\x20enriched\x20with\x20binary\x20scannerVersion=','egrTa','testContextOptions','qmvQg','AcqSH','[TRACE:node-generic]\x20parallelVanillaRun\x20complete,\x20stopping\x20binary','browserVersion','configuration','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Kjsmj','[TRACE:node-generic]\x20CLI\x20enabled\x20—\x20using\x20Binary\x20Flow','resolve','RpTbU','../v2/cliUtils','args','File\x20','skipSessionStatus','Config\x20yml\x20is\x20required','handleApp','length','initialize','3040208nWTgoK','winstonLogger','../../helpers/testhub/utils','end','isRunning','index','selenium-webdriver','DjyTe','startsWith','ZvPeP','865577iFdrHr','../../helpers/testhub/testhubHandler','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','aFydA','skipSessionName','File\x20path\x20','vanilla','then','[TRACE:node-generic]\x20Accessibility:\x20enabled=','exports','EVENTS','MsIbK','../../helpers/helper','parse','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','forEach','1652607lPSqKG','isTrue','finally','stop','fehTk','EpfHt','\x20resolves\x20outside\x20the\x20project\x20directory\x20and\x20was\x20rejected','2770134tvMnho','accessibilityOptions','../../helpers/accessibility-automation/helper','browserstack.accessibilityOptions.scannerVersion'];a125_0x1dbf=function(){return _0x3e959e;};return a125_0x1dbf();}(function(_0x26e49b,_0x500665){const _0x429c4d=a125_0x3c22,_0x3c29b1=_0x26e49b();while(!![]){try{const _0x176de8=-parseInt(_0x429c4d(0xa7))/0x1*(parseInt(_0x429c4d(0xd2))/0x2)+parseInt(_0x429c4d(0xbe))/0x3+-parseInt(_0x429c4d(0x9d))/0x4*(parseInt(_0x429c4d(0xd7))/0x5)+parseInt(_0x429c4d(0x107))/0x6+-parseInt(_0x429c4d(0x10d))/0x7*(-parseInt(_0x429c4d(0xe3))/0x8)+-parseInt(_0x429c4d(0xb7))/0x9+-parseInt(_0x429c4d(0xf7))/0xa*(-parseInt(_0x429c4d(0xe7))/0xb);if(_0x176de8===_0x500665)break;else _0x3c29b1['push'](_0x3c29b1['shift']());}catch(_0x27f99d){_0x3c29b1['push'](_0x3c29b1['shift']());}}}(a125_0x1dbf,0x9ef05));const fs=require('fs'),path=require(a125_0xd0d202(0xd1)),{default:BrowserStackSetup}=require(a125_0xd0d202(0xe9)),helper=require(a125_0xd0d202(0xb3)),PerformanceTester=require(a125_0xd0d202(0xd0)),PerformanceEvents=require(a125_0xd0d202(0xdd))[a125_0xd0d202(0xb1)],utilities=require('../../helpers/utilities'),{parallelVanillaRun}=require(a125_0xd0d202(0xf8)),TestHubHandler=require(a125_0xd0d202(0xa8)),BrowserstackCLI=require(a125_0xd0d202(0xf9)),logger=require('../../helpers/logger')[a125_0xd0d202(0x9e)],CLIUtils=require(a125_0xd0d202(0x11b)),{FRAMEWORKS}=require('../utils/constants'),accessibilityHelper=require(a125_0xd0d202(0xc0));async function run(_0x5f4464,_0xd58a10,_0x547453){const _0x3f96ef=a125_0xd0d202,_0x21096d={'WQgsC':_0x3f96ef(0xad),'BfmaG':_0x3f96ef(0xa9),'DjyTe':function(_0x50f0e9,_0x58a9c9){return _0x50f0e9(_0x58a9c9);},'vIkjd':function(_0x2cc06c,_0x1d8d0b){return _0x2cc06c(_0x1d8d0b);},'LZUnx':function(_0x13dd77,_0x148265){return _0x13dd77>_0x148265;},'QDjtB':'on\x20non-BrowserStack\x20infrastructure\x20','wegDp':'[TRACE:node-generic]\x20beforeExit\x20safety\x20net\x20—\x20stopping\x20binary','empwi':_0x3f96ef(0xc7),'AcqSH':function(_0x2afe48,_0x5c30cf){return _0x2afe48!==_0x5c30cf;},'EpfHt':function(_0x420798,_0x58ae0e){return _0x420798+_0x58ae0e;},'RpTbU':function(_0x5388ea,_0x23f024){return _0x5388ea(_0x23f024);},'zRVax':function(_0x54494e,_0x44a3b0){return _0x54494e(_0x44a3b0);},'nylmA':_0x3f96ef(0x99),'qCKHW':_0x3f96ef(0xa3),'GVqZh':function(_0x536ecc,_0x42e5e5,_0x556d31){return _0x536ecc(_0x42e5e5,_0x556d31);},'oozwM':function(_0xd24f44,_0x27341e){return _0xd24f44>=_0x27341e;},'bELVR':function(_0x4e83a0,_0x36bab3){return _0x4e83a0>_0x36bab3;},'MsIbK':function(_0x430f6a,_0x2bf02f){return _0x430f6a>_0x2bf02f;},'aFydA':function(_0x58d70f,_0x3b3e29){return _0x58d70f(_0x3b3e29);},'UPGWm':function(_0x540194,_0x4a0cd9){return _0x540194(_0x4a0cd9);},'Kjsmj':function(_0xa778e6,_0x11da0f){return _0xa778e6&&_0x11da0f;},'qmvQg':'Accessibility\x20Automation\x20is\x20not\x20supported\x20with\x20w3c:\x20false.\x20Skipping\x20accessibility\x20for\x20this\x20run.','SSXdq':_0x3f96ef(0x9f),'zURbj':function(_0x127c98,_0x444a75){return _0x127c98(_0x444a75);},'ByOyc':_0x3f96ef(0x118),'nSTww':_0x3f96ef(0x101),'fehTk':_0x3f96ef(0xc1),'egrTa':function(_0x428ae4,_0x5ef7a7){return _0x428ae4*_0x5ef7a7;},'ZvPeP':function(_0x1c820c,_0xb4db30,_0x17a660){return _0x1c820c(_0xb4db30,_0x17a660);},'XhcZt':_0x3f96ef(0x113),'JqGkM':_0x3f96ef(0xf2),'dvGlJ':'beforeExit'};await _0x547453[_0x3f96ef(0x9c)](_0x5f4464);!BrowserstackCLI[_0x3f96ef(0xce)]()[_0x3f96ef(0xa1)]()&&await _0x547453[_0x3f96ef(0xe8)]();await helper[_0x3f96ef(0x9a)](_0x547453['config']);const _0x2112c8=[];if(helper['isUndefined'](_0x5f4464['_'][0x1]))throw _0x21096d[_0x3f96ef(0x10a)](Error,_0x21096d['empwi']);const _0x43170a=process['cwd'](),_0x1a886c=path[_0x3f96ef(0x119)](_0x43170a,_0x5f4464['_'][0x1]);if(_0x21096d[_0x3f96ef(0x112)](_0x1a886c,_0x43170a)&&!_0x1a886c[_0x3f96ef(0xa5)](_0x21096d[_0x3f96ef(0xbc)](_0x43170a,path[_0x3f96ef(0xd4)])))throw _0x21096d[_0x3f96ef(0x11a)](Error,_0x3f96ef(0xac)+_0x5f4464['_'][0x1]+_0x3f96ef(0xbd));if(!fs[_0x3f96ef(0xe0)](_0x1a886c))throw _0x21096d[_0x3f96ef(0x11a)](Error,_0x3f96ef(0x97)+_0x5f4464['_'][0x1]+_0x3f96ef(0x103));if(!_0x547453[_0x3f96ef(0xec)])throw _0x21096d[_0x3f96ef(0xf3)](Error,_0x21096d[_0x3f96ef(0xda)]);const _0x36debd=helper['useW3C'](_0x547453['config']);if(!_0x36debd){const _0x1441c6=helper[_0x3f96ef(0xcd)](_0x21096d[_0x3f96ef(0xe6)]),_0x50c54a=_0x21096d[_0x3f96ef(0xde)](parseInt,_0x1441c6,0xa);Number[_0x3f96ef(0xd5)](_0x50c54a)&&_0x21096d['oozwM'](_0x50c54a,0x4)&&logger[_0x3f96ef(0x10b)](_0x3f96ef(0xcc)+_0x1441c6+_0x3f96ef(0xc3));}_0x547453[_0x3f96ef(0xec)][_0x3f96ef(0xcb)]&&_0x21096d[_0x3f96ef(0xd6)](_0x547453[_0x3f96ef(0xec)][_0x3f96ef(0xcb)][_0x3f96ef(0x9b)],0x0)&&_0x547453[_0x3f96ef(0xec)][_0x3f96ef(0xcb)][_0x3f96ef(0xb6)]((_0x23eeb7,_0x385500)=>{const _0x2b5e04=_0x3f96ef;_0x36debd?_0x2112c8['push'](helper[_0x2b5e04(0x104)](_0x547453['config'],_0x21096d[_0x2b5e04(0xe2)],_0x385500)):_0x2112c8[_0x2b5e04(0xc5)](helper[_0x2b5e04(0xf5)](_0x547453[_0x2b5e04(0xec)],_0x21096d[_0x2b5e04(0xe2)],_0x385500));});let _0x3feb48,_0x19a3e0;const _0x1ed731=[];if(_0x21096d[_0x3f96ef(0xb2)](_0x2112c8[_0x3f96ef(0x9b)],0x0))_0x2112c8[_0x3f96ef(0xb6)]((_0x3a88fa,_0xe0aa7b)=>{const _0x3523c8=_0x3f96ef,_0x3a3e93={};_0x3a3e93[_0x3523c8(0xa2)]=_0xe0aa7b,_0x3feb48={'server':helper['getHubUrl'](_0x547453[_0x3523c8(0xec)]),'proxySettings':_0x547453[_0x3523c8(0xec)][_0x3523c8(0xff)],'platform':helper[_0x3523c8(0xf1)](_0x3a88fa),'platformCaps':Object[_0x3523c8(0x109)](_0x3a3e93,_0x547453[_0x3523c8(0xec)]['platforms'][_0xe0aa7b])};const _0x31409f={'capability':_0x3a88fa,..._0x3feb48};_0x31409f[_0x3523c8(0xd3)]=_0x1a886c,_0x31409f[_0x3523c8(0x11c)]=_0xd58a10;const _0x33798b={};_0x33798b['configuration']=_0x31409f,_0x19a3e0=_0x33798b,_0x1ed731[_0x3523c8(0xc5)](_0x19a3e0);});else{let _0x3d8e78;_0x36debd?_0x3d8e78=helper[_0x3f96ef(0x104)](_0x547453['config'],_0x21096d['WQgsC'],0x0):_0x3d8e78=helper[_0x3f96ef(0xf5)](_0x547453[_0x3f96ef(0xec)],_0x21096d[_0x3f96ef(0xe2)],0x0);_0x3feb48={'server':helper['getHubUrl'](_0x547453[_0x3f96ef(0xec)]),'proxySettings':_0x547453[_0x3f96ef(0xec)][_0x3f96ef(0xff)]};const _0x25c746={'capability':_0x3d8e78,..._0x3feb48};_0x25c746['file']=_0x1a886c,_0x25c746[_0x3f96ef(0x11c)]=_0xd58a10;const _0x8c0ad1={};_0x8c0ad1[_0x3f96ef(0x115)]=_0x25c746,_0x19a3e0=_0x8c0ad1,_0x1ed731['push'](_0x19a3e0);}const _0x2127ae=_0x547453['config'][_0x3f96ef(0x110)]||{};process[_0x3f96ef(0xe4)][_0x3f96ef(0xe5)]=_0x21096d[_0x3f96ef(0xaa)](String,helper[_0x3f96ef(0xb8)](_0x2127ae[_0x3f96ef(0xab)])),process['env']['BROWSERSTACK_SKIP_SESSION_STATUS']=_0x21096d['UPGWm'](String,helper[_0x3f96ef(0xb8)](_0x2127ae[_0x3f96ef(0x98)]));!helper[_0x3f96ef(0xc2)](_0x547453[_0x3f96ef(0xec)][_0x3f96ef(0xbf)])&&(process[_0x3f96ef(0xe4)][_0x3f96ef(0x116)]=JSON['stringify'](_0x547453[_0x3f96ef(0xec)][_0x3f96ef(0xbf)]));let _0x2b0122=_0x547453[_0x3f96ef(0xec)]['accessibility'];_0x2b0122=_0x2b0122||accessibilityHelper[_0x3f96ef(0xd8)](_0x547453[_0x3f96ef(0xec)]);_0x21096d[_0x3f96ef(0x117)](_0x2b0122,!_0x36debd)&&(logger['warn'](_0x21096d[_0x3f96ef(0x111)]),_0x2b0122=![]);process[_0x3f96ef(0xe4)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x2b0122;if(_0x2b0122){const _0x5489a2=helper['isBrowserstackInfra']();(_0x547453[_0x3f96ef(0xec)][_0x3f96ef(0xcb)]||[])[_0x3f96ef(0xb6)](_0x3912a8=>{const _0x575106=_0x3f96ef;if(!_0x3912a8||_0x3912a8[_0x575106(0xfe)])return;const _0x3fad85=_0x3912a8[_0x575106(0xfc)];if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x3fad85)){logger[_0x575106(0x10b)](_0x21096d[_0x575106(0xed)]);return;}const _0x315758=_0x3912a8[_0x575106(0x114)]||_0x3912a8['browser_version'];if(helper[_0x575106(0xc2)](_0x315758)||!Number[_0x575106(0xd5)](_0x21096d[_0x575106(0xa4)](parseFloat,_0x21096d[_0x575106(0xa4)](String,_0x315758))))return;const _0x22d229=accessibilityHelper['getMinVersionForBrowser'](_0x3fad85,_0x5489a2),_0x23cf0b=_0x21096d[_0x575106(0xa4)](parseFloat,_0x22d229),_0x2a4575=_0x21096d['DjyTe'](parseFloat,_0x21096d[_0x575106(0x10a)](String,_0x315758)),_0x38751a=Number['isFinite'](_0x23cf0b)?_0x21096d[_0x575106(0xfb)](_0x2a4575,_0x23cf0b):accessibilityHelper[_0x575106(0xdf)](_0x315758,_0x22d229);if(!_0x38751a){const _0x23f0ba=accessibilityHelper['getBrowserDisplayName'](_0x3fad85),_0x177751=_0x5489a2?'':_0x21096d['QDjtB'];logger[_0x575106(0x10b)](_0x575106(0xb5)+_0x23f0ba+_0x575106(0xef)+_0x22d229+'\x20'+_0x177751+'.');}});}logger['info'](_0x3f96ef(0xaf)+_0x2b0122);const _0x308f08=BrowserstackCLI[_0x3f96ef(0xce)]();CLIUtils[_0x3f96ef(0xc6)](FRAMEWORKS['NODE_GENERIC'],FRAMEWORKS['NODE_GENERIC']);const {getProductMap:_0x39a4b9}=_0x21096d['aFydA'](require,_0x21096d['SSXdq']);process[_0x3f96ef(0xe4)]['BROWSERSTACK_PRODUCT_MAP']=JSON[_0x3f96ef(0x106)](_0x21096d[_0x3f96ef(0xdb)](_0x39a4b9,_0x547453[_0x3f96ef(0xec)])),_0x308f08[_0x3f96ef(0xee)](_0x547453['config'],_0x547453['configPath'],_0x547453[_0x3f96ef(0xdc)]);if(_0x308f08[_0x3f96ef(0x108)]()){logger[_0x3f96ef(0xf4)](_0x21096d['ByOyc']);try{await _0x308f08['bootstrap'](),logger[_0x3f96ef(0xf4)](_0x21096d[_0x3f96ef(0xeb)]);try{const _0x2a1be6=global['__accessibilityOptions']||{},_0x32acf2=_0x2a1be6[_0x21096d[_0x3f96ef(0xbb)]];if(_0x32acf2){const _0x2764a9=JSON[_0x3f96ef(0xb4)](process['env'][_0x3f96ef(0x116)]||'{}');_0x2764a9[_0x3f96ef(0xfd)]=_0x32acf2,process['env'][_0x3f96ef(0x116)]=JSON[_0x3f96ef(0x106)](_0x2764a9),logger['info'](_0x3f96ef(0x10e)+_0x32acf2);}}catch(_0x24c023){logger[_0x3f96ef(0xfa)](_0x3f96ef(0xc9)+_0x24c023[_0x3f96ef(0xe1)]);}const _0x4e92fe=_0x21096d[_0x3f96ef(0x10f)](_0x547453[_0x3f96ef(0xec)][_0x3f96ef(0xcb)][_0x3f96ef(0x9b)]||0x1,_0x547453[_0x3f96ef(0xec)][_0x3f96ef(0x100)]||0x1);PerformanceTester[_0x3f96ef(0xa0)](PerformanceEvents[_0x3f96ef(0x102)]),await _0x21096d[_0x3f96ef(0xa6)](parallelVanillaRun,_0x1ed731,_0x4e92fe),logger[_0x3f96ef(0xf4)](_0x21096d[_0x3f96ef(0xd9)]),await _0x308f08[_0x3f96ef(0xba)]();}catch(_0xc5b8f5){logger['error'](_0x3f96ef(0xea)+_0xc5b8f5[_0x3f96ef(0xe1)]);try{await _0x308f08[_0x3f96ef(0xba)]();}catch(_0x1b6cb1){logger['debug'](_0x3f96ef(0x105)+_0x1b6cb1[_0x3f96ef(0xe1)]);}}finally{PerformanceTester[_0x3f96ef(0xf0)](PerformanceEvents[_0x3f96ef(0x10c)]),await utilities['finalExecution'](_0x547453);}}else{logger[_0x3f96ef(0xf4)](_0x21096d[_0x3f96ef(0xca)]);const _0x4ed92b=await TestHubHandler[_0x3f96ef(0xc4)](_0x21096d[_0x3f96ef(0xe2)],_0x547453),_0x2a8946=_0x21096d[_0x3f96ef(0x10f)](_0x547453[_0x3f96ef(0xec)][_0x3f96ef(0xcb)][_0x3f96ef(0x9b)]||0x1,_0x547453[_0x3f96ef(0xec)][_0x3f96ef(0x100)]||0x1);PerformanceTester['end'](PerformanceEvents[_0x3f96ef(0x102)]),_0x21096d[_0x3f96ef(0xa6)](parallelVanillaRun,_0x1ed731,_0x2a8946)[_0x3f96ef(0xae)](_0x13a055=>{})[_0x3f96ef(0xb9)](async()=>{const _0x370c75=_0x3f96ef;PerformanceTester[_0x370c75(0xf0)](PerformanceEvents[_0x370c75(0x10c)]),await utilities['finalExecution'](_0x547453);});}process['on'](_0x21096d[_0x3f96ef(0xc8)],async()=>{const _0x42bacd=_0x3f96ef;try{(_0x308f08[_0x42bacd(0xcf)]||_0x308f08['isChildConnected'])&&(logger[_0x42bacd(0xf4)](_0x21096d[_0x42bacd(0xf6)]),await _0x308f08[_0x42bacd(0xba)]());}catch(_0x341088){}});}function a125_0x3c22(_0x14b3fa,_0x133118){const _0x1dbf6a=a125_0x1dbf();return a125_0x3c22=function(_0x3c225e,_0xb98eca){_0x3c225e=_0x3c225e-0x97;let _0x3ae5fd=_0x1dbf6a[_0x3c225e];return _0x3ae5fd;},a125_0x3c22(_0x14b3fa,_0x133118);}module[a125_0xd0d202(0xb0)]=run;
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126_0x3d4965=a126_0x37ee;(function(_0x28ed0d,_0x5a40ba){const _0x5bb043=a126_0x37ee,_0x2324d8=_0x28ed0d();while(!![]){try{const _0x1671da=parseInt(_0x5bb043(0x1f0))/0x1+parseInt(_0x5bb043(0x1e4))/0x2+parseInt(_0x5bb043(0x1dd))/0x3*(parseInt(_0x5bb043(0x1d8))/0x4)+-parseInt(_0x5bb043(0x1ea))/0x5*(-parseInt(_0x5bb043(0x1db))/0x6)+parseInt(_0x5bb043(0x1e1))/0x7+parseInt(_0x5bb043(0x1eb))/0x8*(parseInt(_0x5bb043(0x1f1))/0x9)+-parseInt(_0x5bb043(0x1d9))/0xa;if(_0x1671da===_0x5a40ba)break;else _0x2324d8['push'](_0x2324d8['shift']());}catch(_0x315a67){_0x2324d8['push'](_0x2324d8['shift']());}}}(a126_0x75e0,0xaf58b));function a126_0x75e0(){const _0x57e899=['ZOanw','fsVem','./helpers/metadata','646026AcwrDU','9nxgICX','PfILt','yqHBV','exports','setTestMetadata','YWcRK','phwin','platform_version','STJDt','__platformCaps','platformName','4rEpvWB','45626500ZEHTlc','customVariables','7309326RNkBeB','syJKW','3866091YuplUx','device','os_version','nbiND','1147818BGzNSK','platformVersion','pKHvx','1599874XJGRVi','set','iIPbu','browser_version','browser','trOqg','5QVzvii','9312112IsvNWy','uaEjx'];a126_0x75e0=function(){return _0x57e899;};return a126_0x75e0();}function a126_0x37ee(_0x4e77c4,_0x1bd3c3){const _0x75e09=a126_0x75e0();return a126_0x37ee=function(_0x37ee39,_0x5739f9){_0x37ee39=_0x37ee39-0x1d0;let _0xf98699=_0x75e09[_0x37ee39];return _0xf98699;},a126_0x37ee(_0x4e77c4,_0x1bd3c3);}const TestMetadata=require(a126_0x3d4965(0x1ef));class BrowserStackSdk{static['getCurrentPlatform'](){const _0x48f8c5=a126_0x3d4965,_0x37e38d={};_0x37e38d[_0x48f8c5(0x1ed)]=_0x48f8c5(0x1df),_0x37e38d['STJDt']='osVersion',_0x37e38d[_0x48f8c5(0x1e6)]=_0x48f8c5(0x1e8),_0x37e38d['trOqg']='browserName',_0x37e38d[_0x48f8c5(0x1dc)]=_0x48f8c5(0x1e7),_0x37e38d[_0x48f8c5(0x1e0)]='browserVersion',_0x37e38d[_0x48f8c5(0x1d2)]=_0x48f8c5(0x1de),_0x37e38d[_0x48f8c5(0x1ee)]='deviceName',_0x37e38d[_0x48f8c5(0x1d3)]='platform',_0x37e38d[_0x48f8c5(0x1f3)]=_0x48f8c5(0x1d7),_0x37e38d[_0x48f8c5(0x1f2)]=_0x48f8c5(0x1d4),_0x37e38d['pKHvx']=_0x48f8c5(0x1e2),_0x37e38d['uaEjx']=_0x48f8c5(0x1da);const _0x1f38a6=_0x37e38d,_0x238755={};if(global[_0x48f8c5(0x1d6)]){const _0x32bc6a=global[_0x48f8c5(0x1d6)],_0x7289e7=_0x32bc6a[_0x1f38a6[_0x48f8c5(0x1ed)]]||_0x32bc6a[_0x1f38a6[_0x48f8c5(0x1d5)]],_0x463183=_0x32bc6a[_0x1f38a6['iIPbu']]||_0x32bc6a[_0x1f38a6[_0x48f8c5(0x1e9)]],_0x5c2ef4=_0x32bc6a[_0x1f38a6['syJKW']]||_0x32bc6a[_0x1f38a6['nbiND']],_0x22be80=_0x32bc6a[_0x1f38a6[_0x48f8c5(0x1d2)]]||_0x32bc6a[_0x1f38a6[_0x48f8c5(0x1ee)]],_0x20bead=_0x32bc6a[_0x1f38a6[_0x48f8c5(0x1d3)]]||_0x32bc6a[_0x1f38a6[_0x48f8c5(0x1f3)]],_0x2c3f90=_0x32bc6a[_0x1f38a6['PfILt']]||_0x32bc6a[_0x1f38a6[_0x48f8c5(0x1e3)]];_0x32bc6a['os']&&(_0x238755['os']=_0x32bc6a['os']),_0x7289e7&&(_0x238755[_0x1f38a6[_0x48f8c5(0x1d5)]]=_0x7289e7),_0x463183&&(_0x238755[_0x1f38a6[_0x48f8c5(0x1e9)]]=_0x463183),_0x5c2ef4&&(_0x238755[_0x1f38a6[_0x48f8c5(0x1e0)]]=_0x5c2ef4),_0x22be80&&(_0x238755[_0x1f38a6[_0x48f8c5(0x1ee)]]=_0x22be80),_0x20bead&&(_0x238755[_0x1f38a6[_0x48f8c5(0x1f3)]]=_0x20bead),_0x2c3f90&&(_0x238755[_0x1f38a6[_0x48f8c5(0x1e3)]]=_0x2c3f90),_0x32bc6a[_0x1f38a6[_0x48f8c5(0x1ec)]]&&(_0x238755[_0x1f38a6[_0x48f8c5(0x1ec)]]=_0x32bc6a[_0x1f38a6[_0x48f8c5(0x1ec)]]);}return _0x238755;}static[a126_0x3d4965(0x1d1)](_0x23135e={}){const _0x412b3c=a126_0x3d4965;TestMetadata[_0x412b3c(0x1e5)](_0x23135e);}}module[a126_0x3d4965(0x1d0)]=BrowserStackSdk;
|