browserstack-node-sdk 1.66.1 → 1.66.3
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/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 -1
- package/src/bin/detox/command.js +1 -1
- package/src/bin/detox/modifyDetoxConf.js +1 -1
- package/src/bin/detox/traEmitter.js +1 -1
- 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/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
|
-
const
|
|
1
|
+
const a118_0x41d8df=a118_0x195c;(function(_0x39079d,_0x2eeea3){const _0x18c6c9=a118_0x195c,_0x6e7926=_0x39079d();while(!![]){try{const _0x4f8ec2=parseInt(_0x18c6c9(0xeb))/0x1+parseInt(_0x18c6c9(0x10e))/0x2*(-parseInt(_0x18c6c9(0x10c))/0x3)+parseInt(_0x18c6c9(0x118))/0x4*(parseInt(_0x18c6c9(0x107))/0x5)+-parseInt(_0x18c6c9(0xf9))/0x6+parseInt(_0x18c6c9(0xfb))/0x7+-parseInt(_0x18c6c9(0x10d))/0x8+-parseInt(_0x18c6c9(0xff))/0x9*(parseInt(_0x18c6c9(0x104))/0xa);if(_0x4f8ec2===_0x2eeea3)break;else _0x6e7926['push'](_0x6e7926['shift']());}catch(_0x3cf77b){_0x6e7926['push'](_0x6e7926['shift']());}}}(a118_0x47a9,0x98243));const grpc=require(a118_0x41d8df(0x100)),a118_0x1b2574={};function a118_0x47a9(){const _0x5676fa=['BINARY_UNREACHABLE','UNAUTHENTICATED','BUCKETS','code','warn','11372mgmIEA','\x20(rpc=','\x20details=','BrowserStack\x20authentication\x20failed.\x20Verify\x20BROWSERSTACK_USERNAME\x20/\x20BROWSERSTACK_ACCESS_KEY\x20(env\x20or\x20browserstack.yml).','status','\x20bucket=','PERMISSION_DENIED','details','\x20code=','1114216YaJUej','DEADLINE_EXCEEDED','The\x20BrowserStack\x20helper\x20did\x20not\x20respond\x20in\x20time.\x20Usually\x20a\x20transient\x20network\x20slowdown\x20-\x20retry\x20the\x20test.','INVALID_ARGUMENT','gaPxA','FbweI','NOT_FOUND','AUTH_FAILED','[BrowserStack]\x20','orEGd','SERVER_FAILURE','TCKZn','INTERNAL','UNAVAILABLE','1148154ZPiVmr','messageFor','2350446pPOmcX','CANCELLED','UNKNOWN','TIMEOUT','8039853VGuDIx','@grpc/grpc-js','OUT_OF_RANGE','RESOURCE_EXHAUSTED','timeout','10VTDwvx','ABORTED','debug','1060NYUBGE','INVALID_REQUEST','Unexpected\x20error\x20talking\x20to\x20the\x20BrowserStack\x20helper.\x20Please\x20report\x20this\x20with\x20the\x20test\x20logs.','uxyYG','auth_failed','115911YORqoP','904328NbRJDW','12DfEwTr','message','DATA_LOSS','UNIMPLEMENTED','lPjue'];a118_0x47a9=function(){return _0x5676fa;};return a118_0x47a9();}a118_0x1b2574['BINARY_UNREACHABLE']='binary_unreachable',a118_0x1b2574[a118_0x41d8df(0xf2)]=a118_0x41d8df(0x10b),a118_0x1b2574[a118_0x41d8df(0xfe)]=a118_0x41d8df(0x103),a118_0x1b2574[a118_0x41d8df(0x108)]='invalid_request',a118_0x1b2574[a118_0x41d8df(0xf5)]='server_failure',a118_0x1b2574[a118_0x41d8df(0xfd)]='unknown';const BUCKETS=a118_0x1b2574,a118_0x373c09={[BUCKETS[a118_0x41d8df(0x113)]]:'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.',[BUCKETS[a118_0x41d8df(0xf2)]]:a118_0x41d8df(0x11b),[BUCKETS[a118_0x41d8df(0xfe)]]:a118_0x41d8df(0xed),[BUCKETS['INVALID_REQUEST']]:'BrowserStack\x20SDK\x20sent\x20an\x20unexpected\x20request\x20to\x20its\x20helper.\x20Please\x20report\x20this\x20with\x20the\x20test\x20logs.',[BUCKETS[a118_0x41d8df(0xf5)]]:'The\x20BrowserStack\x20helper\x20hit\x20an\x20internal\x20error.\x20Tests\x20will\x20continue;\x20BrowserStack\x20features\x20may\x20be\x20degraded\x20-\x20please\x20retry.',[BUCKETS[a118_0x41d8df(0xfd)]]:a118_0x41d8df(0x109)},MESSAGES=a118_0x373c09;function classify(_0x14d44c){const _0xd4f285=a118_0x41d8df,_0x12f79a={};_0x12f79a[_0xd4f285(0xf4)]=function(_0x36c70a,_0x1089dc){return _0x36c70a!==_0x1089dc;},_0x12f79a[_0xd4f285(0xf6)]='number';const _0x2e7ed5=_0x12f79a;if(!_0x14d44c)return BUCKETS['UNKNOWN'];const _0x562dcc=_0x14d44c['code'];if(_0x2e7ed5[_0xd4f285(0xf4)](typeof _0x562dcc,_0x2e7ed5[_0xd4f285(0xf6)]))return BUCKETS[_0xd4f285(0xfd)];switch(_0x562dcc){case grpc[_0xd4f285(0x11c)][_0xd4f285(0xf8)]:case grpc[_0xd4f285(0x11c)][_0xd4f285(0xfc)]:return BUCKETS['BINARY_UNREACHABLE'];case grpc[_0xd4f285(0x11c)][_0xd4f285(0x114)]:case grpc[_0xd4f285(0x11c)][_0xd4f285(0x11e)]:return BUCKETS[_0xd4f285(0xf2)];case grpc[_0xd4f285(0x11c)][_0xd4f285(0xec)]:return BUCKETS['TIMEOUT'];case grpc[_0xd4f285(0x11c)][_0xd4f285(0xee)]:case grpc[_0xd4f285(0x11c)][_0xd4f285(0xf1)]:case grpc[_0xd4f285(0x11c)][_0xd4f285(0x101)]:case grpc[_0xd4f285(0x11c)]['ALREADY_EXISTS']:case grpc[_0xd4f285(0x11c)]['FAILED_PRECONDITION']:return BUCKETS[_0xd4f285(0x108)];case grpc['status'][_0xd4f285(0xf7)]:case grpc[_0xd4f285(0x11c)][_0xd4f285(0xfd)]:case grpc[_0xd4f285(0x11c)][_0xd4f285(0x110)]:case grpc[_0xd4f285(0x11c)][_0xd4f285(0x105)]:case grpc[_0xd4f285(0x11c)][_0xd4f285(0x102)]:case grpc[_0xd4f285(0x11c)][_0xd4f285(0x111)]:return BUCKETS[_0xd4f285(0xf5)];default:return BUCKETS[_0xd4f285(0xfd)];}}function messageFor(_0x465a90){const _0x3993f9=a118_0x41d8df;return MESSAGES[_0x465a90]||MESSAGES[BUCKETS[_0x3993f9(0xfd)]];}function handle(_0x584180,_0x2d67d9,_0x26efb2,_0x3583c7=a118_0x41d8df(0x117)){const _0x36d98c=a118_0x41d8df,_0x4c5c49={'FbweI':function(_0x23eb64,_0x2e20d5){return _0x23eb64(_0x2e20d5);},'lPjue':function(_0x3bd22e,_0x47e301){return _0x3bd22e(_0x47e301);},'uxyYG':function(_0xd8fc5a,_0x121651){return _0xd8fc5a===_0x121651;},'gaPxA':'function','WhFbF':function(_0x2a2ac2,_0x36bfa5){return _0x2a2ac2===_0x36bfa5;},'uEJfP':'number'},_0x18b3df=_0x4c5c49[_0x36d98c(0xf0)](classify,_0x2d67d9),_0x31f981=_0x36d98c(0xf3)+_0x4c5c49['lPjue'](messageFor,_0x18b3df)+_0x36d98c(0x119)+_0x584180+')';try{_0x4c5c49[_0x36d98c(0x10a)](typeof _0x26efb2[_0x3583c7],_0x4c5c49[_0x36d98c(0xef)])?_0x26efb2[_0x3583c7](_0x31f981):_0x26efb2['warn'](_0x31f981);}catch(_0x5b7f51){}try{const _0x34a604=_0x2d67d9&&_0x4c5c49['WhFbF'](typeof _0x2d67d9[_0x36d98c(0x116)],_0x4c5c49['uEJfP'])?_0x2d67d9[_0x36d98c(0x116)]:null,_0x1ff8e0=_0x2d67d9&&_0x2d67d9[_0x36d98c(0x11f)]?_0x2d67d9[_0x36d98c(0x11f)]:_0x2d67d9&&_0x2d67d9['message']?_0x2d67d9[_0x36d98c(0x10f)]:_0x4c5c49[_0x36d98c(0x112)](String,_0x2d67d9);_0x26efb2[_0x36d98c(0x106)]('[BrowserStack]\x20gRPC\x20raw:\x20rpc='+_0x584180+_0x36d98c(0x11d)+_0x18b3df+_0x36d98c(0x120)+_0x34a604+_0x36d98c(0x11a)+_0x1ff8e0);}catch(_0x3b1bfb){}return _0x18b3df;}function a118_0x195c(_0x12363e,_0x2d2937){const _0x47a935=a118_0x47a9();return a118_0x195c=function(_0x195c47,_0x4739d2){_0x195c47=_0x195c47-0xeb;let _0x592e3a=_0x47a935[_0x195c47];return _0x592e3a;},a118_0x195c(_0x12363e,_0x2d2937);}const a118_0x1929bd={};a118_0x1929bd[a118_0x41d8df(0x115)]=BUCKETS,a118_0x1929bd['classify']=classify,a118_0x1929bd[a118_0x41d8df(0xfa)]=messageFor,a118_0x1929bd['handle']=handle,module['exports']=a118_0x1929bd;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x2eda3d=a119_0x5131;(function(_0x206c49,_0x1add19){const _0x3218b6=a119_0x5131,_0x2d6a10=_0x206c49();while(!![]){try{const _0x4b9aa7=-parseInt(_0x3218b6(0xdf))/0x1+-parseInt(_0x3218b6(0xf8))/0x2*(-parseInt(_0x3218b6(0xe0))/0x3)+parseInt(_0x3218b6(0xf6))/0x4*(parseInt(_0x3218b6(0xec))/0x5)+parseInt(_0x3218b6(0xe9))/0x6+parseInt(_0x3218b6(0xe4))/0x7*(-parseInt(_0x3218b6(0xe5))/0x8)+parseInt(_0x3218b6(0xf7))/0x9*(parseInt(_0x3218b6(0xea))/0xa)+parseInt(_0x3218b6(0xe3))/0xb*(parseInt(_0x3218b6(0xf0))/0xc);if(_0x4b9aa7===_0x1add19)break;else _0x2d6a10['push'](_0x2d6a10['shift']());}catch(_0x12434b){_0x2d6a10['push'](_0x2d6a10['shift']());}}}(a119_0x242a,0xdb2e4));const {PLAYWRIGHT}=require(a119_0x2eda3d(0xf3)),a119_0x3e8aee={};a119_0x3e8aee[a119_0x2eda3d(0xe1)]=0x0,a119_0x3e8aee[a119_0x2eda3d(0xef)]=function(){const _0x260bfd=a119_0x2eda3d,_0x208657={};_0x208657['OLLmb']='AutomationFrameworkState.NONE';const _0x39f9ee=_0x208657;return _0x39f9ee[_0x260bfd(0xe7)];};const a119_0x174bf9={};function a119_0x242a(){const _0x32e9a4=['value','freeze','11ZDmlAp','24626whgCaA','2184dtBJyi','yMwgp','OLLmb','AutomationFrameworkState.IDLE','1431234eKSLdX','8229500HDjYsN','AutomationFrameworkState.CREATE','373150UiZHRI','ETHWe','MQmUz','toString','3682956sIHBvi','BaDyo','XxcHz','../../utils/constants','AutomationFrameworkState.EXECUTE','values','4imJZxU','9WfevUI','136DhuujB','AutomationFrameworkState.QUIT','664830CbquwF','47646uRnvMz'];a119_0x242a=function(){return _0x32e9a4;};return a119_0x242a();}a119_0x174bf9['value']=0x1,a119_0x174bf9['toString']=function(){const _0x4303ab=a119_0x2eda3d,_0x4011e1={};_0x4011e1[_0x4303ab(0xee)]=_0x4303ab(0xeb);const _0x4475b5=_0x4011e1;return _0x4475b5[_0x4303ab(0xee)];};const a119_0x4e69fa={};a119_0x4e69fa[a119_0x2eda3d(0xe1)]=0x2,a119_0x4e69fa[a119_0x2eda3d(0xef)]=function(){const _0x21ed62=a119_0x2eda3d,_0x5dc967={};_0x5dc967[_0x21ed62(0xf1)]='AutomationFrameworkState.PLAYWRIGHT_DISPATCH';const _0xd663ff=_0x5dc967;return _0xd663ff[_0x21ed62(0xf1)];};const a119_0xe61991={};a119_0xe61991[a119_0x2eda3d(0xe1)]=0x3,a119_0xe61991[a119_0x2eda3d(0xef)]=function(){const _0x21dfdf=a119_0x2eda3d,_0x2eb7aa={};_0x2eb7aa[_0x21dfdf(0xf2)]=_0x21dfdf(0xf4);const _0x4fdaca=_0x2eb7aa;return _0x4fdaca[_0x21dfdf(0xf2)];};const a119_0x59a73e={};a119_0x59a73e['value']=0x4,a119_0x59a73e[a119_0x2eda3d(0xef)]=function(){const _0x354627=a119_0x2eda3d,_0x4a2ce1={};_0x4a2ce1[_0x354627(0xed)]=_0x354627(0xe8);const _0x1edf03=_0x4a2ce1;return _0x1edf03[_0x354627(0xed)];};const a119_0xac70f2={};a119_0xac70f2[a119_0x2eda3d(0xe1)]=0x5,a119_0xac70f2[a119_0x2eda3d(0xef)]=function(){const _0x8942cd=a119_0x2eda3d,_0x58d82d={};_0x58d82d['yMwgp']=_0x8942cd(0xf9);const _0x2a6540=_0x58d82d;return _0x2a6540[_0x8942cd(0xe6)];};const AutomationFrameworkState=Object[a119_0x2eda3d(0xe2)]({'NONE':a119_0x3e8aee,'CREATE':a119_0x174bf9,'PLAYWRIGHT_DISPATCH':a119_0x4e69fa,'EXECUTE':a119_0xe61991,'IDLE':a119_0x59a73e,'QUIT':a119_0xac70f2,'fromValue'(_0x3e82d1){const _0x2b6a13=a119_0x2eda3d;return Object[_0x2b6a13(0xf5)](AutomationFrameworkState)['find'](_0x4fd173=>_0x4fd173[_0x2b6a13(0xe1)]===_0x3e82d1);}});function a119_0x5131(_0x4f8092,_0x35a3fe){const _0x242aaf=a119_0x242a();return a119_0x5131=function(_0x513171,_0x22e2ff){_0x513171=_0x513171-0xdf;let _0x39c1ab=_0x242aaf[_0x513171];return _0x39c1ab;},a119_0x5131(_0x4f8092,_0x35a3fe);}module['exports']=AutomationFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120_0x5a0aaf=a120_0x467f;(function(_0x3b9cc4,_0x275b91){const _0x43d54a=a120_0x467f,_0x30b8d3=_0x3b9cc4();while(!![]){try{const _0x55b087=-parseInt(_0x43d54a(0x1f6))/0x1+-parseInt(_0x43d54a(0x1f9))/0x2*(parseInt(_0x43d54a(0x1f4))/0x3)+parseInt(_0x43d54a(0x1ff))/0x4*(-parseInt(_0x43d54a(0x200))/0x5)+parseInt(_0x43d54a(0x202))/0x6+-parseInt(_0x43d54a(0x1f0))/0x7*(parseInt(_0x43d54a(0x203))/0x8)+-parseInt(_0x43d54a(0x1f5))/0x9+-parseInt(_0x43d54a(0x1f2))/0xa*(-parseInt(_0x43d54a(0x1fd))/0xb);if(_0x55b087===_0x275b91)break;else _0x30b8d3['push'](_0x30b8d3['shift']());}catch(_0x4fc22b){_0x30b8d3['push'](_0x30b8d3['shift']());}}}(a120_0x1356,0x32e88));const a120_0x4dccab={};a120_0x4dccab[a120_0x5a0aaf(0x1f8)]=0x0,a120_0x4dccab[a120_0x5a0aaf(0x1ef)]=function(){const _0x3780d5=a120_0x5a0aaf,_0x6deb80={};_0x6deb80[_0x3780d5(0x1f3)]='HookState.NONE';const _0xf4b66b=_0x6deb80;return _0xf4b66b[_0x3780d5(0x1f3)];};function a120_0x467f(_0x4516cb,_0xfec112){const _0x1356a7=a120_0x1356();return a120_0x467f=function(_0x467fbd,_0x5c8242){_0x467fbd=_0x467fbd-0x1ef;let _0x166247=_0x1356a7[_0x467fbd];return _0x166247;},a120_0x467f(_0x4516cb,_0xfec112);}const a120_0x373e16={};a120_0x373e16[a120_0x5a0aaf(0x1f8)]=0x1,a120_0x373e16[a120_0x5a0aaf(0x1ef)]=function(){const _0x32c2d6=a120_0x5a0aaf,_0x3fb8a7={};_0x3fb8a7['gLYTa']=_0x32c2d6(0x1fc);const _0x7238f9=_0x3fb8a7;return _0x7238f9[_0x32c2d6(0x201)];};function a120_0x1356(){const _0x50c422=['2017758MrGcnf','40GZLvoH','toString','440398aLOzmp','find','10QMadfS','wykcp','21513EwGCGS','1238652lbcAlb','81325ivnRKK','freeze','value','102flhvmS','values','HookState.POST','HookState.PRE','9755933ysFYxd','gpXjm','16qjFNUU','144290IBcbFl','gLYTa'];a120_0x1356=function(){return _0x50c422;};return a120_0x1356();}const a120_0x254ffc={};a120_0x254ffc[a120_0x5a0aaf(0x1f8)]=0x2,a120_0x254ffc[a120_0x5a0aaf(0x1ef)]=function(){const _0x457cab=a120_0x5a0aaf,_0x3fd6cb={};_0x3fd6cb[_0x457cab(0x1fe)]=_0x457cab(0x1fb);const _0xe1aa99=_0x3fd6cb;return _0xe1aa99[_0x457cab(0x1fe)];};const HookState=Object[a120_0x5a0aaf(0x1f7)]({'NONE':a120_0x4dccab,'PRE':a120_0x373e16,'POST':a120_0x254ffc,'fromValue'(_0x4ffe6f){const _0xdee83a=a120_0x5a0aaf;return Object[_0xdee83a(0x1fa)](HookState)[_0xdee83a(0x1f1)](_0x5554fe=>_0x5554fe[_0xdee83a(0x1f8)]===_0x4ffe6f);}});module['exports']=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a121_0x30d66e=a121_0x4d5c;(function(_0x50ca5e,_0x45100a){const _0xfecc63=a121_0x4d5c,_0x73efd4=_0x50ca5e();while(!![]){try{const _0x497638=parseInt(_0xfecc63(0xd2))/0x1*(parseInt(_0xfecc63(0xb9))/0x2)+parseInt(_0xfecc63(0xbb))/0x3*(parseInt(_0xfecc63(0xbe))/0x4)+-parseInt(_0xfecc63(0xb6))/0x5+-parseInt(_0xfecc63(0xb5))/0x6+parseInt(_0xfecc63(0xbf))/0x7+-parseInt(_0xfecc63(0xbd))/0x8*(parseInt(_0xfecc63(0xcf))/0x9)+parseInt(_0xfecc63(0xc1))/0xa;if(_0x497638===_0x45100a)break;else _0x73efd4['push'](_0x73efd4['shift']());}catch(_0x3ccaf5){_0x73efd4['push'](_0x73efd4['shift']());}}}(a121_0x110e,0x6f540));const a121_0x26ea46={};a121_0x26ea46[a121_0x30d66e(0xd0)]=0x0,a121_0x26ea46[a121_0x30d66e(0xd3)]=function(){const _0xbf49a3=a121_0x30d66e,_0xd3c50b={};_0xd3c50b[_0xbf49a3(0xd7)]='TestFrameworkState.NONE';const _0x77d453=_0xd3c50b;return _0x77d453[_0xbf49a3(0xd7)];};const a121_0x1750ca={};a121_0x1750ca[a121_0x30d66e(0xd0)]=0x1,a121_0x1750ca[a121_0x30d66e(0xd3)]=function(){const _0x1222f2=a121_0x30d66e,_0x5b6221={};_0x5b6221[_0x1222f2(0xd5)]=_0x1222f2(0xbc);const _0x18a322=_0x5b6221;return _0x18a322[_0x1222f2(0xd5)];};const a121_0x4436c4={};function a121_0x4d5c(_0x1b2f6f,_0xd75bd4){const _0x110e6f=a121_0x110e();return a121_0x4d5c=function(_0x4d5cae,_0x27d095){_0x4d5cae=_0x4d5cae-0xb3;let _0xe42409=_0x110e6f[_0x4d5cae];return _0xe42409;},a121_0x4d5c(_0x1b2f6f,_0xd75bd4);}a121_0x4436c4['value']=0x2,a121_0x4436c4[a121_0x30d66e(0xd3)]=function(){const _0x449bab=a121_0x30d66e,_0x3ba83d={};_0x3ba83d['yEDZE']=_0x449bab(0xc2);const _0x499bcf=_0x3ba83d;return _0x499bcf[_0x449bab(0xc6)];};const a121_0x35a5d1={};a121_0x35a5d1[a121_0x30d66e(0xd0)]=0x3,a121_0x35a5d1[a121_0x30d66e(0xd3)]=function(){const _0x3955e8=a121_0x30d66e,_0x2dde20={};_0x2dde20[_0x3955e8(0xc5)]=_0x3955e8(0xcb);const _0x22ff0e=_0x2dde20;return _0x22ff0e['gGszU'];};const a121_0x5042cb={};a121_0x5042cb[a121_0x30d66e(0xd0)]=0x4,a121_0x5042cb[a121_0x30d66e(0xd3)]=function(){const _0x945831=a121_0x30d66e,_0x241ab1={};_0x241ab1[_0x945831(0xd1)]=_0x945831(0xc0);const _0x1b9f10=_0x241ab1;return _0x1b9f10[_0x945831(0xd1)];};const a121_0x1b1aa8={};function a121_0x110e(){const _0x3822c5=['6008QCNlnJ','536795jHfFNo','TestFrameworkState.INIT_TEST','10250570lFDaZI','TestFrameworkState.LOG','PCzOJ','KEiXF','gGszU','yEDZE','TestFrameworkState.STEP','TestFrameworkState.BEFORE_EACH','WeIKF','freeze','TestFrameworkState.SETUP_FIXTURE','TestFrameworkState.TEST_STEP','yZuxj','uLGdq','166203nNaPZw','value','ZCFIk','15ADUPdI','toString','TestFrameworkState.TEST_SCREENSHOT','eupkm','TestFrameworkState.LOG_REPORT','DbFnl','find','DBApP','TestFrameworkState.AFTER_ALL','1106190ZloqlW','1705385ylJhtC','ktvKQ','values','93278UbkuSH','KErqt','96LgCpWV','TestFrameworkState.BEFORE_ALL','376rLKtNp'];a121_0x110e=function(){return _0x3822c5;};return a121_0x110e();}a121_0x1b1aa8['value']=0x5,a121_0x1b1aa8['toString']=function(){const _0x38ccfe=a121_0x30d66e,_0x108fa8={};_0x108fa8[_0x38ccfe(0xcd)]=_0x38ccfe(0xc8);const _0x3042ec=_0x108fa8;return _0x3042ec[_0x38ccfe(0xcd)];};const a121_0x50557f={};a121_0x50557f[a121_0x30d66e(0xd0)]=0x6,a121_0x50557f[a121_0x30d66e(0xd3)]=function(){const _0xa959f1=a121_0x30d66e,_0xb7a91={};_0xb7a91[_0xa959f1(0xc4)]='TestFrameworkState.AFTER_EACH';const _0x284553=_0xb7a91;return _0x284553[_0xa959f1(0xc4)];};const a121_0x4d3b4a={};a121_0x4d3b4a[a121_0x30d66e(0xd0)]=0x7,a121_0x4d3b4a['toString']=function(){const _0x5e7ddb=a121_0x30d66e,_0x359387={};_0x359387[_0x5e7ddb(0xba)]='TestFrameworkState.TEST';const _0x190681=_0x359387;return _0x190681[_0x5e7ddb(0xba)];};const a121_0x4e6776={};a121_0x4e6776[a121_0x30d66e(0xd0)]=0x8,a121_0x4e6776[a121_0x30d66e(0xd3)]=function(){const _0x3c6dc0=a121_0x30d66e,_0x485726={};_0x485726[_0x3c6dc0(0xce)]=_0x3c6dc0(0xc7);const _0x400e37=_0x485726;return _0x400e37['uLGdq'];};const a121_0x38d5d4={};a121_0x38d5d4[a121_0x30d66e(0xd0)]=0x9,a121_0x38d5d4[a121_0x30d66e(0xd3)]=function(){const _0x5a6942=a121_0x30d66e,_0x874f55={};_0x874f55[_0x5a6942(0xb3)]=_0x5a6942(0xd6);const _0x1df8e2=_0x874f55;return _0x1df8e2[_0x5a6942(0xb3)];};const a121_0x7c719b={};a121_0x7c719b['value']=0xa,a121_0x7c719b[a121_0x30d66e(0xd3)]=function(){const _0x99ddf=a121_0x30d66e,_0x1deab2={};_0x1deab2[_0x99ddf(0xc9)]=_0x99ddf(0xb4);const _0x2704d2=_0x1deab2;return _0x2704d2[_0x99ddf(0xc9)];};const a121_0x3ea7d5={};a121_0x3ea7d5[a121_0x30d66e(0xd0)]=0xb,a121_0x3ea7d5[a121_0x30d66e(0xd3)]=function(){const _0x171074=a121_0x30d66e,_0x240824={};_0x240824[_0x171074(0xc3)]=_0x171074(0xd4);const _0x3e9d0f=_0x240824;return _0x3e9d0f[_0x171074(0xc3)];};const a121_0x5392f9={};a121_0x5392f9[a121_0x30d66e(0xd0)]=0xc,a121_0x5392f9[a121_0x30d66e(0xd3)]=function(){const _0x301077=a121_0x30d66e,_0x30cac0={};_0x30cac0[_0x301077(0xb7)]=_0x301077(0xcc);const _0x12c2b5=_0x30cac0;return _0x12c2b5[_0x301077(0xb7)];};const TestFrameworkState=Object[a121_0x30d66e(0xca)]({'NONE':a121_0x26ea46,'BEFORE_ALL':a121_0x1750ca,'LOG':a121_0x4436c4,'SETUP_FIXTURE':a121_0x35a5d1,'INIT_TEST':a121_0x5042cb,'BEFORE_EACH':a121_0x1b1aa8,'AFTER_EACH':a121_0x50557f,'TEST':a121_0x4d3b4a,'STEP':a121_0x4e6776,'LOG_REPORT':a121_0x38d5d4,'AFTER_ALL':a121_0x7c719b,'TEST_SCREENSHOT':a121_0x3ea7d5,'TEST_STEP':a121_0x5392f9,'fromValue'(_0x28ae3d){const _0x1f5297=a121_0x30d66e;return Object[_0x1f5297(0xb8)](TestFrameworkState)[_0x1f5297(0xd8)](_0x4f08cc=>_0x4f08cc[_0x1f5297(0xd0)]===_0x28ae3d);}});module['exports']=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a122_0x2f5132=a122_0x535f;(function(_0xc6099a,_0x32e746){const _0x3a2d11=a122_0x535f,_0x3392e2=_0xc6099a();while(!![]){try{const _0x5cd94d=-parseInt(_0x3a2d11(0x257))/0x1+-parseInt(_0x3a2d11(0x263))/0x2*(-parseInt(_0x3a2d11(0x1d6))/0x3)+-parseInt(_0x3a2d11(0x23f))/0x4*(-parseInt(_0x3a2d11(0x252))/0x5)+parseInt(_0x3a2d11(0x1e4))/0x6*(-parseInt(_0x3a2d11(0x229))/0x7)+parseInt(_0x3a2d11(0x1d9))/0x8+parseInt(_0x3a2d11(0x225))/0x9*(parseInt(_0x3a2d11(0x264))/0xa)+parseInt(_0x3a2d11(0x1e0))/0xb*(-parseInt(_0x3a2d11(0x21d))/0xc);if(_0x5cd94d===_0x32e746)break;else _0x3392e2['push'](_0x3392e2['shift']());}catch(_0x19ecb0){_0x3392e2['push'](_0x3392e2['shift']());}}}(a122_0x196b,0xf2b79));const os=require('os'),fs=require('fs'),path=require(a122_0x2f5132(0x256)),util=require(a122_0x2f5132(0x251)),BrowserstackCLI=require(a122_0x2f5132(0x1de)),https=require('https'),http=require(a122_0x2f5132(0x232)),AutomationFramework=require(a122_0x2f5132(0x207)),PlaywrightDriverModule=require(a122_0x2f5132(0x231)),TestInfo=require(a122_0x2f5132(0x216)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require(a122_0x2f5132(0x227));function a122_0x535f(_0x55ebb4,_0x2dae6f){const _0x196bd2=a122_0x196b();return a122_0x535f=function(_0x535f04,_0x59dc8a){_0x535f04=_0x535f04-0x1d6;let _0x5732db=_0x196bd2[_0x535f04];return _0x5732db;},a122_0x535f(_0x55ebb4,_0x2dae6f);}class uploadAttachmentsManager{static [a122_0x2f5132(0x20e)]=createClassLogger(a122_0x2f5132(0x1f4));static[a122_0x2f5132(0x1f6)](_0x4c00ee,_0xdeb1e=![]){const _0x15bb94=a122_0x2f5132,_0x4f837a={};_0x4f837a[_0x15bb94(0x214)]=function(_0x35f676,_0x15d201){return _0x35f676/_0x15d201;},_0x4f837a[_0x15bb94(0x22d)]=function(_0x1508f4,_0x4784fe){return _0x1508f4*_0x4784fe;},_0x4f837a[_0x15bb94(0x1f3)]=function(_0x909f85,_0x1be0f9){return _0x909f85>_0x1be0f9;},_0x4f837a[_0x15bb94(0x1f0)]=_0x15bb94(0x20c),_0x4f837a[_0x15bb94(0x1e9)]=_0x15bb94(0x1ec),_0x4f837a[_0x15bb94(0x237)]=function(_0x3093a7,_0x42f0bb){return _0x3093a7===_0x42f0bb;},_0x4f837a[_0x15bb94(0x1fb)]=_0x15bb94(0x203),_0x4f837a[_0x15bb94(0x22b)]=_0x15bb94(0x25b),_0x4f837a[_0x15bb94(0x250)]=_0x15bb94(0x254),_0x4f837a[_0x15bb94(0x24a)]=_0x15bb94(0x243),_0x4f837a[_0x15bb94(0x21f)]=_0x15bb94(0x1eb),_0x4f837a['SgfvU']='.browserstack\x20folder\x20not\x20found\x20at:\x20%s',_0x4f837a['XLWNH']=_0x15bb94(0x23e),_0x4f837a[_0x15bb94(0x23b)]=_0x15bb94(0x209),_0x4f837a[_0x15bb94(0x20f)]=_0x15bb94(0x21c),_0x4f837a[_0x15bb94(0x1e3)]=_0x15bb94(0x21e),_0x4f837a[_0x15bb94(0x1dd)]=_0x15bb94(0x1fa),_0x4f837a['LuwwE']=_0x15bb94(0x204),_0x4f837a['XXati']=_0x15bb94(0x212),_0x4f837a[_0x15bb94(0x202)]=function(_0x2bada6,_0x1e18ff){return _0x2bada6/_0x1e18ff;},_0x4f837a[_0x15bb94(0x25c)]=function(_0x12ed53,_0x2dad19){return _0x12ed53*_0x2dad19;},_0x4f837a[_0x15bb94(0x1ee)]=_0x15bb94(0x248);const _0x3e0041=_0x4f837a;this[_0x15bb94(0x20e)][_0x15bb94(0x1e8)](util[_0x15bb94(0x234)](_0x3e0041['EhBgS'],_0x4c00ee));const _0x5944ba=os[_0x15bb94(0x1fe)](),_0x127eca=path['join'](_0x5944ba,_0x3e0041[_0x15bb94(0x21f)]);!fs['existsSync'](_0x127eca)&&(this[_0x15bb94(0x20e)][_0x15bb94(0x1e8)](util['format'](_0x3e0041['SgfvU'],_0x127eca)),fs['mkdirSync'](_0x127eca),this[_0x15bb94(0x20e)][_0x15bb94(0x1e8)](util[_0x15bb94(0x234)](_0x3e0041[_0x15bb94(0x1e5)],_0x127eca)));const _0x360b5a=BrowserstackCLI[_0x15bb94(0x1f7)]()[_0x15bb94(0x215)][_0x15bb94(0x1f1)]?.[_0x15bb94(0x23a)]?.[_0x15bb94(0x213)]()?.[_0x15bb94(0x24d)],_0x554009=path[_0x15bb94(0x1ff)](_0x127eca,_0x360b5a);!fs[_0x15bb94(0x228)](_0x554009)&&(fs[_0x15bb94(0x236)](_0x554009),this['logger'][_0x15bb94(0x1e8)](util[_0x15bb94(0x234)](_0x3e0041[_0x15bb94(0x23b)],_0x554009)));if(_0x3e0041[_0x15bb94(0x237)](_0x4c00ee['trim'](),'')){this[_0x15bb94(0x20e)][_0x15bb94(0x1e8)](util[_0x15bb94(0x234)](_0x3e0041[_0x15bb94(0x20f)]));return;}if(_0x4c00ee[_0x15bb94(0x23d)](_0x3e0041[_0x15bb94(0x1e3)])||_0x4c00ee[_0x15bb94(0x23d)](_0x3e0041['erbaA'])){const _0x55a299=_0x4c00ee[_0x15bb94(0x23d)](_0x3e0041['oMKhb'])?https:http,_0x57a82d=path[_0x15bb94(0x239)](_0x4c00ee),_0x46f322=path[_0x15bb94(0x1ff)](_0x554009,_0x57a82d),_0x617426=fs[_0x15bb94(0x22c)](_0x46f322);_0x55a299[_0x15bb94(0x233)](_0x4c00ee,_0x400510=>{const _0x192b51=_0x15bb94,_0x48e960={'WgrAX':function(_0x254f82,_0x4157d6){const _0x56949a=a122_0x535f;return _0x3e0041[_0x56949a(0x214)](_0x254f82,_0x4157d6);},'mIyZN':function(_0x100b47,_0x7e6b33){const _0x38a1d3=a122_0x535f;return _0x3e0041[_0x38a1d3(0x22d)](_0x100b47,_0x7e6b33);},'bGbzL':function(_0x1843d5,_0x1df5c0){return _0x3e0041['pLkoQ'](_0x1843d5,_0x1df5c0);},'KKatw':_0x3e0041['fYACV'],'WFtjv':_0x3e0041[_0x192b51(0x1e9)]};if(_0x3e0041['ZLTIt'](_0x400510['statusCode'],0xc8))_0x400510[_0x192b51(0x1f8)](_0x617426),_0x617426['on'](_0x3e0041[_0x192b51(0x1fb)],()=>{const _0x11a82a=_0x192b51;_0x617426[_0x11a82a(0x25a)]();const _0x48410e=fs[_0x11a82a(0x253)](_0x46f322),_0xc0562f=_0x48e960[_0x11a82a(0x24f)](_0x48410e[_0x11a82a(0x1e2)],_0x48e960[_0x11a82a(0x22f)](0x400,0x400));if(_0x48e960['bGbzL'](_0xc0562f,0x64)){this['logger']['debug'](util['format'](_0x48e960['KKatw'],_0xc0562f[_0x11a82a(0x1d8)](0x2))),fs['unlinkSync'](_0x46f322);return;}this[_0x11a82a(0x20e)][_0x11a82a(0x1e8)](util['format'](_0x48e960[_0x11a82a(0x249)],_0x46f322)),uploadAttachmentsManager['trackFile'](_0x46f322,_0xdeb1e);});else{this[_0x192b51(0x20e)][_0x192b51(0x1e8)](util[_0x192b51(0x234)](_0x3e0041[_0x192b51(0x22b)],_0x400510['statusCode'])),_0x617426[_0x192b51(0x25a)](),fs['unlinkSync'](_0x46f322);return;}})['on'](_0x3e0041[_0x15bb94(0x1da)],_0x5171b6=>{const _0x7562e6=_0x15bb94;this[_0x7562e6(0x20e)][_0x7562e6(0x1e8)](util[_0x7562e6(0x234)](_0x3e0041['BGcyx'],_0x5171b6[_0x7562e6(0x25f)])),_0x617426['close'](),fs[_0x7562e6(0x25d)](_0x46f322);return;});}else{if(!fs[_0x15bb94(0x228)](_0x4c00ee)){this[_0x15bb94(0x20e)][_0x15bb94(0x1e8)](util[_0x15bb94(0x234)](_0x3e0041[_0x15bb94(0x1ea)],_0x4c00ee));return;}const _0x536567=fs[_0x15bb94(0x253)](_0x4c00ee),_0x42d750=_0x3e0041[_0x15bb94(0x202)](_0x536567[_0x15bb94(0x1e2)],_0x3e0041[_0x15bb94(0x25c)](0x400,0x400));if(_0x3e0041['pLkoQ'](_0x42d750,0x64)){this[_0x15bb94(0x20e)][_0x15bb94(0x1e8)](util['format'](_0x3e0041['bhnNz'],_0x42d750[_0x15bb94(0x1d8)](0x2)));return;}const _0x2948d6=path[_0x15bb94(0x239)](_0x4c00ee),_0x37c7c7=path[_0x15bb94(0x1ff)](_0x554009,_0x2948d6);fs[_0x15bb94(0x201)](_0x4c00ee,_0x37c7c7),uploadAttachmentsManager['trackFile'](_0x37c7c7,_0xdeb1e);}}static[a122_0x2f5132(0x24b)](_0x38f38b,_0x596eea){const _0x14f443=a122_0x2f5132,_0x4ebf16={'ekQOQ':function(_0x4c7721,_0x33700a){return _0x4c7721(_0x33700a);},'HEFiO':_0x14f443(0x1de),'wTpxb':function(_0x1a571b,_0x2287b2){return _0x1a571b(_0x2287b2);},'wIfHt':_0x14f443(0x23c),'YzBYN':function(_0x1844a4,_0x552064){return _0x1844a4===_0x552064;},'PrPyu':_0x14f443(0x20a),'kTWzo':function(_0x453d34,_0x156150){return _0x453d34===_0x156150;},'LmAoO':_0x14f443(0x1fc),'otGvU':_0x14f443(0x240),'hrbab':_0x14f443(0x241),'ACACq':'TestLevel','bMdyu':_0x14f443(0x210),'wECPj':_0x14f443(0x230),'knjhA':'./state/hookState','AJHFZ':_0x14f443(0x245),'unDuZ':_0x14f443(0x25e),'SaZyM':_0x14f443(0x24c)};try{let _0x228ced;const _0x21c18e=global[_0x14f443(0x262)]?.['currentTest']?.[_0x14f443(0x224)],_0x3a0891=_0x4ebf16[_0x14f443(0x220)](require,_0x4ebf16[_0x14f443(0x219)]),_0x790d5=_0x4ebf16[_0x14f443(0x1db)](require,_0x4ebf16[_0x14f443(0x1e6)]),_0x324e63=_0x3a0891[_0x14f443(0x1f7)]()['isRunning']()&&_0x4ebf16[_0x14f443(0x1ed)](_0x790d5['getTestFrameworkDetail']()?.[_0x14f443(0x1ef)]?.['toLowerCase'](),_0x4ebf16['PrPyu']);if(_0x324e63){_0x228ced=global[_0x14f443(0x247)];if(!_0x228ced){const _0x338c4a=AutomationFramework[_0x14f443(0x221)]();_0x228ced=AutomationFramework[_0x14f443(0x206)](_0x338c4a,PlaywrightDriverModule[_0x14f443(0x258)],'');}this['logger'][_0x14f443(0x1e8)](_0x14f443(0x260)+_0x228ced);}else{if(!_0x21c18e){const _0x182bab=AutomationFramework[_0x14f443(0x221)]();_0x228ced=AutomationFramework[_0x14f443(0x206)](_0x182bab,PlaywrightDriverModule[_0x14f443(0x258)],'');}else _0x228ced=TestInfo['getTestIdentifierFromTestInfo'](_0x21c18e,_0x21c18e[_0x14f443(0x208)]);this['logger']['debug'](_0x14f443(0x1e1)+_0x228ced);}if(!_0x228ced)try{const _0x5b5bb9=_0x3a0891[_0x14f443(0x1f7)](),_0x226f81=_0x5b5bb9&&_0x5b5bb9['getTestFramework']();_0x228ced=_0x226f81&&_0x4ebf16['kTWzo'](typeof _0x226f81['getCurrentTestUUID'],_0x4ebf16[_0x14f443(0x218)])&&_0x226f81[_0x14f443(0x1f2)]()||_0x228ced;}catch(_0x2621ba){this[_0x14f443(0x20e)][_0x14f443(0x1e8)](_0x14f443(0x1f5)+(_0x2621ba&&_0x2621ba['message']));}if(!_0x228ced){this[_0x14f443(0x20e)][_0x14f443(0x1e8)](_0x4ebf16[_0x14f443(0x259)]);return;}const _0x24b0a6={[TestFrameworkConstants['KEY_FILE_SIZE']]:fs[_0x14f443(0x253)](_0x38f38b)[_0x14f443(0x1e2)],[TestFrameworkConstants[_0x14f443(0x200)]]:path[_0x14f443(0x239)](_0x38f38b),[TestFrameworkConstants[_0x14f443(0x1f9)]]:_0x38f38b,[TestFrameworkConstants[_0x14f443(0x205)]]:_0x596eea?_0x4ebf16[_0x14f443(0x21a)]:_0x4ebf16[_0x14f443(0x246)]};if(_0x324e63){const _0xafc39f=_0x3a0891[_0x14f443(0x1f7)]()[_0x14f443(0x222)]();if(!_0xafc39f){this[_0x14f443(0x20e)][_0x14f443(0x1e8)](_0x4ebf16[_0x14f443(0x226)]);return;}const _0x4c7acb=_0x4ebf16[_0x14f443(0x1db)](require,_0x4ebf16[_0x14f443(0x1df)]),_0x2fe493=_0x4ebf16['ekQOQ'](require,_0x4ebf16['knjhA']),_0x46ea29=_0xafc39f[_0x14f443(0x223)](_0x4c7acb[_0x14f443(0x1dc)],_0x2fe493[_0x14f443(0x242)]);if(!_0x46ea29){this[_0x14f443(0x20e)][_0x14f443(0x1e8)](_0x4ebf16[_0x14f443(0x22e)]);return;}const _0x45bc52=_0x46ea29['getAllData']()[_0x14f443(0x233)](_0x228ced)||{},_0x19c6fa=_0x45bc52[TestFrameworkConstants[_0x14f443(0x244)]]||{},_0x49d471={..._0x19c6fa};_0x49d471[_0x38f38b]=_0x24b0a6;const _0x1411c3=_0x49d471,_0xca447c={[TestFrameworkConstants[_0x14f443(0x244)]]:_0x1411c3},_0x1a8036={};_0x1a8036[_0x228ced]=_0xca447c,_0x46ea29[_0x14f443(0x1d7)](_0x1a8036),this[_0x14f443(0x20e)]['debug']('trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20'+_0x228ced+_0x14f443(0x238)+_0x38f38b);}else{const _0x38947f=TestInfo[_0x14f443(0x255)](_0x228ced),_0x36d70a=_0x38947f[TestFrameworkConstants[_0x14f443(0x244)]]||{};_0x36d70a[_0x38f38b]=_0x24b0a6,_0x38947f[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]=_0x36d70a,TestInfo[_0x14f443(0x20d)](_0x228ced,_0x38947f),this[_0x14f443(0x20e)][_0x14f443(0x1e8)]('trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20'+_0x228ced+_0x14f443(0x238)+_0x38f38b);}this['logger'][_0x14f443(0x1e8)](util['format'](_0x4ebf16['unDuZ'],_0x38f38b));}catch(_0x3cbacb){this['logger'][_0x14f443(0x1e8)](util[_0x14f443(0x234)](_0x4ebf16['SaZyM'],_0x3cbacb['message']));}}static[a122_0x2f5132(0x22a)](){const _0x475fa5=a122_0x2f5132,_0x847dad={};_0x847dad[_0x475fa5(0x217)]=_0x475fa5(0x1eb),_0x847dad[_0x475fa5(0x1fd)]=_0x475fa5(0x211),_0x847dad['ndxts']=_0x475fa5(0x235);const _0x27fe4b=_0x847dad,_0x4f3e86=os[_0x475fa5(0x1fe)](),_0x4d7d5e=path['join'](_0x4f3e86,_0x27fe4b[_0x475fa5(0x217)]);if(!fs[_0x475fa5(0x228)](_0x4d7d5e))return;const _0x37aa59=BrowserstackCLI[_0x475fa5(0x1f7)]()[_0x475fa5(0x215)][_0x475fa5(0x1f1)]?.[_0x475fa5(0x23a)]?.[_0x475fa5(0x213)]()?.[_0x475fa5(0x24d)],_0x2c1247=_0x37aa59?path[_0x475fa5(0x1ff)](_0x4d7d5e,_0x37aa59):null;if(!_0x2c1247||!fs['existsSync'](_0x2c1247)){this[_0x475fa5(0x20e)][_0x475fa5(0x1e8)](util[_0x475fa5(0x234)](_0x27fe4b['NDNvd'],_0x37aa59));return;}const _0x5be2d3={};_0x5be2d3[_0x475fa5(0x24e)]=!![],_0x5be2d3[_0x475fa5(0x21b)]=!![],fs[_0x475fa5(0x261)](_0x2c1247,_0x5be2d3),this[_0x475fa5(0x20e)][_0x475fa5(0x1e8)](util[_0x475fa5(0x234)](_0x27fe4b[_0x475fa5(0x20b)]));}}function a122_0x196b(){const _0x2f5f80=['homedir','join','KEY_FILE_NAME','copyFileSync','SfNMv','finish','error','KEY_FILE_LEVEL','getState','./framework/automationFramework','retry','Created\x20folder:\x20%s','jest','ndxts','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','setTestDetails','logger','wQEcn','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','toObject','vumle','modules','./TestInfo','XOfNr','LmAoO','HEFiO','hrbab','force','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','24aXsuCk','https://','ReYUv','ekQOQ','getTrackedInstance','getTestFramework','resolveInstance','testInfo','2544525hHSBHK','bMdyu','../../helpers/classLogger.js','existsSync','7fhCCTY','clearAttachments','wywxC','createWriteStream','TpxjF','AJHFZ','mIyZN','./state/testFrameworkState','./modules/playwrightDriverModule','http','get','format','Cleared\x20attachment\x20folder','mkdirSync','ZLTIt',',\x20filepath:\x20','basename','testhubConfig','XxKDm','./cliUtils','startsWith','Created\x20.browserstack\x20folder\x20at:\x20%s','1797720KouSPS','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','BuildLevel','POST','Attachment\x20recevied\x20for\x20path:\x20%s','KEY_TEST_ATTACHMENTS','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','ACACq','__jestCurrentTestIdentifier','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','WFtjv','EhBgS','trackFile','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','buildHashedId','recursive','WgrAX','BGcyx','util','10jwsyEX','statSync','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','getTestDetails','path','793013FLDbNb','KEY_TEST_ID','otGvU','close','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','yaDIo','unlinkSync','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','message','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','rmSync','__workerDetails','26ZoFZjh','50qavysh','117075VsxgLb','addMultipleEntries','toFixed','13885344nlWQlA','LuwwE','wTpxb','TEST','erbaA','./browserstackCLI','wECPj','13333342AzZpmN','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','size','oMKhb','2064312kdtTQU','XLWNH','wIfHt','exports','debug','VlBZO','XXati','.browserstack','File\x20downloaded\x20to:\x20%s','YzBYN','bhnNz','name','fYACV','TestHubModule','getCurrentTestUUID','pLkoQ','uploadAttachmentsManager','trackFile:\x20node-generic\x20testId\x20fallback\x20failed:\x20','uploadAttachments','getInstance','pipe','KEY_FILE_PATH','http://','AqzFG','function','NDNvd'];a122_0x196b=function(){return _0x2f5f80;};return a122_0x196b();}module[a122_0x2f5132(0x1e7)]=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a123_0x426260=a123_0x25cb;function a123_0x25cb(_0x13da57,_0x447f3b){const _0x33dac7=a123_0x33da();return a123_0x25cb=function(_0x25cb66,_0x34345f){_0x25cb66=_0x25cb66-0xa4;let _0x5604b5=_0x33dac7[_0x25cb66];return _0x5604b5;},a123_0x25cb(_0x13da57,_0x447f3b);}(function(_0x4e1c23,_0xf9194e){const _0x488a14=a123_0x25cb,_0x540f3c=_0x4e1c23();while(!![]){try{const _0x1ef22c=-parseInt(_0x488a14(0xd0))/0x1+parseInt(_0x488a14(0xb9))/0x2*(parseInt(_0x488a14(0xfd))/0x3)+-parseInt(_0x488a14(0x129))/0x4+-parseInt(_0x488a14(0xc5))/0x5+parseInt(_0x488a14(0xeb))/0x6*(parseInt(_0x488a14(0xfb))/0x7)+parseInt(_0x488a14(0xca))/0x8*(parseInt(_0x488a14(0x109))/0x9)+parseInt(_0x488a14(0xf5))/0xa;if(_0x1ef22c===_0xf9194e)break;else _0x540f3c['push'](_0x540f3c['shift']());}catch(_0x59b2ad){_0x540f3c['push'](_0x540f3c['shift']());}}}(a123_0x33da,0x3bc2f));function a123_0x33da(){const _0x115524=['7SxuiXm','AssertionError','3kbfazK','../../../helpers/test-observability/error-handler.js','cucumber','ZbprI','EeCGB','util','find','filter','WYhdX','getCucumberHookType','cQcZC','relative','18LKMFzT','timestamp','push','getHookRunEventData','testCaseFinished','plirD','createTestFrameworkData','TvfGO','LPhzZ','flSGQ','status','duration_in_ms','path','message','createHookData','examples','ZZXcD','KptRz','RxZYp','ukwIt','match','zuDnK','failure','toLowerCase','_gitConfigPath','map','tagExpression','mHyqn','xShgY','bgWvJ','test','UnhandledError','1067316TuBQjn','Exception\x20in\x20createHookData:\x20','backtrace','aCubc','testStepResult','OvtJl','value','finishedAt','winstonLogger','getHookResult','MsNRE','finished_at','uuid','flatMap','Vxoyf','ZHgXo','tags','hLsWm','FAILED','failed','strip-ansi','toString','astNodeIds','185662zOuari','getScenarioExamples','pSTZW','name','HookRunStarted','dpfgF','uttQD','sqXJA','Mlitj','failure_type','nanos','XGTZg','158735mioyIh','TSYHp','Exception\x20in\x20getHookRunEventData:\x20','configureGit','VjuMh','831464KMxMMV','forEach','../../../helpers/logger.js','VlPKd','failure_data','oKebO','384811yLhnua','passed','feature','debug','hookId','_gitConfigured','rule','length','Qgpxl','ONeaV','pending','children','sourceReference','jUJdl','toISOString','../TestInfo.js','hook','lGRLF','BkEzi','bKHvQ','failureType','result','fBkyo','format','JsEXI','cells','iqeHU','31818GPcDQF','UdZBT','every','BEFORE_EACH','uri','testStepFinished','HookRunFinished','scenario','tableBody','cyMks','6221700lZYtKX','AFTER_EACH','exception','QUzjE','javascript','skipped'];a123_0x33da=function(){return _0x115524;};return a123_0x33da();}const path=require(a123_0x426260(0x115)),util=require(a123_0x426260(0x102)),{getGitMetaData,isUndefined,nestedKeyValue,deriveCucumberHookName,isSdkSetupHook}=require('../../../helpers/helper.js'),logger=require(a123_0x426260(0xcc))[a123_0x426260(0xaa)],{o11yClassErrorHandler}=require(a123_0x426260(0xfe)),TestInfo=require(a123_0x426260(0xdf)),hooksMap={};class CucumberUtils{constructor(){const _0x338ac5=a123_0x426260;this[_0x338ac5(0xd5)]=![],this[_0x338ac5(0x121)]=null;}async['createTestFrameworkData'](_0x4c1cb1,_0x2e1e7c,_0x48465d,_0x565fc1,_0x4df83c,_0x1108cc){const _0x24896b=a123_0x426260,_0x22abe8={'lGRLF':function(_0x49db9c,_0x2a7c23){return _0x49db9c===_0x2a7c23;},'oKebO':_0x24896b(0xb4),'cQcZC':_0x24896b(0xb5),'MsNRE':function(_0x188fb5,_0x23966e){return _0x188fb5===_0x23966e;},'BkEzi':'SKIPPED','cyMks':_0x24896b(0xfa),'LPhzZ':function(_0x256af2,_0x11ad5c){return _0x256af2||_0x11ad5c;},'xShgY':function(_0x470b6f,_0x3985ab){return _0x470b6f+_0x3985ab;},'TSYHp':_0x24896b(0x127),'ZZXcD':_0x24896b(0xf9),'flSGQ':_0x24896b(0xff),'iqeHU':_0x24896b(0xda),'dpfgF':_0x24896b(0xd1),'yhkLZ':function(_0x4b93a5,_0x321e9a){return _0x4b93a5!==_0x321e9a;},'WYhdX':function(_0x54f1e9,_0x36434d){return _0x54f1e9/_0x36434d;},'bgWvJ':_0x24896b(0xb6),'UdZBT':function(_0x66c4da,_0x494555){return _0x66c4da(_0x494555);},'TvfGO':'unknown','bKHvQ':function(_0x174969,_0x3b7c64){return _0x174969(_0x3b7c64);},'fYZni':_0x24896b(0xfc),'DbUSU':'UnhandledError'},{feature:_0x2c83c7,scenario:_0x57d551,steps:_0x5a3717,uuid:_0xe325d,startedAt:_0x3af9ee,finishedAt:_0x560a6f}=_0x22abe8[_0x24896b(0x111)](_0x4c1cb1,{}),_0x3ac589=this[_0x24896b(0xba)](_0x565fc1,_0x2e1e7c);await this['configureGit']();const _0xc1e4f8=_0x3ac589?_0x22abe8[_0x24896b(0x125)](_0x22abe8[_0x24896b(0x125)](_0x22abe8[_0x24896b(0x125)](_0x2e1e7c[_0x24896b(0xbc)],'\x20('),_0x3ac589['join'](',\x20')),')'):_0x2e1e7c[_0x24896b(0xbc)],_0x447a86={'id':_0x4df83c,'uuid':_0x4df83c,'startedAt':_0x3af9ee,'finishedAt':_0x560a6f,'type':_0x22abe8[_0x24896b(0xc6)],'body':{'lang':_0x22abe8[_0x24896b(0x119)],'code':null},'name':_0xc1e4f8,'scopes':[_0x2c83c7&&_0x2c83c7[_0x24896b(0xbc)]?_0x2c83c7[_0x24896b(0xbc)]:''],'tags':_0x2e1e7c[_0x24896b(0xb2)]?_0x2e1e7c[_0x24896b(0xb2)][_0x24896b(0x122)](({name:_0x3473f8})=>_0x3473f8):[],'file_name':_0x2e1e7c[_0x24896b(0xef)],'location':_0x2e1e7c[_0x24896b(0xef)],'vc_filepath':this[_0x24896b(0x121)]&&_0x2e1e7c['uri']?path[_0x24896b(0x108)](this[_0x24896b(0x121)],_0x2e1e7c[_0x24896b(0xef)]):null,'framework':_0x22abe8[_0x24896b(0x112)],'result':_0x22abe8[_0x24896b(0xea)],'meta':{'feature':_0x2c83c7,'scenario':_0x57d551,'steps':_0x5a3717,'examples':_0x3ac589},'customRerunParam':{'rerun_name':_0xc1e4f8}};if(_0x48465d[_0x24896b(0x10d)]&&_0x5a3717){const _0x308b15=_0x48465d[_0x24896b(0x10d)];let _0x4ac6de=_0x22abe8[_0x24896b(0xbe)];_0x5a3717[_0x24896b(0xed)](_0x3ee5fd=>{const _0x3aaa3d=_0x24896b;if(_0x22abe8[_0x3aaa3d(0xe1)](_0x3ee5fd[_0x3aaa3d(0xe5)],_0x22abe8[_0x3aaa3d(0xcf)]))return _0x4ac6de=_0x22abe8[_0x3aaa3d(0x107)],_0x308b15[_0x3aaa3d(0x11f)]=_0x3ee5fd[_0x3aaa3d(0x11f)],_0x308b15['failureType']=_0x3ee5fd[_0x3aaa3d(0xe4)],![];else{if(_0x22abe8[_0x3aaa3d(0xac)](_0x3ee5fd[_0x3aaa3d(0xe5)],_0x22abe8[_0x3aaa3d(0xe2)]))return _0x4ac6de=_0x22abe8[_0x3aaa3d(0xf4)],![];}return!![];}),_0x447a86[_0x24896b(0xa9)]=new Date()['toISOString'](),_0x447a86['result']=_0x4ac6de;_0x308b15[_0x24896b(0x10a)]&&_0x22abe8['yhkLZ'](_0x308b15[_0x24896b(0x10a)]['nanos'],undefined)?_0x447a86[_0x24896b(0x114)]=_0x22abe8[_0x24896b(0x105)](_0x308b15['timestamp'][_0x24896b(0xc3)],0xf4240):_0x447a86['duration_in_ms']=undefined;if(_0x22abe8[_0x24896b(0xe1)](_0x4ac6de,_0x22abe8[_0x24896b(0x107)])){const {default:_0x127859}=await import(_0x22abe8[_0x24896b(0x126)]);_0x447a86[_0x24896b(0x11f)]=[{'backtrace':[_0x308b15[_0x24896b(0x11f)]?_0x22abe8[_0x24896b(0xec)](_0x127859,_0x308b15[_0x24896b(0x11f)]):_0x22abe8[_0x24896b(0x110)]]}],_0x447a86['failure_reason']=_0x308b15[_0x24896b(0x11f)]?_0x22abe8[_0x24896b(0xe3)](_0x127859,_0x308b15[_0x24896b(0x11f)]):_0x308b15['message'],_0x308b15[_0x24896b(0xe4)]&&(_0x447a86[_0x24896b(0xc2)]=_0x308b15[_0x24896b(0xe4)][_0x24896b(0x11d)](/AssertError/)?_0x22abe8['fYZni']:_0x22abe8['DbUSU']);}}return _0x447a86;}[a123_0x426260(0x10c)](_0x4207e6,_0x4cabb0,_0x49dca9,_0x23a2aa,_0x4ba717,_0x42b8c9){const _0x12b1c3=a123_0x426260,_0x140fd0={'Qgpxl':function(_0x53b656,_0xfc1cd8){return _0x53b656===_0xfc1cd8;},'RxZYp':_0x12b1c3(0xf1),'ZbprI':function(_0x2fd35e,_0x330ed0,_0x3836db){return _0x2fd35e(_0x330ed0,_0x3836db);},'npICc':_0x12b1c3(0xdc),'VlPKd':'uri','XGTZg':_0x12b1c3(0xda),'TYtif':_0x12b1c3(0xe0),'wohwl':function(_0x4a14dc,_0x34892e,_0x1abf56,_0x2ca2c4){return _0x4a14dc(_0x34892e,_0x1abf56,_0x2ca2c4);},'JsEXI':function(_0x575ea2,_0x61fcb5,_0x1f8219){return _0x575ea2(_0x61fcb5,_0x1f8219);},'nQfmy':_0x12b1c3(0xf2),'uttQD':_0x12b1c3(0xbc),'OZczt':_0x12b1c3(0xf9),'ZHgXo':_0x12b1c3(0xd2),'yNAEQ':'cucumber'};try{if(_0x140fd0[_0x12b1c3(0xd8)](_0x49dca9,_0x140fd0[_0x12b1c3(0x11b)])){const _0x2b94af=new Date()['toISOString'](),_0x489e6d=hooksMap[_0x4cabb0];if(!_0x489e6d)return;const _0x7cc142=_0x489e6d[_0x12b1c3(0x103)](_0x206eb4=>_0x206eb4[_0x12b1c3(0xae)]===_0x23a2aa['id']);if(!_0x7cc142)return;const _0xde20e6=this[_0x12b1c3(0xab)](_0x4207e6,_0x4cabb0);_0x7cc142[_0x12b1c3(0xe5)]=_0xde20e6['status'],_0x7cc142[_0x12b1c3(0xad)]=_0x2b94af,_0x7cc142[_0x12b1c3(0xc2)]=_0xde20e6[_0x12b1c3(0xe4)];const _0x230d0c={};return _0x230d0c[_0x12b1c3(0xa4)]=_0xde20e6['failureData'],_0x7cc142[_0x12b1c3(0xce)]=[_0x230d0c],_0x7cc142;}const _0x5d7764=TestInfo['getTestUUID'](_0x4cabb0),_0x29a323=_0x4207e6['hooks']['find'](_0x136e56=>_0x136e56['id']===_0x23a2aa[_0x12b1c3(0xd4)]),_0x2e87f6=_0x140fd0[_0x12b1c3(0x100)](nestedKeyValue,_0x29a323,[_0x140fd0['npICc'],_0x140fd0[_0x12b1c3(0xcd)]]),_0x36289d=new Date()[_0x12b1c3(0xde)](),_0x3b5441=_0x140fd0[_0x12b1c3(0xc4)],_0x54c637=_0x29a323['tagExpression']?_0x29a323[_0x12b1c3(0x123)]['split']('\x20')[_0x12b1c3(0x104)](_0x440f73=>_0x440f73['includes']('@')):[],_0x5ad846={'uuid':_0x23a2aa['id'],'type':_0x140fd0['TYtif'],'hook_type':_0x42b8c9,'name':_0x140fd0['wohwl'](deriveCucumberHookName,_0x29a323[_0x12b1c3(0xbc)],_0x42b8c9,_0x140fd0[_0x12b1c3(0xe8)](nestedKeyValue,_0x4ba717,[_0x140fd0['nQfmy'],_0x140fd0[_0x12b1c3(0xbf)]])),'body':{'lang':_0x140fd0['OZczt'],'code':null},'tags':_0x54c637,'test_run_id':_0x5d7764,'scope':_0x140fd0['ZbprI'](nestedKeyValue,_0x4ba717,[_0x140fd0['ZHgXo'],_0x140fd0[_0x12b1c3(0xbf)]]),'scopes':[_0x140fd0[_0x12b1c3(0x100)](nestedKeyValue,_0x4ba717,[_0x140fd0[_0x12b1c3(0xb1)],_0x140fd0[_0x12b1c3(0xbf)]])||''],'file_name':_0x2e87f6,'location':_0x2e87f6,'vc_filepath':this['_gitConfigPath']&&_0x2e87f6?path[_0x12b1c3(0x108)](this[_0x12b1c3(0x121)],_0x2e87f6):null,'result':_0x3b5441,'started_at':_0x36289d,'framework':_0x140fd0['yNAEQ']};return _0x5ad846;}catch(_0x22f6f4){logger[_0x12b1c3(0xd3)](_0x12b1c3(0xc7)+util['format'](_0x22f6f4)+'\x20');}}async[a123_0x426260(0x117)](_0x5096de,_0x4fe00b,_0x50dae2,_0x3d8eb5,_0x1e15cf,_0x1addc2){const _0x46bead=a123_0x426260,_0x2e4757={'EeCGB':function(_0x5b84ab,_0x4fbbd2){return _0x5b84ab===_0x4fbbd2;},'ONeaV':_0x46bead(0xbd),'ukwIt':function(_0x3c89a7,_0x21f640,_0xb578f1){return _0x3c89a7(_0x21f640,_0xb578f1);},'sqXJA':_0x46bead(0xdc),'VjuMh':_0x46bead(0xef)};try{const _0x2154e4=_0x3d8eb5[_0x46bead(0x103)](_0x5daa3a=>_0x5daa3a['id']===_0x1e15cf);if(!_0x2154e4[_0x46bead(0xd4)])return;const _0x1dae3e=this[_0x46bead(0x106)](_0x3d8eb5,_0x2154e4),_0x5cf0d9=this[_0x46bead(0x10c)](_0x5096de,_0x4fe00b,_0x50dae2,_0x2154e4,_0x1addc2,_0x1dae3e);if(!_0x5cf0d9)return;_0x2e4757[_0x46bead(0x101)](_0x50dae2,_0x2e4757[_0x46bead(0xd9)])&&(hooksMap[_0x4fe00b]?hooksMap[_0x4fe00b][_0x46bead(0x10b)](_0x5cf0d9):hooksMap[_0x4fe00b]=[_0x5cf0d9]);const _0x2d60b1=_0x5096de['hooks'][_0x46bead(0x103)](_0x5df002=>_0x5df002['id']===_0x2154e4[_0x46bead(0xd4)]),_0x41fb60=_0x2e4757[_0x46bead(0x11c)](nestedKeyValue,_0x2d60b1,[_0x2e4757[_0x46bead(0xc0)],_0x2e4757[_0x46bead(0xc9)]]);if(!_0x41fb60)return;else{if(_0x2e4757['ukwIt'](isSdkSetupHook,_0x41fb60,_0x5cf0d9[_0x46bead(0xbc)]))return;}return _0x5cf0d9;}catch(_0x47f70b){logger['debug'](_0x46bead(0x12a)+util[_0x46bead(0xe7)](_0x47f70b)+'\x20');}}[a123_0x426260(0xab)](_0x31caab,_0x1919e0){const _0x2518ff=a123_0x426260,_0x3ca402={};_0x3ca402[_0x2518ff(0xb3)]=function(_0x34881d,_0x48e9c6){return _0x34881d===_0x48e9c6;},_0x3ca402[_0x2518ff(0xf8)]=_0x2518ff(0xb5),_0x3ca402['mHyqn']=function(_0x185139,_0x5b1cbd){return _0x185139===_0x5b1cbd;},_0x3ca402['jUJdl']=function(_0x267d67,_0x5af402){return _0x267d67===_0x5af402;},_0x3ca402[_0x2518ff(0xb0)]=_0x2518ff(0x128),_0x3ca402[_0x2518ff(0x11e)]=_0x2518ff(0xfc),_0x3ca402['PRhKZ']=function(_0xb185b3,_0x4610bf){return _0xb185b3||_0x4610bf;};const _0x5c098b=_0x3ca402,_0x15a9b4=_0x31caab[_0x2518ff(0xf0)][_0x1919e0][_0x2518ff(0xa6)];let _0x444534,_0x40fa19;return _0x15a9b4&&_0x5c098b[_0x2518ff(0xb3)](_0x15a9b4[_0x2518ff(0x113)][_0x2518ff(0xb7)]()[_0x2518ff(0x120)](),_0x5c098b[_0x2518ff(0xf8)])&&(_0x444534=_0x5c098b[_0x2518ff(0x124)](_0x15a9b4[_0x2518ff(0xf7)],undefined)?_0x15a9b4[_0x2518ff(0x116)]:_0x15a9b4['exception'][_0x2518ff(0x116)],_0x40fa19=_0x5c098b[_0x2518ff(0xdd)](_0x15a9b4[_0x2518ff(0xf7)],undefined)?_0x5c098b[_0x2518ff(0xb0)]:_0x15a9b4[_0x2518ff(0x116)][_0x2518ff(0x11d)](/Assert/)?_0x5c098b[_0x2518ff(0x11e)]:_0x5c098b[_0x2518ff(0xb0)]),{'status':_0x15a9b4['status'][_0x2518ff(0x120)](),'failureType':_0x5c098b['PRhKZ'](_0x40fa19,null),'failureData':!_0x444534?null:[_0x444534]};}[a123_0x426260(0x106)](_0x2e1daa,_0x41e7f0){const _0x402304=a123_0x426260,_0x6b2a3={};_0x6b2a3[_0x402304(0xbb)]=function(_0x4348e5,_0xfda038){return _0x4348e5===_0xfda038;},_0x6b2a3[_0x402304(0xc1)]=_0x402304(0xf6),_0x6b2a3[_0x402304(0xe6)]=_0x402304(0xee);const _0x28956a=_0x6b2a3;let _0x382b8c=![];for(const _0xe822b8 of _0x2e1daa){_0xe822b8['pickleStepId']&&(_0x382b8c=!![]);if(_0x28956a['pSTZW'](_0x41e7f0['id'],_0xe822b8['id']))return _0x382b8c?_0x28956a['Mlitj']:_0x28956a['fBkyo'];}}[a123_0x426260(0xba)]=(_0xd137cc,_0x1217eb)=>{const _0x1cf260=a123_0x426260,_0x4e6221={};_0x4e6221['KptRz']=function(_0x5820c9,_0x9d8a2d){return _0x5820c9===_0x9d8a2d;},_0x4e6221['aCubc']=function(_0x19b05b,_0x4871cf){return _0x19b05b>_0x4871cf;};const _0x140535=_0x4e6221;if(!(_0x1217eb[_0x1cf260(0xb8)]&&_0x140535[_0x1cf260(0xa5)](_0x1217eb[_0x1cf260(0xb8)][_0x1cf260(0xd7)],0x1)))return;const _0x15cc26=_0x1217eb['astNodeIds'][0x0],_0x4c18=_0x1217eb[_0x1cf260(0xb8)][0x1],_0x4554f6=_0xd137cc['feature']&&_0xd137cc[_0x1cf260(0xd2)]['children']?_0xd137cc[_0x1cf260(0xd2)][_0x1cf260(0xdb)]:undefined;let _0x184054=[];_0x4554f6&&_0x4554f6[_0x1cf260(0xcb)](_0x25e587=>{const _0x431599=_0x1cf260,_0x4edc17={'plirD':function(_0x4aca0b,_0x32a9b7){const _0x3cb115=a123_0x25cb;return _0x140535[_0x3cb115(0x11a)](_0x4aca0b,_0x32a9b7);}};if(_0x25e587[_0x431599(0xd6)])_0x25e587[_0x431599(0xd6)][_0x431599(0xdb)][_0x431599(0xcb)](_0x5ab784=>{const _0x1ccfc2=_0x431599;if(_0x5ab784['scenario']&&_0x4edc17[_0x1ccfc2(0x10e)](_0x5ab784[_0x1ccfc2(0xf2)]['id'],_0x15cc26)&&_0x5ab784['scenario'][_0x1ccfc2(0x118)]){const _0x497b32=_0x5ab784['scenario'][_0x1ccfc2(0x118)][_0x1ccfc2(0xaf)](_0x54611f=>_0x54611f[_0x1ccfc2(0xf3)])[_0x1ccfc2(0x103)](_0x3fb934=>_0x3fb934['id']===_0x4c18);let _0x1dba1d;_0x497b32&&_0x497b32['cells']?_0x1dba1d=_0x497b32['cells']['map'](_0x289756=>_0x289756[_0x1ccfc2(0xa8)]):_0x1dba1d=[],_0x1dba1d&&(_0x184054=_0x1dba1d);}});else{if(_0x25e587[_0x431599(0xf2)]&&_0x140535['KptRz'](_0x25e587[_0x431599(0xf2)]['id'],_0x15cc26)&&_0x25e587[_0x431599(0xf2)][_0x431599(0x118)]){const _0x5a295a=_0x25e587[_0x431599(0xf2)][_0x431599(0x118)][_0x431599(0xaf)](_0x56f002=>_0x56f002[_0x431599(0xf3)])[_0x431599(0x103)](_0x76cf2f=>_0x76cf2f['id']===_0x4c18);let _0x27b4a0;_0x5a295a&&_0x5a295a[_0x431599(0xe9)]?_0x27b4a0=_0x5a295a[_0x431599(0xe9)][_0x431599(0x122)](_0x3d6bbc=>_0x3d6bbc[_0x431599(0xa8)]):_0x27b4a0=[],_0x27b4a0&&(_0x184054=_0x27b4a0);}}});if(_0x184054[_0x1cf260(0xd7)])return _0x184054;return;};async['configureGit'](){const _0x3a859e=a123_0x426260,_0xf6d659={'OvtJl':function(_0x189767){return _0x189767();}};if(this[_0x3a859e(0xd5)])return this[_0x3a859e(0x121)];const _0xb37c36=await _0xf6d659[_0x3a859e(0xa7)](getGitMetaData);_0xb37c36&&(this['_gitConfigPath']=_0xb37c36['root']),this['_gitConfigured']=!![];}}module['exports']=o11yClassErrorHandler(CucumberUtils,[a123_0x426260(0xc8),'getScenarioExamples','getCucumberHookType',a123_0x426260(0xab),'sendHook',a123_0x426260(0x10c),'sendTestRunEventForCucumber',a123_0x426260(0x10f)]);
|
|
@@ -1 +1 @@
|
|
|
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
|
+
function a124_0x455b(_0x150df4,_0x2a373b){const _0x55dd11=a124_0x55dd();return a124_0x455b=function(_0x455b48,_0x546f23){_0x455b48=_0x455b48-0x1c2;let _0x1901c9=_0x55dd11[_0x455b48];return _0x1901c9;},a124_0x455b(_0x150df4,_0x2a373b);}const a124_0x3e741f=a124_0x455b;(function(_0x387b94,_0x3aff37){const _0x107cc0=a124_0x455b,_0x5ef9f8=_0x387b94();while(!![]){try{const _0x4688f8=parseInt(_0x107cc0(0x1ea))/0x1*(parseInt(_0x107cc0(0x278))/0x2)+parseInt(_0x107cc0(0x1de))/0x3+parseInt(_0x107cc0(0x276))/0x4*(parseInt(_0x107cc0(0x24d))/0x5)+-parseInt(_0x107cc0(0x267))/0x6+parseInt(_0x107cc0(0x23c))/0x7+parseInt(_0x107cc0(0x21b))/0x8+-parseInt(_0x107cc0(0x209))/0x9;if(_0x4688f8===_0x3aff37)break;else _0x5ef9f8['push'](_0x5ef9f8['shift']());}catch(_0x5e3428){_0x5ef9f8['push'](_0x5ef9f8['shift']());}}}(a124_0x55dd,0x7a586));const path=require(a124_0x3e741f(0x21e)),util=require(a124_0x3e741f(0x1e6)),crypto=require('crypto'),{getGitMetaData,isUndefined,nestedKeyValue}=require(a124_0x3e741f(0x1d3)),logger=require(a124_0x3e741f(0x256))[a124_0x3e741f(0x233)],{o11yClassErrorHandler}=require(a124_0x3e741f(0x27e)),TestInfo=require(a124_0x3e741f(0x202)),{failureData,getFailureType,PathHelper}=require(a124_0x3e741f(0x27f)),stackTrace=require(a124_0x3e741f(0x215)),{pickUserFrameFile}=require(a124_0x3e741f(0x1c6)),a124_0xc95864={};a124_0xc95864['beforeAll']=a124_0x3e741f(0x1e0),a124_0xc95864[a124_0x3e741f(0x1ec)]='AFTER_ALL',a124_0xc95864[a124_0x3e741f(0x237)]=a124_0x3e741f(0x1d6),a124_0xc95864[a124_0x3e741f(0x235)]=a124_0x3e741f(0x22e);const HOOK_TYPES_MAP=a124_0xc95864,hooksMap={};class JestUtils{constructor(){const _0x36c518=a124_0x3e741f;this[_0x36c518(0x1fa)]=![],this[_0x36c518(0x1e8)]=null,this[_0x36c518(0x1da)]=new PathHelper({'cwd':process[_0x36c518(0x1fe)]()},undefined);}async[a124_0x3e741f(0x1cc)](_0x2460fe,_0x31a243,_0x2b7eec=a124_0x3e741f(0x25c),_0x454027=undefined){const _0x125c28=a124_0x3e741f,_0x40171a={'rfCqK':'No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','czZHe':'jest-circus','iTYIw':'File\x20path\x20could\x20not\x20be\x20found','yNPwO':function(_0x538110,_0x55c143){return _0x538110!==_0x55c143;},'gJtmF':_0x125c28(0x1d2),'OAKUq':function(_0x37f6c6,_0x3e1a69){return _0x37f6c6!==_0x3e1a69;},'ScErA':_0x125c28(0x27a),'wBRXh':function(_0x5d8ea,_0x66bf56){return _0x5d8ea!==_0x66bf56;},'vKxIr':'pending','VaSLZ':function(_0x3ddc52,_0x29f567){return _0x3ddc52===_0x29f567;},'iBCNZ':_0x125c28(0x228),'erJhA':_0x125c28(0x211),'VcjGN':_0x125c28(0x25c),'yRbVV':function(_0x5d7f4e,_0x4889aa){return _0x5d7f4e>_0x4889aa;},'xEAUC':_0x125c28(0x272),'pmUkr':_0x125c28(0x1ef),'zvNvr':function(_0x1cbb9e,_0x306e5b){return _0x1cbb9e-_0x306e5b;},'dPzOK':'javascript','OpNmH':function(_0x3d64d0,_0x4dd746){return _0x3d64d0>_0x4dd746;},'iBplp':_0x125c28(0x25f),'BOgJi':function(_0x1151d7,_0x4de09a){return _0x1151d7(_0x4de09a);},'dhDQy':function(_0x4af5c9,_0x1501b7){return _0x4af5c9===_0x1501b7;},'qbnPv':function(_0x8c256,_0x6ec245){return _0x8c256===_0x6ec245;}};logger['debug'](_0x125c28(0x23d)+_0x2b7eec+_0x125c28(0x20b)+_0x31a243);try{if(!_0x2460fe)return logger['debug'](_0x40171a[_0x125c28(0x1e9)]),null;if(_0x2460fe['fn']&&_0x2460fe['fn'][_0x125c28(0x273)]()[_0x125c28(0x1f8)](/browserstack internal helper hook/))return null;await this[_0x125c28(0x20c)]();let _0x55c09a;try{_0x55c09a=this[_0x125c28(0x1e5)](_0x2460fe);if(_0x55c09a&&_0x55c09a['includes'](_0x40171a['czZHe']))return null;}catch(_0xc7621){logger['debug']('Failed\x20to\x20get\x20root\x20parent\x20file:\x20'+util['format'](_0xc7621)),_0x55c09a=null;}const _0x4024c7=this[_0x125c28(0x22d)](_0x2460fe),_0x23b599=this[_0x125c28(0x277)](_0x2460fe),_0x1231c7=_0x55c09a?this[_0x125c28(0x1da)][_0x125c28(0x27c)](_0x55c09a):_0x40171a[_0x125c28(0x1f4)];let _0x526c86=[];const _0x5ecdf3=_0x2460fe['errorsDetailed']||_0x2460fe['errors'];if(_0x40171a[_0x125c28(0x1d1)](_0x5ecdf3,undefined))_0x526c86=[_0x5ecdf3,_0x40171a[_0x125c28(0x251)]];else _0x40171a['OAKUq'](_0x454027,undefined)&&(_0x526c86=[_0x454027,_0x40171a[_0x125c28(0x201)]]);const _0x25f297=_0x40171a[_0x125c28(0x257)](_0x5ecdf3,undefined)?util[_0x125c28(0x26a)](_0x5ecdf3[0x0]):_0x40171a[_0x125c28(0x1d1)](_0x454027,undefined)?_0x454027[_0x125c28(0x273)]():undefined;let _0x252855=_0x40171a[_0x125c28(0x25a)];if(_0x40171a[_0x125c28(0x21f)](_0x2b7eec,_0x40171a[_0x125c28(0x258)]))_0x252855=_0x40171a[_0x125c28(0x264)];else _0x40171a['VaSLZ'](_0x2b7eec,_0x40171a[_0x125c28(0x234)])&&(_0x5ecdf3&&_0x40171a[_0x125c28(0x204)](_0x5ecdf3[_0x125c28(0x259)],0x0)?_0x252855=_0x40171a[_0x125c28(0x25d)]:_0x252855=_0x40171a[_0x125c28(0x245)]);let _0x4e120b=null;if(_0x40171a[_0x125c28(0x1d1)](_0x2460fe[_0x125c28(0x1fd)],undefined))_0x4e120b=_0x2460fe['duration'];else(_0x2b7eec[_0x125c28(0x1f8)](/Finished/)||_0x2b7eec[_0x125c28(0x1f8)](/Skipped/))&&(_0x2460fe[_0x125c28(0x255)]&&(_0x4e120b=_0x40171a[_0x125c28(0x222)](Date['now'](),new Date(_0x2460fe[_0x125c28(0x255)])[_0x125c28(0x208)]())));const _0x3f45ab=_0x2460fe['fn']?_0x2460fe['fn'][_0x125c28(0x273)]():null,_0x5047f1={'id':_0x31a243,'uuid':_0x31a243,'startedAt':_0x2460fe[_0x125c28(0x255)]||new Date()[_0x125c28(0x22a)](),'finishedAt':_0x2b7eec['match'](/Finished/)||_0x2b7eec[_0x125c28(0x1f8)](/Skipped/)?new Date()[_0x125c28(0x22a)]():null,'type':_0x40171a['gJtmF'],'body':{'lang':_0x40171a[_0x125c28(0x1f5)],'code':_0x3f45ab},'name':_0x23b599,'errorsDetailed':_0x40171a[_0x125c28(0x23e)](_0x5ecdf3?.[_0x125c28(0x259)],0x0)?_0x5ecdf3[0x0]:_0x5ecdf3?_0x5ecdf3:undefined,'scopes':_0x4024c7,'file_name':_0x1231c7,'location':_0x1231c7,'vc_filepath':this[_0x125c28(0x1e8)]&&_0x55c09a?path['relative'](this[_0x125c28(0x1e8)],_0x55c09a):null,'framework':_0x40171a['iBplp'],'result':_0x252855,'failure_reason':_0x25f297,'duration_in_ms':_0x4e120b,'failure':failureData['apply'](null,_0x526c86),'failure_type':!_0x25f297?null:_0x40171a[_0x125c28(0x266)](getFailureType,_0x25f297),'retry_of':_0x2460fe[_0x125c28(0x27b)]||null,'customRerunParam':{'rerun_name':_0x23b599}};_0x40171a[_0x125c28(0x21f)](_0x2b7eec,_0x40171a['iBCNZ'])&&!_0x5047f1['startedAt']&&(_0x5047f1[_0x125c28(0x249)]=_0x5047f1[_0x125c28(0x1f0)]);const _0x125495=_0x5047f1['failure']&&_0x5047f1[_0x125c28(0x1d4)][0x0];return _0x125495&&(_0x5047f1[_0x125c28(0x1c5)]=_0x125495['backtrace'],_0x5047f1[_0x125c28(0x1f2)]=_0x125495[_0x125c28(0x240)]),(_0x40171a[_0x125c28(0x268)](_0x2b7eec,_0x40171a[_0x125c28(0x234)])||_0x40171a[_0x125c28(0x248)](_0x2b7eec,_0x40171a[_0x125c28(0x258)]))&&(_0x2460fe[_0x125c28(0x1dc)]&&(_0x5047f1[_0x125c28(0x1dc)]=_0x2460fe['hooks'])),_0x5047f1;}catch(_0x22fd7f){return logger[_0x125c28(0x244)](_0x125c28(0x21c)+util[_0x125c28(0x1ff)](_0x22fd7f)),null;}}async[a124_0x3e741f(0x1ee)](_0xf747f0,_0x2ace18,_0x458351,_0x5499f3){const _0x3d3cc7=a124_0x3e741f,_0x13eb80={'JLxer':_0x3d3cc7(0x220),'KKTmT':_0x3d3cc7(0x22c),'VKtYJ':_0x3d3cc7(0x227),'dlLlZ':'unknown','bAKHV':_0x3d3cc7(0x26f),'SeTGt':function(_0x53cb5e,_0x51597c){return _0x53cb5e===_0x51597c;},'ZOiNq':'HookRunFinished','SPyBt':function(_0x1adfeb,_0x19f4ab){return _0x1adfeb>_0x19f4ab;},'cbzbE':_0x3d3cc7(0x272),'aXiVP':function(_0x91619d,_0x1b9f23){return _0x91619d(_0x1b9f23);},'yOTOc':'test','tYRrd':_0x3d3cc7(0x1ef),'OjbyZ':_0x3d3cc7(0x26c),'PHnHt':'javascript','lNdcQ':_0x3d3cc7(0x25f),'UWVCH':function(_0x5eb965,_0x52dbb9){return _0x5eb965===_0x52dbb9;},'oTlfE':_0x3d3cc7(0x217)};logger[_0x3d3cc7(0x244)](_0x3d3cc7(0x253)+_0x458351+_0x3d3cc7(0x24b)+_0x2ace18+',\x20testRunId:\x20'+_0x5499f3);try{if(!_0xf747f0)return logger[_0x3d3cc7(0x244)](_0x13eb80[_0x3d3cc7(0x263)]),null;if(this[_0x3d3cc7(0x219)](_0xf747f0))return null;await this[_0x3d3cc7(0x20c)]();let _0x33adba=null;try{_0x33adba=this[_0x3d3cc7(0x1e5)](_0xf747f0);if(_0x33adba&&_0x33adba[_0x3d3cc7(0x210)](_0x13eb80[_0x3d3cc7(0x1e1)]))return null;if(_0x33adba&&_0x33adba[_0x3d3cc7(0x210)](_0x13eb80['VKtYJ']))return null;}catch(_0x3a07fc){logger['debug']('Failed\x20to\x20get\x20hook\x20file\x20path:\x20'+util[_0x3d3cc7(0x1ff)](_0x3a07fc));}const _0x55b3e5=_0x33adba?this[_0x3d3cc7(0x1da)][_0x3d3cc7(0x27c)](_0x33adba):_0x33adba,_0x26ec3a=this['getName'](_0xf747f0),_0x56d660=_0xf747f0['type']||_0x13eb80['dlLlZ'],_0x3eccd1=HOOK_TYPES_MAP[_0x56d660]||_0x56d660[_0x3d3cc7(0x20f)](),_0x11c2b8=_0xf747f0[_0x3d3cc7(0x27d)]&&_0xf747f0['parent']['name']?_0xf747f0[_0x3d3cc7(0x27d)][_0x3d3cc7(0x1db)]:'';let _0x2da75f=_0x13eb80[_0x3d3cc7(0x1c9)],_0x18d0af=null,_0x31ba79=null,_0x4f8cac=null,_0x13698d=null;_0x13eb80[_0x3d3cc7(0x1cd)](_0x458351,_0x13eb80[_0x3d3cc7(0x1e4)])&&(_0x13698d=new Date()[_0x3d3cc7(0x22a)](),_0xf747f0[_0x3d3cc7(0x1d0)]&&_0x13eb80['SPyBt'](_0xf747f0[_0x3d3cc7(0x1d0)][_0x3d3cc7(0x259)],0x0)?(_0x2da75f=_0x13eb80[_0x3d3cc7(0x1ce)],_0x31ba79=util['inspect'](_0xf747f0[_0x3d3cc7(0x1d0)][0x0]),_0x18d0af=_0x13eb80[_0x3d3cc7(0x265)](getFailureType,_0x31ba79),_0x4f8cac=failureData[_0x3d3cc7(0x1fc)](null,[_0xf747f0[_0x3d3cc7(0x1d0)],_0x13eb80[_0x3d3cc7(0x1d8)]])):_0x2da75f=_0x13eb80[_0x3d3cc7(0x212)]);const _0x38c2f9={'uuid':_0x2ace18,'type':_0x13eb80[_0x3d3cc7(0x226)],'hook_type':_0x3eccd1,'name':_0x26ec3a,'body':{'lang':_0x13eb80[_0x3d3cc7(0x205)],'code':_0xf747f0['fn']?_0xf747f0['fn'][_0x3d3cc7(0x273)]():null},'tags':[],'test_run_id':_0x5499f3,'scope':_0x11c2b8,'scopes':[_0x11c2b8],'file_name':_0x55b3e5,'location':_0x55b3e5,'vc_filepath':this[_0x3d3cc7(0x1e8)]&&_0x33adba?path[_0x3d3cc7(0x1cb)](this[_0x3d3cc7(0x1e8)],_0x33adba):null,'result':_0x2da75f,'started_at':_0xf747f0[_0x3d3cc7(0x255)]||new Date()[_0x3d3cc7(0x22a)](),'finished_at':_0x13698d,'failure_type':_0x18d0af,'failure_reason':_0x31ba79,'failure_data':_0x4f8cac,'framework':_0x13eb80[_0x3d3cc7(0x1c8)]};return _0x13eb80[_0x3d3cc7(0x1f9)](_0x458351,_0x13eb80['oTlfE'])&&(hooksMap[_0x5499f3]?hooksMap[_0x5499f3][_0x3d3cc7(0x1dd)](_0x38c2f9):hooksMap[_0x5499f3]=[_0x38c2f9]),_0x38c2f9;}catch(_0x587e12){return logger['debug'](_0x3d3cc7(0x1ca)+util[_0x3d3cc7(0x1ff)](_0x587e12)),null;}}['getHookRunEventData'](_0x192355,_0x36f296,_0x2643b9){const _0x522d04=a124_0x3e741f,_0x55608d={'XKHKc':function(_0x8d66b,_0x295512){return _0x8d66b>_0x295512;},'iRHfI':'failed','dTTdt':function(_0x3653ad,_0x13da9a){return _0x3653ad(_0x13da9a);},'oFMmZ':_0x522d04(0x1d2),'nFGdR':_0x522d04(0x1ef)};try{const _0xcf0678=hooksMap[_0x192355];if(!_0xcf0678)return null;const _0x4077af=_0xcf0678[_0x522d04(0x224)](_0x2fedbc=>_0x2fedbc[_0x522d04(0x1f6)]===_0x36f296);if(!_0x4077af)return null;return _0x4077af[_0x522d04(0x1e3)]=new Date()[_0x522d04(0x22a)](),_0x2643b9['errorsDetailed']&&_0x55608d['XKHKc'](_0x2643b9['errorsDetailed']['length'],0x0)?(_0x4077af[_0x522d04(0x20d)]=_0x55608d[_0x522d04(0x1e2)],_0x4077af[_0x522d04(0x1d9)]=util[_0x522d04(0x26a)](_0x2643b9[_0x522d04(0x1d0)][0x0]),_0x4077af['failure_type']=_0x55608d[_0x522d04(0x213)](getFailureType,_0x4077af[_0x522d04(0x1d9)]),_0x4077af[_0x522d04(0x24f)]=failureData[_0x522d04(0x1fc)](null,[_0x2643b9[_0x522d04(0x1d0)],_0x55608d[_0x522d04(0x1d5)]])):_0x4077af[_0x522d04(0x20d)]=_0x55608d[_0x522d04(0x1cf)],_0x4077af;}catch(_0x40044a){return logger[_0x522d04(0x244)](_0x522d04(0x25b)+util[_0x522d04(0x1ff)](_0x40044a)),null;}}[a124_0x3e741f(0x277)](_0x18d075){const _0x448ad5=a124_0x3e741f,_0x4532f9={};_0x4532f9[_0x448ad5(0x262)]=function(_0x1e6df5,_0x355d2f){return _0x1e6df5!==_0x355d2f;},_0x4532f9[_0x448ad5(0x260)]='test',_0x4532f9[_0x448ad5(0x207)]=_0x448ad5(0x246);const _0x10029b=_0x4532f9;if(_0x10029b[_0x448ad5(0x262)](_0x18d075[_0x448ad5(0x1c2)],_0x10029b[_0x448ad5(0x260)]))return'\x22'+_0x18d075['type']+_0x448ad5(0x252)+(_0x18d075['parent']&&_0x18d075[_0x448ad5(0x27d)]['name'])+'\x22';return _0x18d075[_0x448ad5(0x1db)]||_0x10029b[_0x448ad5(0x207)];}[a124_0x3e741f(0x22d)](_0x1d7f56){const _0x4a909c=a124_0x3e741f,_0x1339d4={};_0x1339d4[_0x4a909c(0x24a)]=function(_0x5e3b76,_0x43eef6){return _0x5e3b76!==_0x43eef6;},_0x1339d4[_0x4a909c(0x22f)]=function(_0xa425b6,_0x225dde){return _0xa425b6!==_0x225dde;},_0x1339d4[_0x4a909c(0x1f7)]=_0x4a909c(0x242);const _0x526298=_0x1339d4,_0x3e61a0=[];if(_0x1d7f56&&_0x1d7f56[_0x4a909c(0x27d)]){let _0x41d0ea=_0x1d7f56[_0x4a909c(0x27d)];while(_0x41d0ea&&_0x41d0ea[_0x4a909c(0x1db)]&&_0x526298[_0x4a909c(0x24a)](_0x41d0ea[_0x4a909c(0x1db)],'')&&_0x526298[_0x4a909c(0x22f)](_0x41d0ea[_0x4a909c(0x1db)],_0x526298[_0x4a909c(0x1f7)])){_0x3e61a0[_0x4a909c(0x1dd)](_0x41d0ea[_0x4a909c(0x1db)]),_0x41d0ea=_0x41d0ea[_0x4a909c(0x27d)];}}return _0x3e61a0['reverse'](),_0x3e61a0;}[a124_0x3e741f(0x1e5)](_0x591a4d){const _0x1396ee=a124_0x3e741f,_0xf7da7b={'fuDlV':function(_0x2f2bbf,_0x390223){return _0x2f2bbf(_0x390223);}};if(_0x591a4d[_0x1396ee(0x23b)])return _0x591a4d['file'];if(_0x591a4d['asyncError'])try{const _0x299e17=stackTrace['parse'][_0x1396ee(0x22b)](stackTrace,_0x591a4d[_0x1396ee(0x223)]),_0x495640=_0xf7da7b[_0x1396ee(0x1fb)](pickUserFrameFile,_0x299e17);if(_0x495640)return _0x495640;logger['debug'](_0x1396ee(0x216)+_0x299e17['length']+')');}catch(_0x5a69ba){logger[_0x1396ee(0x244)](_0x1396ee(0x23f)+util[_0x1396ee(0x1ff)](_0x5a69ba));}return null;}[a124_0x3e741f(0x219)](_0x1d2848){const _0x591a4f=a124_0x3e741f,_0x4be937={};_0x4be937[_0x591a4f(0x21a)]=_0x591a4f(0x22c);const _0x5a030c=_0x4be937;try{const _0xbc4198=this[_0x591a4f(0x1e5)](_0x1d2848);if(!_0xbc4198||_0xbc4198['includes'](_0x5a030c[_0x591a4f(0x21a)]))return!![];}catch(_0x1afd25){logger[_0x591a4f(0x244)](_0x591a4f(0x1f1)+util[_0x591a4f(0x1ff)](_0x1afd25));}return![];}[a124_0x3e741f(0x24c)](_0x470974=null){const _0x2b209e=a124_0x3e741f;try{const _0x2aa740=_0x470974||global['__workerDetails']||{};if(global[_0x2b209e(0x1e7)])return global[_0x2b209e(0x1e7)];if(_0x2aa740?.[_0x2b209e(0x270)]?.[_0x2b209e(0x230)])return _0x2aa740['currentTest'][_0x2b209e(0x230)];if(_0x2aa740?.[_0x2b209e(0x270)]?.['id'])return _0x2aa740['currentTest']['id'];return null;}catch(_0x2ba7ea){return logger[_0x2b209e(0x244)]('[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20'+util[_0x2b209e(0x1ff)](_0x2ba7ea)),null;}}async['configureGit'](){const _0x576bed=a124_0x3e741f,_0x569356={'wtEnf':function(_0x19e819){return _0x19e819();}};if(this[_0x576bed(0x1fa)])return this[_0x576bed(0x1e8)];const _0x51bfac=await _0x569356[_0x576bed(0x269)](getGitMetaData);_0x51bfac&&(this['_gitConfigPath']=_0x51bfac['root']),this[_0x576bed(0x1fa)]=!![];}[a124_0x3e741f(0x26e)](_0x3cf534){hooksMap[_0x3cf534]&&delete hooksMap[_0x3cf534];}[a124_0x3e741f(0x225)](_0x2d53dd){const _0x3745a9=a124_0x3e741f,_0x1b708b={'FnTaC':_0x3745a9(0x22c),'jWiJE':function(_0x415079,_0x12b3c6){return _0x415079(_0x12b3c6);},'PMBPL':_0x3745a9(0x21d)};if(_0x2d53dd['file'])return _0x2d53dd[_0x3745a9(0x23b)];if(_0x2d53dd[_0x3745a9(0x223)]){try{const _0x282e30=stackTrace['parse'](_0x2d53dd[_0x3745a9(0x223)]);if(_0x282e30[0x0]&&_0x282e30[0x0][_0x3745a9(0x24e)]){const _0x177f56=_0x282e30[0x0]['getFileName']();if(_0x177f56&&!_0x177f56[_0x3745a9(0x210)](_0x1b708b['FnTaC']))return _0x177f56;}}catch(_0x3319d4){logger[_0x3745a9(0x244)](_0x3745a9(0x239)+util[_0x3745a9(0x1ff)](_0x3319d4));}if(_0x2d53dd[_0x3745a9(0x223)][_0x3745a9(0x229)]){const _0x223f7c=_0x2d53dd[_0x3745a9(0x223)]['stack'][_0x3745a9(0x1c3)]('\x0a');for(const _0x35025a of _0x223f7c){const _0x2b2c61=_0x35025a[_0x3745a9(0x1f8)](/at (.+?):\d+:\d+/);if(_0x2b2c61&&_0x2b2c61[0x1]&&!_0x2b2c61[0x1]['includes'](_0x1b708b[_0x3745a9(0x247)]))return _0x2b2c61[0x1];}}}let _0x5edb00=_0x2d53dd[_0x3745a9(0x27d)];while(_0x5edb00){if(_0x5edb00[_0x3745a9(0x23b)])return _0x5edb00['file'];if(_0x5edb00[_0x3745a9(0x223)])try{const _0x206839=stackTrace['parse'](_0x5edb00[_0x3745a9(0x223)]);if(_0x206839[0x0]&&_0x206839[0x0]['getFileName']){const _0x4d45ad=_0x206839[0x0][_0x3745a9(0x24e)]();if(_0x4d45ad&&!_0x4d45ad[_0x3745a9(0x210)](_0x1b708b['FnTaC']))return _0x4d45ad;}}catch(_0x3ed073){}_0x5edb00=_0x5edb00[_0x3745a9(0x27d)];}try{const _0x17c635=_0x1b708b[_0x3745a9(0x279)](require,_0x1b708b['PMBPL']);if(_0x17c635&&_0x17c635[_0x3745a9(0x218)]){const _0x3ab2c7=_0x17c635[_0x3745a9(0x218)]();if(_0x3ab2c7&&_0x3ab2c7[_0x3745a9(0x250)])return _0x3ab2c7[_0x3745a9(0x250)];}}catch(_0x239762){logger[_0x3745a9(0x244)](_0x3745a9(0x26d)+util['format'](_0x239762));}return null;}[a124_0x3e741f(0x271)](_0x5975bc){const _0x435990=a124_0x3e741f,_0x5d178f={};_0x5d178f[_0x435990(0x25e)]=_0x435990(0x20a),_0x5d178f['vfKnp']=function(_0x4f2695,_0x11dc38){return _0x4f2695!==_0x11dc38;},_0x5d178f[_0x435990(0x203)]='ROOT_DESCRIBE_BLOCK',_0x5d178f[_0x435990(0x1df)]='jest-circus',_0x5d178f[_0x435990(0x232)]='md5',_0x5d178f['TgAFO']='hex';const _0x1b22d4=_0x5d178f;try{if(!_0x5975bc)return logger[_0x435990(0x231)](_0x1b22d4['PnkyJ']),null;const _0x57e3f1=_0x5975bc[_0x435990(0x1ed)]||_0x5975bc['name']||_0x5975bc[_0x435990(0x214)]||_0x5975bc[_0x435990(0x1d7)];let _0x47afeb=_0x57e3f1;if(_0x5975bc[_0x435990(0x27d)]&&_0x5975bc[_0x435990(0x27d)]['name']&&_0x1b22d4['vfKnp'](_0x5975bc[_0x435990(0x27d)]['name'],_0x1b22d4[_0x435990(0x203)])){const _0x59f6ee=_0x5975bc[_0x435990(0x1db)]||_0x5975bc[_0x435990(0x214)];_0x59f6ee&&(_0x47afeb=_0x5975bc['parent']['name']+'\x20'+_0x59f6ee);}let _0x22f1d8=_0x5975bc['testPath'];if(!_0x22f1d8&&_0x5975bc[_0x435990(0x223)]){try{const _0x56d11e=stackTrace[_0x435990(0x261)](_0x5975bc[_0x435990(0x223)]);if(_0x56d11e[0x0]&&_0x56d11e[0x0][_0x435990(0x24e)]){const _0x6a6481=_0x56d11e[0x0][_0x435990(0x24e)]();_0x6a6481&&!_0x6a6481[_0x435990(0x210)](_0x1b22d4[_0x435990(0x1df)])&&(_0x22f1d8=_0x6a6481);}}catch(_0x25003c){logger[_0x435990(0x244)](_0x435990(0x239)+util[_0x435990(0x1ff)](_0x25003c));}if(!_0x22f1d8&&_0x5975bc[_0x435990(0x223)][_0x435990(0x229)]){const _0x4dfd03=_0x5975bc['asyncError']['stack'][_0x435990(0x1c3)]('\x0a');for(const _0x1eabc1 of _0x4dfd03){const _0xe46a26=_0x1eabc1['match'](/at (.+?):\d+:\d+/);if(_0xe46a26&&_0xe46a26[0x1]&&!_0xe46a26[0x1][_0x435990(0x210)](_0x1b22d4[_0x435990(0x1df)])){_0x22f1d8=_0xe46a26[0x1];break;}}}}const _0x1c20ef=_0x22f1d8+'::'+_0x47afeb,_0x373b26=crypto['createHash'](_0x1b22d4[_0x435990(0x232)])[_0x435990(0x20e)](_0x1c20ef)[_0x435990(0x200)](_0x1b22d4[_0x435990(0x206)])[_0x435990(0x274)](0x0,0x8),_0x17a04c=process[_0x435990(0x236)]+':jest-'+_0x373b26;return logger['debug'](_0x435990(0x254)+_0x17a04c+_0x435990(0x1f3)+_0x1c20ef),_0x17a04c;}catch(_0x448bfd){return logger[_0x435990(0x231)](_0x435990(0x1eb)+util[_0x435990(0x1ff)](_0x448bfd)),null;}}[a124_0x3e741f(0x1c7)](_0x4148a5){const _0x2656fb=a124_0x3e741f,_0x48d0a0={};_0x48d0a0[_0x2656fb(0x243)]=_0x2656fb(0x275);const _0x2b117a=_0x48d0a0;if(!_0x4148a5)return logger['debug'](_0x2b117a[_0x2656fb(0x243)]),null;const _0x740cd1=this[_0x2656fb(0x225)](_0x4148a5),_0x28b563={};_0x28b563[_0x2656fb(0x1db)]=_0x4148a5[_0x2656fb(0x1db)]||_0x4148a5['title'],_0x28b563[_0x2656fb(0x27d)]=_0x4148a5['parent'],_0x28b563[_0x2656fb(0x250)]=_0x740cd1,_0x28b563[_0x2656fb(0x223)]=_0x4148a5[_0x2656fb(0x223)];const _0x46a2cd=_0x28b563;return this[_0x2656fb(0x271)](_0x46a2cd);}[a124_0x3e741f(0x26b)](_0x175d71,_0x47c659=null){const _0x36382d=a124_0x3e741f,_0x172424={};_0x172424[_0x36382d(0x23a)]='[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation';const _0x250872=_0x172424;if(!_0x175d71)return logger[_0x36382d(0x244)](_0x250872['XSnaM']),_0x47c659;if(_0x175d71[_0x36382d(0x1c4)])return logger[_0x36382d(0x244)](_0x36382d(0x221)+_0x175d71[_0x36382d(0x1c4)]),_0x175d71[_0x36382d(0x1c4)];return this['createJestTestIdentifier'](_0x175d71)||_0x47c659;}}module[a124_0x3e741f(0x241)]=o11yClassErrorHandler(JestUtils,[a124_0x3e741f(0x20c),a124_0x3e741f(0x22d),a124_0x3e741f(0x1e5),a124_0x3e741f(0x277),a124_0x3e741f(0x219),a124_0x3e741f(0x24c),a124_0x3e741f(0x1cc),a124_0x3e741f(0x1ee),a124_0x3e741f(0x238),a124_0x3e741f(0x26e),a124_0x3e741f(0x225),a124_0x3e741f(0x271),a124_0x3e741f(0x1c7),a124_0x3e741f(0x26b)]);function a124_0x55dd(){const _0x35545e=['skipped','tYRrd','dTTdt','title','stack-trace','[jestUtils]\x20pickUserFrameFile\x20found\x20no\x20user\x20frame\x20(trace\x20length=','HookRunStarted','getState','isJestInternalHook','TLUKA','910472zgcdaw','Exception\x20in\x20createTestFrameworkData:\x20','expect','path','VaSLZ','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','zvNvr','asyncError','find','extractTestFilePath','OjbyZ','browserstack-node-agent/src/bin/jest','TestRunSkipped','stack','toISOString','call','jest-circus','getHierarchy','AFTER_EACH','FbRXl','testAnalyticsId','error','wlwFs','winstonLogger','VcjGN','afterEach','pid','beforeEach','getHookRunEventData','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','XSnaM','file','5473160OlBMRD','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','OpNmH','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','expanded','exports','ROOT_DESCRIBE_BLOCK','PZwYx','debug','pmUkr','Unknown\x20Test','FnTaC','qbnPv','startedAt','rlsjP',',\x20hookUUID:\x20','getTestIdentifier','28460knzUin','getFileName','failure_data','testPath','gJtmF','\x22\x20hook\x20for\x20\x22','Creating\x20hook\x20data\x20for\x20eventType:\x20','[jestUtils]\x20Created\x20identifier:\x20','started_at','../../../helpers/logger.js','wBRXh','iBCNZ','length','vKxIr','Exception\x20in\x20getHookRunEventData:\x20','TestRunFinished','xEAUC','PnkyJ','jest','raFeK','parse','oqniT','JLxer','erJhA','aXiVP','BOgJi','572424KjWQdB','dhDQy','wtEnf','inspect','recreateIdentifierFromTestInfo','hook','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','clearHooksMap','pending','currentTest','createJestTestIdentifier','failed','toString','substring','[jestUtils]\x20No\x20test\x20object\x20provided','632sScEPO','getName','4MfSgrK','jWiJE','err','retryOf','prefixTestPath','parent','../../../helpers/test-observability/error-handler.js','../../../helpers/test-observability/utils','type','split','testIdentifier','failure_backtrace','../../../helpers/stackFrameUtils','createIdentifierFromJestTest','lNdcQ','bAKHV','Exception\x20in\x20createHookData:\x20','relative','createTestFrameworkData','SeTGt','cbzbE','nFGdR','errorsDetailed','yNPwO','test','../../../helpers/helper.js','failure','oFMmZ','BEFORE_EACH','displayName','yOTOc','failure_reason','_paths','name','hooks','push','538368PRkihv','KCPcS','BEFORE_ALL','KKTmT','iRHfI','finished_at','ZOiNq','getRootParentFile','util','__jestCurrentTestIdentifier','_gitConfigPath','rfCqK','157277ObBALq','[jestUtils]\x20Error\x20creating\x20identifier:\x20','afterAll','fullName','createHookData','passed','finishedAt','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','failure_reason_expanded','\x20from\x20compositeKey:\x20','iTYIw','dPzOK','uuid','HHFQU','match','UWVCH','_gitConfigured','fuDlV','apply','duration','cwd','format','digest','ScErA','../TestInfo.js','IxHle','yRbVV','PHnHt','TgAFO','wOfEr','getTime','15232545yrsULy','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier',',\x20testIdentifier:\x20','configureGit','result','update','toUpperCase','includes'];a124_0x55dd=function(){return _0x35545e;};return a124_0x55dd();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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;
|
|
2
|
+
'use strict';const a125_0x4048ff=a125_0x2c4b;(function(_0x386451,_0x2ada6c){const _0x7f72ab=a125_0x2c4b,_0x21b100=_0x386451();while(!![]){try{const _0x9201f9=-parseInt(_0x7f72ab(0x197))/0x1+parseInt(_0x7f72ab(0x1e1))/0x2*(-parseInt(_0x7f72ab(0x1b6))/0x3)+-parseInt(_0x7f72ab(0x1cf))/0x4*(-parseInt(_0x7f72ab(0x1e6))/0x5)+parseInt(_0x7f72ab(0x1d0))/0x6*(parseInt(_0x7f72ab(0x18e))/0x7)+parseInt(_0x7f72ab(0x192))/0x8+-parseInt(_0x7f72ab(0x1e3))/0x9*(-parseInt(_0x7f72ab(0x1c6))/0xa)+-parseInt(_0x7f72ab(0x190))/0xb*(parseInt(_0x7f72ab(0x1d6))/0xc);if(_0x9201f9===_0x2ada6c)break;else _0x21b100['push'](_0x21b100['shift']());}catch(_0x3034d7){_0x21b100['push'](_0x21b100['shift']());}}}(a125_0x1b33,0x1c433));const fs=require('fs'),path=require(a125_0x4048ff(0x1a1)),{default:BrowserStackSetup}=require(a125_0x4048ff(0x17f)),helper=require('../../helpers/helper'),PerformanceTester=require(a125_0x4048ff(0x1a3)),PerformanceEvents=require(a125_0x4048ff(0x1c3))['EVENTS'],utilities=require(a125_0x4048ff(0x1cc)),{parallelVanillaRun}=require('../test-runner'),TestHubHandler=require(a125_0x4048ff(0x1c0)),BrowserstackCLI=require('../v2/browserstackCLI'),logger=require('../../helpers/logger')[a125_0x4048ff(0x182)],CLIUtils=require(a125_0x4048ff(0x1bd)),{FRAMEWORKS}=require(a125_0x4048ff(0x178)),accessibilityHelper=require(a125_0x4048ff(0x19f));async function run(_0x582d3c,_0xa6b766,_0x158186){const _0x4d518e=a125_0x4048ff,_0x52a2e1={'rktnl':_0x4d518e(0x1aa),'HwAlp':_0x4d518e(0x194),'kYcNg':function(_0x2c8d5b,_0x290e86){return _0x2c8d5b(_0x290e86);},'tOSTh':function(_0x53ef96,_0x2d95e1){return _0x53ef96(_0x2d95e1);},'paQsn':function(_0x1e1491,_0x3ccf6d){return _0x1e1491(_0x3ccf6d);},'PaOhs':function(_0x46a223,_0xc821e6){return _0x46a223>_0xc821e6;},'HdDsd':'on\x20non-BrowserStack\x20infrastructure\x20','hENKW':_0x4d518e(0x1f0),'IHjkx':_0x4d518e(0x175),'TFFoS':function(_0x3a14f3,_0x4b8a84){return _0x3a14f3!==_0x4b8a84;},'ppOTd':function(_0x5da926,_0xbf38cf){return _0x5da926+_0xbf38cf;},'ZHENh':function(_0x281918,_0x113927){return _0x281918(_0x113927);},'AoWTo':function(_0x6939aa,_0x4ea62f){return _0x6939aa(_0x4ea62f);},'Leuch':'Config\x20yml\x20is\x20required','ypLbF':_0x4d518e(0x1e5),'jwByO':function(_0x420a7d,_0x513af2,_0x25c309){return _0x420a7d(_0x513af2,_0x25c309);},'uSSDM':function(_0x52802a,_0x433cef){return _0x52802a>=_0x433cef;},'DQHVG':function(_0x2fdb30,_0x22acc6){return _0x2fdb30>_0x22acc6;},'YdSZa':function(_0x11892a,_0x2df5a1){return _0x11892a(_0x2df5a1);},'TySSA':function(_0x24f7a4,_0x3835c4){return _0x24f7a4(_0x3835c4);},'CpHBZ':function(_0x2c4997,_0x4217b8){return _0x2c4997&&_0x4217b8;},'hEQcm':'Accessibility\x20Automation\x20is\x20not\x20supported\x20with\x20w3c:\x20false.\x20Skipping\x20accessibility\x20for\x20this\x20run.','mjajM':_0x4d518e(0x1e8),'PYtYl':_0x4d518e(0x198),'lXNHh':_0x4d518e(0x17d),'reYvl':_0x4d518e(0x1b2),'klBDf':function(_0x1e3723,_0x3b3602){return _0x1e3723*_0x3b3602;},'nqOmM':_0x4d518e(0x1c7),'UWGsw':_0x4d518e(0x172),'WidoZ':function(_0x2b051e,_0x318e3c){return _0x2b051e*_0x318e3c;},'EAJJD':_0x4d518e(0x18d)};await _0x158186[_0x4d518e(0x1d7)](_0x582d3c);!BrowserstackCLI[_0x4d518e(0x1f7)]()['isRunning']()&&await _0x158186[_0x4d518e(0x1ed)]();await helper[_0x4d518e(0x1d4)](_0x158186[_0x4d518e(0x1f6)]);const _0x24dfbf=[];if(helper['isUndefined'](_0x582d3c['_'][0x1]))throw _0x52a2e1[_0x4d518e(0x17e)](Error,_0x52a2e1['IHjkx']);const _0x6b8829=process['cwd'](),_0x186516=path[_0x4d518e(0x1a6)](_0x6b8829,_0x582d3c['_'][0x1]);if(_0x52a2e1[_0x4d518e(0x1ba)](_0x186516,_0x6b8829)&&!_0x186516[_0x4d518e(0x1f2)](_0x52a2e1['ppOTd'](_0x6b8829,path['sep'])))throw _0x52a2e1[_0x4d518e(0x1b0)](Error,'File\x20path\x20'+_0x582d3c['_'][0x1]+_0x4d518e(0x1b9));if(!fs[_0x4d518e(0x1d8)](_0x186516))throw _0x52a2e1[_0x4d518e(0x1b0)](Error,_0x4d518e(0x1a0)+_0x582d3c['_'][0x1]+_0x4d518e(0x1af));if(!_0x158186[_0x4d518e(0x1f6)])throw _0x52a2e1[_0x4d518e(0x1ab)](Error,_0x52a2e1[_0x4d518e(0x1ef)]);const _0x44e0c1=helper[_0x4d518e(0x1ac)](_0x158186[_0x4d518e(0x1f6)]);if(!_0x44e0c1){const _0x2fec03=helper[_0x4d518e(0x1a7)](_0x52a2e1['ypLbF']),_0xfd6887=_0x52a2e1[_0x4d518e(0x1d1)](parseInt,_0x2fec03,0xa);Number['isFinite'](_0xfd6887)&&_0x52a2e1['uSSDM'](_0xfd6887,0x4)&&logger[_0x4d518e(0x1eb)](_0x4d518e(0x1a9)+_0x2fec03+_0x4d518e(0x1ae));}_0x158186[_0x4d518e(0x1f6)][_0x4d518e(0x1be)]&&_0x52a2e1[_0x4d518e(0x1ee)](_0x158186[_0x4d518e(0x1f6)][_0x4d518e(0x1be)][_0x4d518e(0x1f5)],0x0)&&_0x158186[_0x4d518e(0x1f6)]['platforms'][_0x4d518e(0x1e0)]((_0x33302d,_0xcf9b04)=>{const _0x24ca2f=_0x4d518e;_0x44e0c1?_0x24dfbf[_0x24ca2f(0x18b)](helper['modifyBrowserStackW3CCaps'](_0x158186[_0x24ca2f(0x1f6)],_0x52a2e1[_0x24ca2f(0x1e2)],_0xcf9b04)):_0x24dfbf[_0x24ca2f(0x18b)](helper['modifyBrowserStackCaps'](_0x158186[_0x24ca2f(0x1f6)],_0x52a2e1[_0x24ca2f(0x1e2)],_0xcf9b04));});let _0x452905,_0x599d0f;const _0x2f35de=[];if(_0x52a2e1[_0x4d518e(0x186)](_0x24dfbf['length'],0x0))_0x24dfbf[_0x4d518e(0x1e0)]((_0x194bb4,_0x5c8b1d)=>{const _0x510f0d=_0x4d518e,_0x3a9d5b={};_0x3a9d5b[_0x510f0d(0x176)]=_0x5c8b1d,_0x452905={'server':helper[_0x510f0d(0x1f3)](_0x158186[_0x510f0d(0x1f6)]),'proxySettings':_0x158186[_0x510f0d(0x1f6)][_0x510f0d(0x1b5)],'platform':helper[_0x510f0d(0x19a)](_0x194bb4),'platformCaps':Object['assign'](_0x3a9d5b,_0x158186[_0x510f0d(0x1f6)][_0x510f0d(0x1be)][_0x5c8b1d])};const _0x2a0166={'capability':_0x194bb4,..._0x452905};_0x2a0166[_0x510f0d(0x1db)]=_0x186516,_0x2a0166['args']=_0xa6b766;const _0x39fe55={};_0x39fe55[_0x510f0d(0x199)]=_0x2a0166,_0x599d0f=_0x39fe55,_0x2f35de[_0x510f0d(0x18b)](_0x599d0f);});else{let _0x3707fe;_0x44e0c1?_0x3707fe=helper[_0x4d518e(0x187)](_0x158186[_0x4d518e(0x1f6)],_0x52a2e1[_0x4d518e(0x1e2)],0x0):_0x3707fe=helper[_0x4d518e(0x1e7)](_0x158186[_0x4d518e(0x1f6)],_0x52a2e1[_0x4d518e(0x1e2)],0x0);_0x452905={'server':helper[_0x4d518e(0x1f3)](_0x158186['config']),'proxySettings':_0x158186[_0x4d518e(0x1f6)][_0x4d518e(0x1b5)]};const _0x396053={'capability':_0x3707fe,..._0x452905};_0x396053['file']=_0x186516,_0x396053[_0x4d518e(0x1d2)]=_0xa6b766;const _0x120891={};_0x120891[_0x4d518e(0x199)]=_0x396053,_0x599d0f=_0x120891,_0x2f35de[_0x4d518e(0x18b)](_0x599d0f);}const _0x460568=_0x158186['config'][_0x4d518e(0x1b1)]||{};process['env'][_0x4d518e(0x19d)]=_0x52a2e1[_0x4d518e(0x191)](String,helper[_0x4d518e(0x1ad)](_0x460568['skipSessionName'])),process[_0x4d518e(0x1f1)][_0x4d518e(0x1c2)]=_0x52a2e1[_0x4d518e(0x196)](String,helper['isTrue'](_0x460568['skipSessionStatus']));!helper[_0x4d518e(0x1cd)](_0x158186[_0x4d518e(0x1f6)][_0x4d518e(0x1d3)])&&(process[_0x4d518e(0x1f1)][_0x4d518e(0x17a)]=JSON['stringify'](_0x158186[_0x4d518e(0x1f6)][_0x4d518e(0x1d3)]));let _0x5a686b=_0x158186[_0x4d518e(0x1f6)][_0x4d518e(0x1bc)];_0x5a686b=_0x5a686b||accessibilityHelper[_0x4d518e(0x170)](_0x158186[_0x4d518e(0x1f6)]);_0x52a2e1[_0x4d518e(0x1b7)](_0x5a686b,!_0x44e0c1)&&(logger[_0x4d518e(0x1eb)](_0x52a2e1[_0x4d518e(0x185)]),_0x5a686b=![]);process[_0x4d518e(0x1f1)][_0x4d518e(0x1b4)]=_0x5a686b;if(_0x5a686b){const _0x122cc2=helper['isBrowserstackInfra']();(_0x158186[_0x4d518e(0x1f6)][_0x4d518e(0x1be)]||[])[_0x4d518e(0x1e0)](_0x34f8df=>{const _0xaf094a=_0x4d518e;if(!_0x34f8df||_0x34f8df[_0xaf094a(0x184)])return;const _0x3f8ad6=_0x34f8df['browserName'];if(!accessibilityHelper[_0xaf094a(0x183)](_0x3f8ad6)){logger[_0xaf094a(0x1eb)](_0x52a2e1[_0xaf094a(0x1e4)]);return;}const _0x4ef86a=_0x34f8df['browserVersion']||_0x34f8df[_0xaf094a(0x1a8)];if(helper['isUndefined'](_0x4ef86a)||!Number[_0xaf094a(0x17c)](_0x52a2e1[_0xaf094a(0x193)](parseFloat,_0x52a2e1[_0xaf094a(0x1ce)](String,_0x4ef86a))))return;const _0xfdd4fc=accessibilityHelper['getMinVersionForBrowser'](_0x3f8ad6,_0x122cc2),_0x203e2a=_0x52a2e1[_0xaf094a(0x193)](parseFloat,_0xfdd4fc),_0x215ee0=_0x52a2e1['tOSTh'](parseFloat,_0x52a2e1['paQsn'](String,_0x4ef86a)),_0x393f7e=Number['isFinite'](_0x203e2a)?_0x52a2e1[_0xaf094a(0x1ee)](_0x215ee0,_0x203e2a):accessibilityHelper[_0xaf094a(0x1d9)](_0x4ef86a,_0xfdd4fc);if(!_0x393f7e){const _0x5b9b82=accessibilityHelper[_0xaf094a(0x1ea)](_0x3f8ad6),_0xee96ae=_0x122cc2?'':_0x52a2e1[_0xaf094a(0x1ca)];logger[_0xaf094a(0x1eb)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x5b9b82+_0xaf094a(0x188)+_0xfdd4fc+'\x20'+_0xee96ae+'.');}});}logger[_0x4d518e(0x1d5)](_0x4d518e(0x1a5)+_0x5a686b);const _0x127174=BrowserstackCLI[_0x4d518e(0x1f7)]();CLIUtils[_0x4d518e(0x1df)](FRAMEWORKS['NODE_GENERIC'],FRAMEWORKS[_0x4d518e(0x19c)]);const {getProductMap:_0x252850}=_0x52a2e1[_0x4d518e(0x1ab)](require,_0x52a2e1[_0x4d518e(0x1de)]);process[_0x4d518e(0x1f1)][_0x4d518e(0x19b)]=JSON[_0x4d518e(0x1c8)](_0x52a2e1[_0x4d518e(0x1b0)](_0x252850,_0x158186[_0x4d518e(0x1f6)])),_0x127174[_0x4d518e(0x1a4)](_0x158186['config'],_0x158186[_0x4d518e(0x174)],_0x158186[_0x4d518e(0x171)]);if(_0x127174['isCliEnabled']()){logger[_0x4d518e(0x1d5)](_0x52a2e1['PYtYl']);try{await _0x127174[_0x4d518e(0x18a)](),logger[_0x4d518e(0x1d5)](_0x52a2e1[_0x4d518e(0x17b)]);try{const _0x54bc03=global[_0x4d518e(0x1c1)]||{},_0x3e6335=_0x54bc03[_0x52a2e1[_0x4d518e(0x1f4)]];if(_0x3e6335){const _0x567af1=JSON[_0x4d518e(0x1da)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']||'{}');_0x567af1[_0x4d518e(0x19e)]=_0x3e6335,process[_0x4d518e(0x1f1)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x4d518e(0x1c8)](_0x567af1),logger[_0x4d518e(0x1d5)](_0x4d518e(0x1c4)+_0x3e6335);}}catch(_0xcd128c){logger[_0x4d518e(0x1a2)](_0x4d518e(0x179)+_0xcd128c['message']);}const _0x2a9097=_0x52a2e1['klBDf'](_0x158186[_0x4d518e(0x1f6)][_0x4d518e(0x1be)][_0x4d518e(0x1f5)]||0x1,_0x158186[_0x4d518e(0x1f6)][_0x4d518e(0x1b8)]||0x1);PerformanceTester[_0x4d518e(0x195)](PerformanceEvents[_0x4d518e(0x1c9)]),await _0x52a2e1[_0x4d518e(0x1d1)](parallelVanillaRun,_0x2f35de,_0x2a9097),logger[_0x4d518e(0x1d5)](_0x52a2e1['nqOmM']),await _0x127174[_0x4d518e(0x18c)]();}catch(_0x33f679){logger[_0x4d518e(0x1c5)](_0x4d518e(0x18f)+_0x33f679[_0x4d518e(0x181)]);try{await _0x127174[_0x4d518e(0x18c)]();}catch(_0x55df74){logger[_0x4d518e(0x1a2)](_0x4d518e(0x1e9)+_0x55df74['message']);}}finally{PerformanceTester['start'](PerformanceEvents[_0x4d518e(0x1dc)]),await utilities[_0x4d518e(0x1cb)](_0x158186);}}else{logger['info'](_0x52a2e1[_0x4d518e(0x177)]);const _0x39bd20=await TestHubHandler[_0x4d518e(0x1bb)](_0x52a2e1[_0x4d518e(0x1e2)],_0x158186),_0x5ba875=_0x52a2e1[_0x4d518e(0x1dd)](_0x158186[_0x4d518e(0x1f6)][_0x4d518e(0x1be)][_0x4d518e(0x1f5)]||0x1,_0x158186[_0x4d518e(0x1f6)][_0x4d518e(0x1b8)]||0x1);PerformanceTester['end'](PerformanceEvents['SDK_SETUP']),_0x52a2e1[_0x4d518e(0x1d1)](parallelVanillaRun,_0x2f35de,_0x5ba875)[_0x4d518e(0x173)](_0x4c3db1=>{})['finally'](async()=>{const _0x3a61ea=_0x4d518e;PerformanceTester[_0x3a61ea(0x189)](PerformanceEvents[_0x3a61ea(0x1dc)]),await utilities[_0x3a61ea(0x1cb)](_0x158186);});}process['on'](_0x52a2e1[_0x4d518e(0x180)],async()=>{const _0x444856=_0x4d518e;try{(_0x127174[_0x444856(0x1b3)]||_0x127174[_0x444856(0x1ec)])&&(logger[_0x444856(0x1d5)](_0x52a2e1['hENKW']),await _0x127174[_0x444856(0x18c)]());}catch(_0x36c08a){}});}function a125_0x2c4b(_0x17d160,_0x148fdb){const _0x1b3303=a125_0x1b33();return a125_0x2c4b=function(_0x2c4b5c,_0x4475a9){_0x2c4b5c=_0x2c4b5c-0x170;let _0x31352b=_0x1b3303[_0x2c4b5c];return _0x31352b;},a125_0x2c4b(_0x17d160,_0x148fdb);}module[a125_0x4048ff(0x1bf)]=run;function a125_0x1b33(){const _0x43fd89=['isTrue',':\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.','\x20doesn\x27t\x20exist','ZHENh','testContextOptions','browserstack.accessibilityOptions.scannerVersion','isMainConnected','BROWSERSTACK_TEST_ACCESSIBILITY_YML','proxySettings','94647XYmNVz','CpHBZ','parallelsPerPlatform','\x20resolves\x20outside\x20the\x20project\x20directory\x20and\x20was\x20rejected','TFFoS','launchBuild','accessibility','../v2/cliUtils','platforms','exports','../../helpers/testhub/testhubHandler','__accessibilityOptions','BROWSERSTACK_SKIP_SESSION_STATUS','../../helpers/performance/constants','[TRACE:node-generic]\x20Accessibility\x20config\x20enriched\x20with\x20binary\x20scannerVersion=','error','259410DVSWvf','[TRACE:node-generic]\x20parallelVanillaRun\x20complete,\x20stopping\x20binary','stringify','SDK_SETUP','HdDsd','finalExecution','../../helpers/utilities','isUndefined','tOSTh','121344HVkiBw','54564SWqQOR','jwByO','args','accessibilityOptions','handleApp','info','36sCGMko','initialize','existsSync','isVersionSupported','parse','file','SDK_CLEANUP','WidoZ','mjajM','setFrameworkDetail','forEach','14jTiHYY','rktnl','27OwajQJ','HwAlp','selenium-webdriver','10HoHPkJ','modifyBrowserStackCaps','../../helpers/testhub/utils','[TRACE:node-generic]\x20Error\x20during\x20stop:\x20','getBrowserDisplayName','warn','isChildConnected','setupBrowserstackLocal','PaOhs','Leuch','[TRACE:node-generic]\x20beforeExit\x20safety\x20net\x20—\x20stopping\x20binary','env','startsWith','getHubUrl','reYvl','length','config','getInstance','checkAccessibilityPlatformConfig','cliConfig','[TRACE:node-generic]\x20CLI\x20not\x20enabled\x20—\x20using\x20Direct\x20Flow','then','configPath','File\x20path\x20is\x20required','index','UWGsw','../utils/constants','[TRACE:node-generic]\x20Error\x20enriching\x20accessibility\x20config:\x20','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','lXNHh','isFinite','[TRACE:node-generic]\x20Binary\x20bootstrapped,\x20starting\x20parallelVanillaRun','paQsn','../../helpers/BrowserStackSetup','EAJJD','message','winstonLogger','isBrowserSupportedForAccessibility','deviceName','hEQcm','DQHVG','modifyBrowserStackW3CCaps','\x20browser\x20version\x20greater\x20than\x20','start','bootstrap','push','stop','beforeExit','154MEbQeJ','[TRACE:node-generic]\x20Binary\x20Flow\x20error:\x20','322795SYKQdw','YdSZa','1828104OPRBUb','kYcNg','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','end','TySSA','142435BzJlji','[TRACE:node-generic]\x20CLI\x20enabled\x20—\x20using\x20Binary\x20Flow','configuration','getPlatformName','BROWSERSTACK_PRODUCT_MAP','NODE_GENERIC','BROWSERSTACK_SKIP_SESSION_NAME','scannerVersion','../../helpers/accessibility-automation/helper','File\x20','path','debug','../../helpers/performance/performance-tester','setBrowserstackConfig','[TRACE:node-generic]\x20Accessibility:\x20enabled=','resolve','getPackageVersion','browser_version','useW3C:\x20false\x20has\x20no\x20effect\x20with\x20selenium-webdriver\x20','vanilla','AoWTo','useW3C'];a125_0x1b33=function(){return _0x43fd89;};return a125_0x1b33();}
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126_0x4f5974=a126_0x4632;(function(_0x223cab,_0x18ef59){const _0x42ea00=a126_0x4632,_0x2b2f3e=_0x223cab();while(!![]){try{const _0x2027df=parseInt(_0x42ea00(0x10b))/0x1*(-parseInt(_0x42ea00(0x110))/0x2)+parseInt(_0x42ea00(0x111))/0x3+-parseInt(_0x42ea00(0x115))/0x4+-parseInt(_0x42ea00(0x117))/0x5*(-parseInt(_0x42ea00(0x122))/0x6)+parseInt(_0x42ea00(0x11f))/0x7*(parseInt(_0x42ea00(0x121))/0x8)+-parseInt(_0x42ea00(0x10e))/0x9*(parseInt(_0x42ea00(0x12c))/0xa)+parseInt(_0x42ea00(0x125))/0xb*(parseInt(_0x42ea00(0x128))/0xc);if(_0x2027df===_0x18ef59)break;else _0x2b2f3e['push'](_0x2b2f3e['shift']());}catch(_0x37b4a9){_0x2b2f3e['push'](_0x2b2f3e['shift']());}}}(a126_0xb158,0xf3a2c));const TestMetadata=require('./helpers/metadata');class BrowserStackSdk{static[a126_0x4f5974(0x11b)](){const _0x380eca=a126_0x4f5974,_0x15a9d8={};_0x15a9d8[_0x380eca(0x126)]=_0x380eca(0x124),_0x15a9d8[_0x380eca(0x112)]='osVersion',_0x15a9d8[_0x380eca(0x11e)]='browser',_0x15a9d8[_0x380eca(0x109)]=_0x380eca(0x123),_0x15a9d8[_0x380eca(0x11d)]=_0x380eca(0x10c),_0x15a9d8[_0x380eca(0x118)]=_0x380eca(0x10f),_0x15a9d8[_0x380eca(0x120)]='device',_0x15a9d8[_0x380eca(0x119)]='deviceName',_0x15a9d8[_0x380eca(0x12a)]='platform',_0x15a9d8[_0x380eca(0x129)]=_0x380eca(0x127),_0x15a9d8[_0x380eca(0x113)]=_0x380eca(0x11c),_0x15a9d8[_0x380eca(0x10a)]=_0x380eca(0x12d),_0x15a9d8[_0x380eca(0x10d)]=_0x380eca(0x114);const _0x5445f3=_0x15a9d8,_0x5c3454={};if(global[_0x380eca(0x116)]){const _0x473053=global[_0x380eca(0x116)],_0x301399=_0x473053[_0x5445f3['xVgWL']]||_0x473053[_0x5445f3[_0x380eca(0x112)]],_0x2b7bf8=_0x473053[_0x5445f3[_0x380eca(0x11e)]]||_0x473053[_0x5445f3[_0x380eca(0x109)]],_0x1feffa=_0x473053[_0x5445f3[_0x380eca(0x11d)]]||_0x473053[_0x5445f3[_0x380eca(0x118)]],_0x117733=_0x473053[_0x5445f3['hNgdF']]||_0x473053[_0x5445f3[_0x380eca(0x119)]],_0x5f2725=_0x473053[_0x5445f3[_0x380eca(0x12a)]]||_0x473053[_0x5445f3[_0x380eca(0x129)]],_0x115241=_0x473053[_0x5445f3[_0x380eca(0x113)]]||_0x473053[_0x5445f3[_0x380eca(0x10a)]];_0x473053['os']&&(_0x5c3454['os']=_0x473053['os']),_0x301399&&(_0x5c3454[_0x5445f3[_0x380eca(0x112)]]=_0x301399),_0x2b7bf8&&(_0x5c3454[_0x5445f3[_0x380eca(0x109)]]=_0x2b7bf8),_0x1feffa&&(_0x5c3454[_0x5445f3['IAwOk']]=_0x1feffa),_0x117733&&(_0x5c3454[_0x5445f3['aqYUQ']]=_0x117733),_0x5f2725&&(_0x5c3454[_0x5445f3[_0x380eca(0x129)]]=_0x5f2725),_0x115241&&(_0x5c3454[_0x5445f3['MuHOS']]=_0x115241),_0x473053[_0x5445f3[_0x380eca(0x10d)]]&&(_0x5c3454[_0x5445f3[_0x380eca(0x10d)]]=_0x473053[_0x5445f3['ksqGX']]);}return _0x5c3454;}static[a126_0x4f5974(0x11a)](_0x3566e={}){TestMetadata['set'](_0x3566e);}}module[a126_0x4f5974(0x12b)]=BrowserStackSdk;function a126_0x4632(_0x20a629,_0x15126f){const _0xb15849=a126_0xb158();return a126_0x4632=function(_0x463207,_0x2c9be7){_0x463207=_0x463207-0x109;let _0x3c1c17=_0xb15849[_0x463207];return _0x3c1c17;},a126_0x4632(_0x20a629,_0x15126f);}function a126_0xb158(){const _0x239878=['browserVersion','334538daNtxq','1386435jDNMQV','IHPRq','HBanp','customVariables','5461212ZoOBqh','__platformCaps','1897570YxxUqM','IAwOk','aqYUQ','setTestMetadata','getCurrentPlatform','platform_version','BBffB','quxXW','14YNeVJL','hNgdF','1359272fuoTQQ','12dyFntI','browserName','os_version','2726779BBbWfJ','xVgWL','platformName','84lBnmYG','zNvfw','Pimvo','exports','100RRoTwU','platformVersion','pReTx','MuHOS','1gebCmv','browser_version','ksqGX','689139hYZAqs'];a126_0xb158=function(){return _0x239878;};return a126_0xb158();}
|