browserstack-node-sdk 1.55.1 → 1.55.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 +4 -1
- package/src/ai-sdk-node/bundle.js +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/integrations/command.js +1 -1
- package/src/bin/integrations/constants.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/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/builderPatch.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/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/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/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/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/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/testhubModule.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/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.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/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/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/timeoutPromise.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 a23_0x1d857f=a23_0xf465;(function(_0x20cbcb,_0xf30bf6){const _0x5f2dc8=a23_0xf465,_0x4504db=_0x20cbcb();while(!![]){try{const _0xa15165=parseInt(_0x5f2dc8(0x153))/0x1+-parseInt(_0x5f2dc8(0x17a))/0x2*(parseInt(_0x5f2dc8(0x17c))/0x3)+parseInt(_0x5f2dc8(0x14b))/0x4+-parseInt(_0x5f2dc8(0x118))/0x5*(parseInt(_0x5f2dc8(0xef))/0x6)+parseInt(_0x5f2dc8(0x1a3))/0x7*(-parseInt(_0x5f2dc8(0x10a))/0x8)+parseInt(_0x5f2dc8(0x165))/0x9+parseInt(_0x5f2dc8(0x12d))/0xa;if(_0xa15165===_0xf30bf6)break;else _0x4504db['push'](_0x4504db['shift']());}catch(_0x288eb1){_0x4504db['push'](_0x4504db['shift']());}}}(a23_0x2004,0xd8817));const {isTestObservabilitySession,PathHelper,debug,failureData,getFailureType,isInternalHook}=require(a23_0x1d857f(0x17e)),SessionHandler=require(a23_0x1d857f(0x1a5)),{v4:uuidv4}=require(a23_0x1d857f(0xec)),{name,version}=require(a23_0x1d857f(0x11b)),stackTrace=require(a23_0x1d857f(0x16b)),path=require(a23_0x1d857f(0x124)),fs=require('fs'),TestDetails=require(a23_0x1d857f(0x123)),{FRAMEWORKS}=require('../../utils/constants'),{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler'),{getGitMetaData}=require(a23_0x1d857f(0xb5)),helper=require('../../../helpers/helper'),{appendTesthubParams,setCurrentTestData}=require(a23_0x1d857f(0xdf)),constants=require(a23_0x1d857f(0x10f)),BrowserstackCLI=require('../../v2/browserstackCLI'),a23_0x4c9fd1={};a23_0x4c9fd1[a23_0x1d857f(0x181)]=a23_0x1d857f(0x161),a23_0x4c9fd1[a23_0x1d857f(0x105)]=a23_0x1d857f(0xc2),a23_0x4c9fd1[a23_0x1d857f(0x195)]='pending';function a23_0xf465(_0x29ea35,_0x29416b){const _0x200468=a23_0x2004();return a23_0xf465=function(_0xf4653c,_0x281f84){_0xf4653c=_0xf4653c-0xb2;let _0x3275e0=_0x200468[_0xf4653c];return _0x3275e0;},a23_0xf465(_0x29ea35,_0x29416b);}const {STATE_PASSED,STATE_PENDING,STATE_FAILED}=a23_0x4c9fd1,a23_0x2890e7={};a23_0x2890e7['beforeAll']=a23_0x1d857f(0x18f),a23_0x2890e7[a23_0x1d857f(0x107)]=a23_0x1d857f(0xf2),a23_0x2890e7[a23_0x1d857f(0x12f)]='BEFORE_EACH',a23_0x2890e7[a23_0x1d857f(0x127)]='AFTER_EACH';const HOOK_TYPES_MAP=a23_0x2890e7;module['exports']=o11yClassErrorHandler(class ObservabilityReporter{constructor(){const _0x23d811=a23_0x1d857f,_0x21c197={'VUClK':_0x23d811(0x151),'cSwXf':function(_0xde1698){return _0xde1698();}},_0x57c87b=_0x21c197['VUClK'][_0x23d811(0xbc)]('|');let _0x2d1ed5=0x0;while(!![]){switch(_0x57c87b[_0x2d1ed5++]){case'0':this[_0x23d811(0xff)]=![];continue;case'1':this[_0x23d811(0x12e)]=[];continue;case'2':this['_testResults']=[];continue;case'3':this[_0x23d811(0xbd)]=new PathHelper({'cwd':process[_0x23d811(0xee)]()},this['_testEnv'][_0x23d811(0x131)]);continue;case'4':this[_0x23d811(0x170)]=_0x21c197['cSwXf'](isTestObservabilitySession);continue;case'5':this['_gitConfigPath']=null;continue;case'6':this['_testEnv']=this[_0x23d811(0x149)]();continue;}break;}}['getTestEnv']=()=>{const _0x249da4=a23_0x1d857f,_0x3cdc4b={'GRxSr':_0x249da4(0x190),'FMFSh':function(_0x39d653){return _0x39d653();}};return{'ci':_0x3cdc4b['GRxSr'],'key':_0x3cdc4b['FMFSh'](uuidv4),'version':version,'collector':_0x249da4(0x145)+name};};[a23_0x1d857f(0x193)](){const _0x3a77e6=a23_0x1d857f;process[_0x3a77e6(0x101)]('bs:addLog:'+process[_0x3a77e6(0x139)]),process['on'](_0x3a77e6(0x15b)+process[_0x3a77e6(0x139)],this[_0x3a77e6(0x1a4)][_0x3a77e6(0x1a6)](this)),process[_0x3a77e6(0x101)](_0x3a77e6(0xba)+process[_0x3a77e6(0x139)]),process['on']('bs:addPlatformDetails:'+process[_0x3a77e6(0x139)],this[_0x3a77e6(0x100)][_0x3a77e6(0x1a6)](this));}[a23_0x1d857f(0xc5)]=async _0x283126=>{const _0x37da02=a23_0x1d857f,_0x201a9e={'hcVIH':function(_0x2f58ee,_0x1b85a7){return _0x2f58ee>_0x1b85a7;},'ByPOi':function(_0x5e365e,_0x580060){return _0x5e365e===_0x580060;},'nyTUy':_0x37da02(0x17d),'NIEyd':function(_0x1bf791,_0xf0331c){return _0x1bf791(_0xf0331c);}};try{const _0x450bcd=this[_0x37da02(0x19c)];this[_0x37da02(0x19c)]=_0x283126,_0x283126[_0x37da02(0x171)]=null,_0x283126[_0x37da02(0xc9)]=TestDetails['setTestUUID'](process[_0x37da02(0x139)]+_0x37da02(0x116)),_0x283126[_0x37da02(0x179)]=new Date()['toISOString'](),_0x201a9e[_0x37da02(0xd1)](_0x283126[_0x37da02(0x14a)],0x0)&&_0x450bcd&&_0x201a9e[_0x37da02(0x133)](_0x450bcd[_0x37da02(0xf5)],_0x283126[_0x37da02(0xf5)])?(_0x283126[_0x37da02(0x171)]=_0x450bcd[_0x37da02(0xc9)],await this[_0x37da02(0x120)](_0x283126,undefined,![],_0x201a9e['nyTUy']),_0x450bcd[_0x37da02(0x12c)]=STATE_FAILED,await this[_0x37da02(0x120)](_0x450bcd,undefined,!![])):await this[_0x37da02(0x120)](_0x283126,undefined,![],_0x201a9e['nyTUy']);}catch(_0x1b6f7b){_0x201a9e[_0x37da02(0xc3)](debug,'Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20'+_0x1b6f7b);}};[a23_0x1d857f(0xbb)](_0x561af3){const _0xfd990d=a23_0x1d857f,_0x1b14bf={};_0x1b14bf['EoTQu']=function(_0x5b5e01,_0x550316){return _0x5b5e01!==_0x550316;},_0x1b14bf['XKxXL']='test';const _0x2b1a87=_0x1b14bf;if(_0x2b1a87[_0xfd990d(0x11a)](_0x561af3[_0xfd990d(0x155)],_0x2b1a87[_0xfd990d(0xc1)]))return'\x22'+_0x561af3[_0xfd990d(0x155)]+_0xfd990d(0x19d)+(_0x561af3[_0xfd990d(0x144)]&&_0x561af3[_0xfd990d(0x144)][_0xfd990d(0x16a)])+'\x22';return _0x561af3[_0xfd990d(0x16a)];}[a23_0x1d857f(0x120)]=async(_0x73963e,_0x408505=undefined,_0x20b81a=![],_0x4d4c55='TestRunFinished')=>{const _0x4343c0=a23_0x1d857f,_0x5d5bc9={'FEAIF':'2|3|1|4|0','AeUKO':_0x4343c0(0xd4),'BANBX':_0x4343c0(0xdb),'mBJvR':'test_run','ekrcp':'failure','jnqFI':_0x4343c0(0xc0),'mShbS':'failure_reason','ICZgN':function(_0x2bab01,_0x42b253){return _0x2bab01(_0x42b253);},'uPIEI':_0x4343c0(0x157),'mCWHL':function(_0x4368bb,_0xbe2817){return _0x4368bb(_0xbe2817);},'KNuLv':'util','kBNUR':function(_0x47bb6f,_0x403273){return _0x47bb6f!==_0x403273;},'VtMEj':_0x4343c0(0x122),'Kayct':_0x4343c0(0x197),'GeytT':function(_0x52784c,_0x3a9c11){return _0x52784c!==_0x3a9c11;},'gRJAC':_0x4343c0(0x142),'DYqgS':_0x4343c0(0x174),'wfAaC':function(_0x459d5f,_0x9fceb7){return _0x459d5f===_0x9fceb7;},'LtXVq':'TestRunSkipped','xefYf':_0x4343c0(0xd7),'QtJFD':function(_0x3cbdb4,_0x411545){return _0x3cbdb4>_0x411545;},'YelpB':_0x4343c0(0xc2),'ZXVvl':'passed','dtuTT':function(_0x38a252,_0x23041e){return _0x38a252-_0x23041e;},'YyHpq':function(_0x201ea5,_0x1e63a4,_0x303835,_0x361855,_0x305b1a){return _0x201ea5(_0x1e63a4,_0x303835,_0x361855,_0x305b1a);},'MYbvd':_0x4343c0(0x179),'hJMeV':'finished_at','QiXHk':_0x4343c0(0xed),'rkzry':function(_0x5ff85c,_0x320fdf){return _0x5ff85c!==_0x320fdf;},'TYrfn':_0x4343c0(0x102),'NcfTq':_0x4343c0(0xf9),'fQuyD':_0x4343c0(0x162),'mutcX':_0x4343c0(0x130),'bnLEI':_0x4343c0(0x187),'aEMvw':function(_0x27de98,_0x51d962){return _0x27de98===_0x51d962;},'dYvtw':_0x4343c0(0xb9),'zldBP':_0x4343c0(0xc7),'fDkOX':function(_0x595b36,_0x1892fb,_0x169408){return _0x595b36(_0x1892fb,_0x169408);},'nYFvW':function(_0x5c0098,_0x1b697c){return _0x5c0098(_0x1b697c);}};try{if(_0x73963e['fn']&&_0x73963e['fn'][_0x4343c0(0x150)]()[_0x4343c0(0x135)](/browserstack internal helper hook/))return;await this['configureGit']();let _0x35fcce;try{_0x35fcce=this['getRootParentFile'](_0x73963e);}catch(_0x403c38){_0x5d5bc9[_0x4343c0(0xe5)](debug,_0x4343c0(0xce)+_0x403c38),_0x35fcce=null;}if(_0x35fcce[_0x4343c0(0x164)](_0x5d5bc9[_0x4343c0(0x141)]))return;const _0x1d6930=_0x5d5bc9[_0x4343c0(0x18c)](require,_0x5d5bc9[_0x4343c0(0x167)]);let _0x5a182c=[];if(_0x5d5bc9[_0x4343c0(0xcf)](_0x73963e[_0x4343c0(0x19e)],undefined))_0x5a182c=[_0x73963e[_0x4343c0(0x19e)],_0x5d5bc9[_0x4343c0(0x138)]];else _0x5d5bc9[_0x4343c0(0xcf)](_0x408505,undefined)?_0x5a182c=[_0x408505,_0x5d5bc9[_0x4343c0(0x1ac)]]:_0x5a182c=[];const _0x4117ee=_0x5d5bc9['kBNUR'](_0x73963e[_0x4343c0(0x19e)],undefined)?_0x1d6930['inspect'](_0x73963e[_0x4343c0(0x19e)][0x0]):_0x5d5bc9[_0x4343c0(0x112)](_0x408505,undefined)?_0x408505[_0x4343c0(0x150)]():undefined,_0x436388=_0x35fcce?this[_0x4343c0(0xbd)][_0x4343c0(0x194)](this[_0x4343c0(0x172)](_0x73963e)):_0x5d5bc9[_0x4343c0(0x156)],_0x3b50c6={'framework':FRAMEWORKS[_0x4343c0(0x13e)],'uuid':_0x73963e[_0x4343c0(0xc9)]||_0x73963e[_0x4343c0(0xfa)],'name':this[_0x4343c0(0xbb)](_0x73963e),'body':{'lang':_0x5d5bc9[_0x4343c0(0x125)],'code':_0x73963e['fn'][_0x4343c0(0x150)]()},'scopes':this[_0x4343c0(0xb3)](_0x73963e),'file_name':_0x436388,'vc_filepath':this[_0x4343c0(0x173)]&&_0x35fcce?path[_0x4343c0(0x18b)](this['_gitConfigPath'],_0x35fcce):null,'location':_0x436388,'result':_0x5d5bc9[_0x4343c0(0x19b)](_0x4d4c55,_0x5d5bc9[_0x4343c0(0x19a)])?_0x5d5bc9['xefYf']:this[_0x4343c0(0x117)](_0x73963e['errorsDetailed']&&_0x5d5bc9[_0x4343c0(0x106)](_0x73963e[_0x4343c0(0x19e)][_0x4343c0(0xf4)],0x0)?_0x5d5bc9[_0x4343c0(0x15a)]:_0x5d5bc9[_0x4343c0(0x136)]),'failure_reason':_0x4117ee,'duration_in_ms':_0x73963e[_0x4343c0(0x17b)]||(_0x4d4c55[_0x4343c0(0x135)](/Finished/)||_0x4d4c55[_0x4343c0(0x135)](/Skipped/)?_0x5d5bc9[_0x4343c0(0x15c)](Date[_0x4343c0(0x111)](),new Date(_0x73963e['started_at'])[_0x4343c0(0x143)]()):null),'started_at':_0x73963e[_0x4343c0(0x179)],'finished_at':_0x4d4c55[_0x4343c0(0x135)](/Finished/)||_0x4d4c55['match'](/Skipped/)?new Date()[_0x4343c0(0x182)]():null,'failure':failureData['apply'](null,_0x5a182c),'failure_type':!_0x4117ee?null:_0x5d5bc9[_0x4343c0(0xe5)](getFailureType,_0x4117ee),'retry_of':_0x73963e[_0x4343c0(0x171)]};_0x5d5bc9['YyHpq'](appendTesthubParams,_0x3b50c6,_0x4d4c55,_0x73963e,FRAMEWORKS['JEST']);_0x5d5bc9['wfAaC'](_0x4d4c55,_0x5d5bc9[_0x4343c0(0x19a)])&&!_0x3b50c6[_0x5d5bc9[_0x4343c0(0xd9)]]&&(_0x3b50c6[_0x5d5bc9[_0x4343c0(0xd9)]]=_0x3b50c6[_0x5d5bc9[_0x4343c0(0x15e)]]);if(_0x4d4c55['match'](/HookRun/))[_0x3b50c6['hook_type'],_0x3b50c6[_0x4343c0(0x16a)]]=[_0x73963e[_0x4343c0(0x155)],this[_0x4343c0(0xbb)](_0x73963e)],_0x5d5bc9['wfAaC'](_0x4d4c55,_0x5d5bc9[_0x4343c0(0x10c)])&&(_0x5d5bc9[_0x4343c0(0x129)](_0x3b50c6[_0x4343c0(0xdb)],_0x5d5bc9[_0x4343c0(0x15a)])&&(_0x3b50c6[_0x4343c0(0xdb)]=_0x5d5bc9[_0x4343c0(0x136)]));else _0x4d4c55['match'](/TestRun/)&&this['mapTestHooks'](_0x73963e);const _0x179b13=_0x3b50c6[_0x5d5bc9['ekrcp']][0x0];_0x179b13&&(_0x3b50c6[_0x5d5bc9[_0x4343c0(0x13a)]]=_0x179b13[_0x5d5bc9[_0x4343c0(0x152)]],_0x3b50c6[_0x5d5bc9[_0x4343c0(0x191)]]=_0x179b13[_0x5d5bc9['mutcX']]);[_0x5d5bc9[_0x4343c0(0xf6)],_0x5d5bc9[_0x4343c0(0x19a)]][_0x4343c0(0x164)](_0x4d4c55)&&(this[_0x4343c0(0xe9)]['push'](_0x3b50c6),_0x3b50c6[_0x4343c0(0x1a7)]=this[_0x4343c0(0x16f)](_0x73963e),this[_0x4343c0(0x1ab)](_0x73963e));const _0x4e1ca7={'event_type':_0x5d5bc9[_0x4343c0(0x169)](_0x4d4c55,_0x5d5bc9[_0x4343c0(0x19a)])?_0x5d5bc9['bnLEI']:_0x4d4c55};_0x4d4c55[_0x4343c0(0x135)](/HookRun/)?(_0x3b50c6[_0x5d5bc9['dYvtw']]=HOOK_TYPES_MAP[_0x3b50c6[_0x5d5bc9['dYvtw']]],_0x4e1ca7[_0x5d5bc9[_0x4343c0(0xb8)]]=_0x3b50c6):_0x4e1ca7[_0x5d5bc9['mBJvR']]=_0x3b50c6;_0x5d5bc9[_0x4343c0(0x106)](this[_0x4343c0(0x12e)]['length'],0x0)&&[_0x5d5bc9[_0x4343c0(0xf6)],_0x5d5bc9[_0x4343c0(0x19a)]][_0x4343c0(0x164)](_0x4d4c55)&&(this[_0x4343c0(0x12e)]['forEach'](async _0x1cb086=>{const _0x802810=_0x4343c0,_0x171460=_0x5d5bc9[_0x802810(0x14e)][_0x802810(0xbc)]('|');let _0x7f5b2=0x0;while(!![]){switch(_0x171460[_0x7f5b2++]){case'0':await SessionHandler['uploadEventData'](_0x1cb086);continue;case'1':_0x1cb086[_0x5d5bc9[_0x802810(0xb8)]][_0x5d5bc9['BANBX']]=_0x4e1ca7[_0x5d5bc9['mBJvR']][_0x5d5bc9[_0x802810(0x154)]];continue;case'2':_0x1cb086[_0x5d5bc9[_0x802810(0xb8)]][_0x5d5bc9[_0x802810(0x148)]]=_0x4e1ca7[_0x5d5bc9[_0x802810(0xc8)]][_0x5d5bc9[_0x802810(0x148)]];continue;case'3':_0x1cb086[_0x5d5bc9[_0x802810(0xb8)]][_0x5d5bc9[_0x802810(0x1ad)]]=_0x4e1ca7[_0x5d5bc9[_0x802810(0xc8)]][_0x5d5bc9[_0x802810(0x1ad)]];continue;case'4':_0x1cb086[_0x5d5bc9[_0x802810(0xb8)]][_0x5d5bc9['mShbS']]=_0x4e1ca7[_0x5d5bc9[_0x802810(0xc8)]][_0x5d5bc9[_0x802810(0x10b)]];continue;}break;}}),this[_0x4343c0(0x12e)]=[]);if(_0x5d5bc9[_0x4343c0(0x169)](this['hook_failure'],_0x73963e[_0x4343c0(0x155)])){this[_0x4343c0(0x12e)]['push'](_0x4e1ca7);return;}_0x5d5bc9['wfAaC'](this['hook_failure'],_0x5d5bc9[_0x4343c0(0x1a2)])&&_0x4e1ca7[_0x5d5bc9['mBJvR']]&&(_0x4e1ca7[_0x5d5bc9[_0x4343c0(0xc8)]][_0x5d5bc9[_0x4343c0(0x154)]]=_0x5d5bc9[_0x4343c0(0x12a)],_0x4e1ca7[_0x5d5bc9['mBJvR']][_0x5d5bc9[_0x4343c0(0x148)]]=null,_0x4e1ca7[_0x5d5bc9['mBJvR']][_0x5d5bc9[_0x4343c0(0x1ad)]]=null),_0x5d5bc9[_0x4343c0(0x10d)](setCurrentTestData,FRAMEWORKS[_0x4343c0(0x13e)],_0x4e1ca7),await SessionHandler[_0x4343c0(0x186)](_0x4e1ca7);}catch(_0x22dacb){_0x5d5bc9['nYFvW'](debug,_0x4343c0(0xe0)+_0x4d4c55+'\x20with\x20error\x20:\x20'+_0x22dacb);}};[a23_0x1d857f(0xcd)](_0x5e3a53){const _0x417487=a23_0x1d857f,_0x46485f={};_0x46485f[_0x417487(0x163)]=function(_0x2f7ada,_0x44ae48){return _0x2f7ada==_0x44ae48;},_0x46485f[_0x417487(0xb7)]=function(_0xae48f7,_0x529cd2){return _0xae48f7===_0x529cd2;},_0x46485f['mdunC']=function(_0x129b24,_0x42a4e4){return _0x129b24===_0x42a4e4;},_0x46485f['MdUtI']=_0x417487(0x12b),_0x46485f[_0x417487(0xcc)]=_0x417487(0x178);const _0x12440d=_0x46485f,_0x2dfb82=path[_0x417487(0x134)];if(_0x12440d[_0x417487(0x163)](_0x5e3a53,null)||_0x12440d[_0x417487(0xb7)](_0x5e3a53,'')||_0x12440d['mdunC'](_0x5e3a53,_0x2dfb82)||_0x12440d[_0x417487(0x146)](_0x5e3a53,path[_0x417487(0x132)](_0x5e3a53)))return null;try{return fs[_0x417487(0x128)](path[_0x417487(0xdd)](_0x5e3a53,_0x12440d['MdUtI'],_0x12440d[_0x417487(0xcc)])),_0x5e3a53;}catch(_0x100286){const _0x2efc8b=path[_0x417487(0x132)](_0x5e3a53);return this[_0x417487(0xcd)](_0x2efc8b);}}[a23_0x1d857f(0x1a4)]=async _0x4b1fe1=>{const _0xac09d5=a23_0x1d857f,_0x90becf={'OYWKm':_0xac09d5(0xe7),'MyFrY':'puppeteer-core','ZcvBP':_0xac09d5(0xf8),'YzbDf':function(_0x14eef3,_0xc11d9c){return _0x14eef3||_0xc11d9c;},'IspYC':function(_0x3f68cd,_0x496b13){return _0x3f68cd(_0x496b13);},'BCTvH':'[obsReporter]\x20appendTestItemLog:\x20Jest+Playwright/Puppeteer\x20CLI\x20flow\x20detected,\x20using\x20in-memory\x20storage','foHWz':function(_0x3006e6,_0x5dbdf5){return _0x3006e6&&_0x5dbdf5;},'EHSbc':function(_0x4acedc,_0x4f727d){return _0x4acedc(_0x4f727d);},'ctvMn':_0xac09d5(0x11c),'wYich':function(_0x14f5f9,_0x474eff){return _0x14f5f9(_0x474eff);},'AGKCo':function(_0x3b160c,_0x58a46a){return _0x3b160c(_0x58a46a);},'kExpN':_0xac09d5(0x13c),'hDfRV':function(_0x4e82db,_0xf451e3){return _0x4e82db(_0xf451e3);},'xsUhq':_0xac09d5(0x18e),'mLESE':_0xac09d5(0x15d),'optjT':function(_0x16e7fb,_0x59d95b){return _0x16e7fb===_0x59d95b;},'NQxsk':_0xac09d5(0x14f),'zCzUn':'unknown','XiVTD':function(_0x103d16,_0x39a0ea){return _0x103d16(_0x39a0ea);},'ArYRg':_0xac09d5(0x11f),'vzXlv':function(_0x27130e,_0x5af5f8){return _0x27130e(_0x5af5f8);}};try{const _0x4c3672=helper[_0xac09d5(0xbe)](_0x90becf[_0xac09d5(0xfd)]),_0x5d9f07=!!_0x4c3672,_0x2da79c=helper['getPackageVersion'](_0x90becf['MyFrY'])||helper['getPackageVersion'](_0x90becf[_0xac09d5(0x15f)]),_0x311f21=!!_0x2da79c,_0x4b6efc=BrowserstackCLI[_0xac09d5(0x137)]()[_0xac09d5(0x1a9)]()&&BrowserstackCLI[_0xac09d5(0x137)]()['isRunning']();if(_0x90becf[_0xac09d5(0xdc)](_0x5d9f07,_0x311f21)&&_0x4b6efc){_0x90becf[_0xac09d5(0xd5)](debug,_0x90becf[_0xac09d5(0x175)]);let _0x53ed72=null,_0x29bd67=null;if(global[_0xac09d5(0x18d)]&&global['__workerDetails'][_0xac09d5(0x160)]){const _0x55e4f6=global[_0xac09d5(0x18d)][_0xac09d5(0x160)];_0x29bd67=_0x55e4f6[_0xac09d5(0x16d)],_0x53ed72=_0x55e4f6[_0xac09d5(0xe4)],_0x90becf['IspYC'](debug,_0xac09d5(0xe6)+_0x29bd67+_0xac09d5(0x166)+_0x53ed72);}!_0x53ed72&&(_0x53ed72=global[_0xac09d5(0xd0)],_0x90becf[_0xac09d5(0xd5)](debug,_0xac09d5(0xd3)+_0x53ed72));if(_0x90becf[_0xac09d5(0xb4)](!_0x29bd67,_0x53ed72)){const _0x181646=BrowserstackCLI[_0xac09d5(0x137)]()[_0xac09d5(0xeb)]();if(_0x181646&&_0x181646[_0xac09d5(0xf0)]){const _0x287475=_0x181646[_0xac09d5(0xf0)](_0x53ed72);_0x287475&&_0x287475['hookUUID']&&(_0x29bd67=_0x287475[_0xac09d5(0x16d)],_0x90becf[_0xac09d5(0x13f)](debug,_0xac09d5(0x198)+_0x29bd67+_0xac09d5(0x166)+_0x53ed72));}}if(!_0x53ed72||!_0x53ed72[_0xac09d5(0x164)](_0x90becf[_0xac09d5(0x177)]))_0x90becf[_0xac09d5(0xb6)](debug,_0xac09d5(0xda)+_0x53ed72+',\x20falling\x20back\x20to\x20Jest+Selenium\x20flow');else{_0x29bd67&&(_0x4b1fe1[_0xac09d5(0xd8)]=_0x29bd67,_0x90becf[_0xac09d5(0xb6)](debug,_0xac09d5(0x108)+_0x29bd67+_0xac09d5(0x147)));_0x4b1fe1[_0xac09d5(0xcb)]=_0x53ed72,_0x90becf[_0xac09d5(0xe2)](debug,_0xac09d5(0x1aa)+_0x53ed72+_0xac09d5(0x147));const _0x516153=BrowserstackCLI['getInstance']()[_0xac09d5(0xeb)]();if(_0x516153){const _0x484263=_0x90becf[_0xac09d5(0xd5)](require,_0x90becf[_0xac09d5(0x14c)]),_0x21e4cb=_0x90becf[_0xac09d5(0x1a0)](require,_0x90becf[_0xac09d5(0x14d)]),_0x2d8edb=_0x90becf['IspYC'](require,_0x90becf[_0xac09d5(0x199)]),_0x18e0ed=_0x516153['resolveInstance'](_0x484263[_0xac09d5(0xd2)],_0x21e4cb[_0xac09d5(0x176)]);if(_0x18e0ed&&_0x90becf[_0xac09d5(0x103)](typeof _0x18e0ed[_0xac09d5(0xe8)],_0x90becf['NQxsk'])){const _0x53b0f3=_0x18e0ed[_0xac09d5(0x189)]()[_0xac09d5(0x18a)](_0x53ed72)||{},_0xf0196=_0x53b0f3[_0x2d8edb['KEY_LOGS']]||[],_0x3df47a=[..._0xf0196,_0x4b1fe1],_0x4c1e8c={[_0x2d8edb['KEY_LOGS']]:_0x3df47a},_0x189086={};_0x189086[_0x53ed72]=_0x4c1e8c,_0x18e0ed['addMultipleEntries'](_0x189086),_0x90becf[_0xac09d5(0x13f)](debug,'[obsReporter]\x20appendTestItemLog:\x20Stored\x20log\x20in\x20instance.data[KEY_LOGS]\x20for\x20testIdentifier='+_0x53ed72+_0xac09d5(0x13d)+(_0x4b1fe1[_0xac09d5(0xc4)]||_0x90becf['zCzUn'])+_0xac09d5(0x109)+_0x3df47a[_0xac09d5(0xf4)]);return;}_0x90becf[_0xac09d5(0x184)](debug,_0xac09d5(0x19f)+_0x53ed72+',\x20falling\x20back\x20to\x20Jest+Selenium\x20flow');}}}}catch(_0x25227b){_0x90becf[_0xac09d5(0x184)](debug,_0xac09d5(0xfc)+_0x25227b+_0xac09d5(0x159));}const _0xb52583=TestDetails[_0xac09d5(0xea)](process[_0xac09d5(0x139)]+_0xac09d5(0x1a1)),_0x56bf6f=TestDetails[_0xac09d5(0xea)](process[_0xac09d5(0x139)]+_0xac09d5(0x116));try{(_0xb52583||this[_0xac09d5(0x11e)]&&!this[_0xac09d5(0x11e)][_0xac09d5(0x11d)])&&(_0x4b1fe1[_0xac09d5(0xd8)]=_0xb52583);!_0x4b1fe1['hook_run_uuid']&&_0x56bf6f&&(_0x4b1fe1[_0xac09d5(0x140)]=_0x56bf6f);if(_0x4b1fe1[_0xac09d5(0xd8)]||_0x4b1fe1[_0xac09d5(0x140)]){const _0x20fd2c={};_0x20fd2c[_0xac09d5(0xe1)]=_0x90becf['ArYRg'],_0x20fd2c['logs']=[_0x4b1fe1],await SessionHandler[_0xac09d5(0x186)](_0x20fd2c);}}catch(_0x5834d9){_0x90becf[_0xac09d5(0x10e)](debug,_0xac09d5(0x1a8)+constants[_0xac09d5(0x104)]+_0xac09d5(0xb2)+_0x5834d9);}};['appendTestPlatform']=async _0x40adbb=>{const _0x12f592=a23_0x1d857f,_0x50d29f={'YAeyI':'http_response','zqrFw':_0x12f592(0xbf),'LEFZv':function(_0x2e8fc8,_0x477fe3){return _0x2e8fc8(_0x477fe3);}};try{const _0x4dda8e={'uuid':_0x40adbb['uuid']||TestDetails[_0x12f592(0xea)](process[_0x12f592(0x139)]+_0x12f592(0x116)),'integrations':_0x40adbb[_0x50d29f[_0x12f592(0x13b)]]},_0x46d68f={};_0x46d68f[_0x12f592(0xe1)]=_0x50d29f[_0x12f592(0x158)],_0x46d68f[_0x12f592(0xfb)]=_0x4dda8e,await SessionHandler[_0x12f592(0x186)](_0x46d68f);}catch(_0x182322){_0x50d29f[_0x12f592(0xca)](debug,'Exception\x20in\x20uploading\x20platform\x20details\x20to\x20'+constants[_0x12f592(0x104)]+_0x12f592(0xb2)+_0x182322);}};async[a23_0x1d857f(0x180)](){const _0x4c0ab8=a23_0x1d857f,_0x2b9664={'hJKtK':function(_0x3e80f7){return _0x3e80f7();}};if(this['_gitConfigured'])return this[_0x4c0ab8(0x173)];const _0x576cce=await _0x2b9664['hJKtK'](getGitMetaData);_0x576cce&&(this[_0x4c0ab8(0x173)]=_0x576cce['root']),this[_0x4c0ab8(0xff)]=!![];}['analyticsResult'](_0x4315bd){const _0x26c0e2=a23_0x1d857f,_0x3f5d48={};_0x3f5d48[_0x26c0e2(0x17f)]='passed',_0x3f5d48['nAtvo']='pending',_0x3f5d48[_0x26c0e2(0x183)]=_0x26c0e2(0xc2);const _0x1d30e4=_0x3f5d48,_0x14434d={};return _0x14434d[STATE_PASSED]=_0x1d30e4['URlto'],_0x14434d[STATE_PENDING]=_0x1d30e4[_0x26c0e2(0x113)],_0x14434d[STATE_FAILED]=_0x1d30e4[_0x26c0e2(0x183)],_0x14434d[_0x4315bd];}[a23_0x1d857f(0xb3)](_0x56dd99){const _0x5b9216=a23_0x1d857f,_0xcf8364={};_0xcf8364[_0x5b9216(0x119)]=function(_0x369ff7,_0x57eb37){return _0x369ff7!==_0x57eb37;},_0xcf8364[_0x5b9216(0xc6)]=function(_0x2ee2d4,_0x16c61c){return _0x2ee2d4!==_0x16c61c;},_0xcf8364['DMFsM']=_0x5b9216(0x110);const _0xaee06c=_0xcf8364,_0x1a7d9c=[];if(_0x56dd99&&_0x56dd99[_0x5b9216(0x144)]){let _0x68e71d=_0x56dd99['parent'];while(_0x68e71d&&_0xaee06c[_0x5b9216(0x119)](_0x68e71d[_0x5b9216(0x16a)],'')&&_0xaee06c[_0x5b9216(0xc6)](_0x68e71d['name'],_0xaee06c[_0x5b9216(0xde)])){_0x1a7d9c[_0x5b9216(0x114)](_0x68e71d['name']),_0x68e71d=_0x68e71d[_0x5b9216(0x144)];}}return _0x1a7d9c[_0x5b9216(0x16e)](),_0x1a7d9c;}[a23_0x1d857f(0x172)]=_0x52d505=>{const _0x54f9df=a23_0x1d857f;if(_0x52d505['asyncError']){const _0x1333fa=stackTrace['parse'][_0x54f9df(0x16c)](stackTrace,_0x52d505[_0x54f9df(0x126)]);return _0x1333fa[0x0][_0x54f9df(0x121)]();}if(_0x52d505['file'])return _0x52d505[_0x54f9df(0x168)];return null;};[a23_0x1d857f(0x188)]=_0x4c6af8=>{const _0x5955a0=a23_0x1d857f;if(!_0x4c6af8||!_0x4c6af8[_0x5955a0(0x144)])return;_0x4c6af8[_0x5955a0(0x144)]['hooks'][_0x5955a0(0x185)](_0x57f9c2=>{const _0x235ead=_0x5955a0;!_0x57f9c2[_0x235ead(0xfa)]&&(_0x57f9c2[_0x235ead(0xfa)]=TestDetails[_0x235ead(0xfe)](process['pid']+':hookAnalyticsId'));}),this['mapTestHooks'](_0x4c6af8[_0x5955a0(0x144)]);};[a23_0x1d857f(0x1ab)]=_0x533705=>{const _0x4e6e80=a23_0x1d857f,_0x1560a1={};_0x1560a1[_0x4e6e80(0x192)]=_0x4e6e80(0x12f),_0x1560a1[_0x4e6e80(0xf1)]=_0x4e6e80(0x127);const _0x20d940=_0x1560a1;if(!_0x533705||!_0x533705[_0x4e6e80(0x144)])return;_0x533705[_0x4e6e80(0x144)]['hooks'][_0x4e6e80(0x185)](_0x93bcc3=>{const _0xe8d208=_0x4e6e80;[_0x20d940[_0xe8d208(0x192)],_0x20d940[_0xe8d208(0xf1)]][_0xe8d208(0x164)](_0x93bcc3['type'])&&_0x93bcc3[_0xe8d208(0xfa)]&&(_0x93bcc3['hookAnalyticsId']=null);}),this[_0x4e6e80(0x188)](_0x533705['parent']);};[a23_0x1d857f(0xf3)](_0x3b653f){const _0x2b9502=a23_0x1d857f,_0x42feb8={'DZUmb':_0x2b9502(0x157),'NBtSl':function(_0x1d2e9f,_0x57aec7){return _0x1d2e9f(_0x57aec7);},'UsLJa':function(_0x446754,_0x5a5155){return _0x446754+_0x5a5155;},'tHNkf':'Exception\x20in\x20getting\x20file\x20for\x20hook\x20'};try{const _0x55ab1a=this[_0x2b9502(0x172)](_0x3b653f);return _0x55ab1a[_0x2b9502(0x164)](_0x42feb8[_0x2b9502(0xd6)]);}catch(_0x4666ff){_0x42feb8[_0x2b9502(0xe3)](debug,_0x42feb8[_0x2b9502(0xf7)](_0x42feb8[_0x2b9502(0x196)],_0x4666ff));}return![];}['getHooksForTest']=_0x58f084=>{const _0x25718d=a23_0x1d857f,_0x39a880={'bnAMC':function(_0x53c447,_0x1b1236){return _0x53c447(_0x1b1236);}};if(!_0x58f084||!_0x58f084[_0x25718d(0x144)])return[];const _0x27242c=[];return _0x58f084[_0x25718d(0x144)][_0x25718d(0x1a7)][_0x25718d(0x185)](_0x5a6e31=>{const _0x3d4508=_0x25718d;_0x5a6e31[_0x3d4508(0xfa)]&&!_0x39a880['bnAMC'](isInternalHook,_0x5a6e31['fn'])&&!this[_0x3d4508(0xf3)](_0x5a6e31)&&_0x27242c['push'](_0x5a6e31[_0x3d4508(0xfa)]);}),[..._0x27242c,...this['getHooksForTest'](_0x58f084[_0x25718d(0x144)])];};},[a23_0x1d857f(0x149),a23_0x1d857f(0x193),'testStarted',a23_0x1d857f(0xbb),a23_0x1d857f(0x120),a23_0x1d857f(0xcd),a23_0x1d857f(0x1a4),a23_0x1d857f(0x100),'analyticsResult','getHierarchy','getRootParentFile',a23_0x1d857f(0x188),'resetTestHooks',a23_0x1d857f(0x16f),'configureGit'],a23_0x1d857f(0x115));function a23_0x2004(){const _0x141139=['YzbDf','join','DMFsM','../../../helpers/testhub/utils','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','event_type','AGKCo','NBtSl','testIdentifier','ICZgN','[obsReporter]\x20appendTestItemLog:\x20Found\x20active\x20hook\x20-\x20hookUUID=','@playwright/test','addMultipleEntries','_testResults','getTestUUID','getTestFramework','uuid','HookRunFinished','cwd','2460714JsgCTT','getActiveHook','sdMZJ','AFTER_ALL','isJestInternalHook','length','title','bnLEI','UsLJa','puppeteer','backtrace','hookAnalyticsId','test_run','[obsReporter]\x20appendTestItemLog:\x20Error\x20in\x20Jest+Playwright\x20flow\x20detection:\x20','OYWKm','setTestUUID','_gitConfigured','appendTestPlatform','removeAllListeners','failure_backtrace','optjT','TEST_REPORTING_ANALYTICS','STATE_FAILED','QtJFD','afterAll','[obsReporter]\x20appendTestItemLog:\x20Attached\x20hook_run_uuid=',',\x20totalLogs:\x20','33688HCMfZa','mShbS','QiXHk','fDkOX','vzXlv','../../utils/constants','ROOT_DESCRIBE_BLOCK','now','GeytT','nAtvo','push','ObservabilityReporter',':testAnalyticsId','analyticsResult','20ekWBql','XbozQ','EoTQu','../../../../package.json',':jest-','markedStatus','current_hook','LogCreated','sendTestRunEvent','getFileName','test','./test-details','path','DYqgS','asyncError','afterEach','statSync','rkzry','xefYf','.git','state','32718790eGVhOh','hook_data','beforeEach','expanded','location_prefix','dirname','ByPOi','sep','match','ZXVvl','getInstance','VtMEj','pid','TYrfn','YAeyI','../../v2/state/testFrameworkState',',\x20logKind=','JEST','EHSbc','test_run_uuid','uPIEI','File\x20path\x20could\x20not\x20be\x20found','getTime','parent','js-','mdunC','\x20to\x20log','ekrcp','getTestEnv','_currentRetry','2818656MhbeKL','kExpN','xsUhq','FEAIF','function','toString','4|2|6|3|1|0|5','NcfTq','632492xSQrqL','BANBX','type','gRJAC','jest-circus','zqrFw',',\x20falling\x20back\x20to\x20Jest+Selenium\x20flow','YelpB','bs:addLog:','dtuTT','../../v2/framework/constants/testFrameworkConstants','hJMeV','ZcvBP','currentHook','passed','failure_reason_expanded','bKfei','includes','6368922qNAYIS',',\x20testIdentifier=','KNuLv','file','aEMvw','name','stack-trace','call','hookUUID','reverse','getHooksForTest','testObservability','retryOf','getRootParentFile','_gitConfigPath','javascript','BCTvH','POST','ctvMn','config','started_at','72106IoCioS','duration','93ZsEzhL','TestRunStarted','../../../helpers/test-observability/utils','URlto','configureGit','STATE_PASSED','toISOString','WotCN','XiVTD','forEach','uploadEventData','TestRunFinished','mapTestHooks','getAllData','get','relative','mCWHL','__workerDetails','../../v2/state/hookState','BEFORE_ALL','generic','fQuyD','VOwAv','registerListeners','prefixTestPath','STATE_PENDING','tHNkf','err','[obsReporter]\x20appendTestItemLog:\x20Found\x20active\x20hook\x20from\x20JestTestFramework\x20-\x20hookUUID=','mLESE','LtXVq','wfAaC','current_test','\x22\x20hook\x20for\x20\x22','errorsDetailed','[obsReporter]\x20appendTestItemLog:\x20Instance\x20not\x20available\x20or\x20addMultipleEntries\x20not\x20available\x20for\x20testIdentifier=','hDfRV',':hookAnalyticsId','zldBP','2779NghpRI','appendTestItemLog','../../../helpers/test-observability/sessionHandler','bind','hooks','Exception\x20in\x20uploading\x20log\x20data\x20to\x20','isCliEnabled','[obsReporter]\x20appendTestItemLog:\x20Attached\x20test_identifier=','resetTestHooks','Kayct','jnqFI','\x20with\x20error\x20:\x20','getHierarchy','foHWz','../../../helpers/helper','wYich','hFKcb','AeUKO','hook_type','bs:addPlatformDetails:','getName','split','_paths','getPackageVersion','CBTSessionCreated','failure_type','XKxXL','failed','NIEyd','kind','testStarted','OaHSc','beforeAll','mBJvR','testAnalyticsId','LEFZv','test_identifier','lOkfa','findGitConfig','failed\x20to\x20get\x20root\x20parent\x20file\x20','kBNUR','__jestCurrentTestIdentifier','hcVIH','TEST','[obsReporter]\x20appendTestItemLog:\x20Using\x20testIdentifier\x20from\x20global.__jestCurrentTestIdentifier:\x20','hook_run','IspYC','DZUmb','skipped','hook_run_uuid','MYbvd','[obsReporter]\x20appendTestItemLog:\x20Invalid\x20or\x20missing\x20testIdentifier\x20format:\x20','result'];a23_0x2004=function(){return _0x141139;};return a23_0x2004();}
|
|
1
|
+
const a23_0x47d609=a23_0x3162;(function(_0x47122a,_0x344fb1){const _0x5bc294=a23_0x3162,_0x14dacf=_0x47122a();while(!![]){try{const _0x3e3bb0=-parseInt(_0x5bc294(0x1f7))/0x1*(parseInt(_0x5bc294(0x24d))/0x2)+-parseInt(_0x5bc294(0x1b9))/0x3+parseInt(_0x5bc294(0x1ea))/0x4+parseInt(_0x5bc294(0x1b7))/0x5*(-parseInt(_0x5bc294(0x251))/0x6)+-parseInt(_0x5bc294(0x1da))/0x7+-parseInt(_0x5bc294(0x211))/0x8*(parseInt(_0x5bc294(0x224))/0x9)+parseInt(_0x5bc294(0x23e))/0xa;if(_0x3e3bb0===_0x344fb1)break;else _0x14dacf['push'](_0x14dacf['shift']());}catch(_0x12c448){_0x14dacf['push'](_0x14dacf['shift']());}}}(a23_0x3eaf,0xbce00));const {isTestObservabilitySession,PathHelper,debug,failureData,getFailureType,isInternalHook}=require(a23_0x47d609(0x1b6)),SessionHandler=require(a23_0x47d609(0x186)),{v4:uuidv4}=require('uuid'),{name,version}=require('../../../../package.json'),stackTrace=require(a23_0x47d609(0x1fe)),path=require('path'),fs=require('fs'),TestDetails=require(a23_0x47d609(0x1c5)),{FRAMEWORKS}=require(a23_0x47d609(0x1bd)),{o11yClassErrorHandler}=require(a23_0x47d609(0x1b3)),{getGitMetaData}=require('../../../helpers/helper'),helper=require('../../../helpers/helper'),{appendTesthubParams,setCurrentTestData}=require(a23_0x47d609(0x1d6)),constants=require(a23_0x47d609(0x1bd)),BrowserstackCLI=require(a23_0x47d609(0x21e)),a23_0x52680c={};function a23_0x3162(_0x257777,_0x13890e){const _0x3eafd1=a23_0x3eaf();return a23_0x3162=function(_0x316222,_0x19ca70){_0x316222=_0x316222-0x17a;let _0x15487a=_0x3eafd1[_0x316222];return _0x15487a;},a23_0x3162(_0x257777,_0x13890e);}a23_0x52680c['STATE_PASSED']='passed',a23_0x52680c['STATE_FAILED']='failed',a23_0x52680c[a23_0x47d609(0x213)]=a23_0x47d609(0x1de);const {STATE_PASSED,STATE_PENDING,STATE_FAILED}=a23_0x52680c,a23_0x4fada2={};a23_0x4fada2[a23_0x47d609(0x1fc)]='BEFORE_ALL',a23_0x4fada2[a23_0x47d609(0x187)]=a23_0x47d609(0x22d),a23_0x4fada2[a23_0x47d609(0x26f)]=a23_0x47d609(0x253),a23_0x4fada2[a23_0x47d609(0x220)]=a23_0x47d609(0x20a);const HOOK_TYPES_MAP=a23_0x4fada2;function a23_0x3eaf(){const _0x5c2be9=['mucxZ','bs:addLog:','test_run','PYTSa','vIsSS','ObservabilityReporter','getPackageVersion','forEach','getRootParentFile','generic','ryJCn','hookAnalyticsId','IuiCJ','prefixTestPath','nzBhw','File\x20path\x20could\x20not\x20be\x20found','qWyPQ','getTime','yDBhz','PLZDz','XjQvy','cTosa','JEST','4|0|1|3|2','name','wGyWJ','testStarted','ZMkhA','toString','CIQTL','OtOcd','jHyQi','rPKQH','../../../helpers/test-observability/error-handler','oifXA','RPftb','../../../helpers/test-observability/utils','2961385uRVeEz','state','3049818ZRkUIF','getHierarchy','retryOf','failure_backtrace','../../utils/constants','toISOString','hookUUID','Gwczm','zNqMN','bs:addPlatformDetails:','addMultipleEntries','eOoqL','./test-details','NsrNY','Oqdyz','event_type','[obsReporter]\x20appendTestItemLog:\x20Attached\x20test_identifier=','@playwright/test','isCliEnabled','VKUec','uuid','TZdio','_testEnv','hook_run_uuid','__workerDetails','testObservability','VTaYi','getHooksForTest','inspect','../../../helpers/testhub/utils','title','configureGit','zNULr','2265865rhRpmt','ROOT_DESCRIBE_BLOCK','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','includes','pending','getTestFramework','sSTkD','sep','getActiveHook','errorsDetailed','getFileName','Haejv','Jveao','duration','\x20to\x20log','javascript','4681608WPZKCl','getAllData','kind','file','setTestUUID',',\x20falling\x20back\x20to\x20Jest+Selenium\x20flow','OkSok','asyncError','started_at','pucbc','SuxOG','LogCreated','FatLK','3923UAslMM','registerListeners','sUxeW','lxqNL','LVRha','beforeAll','SgCRV','stack-trace','OjxKe','testIdentifier','markedStatus','_paths','qwYzZ','hxedc','mtLvF',',\x20logKind=','SCJud','HookRunFinished','result','AFTER_EACH','getName','KTSvB','puppeteer-core','CBTSessionCreated','hrywA','parent','160MQinNJ','type','STATE_PENDING','failed\x20to\x20get\x20root\x20parent\x20file\x20','split','__jestCurrentTestIdentifier',':jest-','hook_data','ORvdO','appendTestPlatform','[obsReporter]\x20appendTestItemLog:\x20Error\x20in\x20Jest+Playwright\x20flow\x20detection:\x20','err','getTestUUID','../../v2/browserstackCLI','hooks','afterEach','PFuHe','pid','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','501894wHDwhv','../../v2/state/testFrameworkState','\x20with\x20error\x20:\x20',':testAnalyticsId','ZrQtH','LYwHe','[obsReporter]\x20appendTestItemLog:\x20Found\x20active\x20hook\x20from\x20JestTestFramework\x20-\x20hookUUID=','unknown','RgPcq','AFTER_ALL','JDaLf','CUqJE','uploadEventData','BCFAj','current_test','voRqq','getTestEnv','uSDML','KEY_LOGS','push','passed','util','TEST_REPORTING_ANALYTICS','puppeteer','itnAw','.git','34748620MSyFvu','get','resolveInstance','findGitConfig','test','XZmZL','TestRunFinished','isJestInternalHook','http_response','resetTestHooks','[obsReporter]\x20appendTestItemLog:\x20Instance\x20not\x20available\x20or\x20addMultipleEntries\x20not\x20available\x20for\x20testIdentifier=','now','currentHook','appendTestItemLog','analyticsResult','118RfKzsS','test_identifier','hook_type','getInstance','12olYPdo','current_hook','BEFORE_EACH','ASijs','join','testAnalyticsId','hook_failure','UBMLa','backtrace','_currentRetry',',\x20testIdentifier=','Bkwkf','IFivF','skipped','js-','_gitConfigPath','hook_run','function','_gitConfigured','mapTestHooks','TrenC','length','reverse','root','config',':hookAnalyticsId','removeAllListeners','test_run_uuid','MPppE','[obsReporter]\x20appendTestItemLog:\x20Attached\x20hook_run_uuid=','beforeEach','jest-circus','YOCpu','match','Cdgal','cwOUU','bind','TQVOM','../../v2/state/hookState','zGTcH','failure_type','logs','../../v2/framework/constants/testFrameworkConstants','YZuVr','tRxBq','failure_reason','_testResults','../../../helpers/test-observability/sessionHandler','afterAll','pbGRV','IMApW','ISvBk','npnjz','dirname',',\x20totalLogs:\x20','location_prefix','sendTestRunEvent','oyNgM','4|0|5|3|1|6|2'];a23_0x3eaf=function(){return _0x5c2be9;};return a23_0x3eaf();}module['exports']=o11yClassErrorHandler(class ObservabilityReporter{constructor(){const _0x52c693=a23_0x47d609,_0x1251de={'OjxKe':_0x52c693(0x191),'wGyWJ':function(_0x34238e){return _0x34238e();}},_0x1f52f5=_0x1251de[_0x52c693(0x1ff)][_0x52c693(0x215)]('|');let _0x2634e7=0x0;while(!![]){switch(_0x1f52f5[_0x2634e7++]){case'0':this[_0x52c693(0x185)]=[];continue;case'1':this[_0x52c693(0x218)]=[];continue;case'2':this[_0x52c693(0x260)]=null;continue;case'3':this[_0x52c693(0x202)]=new PathHelper({'cwd':process['cwd']()},this['_testEnv'][_0x52c693(0x18e)]);continue;case'4':this[_0x52c693(0x1d2)]=_0x1251de[_0x52c693(0x1ab)](isTestObservabilitySession);continue;case'5':this[_0x52c693(0x1cf)]=this['getTestEnv']();continue;case'6':this[_0x52c693(0x263)]=![];continue;}break;}}['getTestEnv']=()=>{const _0x3291a9=a23_0x47d609,_0x514774={'rglmq':_0x3291a9(0x19b),'pucbc':function(_0x118243){return _0x118243();}};return{'ci':_0x514774['rglmq'],'key':_0x514774[_0x3291a9(0x1f3)](uuidv4),'version':version,'collector':_0x3291a9(0x25f)+name};};[a23_0x47d609(0x1f8)](){const _0x246ec4=a23_0x47d609;process[_0x246ec4(0x26b)](_0x246ec4(0x193)+process['pid']),process['on']('bs:addLog:'+process[_0x246ec4(0x222)],this[_0x246ec4(0x24b)][_0x246ec4(0x17b)](this)),process[_0x246ec4(0x26b)](_0x246ec4(0x1c2)+process[_0x246ec4(0x222)]),process['on'](_0x246ec4(0x1c2)+process[_0x246ec4(0x222)],this[_0x246ec4(0x21a)][_0x246ec4(0x17b)](this));}[a23_0x47d609(0x1ac)]=async _0x259ad6=>{const _0x2d48b0=a23_0x47d609,_0x5da9fc={'VxPFa':function(_0x30b00b,_0x5a9170){return _0x30b00b>_0x5a9170;},'XjQvy':function(_0x2f5ddc,_0x50e78f){return _0x2f5ddc===_0x50e78f;},'SCJud':'TestRunStarted','itvUM':function(_0x11f245,_0x15d8bb){return _0x11f245(_0x15d8bb);}};try{const _0x2f5743=this[_0x2d48b0(0x232)];this[_0x2d48b0(0x232)]=_0x259ad6,_0x259ad6[_0x2d48b0(0x1bb)]=null,_0x259ad6[_0x2d48b0(0x256)]=TestDetails[_0x2d48b0(0x1ee)](process[_0x2d48b0(0x222)]+':testAnalyticsId'),_0x259ad6[_0x2d48b0(0x1f2)]=new Date()[_0x2d48b0(0x1be)](),_0x5da9fc['VxPFa'](_0x259ad6[_0x2d48b0(0x25a)],0x0)&&_0x2f5743&&_0x5da9fc[_0x2d48b0(0x1a6)](_0x2f5743[_0x2d48b0(0x1d7)],_0x259ad6[_0x2d48b0(0x1d7)])?(_0x259ad6[_0x2d48b0(0x1bb)]=_0x2f5743[_0x2d48b0(0x256)],await this[_0x2d48b0(0x18f)](_0x259ad6,undefined,![],_0x5da9fc[_0x2d48b0(0x207)]),_0x2f5743[_0x2d48b0(0x1b8)]=STATE_FAILED,await this[_0x2d48b0(0x18f)](_0x2f5743,undefined,!![])):await this[_0x2d48b0(0x18f)](_0x259ad6,undefined,![],_0x5da9fc[_0x2d48b0(0x207)]);}catch(_0x5c253b){_0x5da9fc['itvUM'](debug,_0x2d48b0(0x1dc)+_0x5c253b);}};[a23_0x47d609(0x20b)](_0x11c8bf){const _0x32e310=a23_0x47d609,_0x4f8c64={};_0x4f8c64[_0x32e310(0x1e6)]=function(_0x1e63e8,_0xf118e2){return _0x1e63e8!==_0xf118e2;},_0x4f8c64[_0x32e310(0x1d3)]=_0x32e310(0x242);const _0x494e79=_0x4f8c64;if(_0x494e79[_0x32e310(0x1e6)](_0x11c8bf[_0x32e310(0x212)],_0x494e79['VTaYi']))return'\x22'+_0x11c8bf[_0x32e310(0x212)]+'\x22\x20hook\x20for\x20\x22'+(_0x11c8bf[_0x32e310(0x210)]&&_0x11c8bf[_0x32e310(0x210)][_0x32e310(0x1aa)])+'\x22';return _0x11c8bf[_0x32e310(0x1aa)];}[a23_0x47d609(0x18f)]=async(_0x1493f2,_0xba327=undefined,_0x1a9953=![],_0x1092ce=a23_0x47d609(0x244))=>{const _0x38fc79=a23_0x47d609,_0x34fd14={'LYwHe':_0x38fc79(0x1a9),'cwOUU':_0x38fc79(0x261),'TrenC':_0x38fc79(0x17f),'ZrQtH':_0x38fc79(0x194),'tTxrh':_0x38fc79(0x209),'PFuHe':_0x38fc79(0x184),'sUxeW':'failure','qwYzZ':function(_0x2791ec,_0x240262){return _0x2791ec(_0x240262);},'Gwczm':_0x38fc79(0x270),'npnjz':function(_0x4378c1,_0x5f3f94){return _0x4378c1(_0x5f3f94);},'QldLm':_0x38fc79(0x239),'oyNgM':function(_0x17f051,_0x49d550){return _0x17f051!==_0x49d550;},'RgPcq':_0x38fc79(0x242),'zNULr':function(_0x9ddaa5,_0x2bfcb4){return _0x9ddaa5!==_0x2bfcb4;},'mtLvF':_0x38fc79(0x21c),'mucxZ':function(_0x56422c,_0x50da4b){return _0x56422c!==_0x50da4b;},'pbGRV':_0x38fc79(0x1a1),'UjlYJ':_0x38fc79(0x1e9),'uSDML':function(_0xecbfc6,_0x192159){return _0xecbfc6===_0x192159;},'JDaLf':'TestRunSkipped','LVRha':_0x38fc79(0x25e),'VKUec':function(_0x5ba491,_0x39d7b3){return _0x5ba491>_0x39d7b3;},'ORvdO':'failed','ryJCn':_0x38fc79(0x238),'zNqMN':function(_0x1ae328,_0x466e24){return _0x1ae328-_0x466e24;},'oKlzx':function(_0x43a428,_0x481695){return _0x43a428(_0x481695);},'ISvBk':function(_0x4bdbf0,_0x3bff26,_0x1a20c1,_0x734468,_0x5e60a3){return _0x4bdbf0(_0x3bff26,_0x1a20c1,_0x734468,_0x5e60a3);},'KTSvB':function(_0x1b7892,_0x1cc65f){return _0x1b7892===_0x1cc65f;},'Haejv':_0x38fc79(0x1f2),'McsSe':'finished_at','OtOcd':function(_0x5edc3a,_0x40bff9){return _0x5edc3a===_0x40bff9;},'sSTkD':_0x38fc79(0x208),'SuxOG':_0x38fc79(0x1bc),'OkSok':_0x38fc79(0x259),'UBMLa':'failure_reason_expanded','ASijs':'expanded','hrywA':_0x38fc79(0x244),'Cdgal':'hook_type','IFivF':'beforeAll','PYTSa':function(_0x4b0d0f,_0x3b5fac,_0x459ddc){return _0x4b0d0f(_0x3b5fac,_0x459ddc);}};try{if(_0x1493f2['fn']&&_0x1493f2['fn'][_0x38fc79(0x1ae)]()[_0x38fc79(0x272)](/browserstack internal helper hook/))return;await this[_0x38fc79(0x1d8)]();let _0x23f02b;try{_0x23f02b=this[_0x38fc79(0x19a)](_0x1493f2);}catch(_0x2e088d){_0x34fd14[_0x38fc79(0x203)](debug,_0x38fc79(0x214)+_0x2e088d),_0x23f02b=null;}if(_0x23f02b['includes'](_0x34fd14[_0x38fc79(0x1c0)]))return;const _0x5685e7=_0x34fd14[_0x38fc79(0x18b)](require,_0x34fd14['QldLm']);let _0x17e3e5=[];if(_0x34fd14[_0x38fc79(0x190)](_0x1493f2[_0x38fc79(0x1e3)],undefined))_0x17e3e5=[_0x1493f2[_0x38fc79(0x1e3)],_0x34fd14[_0x38fc79(0x22c)]];else _0x34fd14['zNULr'](_0xba327,undefined)?_0x17e3e5=[_0xba327,_0x34fd14[_0x38fc79(0x205)]]:_0x17e3e5=[];const _0x478cf1=_0x34fd14[_0x38fc79(0x1d9)](_0x1493f2[_0x38fc79(0x1e3)],undefined)?_0x5685e7[_0x38fc79(0x1d5)](_0x1493f2['errorsDetailed'][0x0]):_0x34fd14[_0x38fc79(0x192)](_0xba327,undefined)?_0xba327[_0x38fc79(0x1ae)]():undefined,_0xac605a=_0x23f02b?this['_paths'][_0x38fc79(0x19f)](this[_0x38fc79(0x19a)](_0x1493f2)):_0x34fd14[_0x38fc79(0x188)],_0x5d64ae={'framework':FRAMEWORKS[_0x38fc79(0x1a8)],'uuid':_0x1493f2[_0x38fc79(0x256)]||_0x1493f2[_0x38fc79(0x19d)],'name':this[_0x38fc79(0x20b)](_0x1493f2),'body':{'lang':_0x34fd14['UjlYJ'],'code':_0x1493f2['fn']['toString']()},'scopes':this[_0x38fc79(0x1ba)](_0x1493f2),'file_name':_0xac605a,'vc_filepath':this['_gitConfigPath']&&_0x23f02b?path['relative'](this[_0x38fc79(0x260)],_0x23f02b):null,'location':_0xac605a,'result':_0x34fd14[_0x38fc79(0x235)](_0x1092ce,_0x34fd14['JDaLf'])?_0x34fd14[_0x38fc79(0x1fb)]:this[_0x38fc79(0x24c)](_0x1493f2[_0x38fc79(0x1e3)]&&_0x34fd14[_0x38fc79(0x1cc)](_0x1493f2[_0x38fc79(0x1e3)][_0x38fc79(0x266)],0x0)?_0x34fd14['ORvdO']:_0x34fd14[_0x38fc79(0x19c)]),'failure_reason':_0x478cf1,'duration_in_ms':_0x1493f2[_0x38fc79(0x1e7)]||(_0x1092ce[_0x38fc79(0x272)](/Finished/)||_0x1092ce[_0x38fc79(0x272)](/Skipped/)?_0x34fd14[_0x38fc79(0x1c1)](Date[_0x38fc79(0x249)](),new Date(_0x1493f2[_0x38fc79(0x1f2)])[_0x38fc79(0x1a3)]()):null),'started_at':_0x1493f2[_0x38fc79(0x1f2)],'finished_at':_0x1092ce[_0x38fc79(0x272)](/Finished/)||_0x1092ce[_0x38fc79(0x272)](/Skipped/)?new Date()[_0x38fc79(0x1be)]():null,'failure':failureData['apply'](null,_0x17e3e5),'failure_type':!_0x478cf1?null:_0x34fd14['oKlzx'](getFailureType,_0x478cf1),'retry_of':_0x1493f2[_0x38fc79(0x1bb)]};_0x34fd14[_0x38fc79(0x18a)](appendTesthubParams,_0x5d64ae,_0x1092ce,_0x1493f2,FRAMEWORKS[_0x38fc79(0x1a8)]);_0x34fd14[_0x38fc79(0x20c)](_0x1092ce,_0x34fd14['JDaLf'])&&!_0x5d64ae[_0x34fd14[_0x38fc79(0x1e5)]]&&(_0x5d64ae[_0x34fd14[_0x38fc79(0x1e5)]]=_0x5d64ae[_0x34fd14['McsSe']]);if(_0x1092ce[_0x38fc79(0x272)](/HookRun/))[_0x5d64ae[_0x38fc79(0x24f)],_0x5d64ae[_0x38fc79(0x1aa)]]=[_0x1493f2['type'],this[_0x38fc79(0x20b)](_0x1493f2)],_0x34fd14['OtOcd'](_0x1092ce,_0x34fd14[_0x38fc79(0x1e0)])&&(_0x34fd14['zNULr'](_0x5d64ae[_0x38fc79(0x209)],_0x34fd14[_0x38fc79(0x219)])&&(_0x5d64ae['result']=_0x34fd14['ryJCn']));else _0x1092ce[_0x38fc79(0x272)](/TestRun/)&&this[_0x38fc79(0x264)](_0x1493f2);const _0x5ec7db=_0x5d64ae[_0x34fd14[_0x38fc79(0x1f9)]][0x0];_0x5ec7db&&(_0x5d64ae[_0x34fd14[_0x38fc79(0x1f4)]]=_0x5ec7db[_0x34fd14[_0x38fc79(0x1f0)]],_0x5d64ae[_0x34fd14[_0x38fc79(0x258)]]=_0x5ec7db[_0x34fd14[_0x38fc79(0x254)]]);[_0x34fd14[_0x38fc79(0x20f)],_0x34fd14[_0x38fc79(0x22e)]][_0x38fc79(0x1dd)](_0x1092ce)&&(this[_0x38fc79(0x185)][_0x38fc79(0x237)](_0x5d64ae),_0x5d64ae[_0x38fc79(0x21f)]=this[_0x38fc79(0x1d4)](_0x1493f2),this['resetTestHooks'](_0x1493f2));const _0x2abdcb={'event_type':_0x34fd14[_0x38fc79(0x235)](_0x1092ce,_0x34fd14['JDaLf'])?_0x34fd14[_0x38fc79(0x20f)]:_0x1092ce};_0x1092ce['match'](/HookRun/)?(_0x5d64ae[_0x34fd14[_0x38fc79(0x273)]]=HOOK_TYPES_MAP[_0x5d64ae[_0x34fd14[_0x38fc79(0x273)]]],_0x2abdcb[_0x34fd14['cwOUU']]=_0x5d64ae):_0x2abdcb[_0x34fd14['ZrQtH']]=_0x5d64ae;_0x34fd14[_0x38fc79(0x1cc)](this[_0x38fc79(0x218)][_0x38fc79(0x266)],0x0)&&[_0x34fd14['hrywA'],_0x34fd14[_0x38fc79(0x22e)]][_0x38fc79(0x1dd)](_0x1092ce)&&(this['hook_data'][_0x38fc79(0x199)](async _0x7632de=>{const _0x1ff752=_0x38fc79,_0xbe295c=_0x34fd14[_0x1ff752(0x229)][_0x1ff752(0x215)]('|');let _0x86c1ea=0x0;while(!![]){switch(_0xbe295c[_0x86c1ea++]){case'0':_0x7632de[_0x34fd14[_0x1ff752(0x17a)]][_0x34fd14[_0x1ff752(0x265)]]=_0x2abdcb[_0x34fd14[_0x1ff752(0x228)]][_0x34fd14[_0x1ff752(0x265)]];continue;case'1':_0x7632de[_0x34fd14[_0x1ff752(0x17a)]][_0x34fd14['tTxrh']]=_0x2abdcb[_0x34fd14['ZrQtH']][_0x34fd14['tTxrh']];continue;case'2':await SessionHandler[_0x1ff752(0x230)](_0x7632de);continue;case'3':_0x7632de[_0x34fd14[_0x1ff752(0x17a)]][_0x34fd14['PFuHe']]=_0x2abdcb[_0x34fd14[_0x1ff752(0x228)]][_0x34fd14[_0x1ff752(0x221)]];continue;case'4':_0x7632de[_0x34fd14[_0x1ff752(0x17a)]][_0x34fd14[_0x1ff752(0x1f9)]]=_0x2abdcb[_0x34fd14[_0x1ff752(0x228)]][_0x34fd14[_0x1ff752(0x1f9)]];continue;}break;}}),this[_0x38fc79(0x218)]=[]);if(_0x34fd14[_0x38fc79(0x1b0)](this['hook_failure'],_0x1493f2[_0x38fc79(0x212)])){this[_0x38fc79(0x218)]['push'](_0x2abdcb);return;}_0x34fd14['uSDML'](this[_0x38fc79(0x257)],_0x34fd14[_0x38fc79(0x25d)])&&_0x2abdcb[_0x34fd14[_0x38fc79(0x228)]]&&(_0x2abdcb[_0x34fd14['ZrQtH']][_0x34fd14['tTxrh']]=_0x34fd14[_0x38fc79(0x1fb)],_0x2abdcb[_0x34fd14[_0x38fc79(0x228)]][_0x34fd14['sUxeW']]=null,_0x2abdcb[_0x34fd14[_0x38fc79(0x228)]][_0x34fd14['TrenC']]=null),_0x34fd14[_0x38fc79(0x195)](setCurrentTestData,FRAMEWORKS[_0x38fc79(0x1a8)],_0x2abdcb),await SessionHandler[_0x38fc79(0x230)](_0x2abdcb);}catch(_0x4b9969){_0x34fd14[_0x38fc79(0x18b)](debug,_0x38fc79(0x223)+_0x1092ce+_0x38fc79(0x226)+_0x4b9969);}};['findGitConfig'](_0x4a29c2){const _0x54c8f5=a23_0x47d609,_0x5c2392={};_0x5c2392[_0x54c8f5(0x1a7)]=function(_0x2cb4b9,_0x38f278){return _0x2cb4b9==_0x38f278;},_0x5c2392[_0x54c8f5(0x1a2)]=function(_0x6e5ea3,_0x2d0ce8){return _0x6e5ea3===_0x2d0ce8;},_0x5c2392[_0x54c8f5(0x231)]=_0x54c8f5(0x23d),_0x5c2392[_0x54c8f5(0x1a4)]=_0x54c8f5(0x269);const _0x32917a=_0x5c2392,_0x2121ec=path[_0x54c8f5(0x1e1)];if(_0x32917a['cTosa'](_0x4a29c2,null)||_0x32917a[_0x54c8f5(0x1a2)](_0x4a29c2,'')||_0x32917a[_0x54c8f5(0x1a2)](_0x4a29c2,_0x2121ec)||_0x32917a[_0x54c8f5(0x1a2)](_0x4a29c2,path['dirname'](_0x4a29c2)))return null;try{return fs['statSync'](path[_0x54c8f5(0x255)](_0x4a29c2,_0x32917a[_0x54c8f5(0x231)],_0x32917a[_0x54c8f5(0x1a4)])),_0x4a29c2;}catch(_0x254b92){const _0x46d4d2=path[_0x54c8f5(0x18c)](_0x4a29c2);return this[_0x54c8f5(0x241)](_0x46d4d2);}}['appendTestItemLog']=async _0x559d1e=>{const _0x5ef80e=a23_0x47d609,_0x108d7f={'onlRm':_0x5ef80e(0x1ca),'SgCRV':_0x5ef80e(0x20d),'Oqdyz':_0x5ef80e(0x23b),'RPftb':function(_0xb17f00,_0xcd162d){return _0xb17f00||_0xcd162d;},'FatLK':function(_0x39560b,_0x433999){return _0x39560b(_0x433999);},'zGTcH':'[obsReporter]\x20appendTestItemLog:\x20Jest+Playwright/Puppeteer\x20CLI\x20flow\x20detected,\x20using\x20in-memory\x20storage','IuiCJ':function(_0xa898d7,_0x4acc1f){return _0xa898d7(_0x4acc1f);},'tgBAT':function(_0x13f295,_0x3e3142){return _0x13f295&&_0x3e3142;},'TZdio':_0x5ef80e(0x217),'hxedc':function(_0xe28d8e,_0x2539b3){return _0xe28d8e(_0x2539b3);},'OMPfn':_0x5ef80e(0x225),'TQVOM':function(_0x598edd,_0xb7314a){return _0x598edd(_0xb7314a);},'oifXA':_0x5ef80e(0x17d),'vIsSS':_0x5ef80e(0x181),'NsrNY':function(_0x7faab7,_0x20d883){return _0x7faab7===_0x20d883;},'PLZDz':_0x5ef80e(0x262),'voRqq':function(_0x3fe2a3,_0x7ef3f2){return _0x3fe2a3(_0x7ef3f2);},'ZMkhA':_0x5ef80e(0x22b),'CIQTL':function(_0x3f4c40,_0x3af24e){return _0x3f4c40(_0x3af24e);},'ftGpV':function(_0x5502b4,_0x5b6f90){return _0x5502b4(_0x5b6f90);},'Bkwkf':_0x5ef80e(0x1f5)};try{const _0x4fa5cb=helper[_0x5ef80e(0x198)](_0x108d7f['onlRm']),_0x58874f=!!_0x4fa5cb,_0x515045=helper['getPackageVersion'](_0x108d7f[_0x5ef80e(0x1fd)])||helper[_0x5ef80e(0x198)](_0x108d7f[_0x5ef80e(0x1c7)]),_0xecd998=!!_0x515045,_0x5c4827=BrowserstackCLI[_0x5ef80e(0x250)]()[_0x5ef80e(0x1cb)]()&&BrowserstackCLI[_0x5ef80e(0x250)]()['isRunning']();if(_0x108d7f[_0x5ef80e(0x1b5)](_0x58874f,_0xecd998)&&_0x5c4827){_0x108d7f['FatLK'](debug,_0x108d7f[_0x5ef80e(0x17e)]);let _0x40ce2b=null,_0x558fd3=null;if(global[_0x5ef80e(0x1d1)]&&global[_0x5ef80e(0x1d1)]['currentHook']){const _0x32ad04=global['__workerDetails'][_0x5ef80e(0x24a)];_0x558fd3=_0x32ad04[_0x5ef80e(0x1bf)],_0x40ce2b=_0x32ad04[_0x5ef80e(0x200)],_0x108d7f['IuiCJ'](debug,'[obsReporter]\x20appendTestItemLog:\x20Found\x20active\x20hook\x20-\x20hookUUID='+_0x558fd3+',\x20testIdentifier='+_0x40ce2b);}!_0x40ce2b&&(_0x40ce2b=global[_0x5ef80e(0x216)],_0x108d7f['IuiCJ'](debug,'[obsReporter]\x20appendTestItemLog:\x20Using\x20testIdentifier\x20from\x20global.__jestCurrentTestIdentifier:\x20'+_0x40ce2b));if(_0x108d7f['tgBAT'](!_0x558fd3,_0x40ce2b)){const _0x59909d=BrowserstackCLI['getInstance']()[_0x5ef80e(0x1df)]();if(_0x59909d&&_0x59909d[_0x5ef80e(0x1e2)]){const _0x274473=_0x59909d[_0x5ef80e(0x1e2)](_0x40ce2b);_0x274473&&_0x274473[_0x5ef80e(0x1bf)]&&(_0x558fd3=_0x274473['hookUUID'],_0x108d7f[_0x5ef80e(0x19e)](debug,_0x5ef80e(0x22a)+_0x558fd3+_0x5ef80e(0x25b)+_0x40ce2b));}}if(!_0x40ce2b||!_0x40ce2b[_0x5ef80e(0x1dd)](_0x108d7f[_0x5ef80e(0x1ce)]))_0x108d7f[_0x5ef80e(0x204)](debug,'[obsReporter]\x20appendTestItemLog:\x20Invalid\x20or\x20missing\x20testIdentifier\x20format:\x20'+_0x40ce2b+',\x20falling\x20back\x20to\x20Jest+Selenium\x20flow');else{_0x558fd3&&(_0x559d1e['hook_run_uuid']=_0x558fd3,_0x108d7f[_0x5ef80e(0x204)](debug,_0x5ef80e(0x26e)+_0x558fd3+_0x5ef80e(0x1e8)));_0x559d1e[_0x5ef80e(0x24e)]=_0x40ce2b,_0x108d7f[_0x5ef80e(0x1f6)](debug,_0x5ef80e(0x1c9)+_0x40ce2b+_0x5ef80e(0x1e8));const _0x2b8804=BrowserstackCLI[_0x5ef80e(0x250)]()[_0x5ef80e(0x1df)]();if(_0x2b8804){const _0x1d4c08=_0x108d7f[_0x5ef80e(0x1f6)](require,_0x108d7f['OMPfn']),_0x3e291b=_0x108d7f[_0x5ef80e(0x17c)](require,_0x108d7f[_0x5ef80e(0x1b4)]),_0xfc252a=_0x108d7f[_0x5ef80e(0x19e)](require,_0x108d7f[_0x5ef80e(0x196)]),_0x267dc5=_0x2b8804[_0x5ef80e(0x240)](_0x1d4c08['TEST'],_0x3e291b['POST']);if(_0x267dc5&&_0x108d7f[_0x5ef80e(0x1c6)](typeof _0x267dc5[_0x5ef80e(0x1c3)],_0x108d7f[_0x5ef80e(0x1a5)])){const _0x437a9a=_0x267dc5[_0x5ef80e(0x1eb)]()[_0x5ef80e(0x23f)](_0x40ce2b)||{},_0x21c227=_0x437a9a[_0xfc252a[_0x5ef80e(0x236)]]||[],_0x4fb87f=[..._0x21c227,_0x559d1e],_0x1293bc={[_0xfc252a['KEY_LOGS']]:_0x4fb87f},_0x4d1f51={};_0x4d1f51[_0x40ce2b]=_0x1293bc,_0x267dc5[_0x5ef80e(0x1c3)](_0x4d1f51),_0x108d7f[_0x5ef80e(0x233)](debug,'[obsReporter]\x20appendTestItemLog:\x20Stored\x20log\x20in\x20instance.data[KEY_LOGS]\x20for\x20testIdentifier='+_0x40ce2b+_0x5ef80e(0x206)+(_0x559d1e[_0x5ef80e(0x1ec)]||_0x108d7f[_0x5ef80e(0x1ad)])+_0x5ef80e(0x18d)+_0x4fb87f['length']);return;}_0x108d7f[_0x5ef80e(0x1af)](debug,_0x5ef80e(0x248)+_0x40ce2b+_0x5ef80e(0x1ef));}}}}catch(_0x436aeb){_0x108d7f['ftGpV'](debug,_0x5ef80e(0x21b)+_0x436aeb+_0x5ef80e(0x1ef));}const _0x5037bb=TestDetails[_0x5ef80e(0x21d)](process[_0x5ef80e(0x222)]+_0x5ef80e(0x26a)),_0x37dab8=TestDetails['getTestUUID'](process[_0x5ef80e(0x222)]+_0x5ef80e(0x227));try{(_0x5037bb||this[_0x5ef80e(0x252)]&&!this[_0x5ef80e(0x252)][_0x5ef80e(0x201)])&&(_0x559d1e[_0x5ef80e(0x1d0)]=_0x5037bb);!_0x559d1e['hook_run_uuid']&&_0x37dab8&&(_0x559d1e['test_run_uuid']=_0x37dab8);if(_0x559d1e['hook_run_uuid']||_0x559d1e[_0x5ef80e(0x26c)]){const _0x1ba1e6={};_0x1ba1e6['event_type']=_0x108d7f[_0x5ef80e(0x25c)],_0x1ba1e6[_0x5ef80e(0x180)]=[_0x559d1e],await SessionHandler[_0x5ef80e(0x230)](_0x1ba1e6);}}catch(_0x145e75){_0x108d7f['ftGpV'](debug,'Exception\x20in\x20uploading\x20log\x20data\x20to\x20'+constants[_0x5ef80e(0x23a)]+_0x5ef80e(0x226)+_0x145e75);}};['appendTestPlatform']=async _0x221b38=>{const _0x148378=a23_0x47d609,_0x5a6eab={'iKhNO':_0x148378(0x246),'tRxBq':_0x148378(0x20e),'eOoqL':function(_0x41c881,_0x132d55){return _0x41c881(_0x132d55);}};try{const _0x3bfb9a={'uuid':_0x221b38[_0x148378(0x1cd)]||TestDetails[_0x148378(0x21d)](process[_0x148378(0x222)]+_0x148378(0x227)),'integrations':_0x221b38[_0x5a6eab['iKhNO']]},_0xcc4c81={};_0xcc4c81[_0x148378(0x1c8)]=_0x5a6eab[_0x148378(0x183)],_0xcc4c81[_0x148378(0x194)]=_0x3bfb9a,await SessionHandler[_0x148378(0x230)](_0xcc4c81);}catch(_0x3b224e){_0x5a6eab[_0x148378(0x1c4)](debug,'Exception\x20in\x20uploading\x20platform\x20details\x20to\x20'+constants[_0x148378(0x23a)]+_0x148378(0x226)+_0x3b224e);}};async[a23_0x47d609(0x1d8)](){const _0x4edbac=a23_0x47d609,_0x49ce7d={'lxqNL':function(_0x58d00e){return _0x58d00e();}};if(this['_gitConfigured'])return this[_0x4edbac(0x260)];const _0x5a976e=await _0x49ce7d[_0x4edbac(0x1fa)](getGitMetaData);_0x5a976e&&(this['_gitConfigPath']=_0x5a976e[_0x4edbac(0x268)]),this[_0x4edbac(0x263)]=!![];}[a23_0x47d609(0x24c)](_0x52f88e){const _0x3a8af7=a23_0x47d609,_0x137755={};_0x137755[_0x3a8af7(0x22f)]='passed',_0x137755[_0x3a8af7(0x23c)]=_0x3a8af7(0x1de),_0x137755[_0x3a8af7(0x271)]='failed';const _0x55de31=_0x137755,_0x1d22a8={};return _0x1d22a8[STATE_PASSED]=_0x55de31['CUqJE'],_0x1d22a8[STATE_PENDING]=_0x55de31[_0x3a8af7(0x23c)],_0x1d22a8[STATE_FAILED]=_0x55de31[_0x3a8af7(0x271)],_0x1d22a8[_0x52f88e];}['getHierarchy'](_0x4c2d7b){const _0x1fe2bd=a23_0x47d609,_0x5d1d7f={};_0x5d1d7f[_0x1fe2bd(0x182)]=function(_0x271b83,_0x11ad95){return _0x271b83!==_0x11ad95;},_0x5d1d7f[_0x1fe2bd(0x243)]=function(_0xf63a96,_0x3e0705){return _0xf63a96!==_0x3e0705;},_0x5d1d7f[_0x1fe2bd(0x1a0)]=_0x1fe2bd(0x1db);const _0x357c56=_0x5d1d7f,_0x1f1ae0=[];if(_0x4c2d7b&&_0x4c2d7b['parent']){let _0x5f03cf=_0x4c2d7b[_0x1fe2bd(0x210)];while(_0x5f03cf&&_0x357c56[_0x1fe2bd(0x182)](_0x5f03cf[_0x1fe2bd(0x1aa)],'')&&_0x357c56[_0x1fe2bd(0x243)](_0x5f03cf['name'],_0x357c56[_0x1fe2bd(0x1a0)])){_0x1f1ae0[_0x1fe2bd(0x237)](_0x5f03cf[_0x1fe2bd(0x1aa)]),_0x5f03cf=_0x5f03cf[_0x1fe2bd(0x210)];}}return _0x1f1ae0[_0x1fe2bd(0x267)](),_0x1f1ae0;}[a23_0x47d609(0x19a)]=_0xf3e8a7=>{const _0x2fd937=a23_0x47d609;if(_0xf3e8a7[_0x2fd937(0x1f1)]){const _0x4bba23=stackTrace['parse']['call'](stackTrace,_0xf3e8a7[_0x2fd937(0x1f1)]);return _0x4bba23[0x0][_0x2fd937(0x1e4)]();}if(_0xf3e8a7[_0x2fd937(0x1ed)])return _0xf3e8a7['file'];return null;};[a23_0x47d609(0x264)]=_0x36c538=>{const _0x18c73b=a23_0x47d609;if(!_0x36c538||!_0x36c538['parent'])return;_0x36c538[_0x18c73b(0x210)][_0x18c73b(0x21f)][_0x18c73b(0x199)](_0xf0f09a=>{const _0x548ab2=_0x18c73b;!_0xf0f09a[_0x548ab2(0x19d)]&&(_0xf0f09a[_0x548ab2(0x19d)]=TestDetails['setTestUUID'](process[_0x548ab2(0x222)]+_0x548ab2(0x26a)));}),this[_0x18c73b(0x264)](_0x36c538[_0x18c73b(0x210)]);};[a23_0x47d609(0x247)]=_0x386c4f=>{const _0x33573b=a23_0x47d609,_0x24ce35={};_0x24ce35[_0x33573b(0x189)]=_0x33573b(0x26f),_0x24ce35[_0x33573b(0x1b2)]=_0x33573b(0x220);const _0x3ffb2b=_0x24ce35;if(!_0x386c4f||!_0x386c4f['parent'])return;_0x386c4f[_0x33573b(0x210)]['hooks']['forEach'](_0x312afb=>{const _0x37b021=_0x33573b;[_0x3ffb2b[_0x37b021(0x189)],_0x3ffb2b[_0x37b021(0x1b2)]][_0x37b021(0x1dd)](_0x312afb['type'])&&_0x312afb[_0x37b021(0x19d)]&&(_0x312afb['hookAnalyticsId']=null);}),this[_0x33573b(0x264)](_0x386c4f[_0x33573b(0x210)]);};[a23_0x47d609(0x245)](_0x47fd10){const _0x329e5e=a23_0x47d609,_0x1e4069={'jHyQi':_0x329e5e(0x270),'IlUgD':function(_0x42742a,_0x543392){return _0x42742a(_0x543392);},'XYWsZ':function(_0x3208ed,_0x1c0fe0){return _0x3208ed+_0x1c0fe0;},'PMFbz':'Exception\x20in\x20getting\x20file\x20for\x20hook\x20'};try{const _0x26666e=this['getRootParentFile'](_0x47fd10);return _0x26666e[_0x329e5e(0x1dd)](_0x1e4069[_0x329e5e(0x1b1)]);}catch(_0x31ac9f){_0x1e4069['IlUgD'](debug,_0x1e4069['XYWsZ'](_0x1e4069['PMFbz'],_0x31ac9f));}return![];}[a23_0x47d609(0x1d4)]=_0x187f27=>{const _0x3ae922=a23_0x47d609,_0x31c620={'MPppE':function(_0x4ee392,_0x582951){return _0x4ee392(_0x582951);}};if(!_0x187f27||!_0x187f27[_0x3ae922(0x210)])return[];const _0x2527db=[];return _0x187f27[_0x3ae922(0x210)][_0x3ae922(0x21f)]['forEach'](_0x359a4c=>{const _0x4044a5=_0x3ae922;_0x359a4c[_0x4044a5(0x19d)]&&!_0x31c620[_0x4044a5(0x26d)](isInternalHook,_0x359a4c['fn'])&&!this[_0x4044a5(0x245)](_0x359a4c)&&_0x2527db['push'](_0x359a4c[_0x4044a5(0x19d)]);}),[..._0x2527db,...this[_0x3ae922(0x1d4)](_0x187f27[_0x3ae922(0x210)])];};},[a23_0x47d609(0x234),a23_0x47d609(0x1f8),a23_0x47d609(0x1ac),a23_0x47d609(0x20b),a23_0x47d609(0x18f),a23_0x47d609(0x241),'appendTestItemLog',a23_0x47d609(0x21a),'analyticsResult','getHierarchy',a23_0x47d609(0x19a),a23_0x47d609(0x264),a23_0x47d609(0x247),a23_0x47d609(0x1d4),a23_0x47d609(0x1d8)],a23_0x47d609(0x197));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a24_0x595561=a24_0x16fa;(function(_0x41792a,_0x231486){const _0x5be84b=a24_0x16fa,_0x3d460a=_0x41792a();while(!![]){try{const _0x11c797=-parseInt(_0x5be84b(0x1d8))/0x1*(-parseInt(_0x5be84b(0x1be))/0x2)+parseInt(_0x5be84b(0x1ce))/0x3+parseInt(_0x5be84b(0x1d7))/0x4*(parseInt(_0x5be84b(0x1c3))/0x5)+parseInt(_0x5be84b(0x1d3))/0x6+parseInt(_0x5be84b(0x1cc))/0x7+-parseInt(_0x5be84b(0x1ab))/0x8*(parseInt(_0x5be84b(0x1af))/0x9)+-parseInt(_0x5be84b(0x1d5))/0xa;if(_0x11c797===_0x231486)break;else _0x3d460a['push'](_0x3d460a['shift']());}catch(_0x1d2bf7){_0x3d460a['push'](_0x3d460a['shift']());}}}(a24_0x21b8,0x4ad9e));const fs=require('fs'),path=require('path'),{v4:uuidv4}=require(a24_0x595561(0x1a8)),helper=require('../../../helpers/helper'),testHubConstants=require(a24_0x595561(0x1cf));function a24_0x21b8(){const _0x1ccf84=['setup','vALnB','15274GCdulQ','toString','force','homedir','_test','2204285QxJpBq','parse','QRaok','setTestData','getFilePath','getTestData','getTestRunIdFromTestInfo','aZcAy','join','1091230oqcnpd','UwNtv','1164174zvrihD','../../../helpers/testhub/constants','.browserstack','env','mkdirSync','1540488jFENyh','.json','6281470tQSgHM','tests','4HpSQuW','32yGPVNv','setTestUUID','uuid','KvLba','writeFileSync','13568vkdOfb','getTestUUID','cjckP','stringify','2925JBFNlu','testData.json','existsSync','retry','shutdown','doQlR','readFileSync','recursive','dirPath','jest-o11y-','rmSync','ENV_VAR','removeTestUUID'];a24_0x21b8=function(){return _0x1ccf84;};return a24_0x21b8();}function a24_0x16fa(_0x3b17b9,_0x57b679){const _0x21b803=a24_0x21b8();return a24_0x16fa=function(_0x16fa88,_0x413e7c){_0x16fa88=_0x16fa88-0x1a7;let _0x553fa8=_0x21b803[_0x16fa88];return _0x553fa8;},a24_0x16fa(_0x3b17b9,_0x57b679);}class TestDetails{static [a24_0x595561(0x1d6)]={};static [a24_0x595561(0x1b7)]=path['join'](helper[a24_0x595561(0x1c1)](),a24_0x595561(0x1d0),'jest-o11y-'+process[a24_0x595561(0x1d1)][testHubConstants[a24_0x595561(0x1ba)]['BROWSERSTACK_TESTHUB_UUID']]);static[a24_0x595561(0x1bc)](){const _0x112785=a24_0x595561,_0x38d2fa={};_0x38d2fa['UwNtv']=_0x112785(0x1d0);const _0x2da598=_0x38d2fa;this[_0x112785(0x1b7)]=path[_0x112785(0x1cb)](helper['homedir'](),_0x2da598[_0x112785(0x1cd)],_0x112785(0x1b8)+process['env'][testHubConstants[_0x112785(0x1ba)]['BROWSERSTACK_TESTHUB_UUID']]),this['shutdown']();const _0x5bd7c1={};_0x5bd7c1[_0x112785(0x1b6)]=!![],fs[_0x112785(0x1d2)](this[_0x112785(0x1b7)],_0x5bd7c1);}static[a24_0x595561(0x1c7)](_0x3805e2){const _0x5ed249=a24_0x595561,_0x2607e4={};_0x2607e4['doQlR']=function(_0x1f4f0e,_0x474c5e){return _0x1f4f0e+_0x474c5e;},_0x2607e4[_0x5ed249(0x1bd)]=_0x5ed249(0x1d4);const _0x58dc92=_0x2607e4;return path[_0x5ed249(0x1cb)](this[_0x5ed249(0x1b7)],_0x58dc92[_0x5ed249(0x1b4)](_0x3805e2,_0x58dc92['vALnB']));}static[a24_0x595561(0x1c9)](_0x483706){const _0x5e4559=a24_0x595561,_0x5e028d={};_0x5e028d['cjckP']=function(_0x3b304d,_0xe3ac6b){return _0x3b304d+_0xe3ac6b;};const _0x3d88a0=_0x5e028d;return _0x3d88a0[_0x5e4559(0x1ad)](_0x3d88a0['cjckP'](_0x483706[_0x5e4559(0x1c2)]['id'],'-'),_0x483706[_0x5e4559(0x1b2)]);}static[a24_0x595561(0x1ac)](_0x45c55a){const _0x15b145=a24_0x595561,_0x447d89=this[_0x15b145(0x1c7)](_0x45c55a);if(fs[_0x15b145(0x1b1)](_0x447d89)){const _0x4d1f8b=JSON[_0x15b145(0x1c4)](fs[_0x15b145(0x1b5)](_0x447d89)[_0x15b145(0x1bf)]());return this['tests'][_0x45c55a]=_0x4d1f8b,this[_0x15b145(0x1d6)][_0x45c55a]['uuid'];}}static[a24_0x595561(0x1c6)](_0x4d7757){const _0x51ea53=a24_0x595561,_0x42e36b={};_0x42e36b[_0x51ea53(0x1c5)]=_0x51ea53(0x1b0);const _0x27d52c=_0x42e36b,_0x2ba312=path[_0x51ea53(0x1cb)](this[_0x51ea53(0x1b7)],_0x27d52c[_0x51ea53(0x1c5)]);fs[_0x51ea53(0x1aa)](_0x2ba312,JSON[_0x51ea53(0x1ae)](_0x4d7757));}static[a24_0x595561(0x1c8)](){const _0x331aad=a24_0x595561,_0x40d937={};_0x40d937[_0x331aad(0x1ca)]=_0x331aad(0x1b0);const _0xf25734=_0x40d937,_0x236946=path[_0x331aad(0x1cb)](this[_0x331aad(0x1b7)],_0xf25734[_0x331aad(0x1ca)]);let _0x2d3b22={};try{return _0x236946&&fs['existsSync'](_0x236946)&&(_0x2d3b22=JSON[_0x331aad(0x1c4)](fs[_0x331aad(0x1b5)](_0x236946)[_0x331aad(0x1bf)]())),_0x2d3b22;}catch(_0x373341){return _0x2d3b22;}}static[a24_0x595561(0x1a7)](_0x2339c9){const _0x17957f=a24_0x595561,_0x19180c={'KvLba':function(_0x1ac102){return _0x1ac102();}},_0x36e167=this[_0x17957f(0x1c7)](_0x2339c9);return this['tests'][_0x2339c9]={'uuid':_0x19180c[_0x17957f(0x1a9)](uuidv4)},fs['writeFileSync'](_0x36e167,JSON['stringify'](this[_0x17957f(0x1d6)][_0x2339c9])),this[_0x17957f(0x1d6)][_0x2339c9]['uuid'];}static[a24_0x595561(0x1bb)](_0x2cbd69){const _0x2167f0=a24_0x595561,_0x3c850f=this[_0x2167f0(0x1c7)](_0x2cbd69);_0x3c850f&&(fs[_0x2167f0(0x1b1)](_0x3c850f)&&fs['unlinkSync'](_0x3c850f));}static[a24_0x595561(0x1b3)](){const _0x32c6d2=a24_0x595561,_0x56dee1={};_0x56dee1[_0x32c6d2(0x1b6)]=!![],_0x56dee1[_0x32c6d2(0x1c0)]=!![],fs[_0x32c6d2(0x1b9)](this[_0x32c6d2(0x1b7)],_0x56dee1);}}module['exports']=TestDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a25_0x2d4a68=a25_0x29a7;(function(_0x2183a3,_0x32d707){const _0x20b530=a25_0x29a7,_0x3c50cb=_0x2183a3();while(!![]){try{const _0x4a8404=parseInt(_0x20b530(0x1cd))/0x1+-parseInt(_0x20b530(0x1c3))/0x2*(parseInt(_0x20b530(0x1e4))/0x3)+-parseInt(_0x20b530(0x1cb))/0x4*(-parseInt(_0x20b530(0x1e9))/0x5)+-parseInt(_0x20b530(0x1e2))/0x6*(parseInt(_0x20b530(0x1c4))/0x7)+parseInt(_0x20b530(0x1bd))/0x8*(-parseInt(_0x20b530(0x1b7))/0x9)+parseInt(_0x20b530(0x1f4))/0xa*(parseInt(_0x20b530(0x1de))/0xb)+-parseInt(_0x20b530(0x1cf))/0xc*(-parseInt(_0x20b530(0x1ec))/0xd);if(_0x4a8404===_0x32d707)break;else _0x3c50cb['push'](_0x3c50cb['shift']());}catch(_0x2d8233){_0x3c50cb['push'](_0x3c50cb['shift']());}}}(a25_0x39a3,0x83dff));const {requireModule,modifyCommand,isTrue,isBrowserstackInfra,nestedKeyValue,parseYaml}=require(a25_0x2d4a68(0x1cc)),setKeepAlive=require(a25_0x2d4a68(0x1dc)),util=require(a25_0x2d4a68(0x1da)),PerformanceTester=require('../../helpers/performance/performance-tester'),{EVENTS:PerformanceEvents}=require(a25_0x2d4a68(0x1ca)),logger=require(a25_0x2d4a68(0x1b5))[a25_0x2d4a68(0x1d1)],{shouldProcessEventForTesthub}=require(a25_0x2d4a68(0x1d6)),{sendPlatformDetails,addRequestSpy,patchConsoleLogger}=require(a25_0x2d4a68(0x1bb)),TestDetails=require(a25_0x2d4a68(0x1f3)),RequestQueueHandler=require(a25_0x2d4a68(0x1ea)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),MyReporter=require(a25_0x2d4a68(0x1b2)),SessionHandler=require('../../helpers/test-observability/sessionHandler'),scripts=require(a25_0x2d4a68(0x1c1)),globals=require(a25_0x2d4a68(0x1e3)),testHubConstants=require(a25_0x2d4a68(0x1e5)),{shouldScanTestForAccessibility}=require(a25_0x2d4a68(0x1d0)),fs=require('fs'),a25_0x34ff07={};function a25_0x29a7(_0x4cdfcb,_0x39e71a){const _0x39a3db=a25_0x39a3();return a25_0x29a7=function(_0x29a785,_0x5a2df3){_0x29a785=_0x29a785-0x1b2;let _0x131159=_0x39a3db[_0x29a785];return _0x131159;},a25_0x29a7(_0x4cdfcb,_0x39e71a);}a25_0x34ff07[a25_0x2d4a68(0x1f1)]=undefined,a25_0x34ff07[a25_0x2d4a68(0x1b4)]={},a25_0x34ff07[a25_0x2d4a68(0x1c5)]=![],a25_0x34ff07[a25_0x2d4a68(0x1d8)]=null,a25_0x34ff07[a25_0x2d4a68(0x1b8)]=![],a25_0x34ff07[a25_0x2d4a68(0x1b4)]['id']=undefined,a25_0x34ff07[a25_0x2d4a68(0x1b4)][a25_0x2d4a68(0x1d2)]=undefined;const workerDetails=a25_0x34ff07;global[a25_0x2d4a68(0x1ed)]=workerDetails;let playwrightPatcher=null,puppeteerPatcher=null;setKeepAlive();function a25_0x39a3(){const _0x4994e6=['../../helpers/setKeepAlive','setFrameworkDetail','6707426ZnfYiu','../v2/browserstackCLI','debug','getPackageVersion','54swXkuw','../../helpers/globals','12ZQVwPM','../../helpers/testhub/constants.js','../utils/puppeteer-patcher','Error\x20initializing\x20Puppeteer\x20patching:\x20','Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker\x20process\x20(','415TVupWr','../../helpers/test-observability/requestQueueHandler','Patching\x20Puppeteer\x20for\x20Jest','503399arOTOX','__workerDetails','Error\x20reading\x20BrowserStack\x20config:\x20','__skipSessionStatus','getInstance','workerInfo','JEST','../playwright/reporter/test-details.js','10nZHowd','Jest-Playwright/Puppeteer\x20setup\x20completed','PLAYWRIGHT','../playwright/reporter/reporter.js','jestConfig','currentTest','../../helpers/logger','Playwright\x20patching\x20and\x20session\x20details\x20initialized\x20for\x20Jest','18EtHFFp','isPageFixture','format','../utils/playwright-patcher','../../helpers/test-observability/utils','initializePlaywrightPatching','4153936fkudBr','../v2/cliUtils','isCliEnabled','Puppeteer\x20patching\x20and\x20session\x20details\x20initialized\x20for\x20Jest','../../helpers/accessibility-automation/scripts','catch','36350NrNEPB','765982fwseEr','o11ySyncDone','skipSessionStatus','Patching\x20Playwright\x20for\x20Jest','Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','Error\x20bootstrapping\x20BrowserstackCLI:\x20','../../helpers/performance/constants','29676GocdcJ','../../helpers/helper','636174GFoNzd','../utils/constants','240HhwfcZ','../../helpers/accessibility-automation/helper','winstonLogger','testInfo','puppeteer','PUPPETEER','puppeteer-core','../../helpers/testhub/utils','initializePuppeteerPatching','pwPage','skipSessionName','util','@playwright/test'];a25_0x39a3=function(){return _0x4994e6;};return a25_0x39a3();}if(global['jestConfig'])try{isBrowserstackInfra()?(global['__skipSessionName']=isTrue(global[a25_0x2d4a68(0x1b3)]?.[a25_0x2d4a68(0x1d9)]),global[a25_0x2d4a68(0x1ef)]=isTrue(global[a25_0x2d4a68(0x1b3)]?.[a25_0x2d4a68(0x1c6)])):(global['__skipSessionName']=!![],global['__skipSessionStatus']=!![]);const helper=require(a25_0x2d4a68(0x1cc));if(helper[a25_0x2d4a68(0x1e1)](a25_0x2d4a68(0x1db)))try{logger[a25_0x2d4a68(0x1e0)](a25_0x2d4a68(0x1c7)),playwrightPatcher=require(a25_0x2d4a68(0x1ba)),playwrightPatcher[a25_0x2d4a68(0x1bc)](global['jestConfig']),logger[a25_0x2d4a68(0x1e0)](a25_0x2d4a68(0x1b6));}catch(a25_0x1af57d){logger['debug']('Error\x20initializing\x20Playwright\x20patching:\x20'+util[a25_0x2d4a68(0x1b9)](a25_0x1af57d));}if(!playwrightPatcher&&(helper[a25_0x2d4a68(0x1e1)](a25_0x2d4a68(0x1d3))||helper[a25_0x2d4a68(0x1e1)](a25_0x2d4a68(0x1d5))))try{logger['debug'](a25_0x2d4a68(0x1eb)),puppeteerPatcher=require(a25_0x2d4a68(0x1e6)),puppeteerPatcher[a25_0x2d4a68(0x1d7)](global[a25_0x2d4a68(0x1b3)]),logger[a25_0x2d4a68(0x1e0)](a25_0x2d4a68(0x1c0));}catch(a25_0x14879c){logger['debug'](a25_0x2d4a68(0x1e7)+util['format'](a25_0x14879c));}const activePatcher=playwrightPatcher||puppeteerPatcher;if(activePatcher)try{const BrowserstackCLI=require(a25_0x2d4a68(0x1df)),CLIUtils=require(a25_0x2d4a68(0x1be)),{FRAMEWORKS}=require(a25_0x2d4a68(0x1ce));if(BrowserstackCLI['getInstance']()[a25_0x2d4a68(0x1bf)]()){const automationFramework=playwrightPatcher?FRAMEWORKS[a25_0x2d4a68(0x1f6)]:FRAMEWORKS[a25_0x2d4a68(0x1d4)];logger[a25_0x2d4a68(0x1e0)](a25_0x2d4a68(0x1e8)+automationFramework+')'),CLIUtils[a25_0x2d4a68(0x1dd)](FRAMEWORKS[a25_0x2d4a68(0x1f2)],automationFramework),BrowserstackCLI[a25_0x2d4a68(0x1f0)]()['bootstrap']()[a25_0x2d4a68(0x1c2)](_0x2c00f1=>{const _0x331abd=a25_0x2d4a68;logger[_0x331abd(0x1e0)](_0x331abd(0x1c9)+util[_0x331abd(0x1b9)](_0x2c00f1));});}}catch(a25_0x35fe15){logger[a25_0x2d4a68(0x1e0)](a25_0x2d4a68(0x1c8)+util[a25_0x2d4a68(0x1b9)](a25_0x35fe15));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a25_0xdcdcfe){logger['debug'](a25_0x2d4a68(0x1ee)+util['format'](a25_0xdcdcfe));}logger['debug'](a25_0x2d4a68(0x1f5));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a26_0xfd42ad=a26_0x3ba3;function a26_0x3ba3(_0x4c999d,_0xa95890){const _0x555e1c=a26_0x555e();return a26_0x3ba3=function(_0x3ba3bb,_0x2a309a){_0x3ba3bb=_0x3ba3bb-0x1eb;let _0x29af67=_0x555e1c[_0x3ba3bb];return _0x29af67;},a26_0x3ba3(_0x4c999d,_0xa95890);}(function(_0x51bb69,_0x910a44){const _0x304c47=a26_0x3ba3,_0x31770f=_0x51bb69();while(!![]){try{const _0x43a268=-parseInt(_0x304c47(0x1f9))/0x1+parseInt(_0x304c47(0x1ef))/0x2+-parseInt(_0x304c47(0x1ee))/0x3*(parseInt(_0x304c47(0x1f1))/0x4)+-parseInt(_0x304c47(0x1f7))/0x5+-parseInt(_0x304c47(0x1ed))/0x6+parseInt(_0x304c47(0x1f4))/0x7*(parseInt(_0x304c47(0x1ec))/0x8)+parseInt(_0x304c47(0x1eb))/0x9;if(_0x43a268===_0x910a44)break;else _0x31770f['push'](_0x31770f['shift']());}catch(_0x1b0e89){_0x31770f['push'](_0x31770f['shift']());}}}(a26_0x555e,0x41929));function a26_0x555e(){const _0x10ee8a=['14714Mpqsgs','../../helpers/setKeepAlive','winstonLogger','1252460LUFRyW','__webdriver','258973fksYSV','6410628IvnTTP','1816MTTCEw','2941620ImtnPw','3noTDSQ','471564VqZZHh','Selenium-webdriver\x20not\x20available\x20to\x20set\x20in\x20global.__webdriver','627632EUEqfg','selenium-webdriver','keys'];a26_0x555e=function(){return _0x10ee8a;};return a26_0x555e();}const {requireModule}=require('../../helpers/helper'),logger=require('../../helpers/logger')[a26_0xfd42ad(0x1f6)];require(a26_0xfd42ad(0x1f5))();try{const __wd__=requireModule(a26_0xfd42ad(0x1f2));for(const key of Object[a26_0xfd42ad(0x1f3)](global[a26_0xfd42ad(0x1f8)])){__wd__[key]=global[a26_0xfd42ad(0x1f8)][key];}}catch(a26_0x51a3b0){logger['debug'](a26_0xfd42ad(0x1f0));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a27_0xa792(){const _0x5756dd=['split','testsErrorMessage','uRRTc','18GXCLkH','plgrH','path','includes','framework','4smVFin','_configuration','resolvePaths','ngAgC','../../helpers/ai-sdk/autoHealHelper','setFramework','../../helpers/performance/constants','1103615kpfYAx','platform','_argv','1034qtZJdV','15880TCxfIX','testSuitesFailed','_mochaOpts','formatter','1334672AOgQRB','testsPending','../utils/clientTroubleshootingService','_accessibilityAutomation','../../helpers/helper','testsUnknown','AI_ENABLED_FRAMEWORK','345188bIBbbB','1188246aYeAvf','setupCucumber','_formatter','../../helpers/performance/performance-tester','__platform__','../v2/browserstackCLI','30sCTBTw','testsAmbiguous','_framework','__platformCaps','testsUndefined','mochaOpts','totalTests','1407957WOOVuG','setConfig','438935MfjhNz','testsPassed','../utils/constants','testsSkipped','_capability'];a27_0xa792=function(){return _0x5756dd;};return a27_0xa792();}const a27_0x154d54=a27_0x1150;(function(_0x375e53,_0x31c485){const _0x266b8a=a27_0x1150,_0x4a5176=_0x375e53();while(!![]){try{const _0x27f0dd=parseInt(_0x266b8a(0x98))/0x1+-parseInt(_0x266b8a(0x99))/0x2+parseInt(_0x266b8a(0xa6))/0x3+-parseInt(_0x266b8a(0x82))/0x4*(-parseInt(_0x266b8a(0x89))/0x5)+parseInt(_0x266b8a(0x9f))/0x6*(-parseInt(_0x266b8a(0xa8))/0x7)+parseInt(_0x266b8a(0x91))/0x8*(parseInt(_0x266b8a(0x7d))/0x9)+-parseInt(_0x266b8a(0x8d))/0xa*(parseInt(_0x266b8a(0x8c))/0xb);if(_0x27f0dd===_0x31c485)break;else _0x4a5176['push'](_0x4a5176['shift']());}catch(_0x54481a){_0x4a5176['push'](_0x4a5176['shift']());}}}(a27_0xa792,0x4c2aa));function a27_0x1150(_0x341176,_0x5d8f45){const _0xa79225=a27_0xa792();return a27_0x1150=function(_0x115054,_0x5278f7){_0x115054=_0x115054-0x7c;let _0x54f512=_0xa79225[_0x115054];return _0x54f512;},a27_0x1150(_0x341176,_0x5d8f45);}const path=require(a27_0x154d54(0x7f)),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a27_0x154d54(0x95)),constants=require(a27_0x154d54(0xaa)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),RequestQueueHandler=require('../../helpers/test-observability/requestQueueHandler'),{isTestObservabilitySession}=require('../../helpers/test-observability/utils'),helper=require(a27_0x154d54(0x95)),PerformanceTester=require(a27_0x154d54(0x9c)),PerformanceEvents=require(a27_0x154d54(0x88))['EVENTS'],{commandRepository}=require(a27_0x154d54(0x86)),BrowserstackCLI=require(a27_0x154d54(0x9e)),ClientTroubleShootingService=require(a27_0x154d54(0x93));class Launcher{constructor(_0x4fdda0,_0xe4b788,_0x57bd02,_0x9d81ae=[]){const _0x2363e4=a27_0x154d54,_0x44c178={'ngAgC':'14|21|10|19|7|5|16|4|3|15|17|8|2|12|23|1|13|6|22|18|11|9|0|20','uRRTc':function(_0xf7fbc){return _0xf7fbc();},'plgrH':function(_0x2f0f22){return _0x2f0f22();}},_0x466f8b=_0x44c178[_0x2363e4(0x85)][_0x2363e4(0xad)]('|');let _0x18a43b=0x0;while(!![]){switch(_0x466f8b[_0x18a43b++]){case'0':global[_0x2363e4(0xae)]={};continue;case'1':global['testsFailed']=0x0;continue;case'2':global['testSuites']=0x0;continue;case'3':this['_bsConfig']=_0x57bd02;continue;case'4':this[_0x2363e4(0x8b)]=_0x9d81ae;continue;case'5':this[_0x2363e4(0xac)]=this[_0x2363e4(0x83)]['capability'];continue;case'6':global[_0x2363e4(0xab)]=0x0;continue;case'7':this[_0x2363e4(0x9b)]=_0xe4b788[_0x2363e4(0x90)];continue;case'8':global[_0x2363e4(0xa2)]=this[_0x2363e4(0x83)]['platformCaps']||{};continue;case'9':global[_0x2363e4(0xa0)]=0x0;continue;case'10':this[_0x2363e4(0x83)][_0x2363e4(0x81)]=_0x4fdda0;continue;case'11':global[_0x2363e4(0x96)]=0x0;continue;case'12':global[_0x2363e4(0xa5)]=0x0;continue;case'13':global[_0x2363e4(0x92)]=0x0;continue;case'14':this[_0x2363e4(0xa1)]=_0x4fdda0;continue;case'15':this['_testObservability']=_0x44c178[_0x2363e4(0x7c)](isTestObservabilitySession);continue;case'16':global[_0x2363e4(0x9d)]=this[_0x2363e4(0x83)][_0x2363e4(0x8a)];continue;case'17':this[_0x2363e4(0x94)]=_0x44c178[_0x2363e4(0x7e)](isAccessibilityAutomationSession);continue;case'18':global[_0x2363e4(0xa3)]=0x0;continue;case'19':this[_0x2363e4(0x8f)]=_0xe4b788[_0x2363e4(0xa4)];continue;case'20':!constants[_0x2363e4(0x97)][_0x2363e4(0x80)](_0x4fdda0)&&(commandRepository[_0x2363e4(0xa7)](_0x57bd02),commandRepository[_0x2363e4(0x87)](_0x4fdda0));continue;case'21':this[_0x2363e4(0x83)]=_0xe4b788['configuration']||{};continue;case'22':global[_0x2363e4(0x8e)]=0x0;continue;case'23':global[_0x2363e4(0xa9)]=0x0;continue;}break;}}[a27_0x154d54(0x9a)](_0x1986e9,_0x43050d,_0x582d2b){const _0x4d4514=a27_0x154d54,_0xb14164=_0x1986e9[_0x4d4514(0x84)];_0x1986e9.resolvePaths=async function(){const pathResults=await _0xb14164.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x582d2b));return pathResults;};const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;_0x43050d.push('--format'),_0x43050d.push(`"${normalizedPath}"`);}run(){return new Promise(async(resolve,reject)=>{PerformanceTester.start(PerformanceEvents.SDK_PRE_TEST);require('../../helpers/setKeepAlive')();if(this._framework==='mocha'){const mochaRunHelper=requireModule('mocha/lib/cli/run-helpers.js','mocha');const Mocha=requireModule('mocha');if(isBrowserstackInfra()){modifyCommand();}const mochaHooks=require('../mocha/test.setup').mochaHooks;if(!helper.isUndefined(this._mochaOpts.mochaRequire)){this._mochaOpts.require=this._mochaOpts.mochaRequire;const plugins=await mochaRunHelper.handleRequires([this._mochaOpts.require]);Object.assign(this._mochaOpts,plugins);}const rootHooks={beforeAll:[mochaHooks.beforeAll],beforeEach:[mochaHooks.beforeEach],afterAll:[mochaHooks.afterAll],afterEach:[mochaHooks.afterEach]};if(isTestObservabilitySession()){const mochaObservabilityHooks=require('../mocha/test-observability/data-hooks').mochaHooks;rootHooks.beforeAll.unshift(mochaObservabilityHooks.beforeAll);rootHooks.afterAll.push(mochaObservabilityHooks.afterAll);}if(this._mochaOpts.rootHooks){this._mochaOpts.rootHooks.beforeAll&&rootHooks.beforeAll.unshift(...this._mochaOpts.rootHooks.beforeAll);this._mochaOpts.rootHooks.beforeEach&&rootHooks.beforeEach.unshift(...this._mochaOpts.rootHooks.beforeEach);this._mochaOpts.rootHooks.afterAll&&rootHooks.afterAll.push(...this._mochaOpts.rootHooks.afterAll);this._mochaOpts.rootHooks.afterEach&&rootHooks.afterEach.push(...this._mochaOpts.rootHooks.afterEach);}const userReporter=this._mochaOpts.reporter;let mochaTimeout=this._mochaOpts.timeout*1;if(this._mochaOpts.timeout===0){mochaTimeout=0;}else{mochaTimeout+=constants.BSTACK_DELTA;}const mochaOpts={};Object.assign(mochaOpts,this._mochaOpts);const reporterOption={};Object.assign(reporterOption,this._mochaOpts.reporterOptions);Object.assign(reporterOption,{type:userReporter||'spec',testObservability:this._testObservability,bsConfig:this._bsConfig});mochaOpts.reporterOption=reporterOption;Object.assign(mochaOpts,{reporter:path.join(__dirname,'../mocha/bstack-reporter/customReporter.js'),parallel:false,rootHooks,isWorker:true,timeout:mochaTimeout});global.browserstackPlatformIndex=helper.nestedKeyValue(this._configuration,['platformIndex']);global.browserstackPercyBestPlatform=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','browserstackPercyBestPlatform']);global.percy=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percy']);global.percyCaptureMode=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percyCaptureMode']);global.capabilities=[this._capability];if(helper.isBrowserstackInfra()){if(this._bsConfig.testContextOptions.skipSessionName){global.__skipSessionName=true;}if(this._bsConfig.testContextOptions.skipSessionStatus){global.__skipSessionStatus=true;}}else{global.__skipSessionName=true;global.__skipSessionStatus=true;}if(this._bsConfig.turboScaleUrl){this._configuration.turboScaleUrl=this._bsConfig.turboScaleUrl;}const mocha=new Mocha(mochaOpts);mocha.prevRun=mocha.run;if(isTestObservabilitySession()){mocha.run=function(_){return mocha.prevRun(exit=>{const checkPendingUploadsInterval=setInterval(async()=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);if(RequestQueueHandler.getInstance().pendingUploads<=0){clearInterval(checkPendingUploadsInterval);await cleanupDrivers(global.__driversArray);resolve(exit);}},1000);});};}else{mocha.run=function(_){return mocha.prevRun(async exit=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);await cleanupDrivers(global.__driversArray);resolve(exit);});};}try{require('../../index').browserstackAgentV2(this._configuration,null,this._testObservability);}catch{}PerformanceTester.end(PerformanceEvents.SDK_PRE_TEST);const runProm=mochaRunHelper.runMocha(mocha,mochaOpts);runProm&&runProm.catch(er=>{reject(er);});}else if(this._framework==='cucumber-js'){let cucumberCli;global.capabilities=[this._capability];try{cucumberCli=requireModule('@cucumber/cucumber/lib/cli/index.js','@cucumber/cucumber');}catch(e){cucumberCli=requireModule('cucumber/lib/cli/index.js','cucumber');}const argv=this._argv;const index=argv.indexOf('cucumber-js');if(index>-1){argv.splice(index,1);}const timeoutFileName='../cucumber-js/timeout.setup.js';let paths;try{paths=requireModule('@cucumber/cucumber/lib/paths/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){try{paths=requireModule('@cucumber/cucumber/lib/api/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){let hookFileName='../cucumber-js/test.setup.js';let ConfigurationBuilder;try{ConfigurationBuilder=requireModule('@cucumber/cucumber/lib/cli/configuration_builder.js','@cucumber/cucumber').default;const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;argv.push('--format');argv.push(normalizedPath);}catch(e){ConfigurationBuilder=requireModule('cucumber/lib/cli/configuration_builder.js','cucumber').default;const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter_old_versions.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;argv.push('--format');argv.push(normalizedPath);hookFileName='../cucumber-js/test_old.setup.js';}const configBuilder=ConfigurationBuilder.prototype.build;ConfigurationBuilder.prototype.build=async function(){const builderHash=await configBuilder.call(this);builderHash.supportCodePaths.unshift(path.join(__dirname,hookFileName));builderHash.supportCodePaths.push(path.join(__dirname,timeoutFileName));return builderHash;};}}argv.push('--parallel');argv.push(`${this._configuration.maxWorkers}`);if(this._formatter&&this._formatter.length>0){for(let i=0;i<this._formatter.length;i++){const r=getPlatformName(this._capability).replace(/ /g,'_');if(this._formatter[i]!==undefined&&this._formatter[i].length>0){const formatterFinalOutputFileName=this._formatter[i][1];const formatterType=`${this._formatter[i][0]}`;if(formatterFinalOutputFileName!==undefined){const formatterOutputFile=`tmp/${r}${path.extname(formatterFinalOutputFileName)}`;argv.push('--format');argv.push(`${formatterType}:${formatterOutputFile}`);}else{argv.push('--format');argv.push(`${formatterType}:tmp/${r}`);}}}}const cucumber=new cucumberCli.default({argv:argv,cwd:process.cwd(),stdout:process.stdout,stderr:process.stderr,env:process.env});process.env.CONFIG=JSON.stringify(this._configuration);process.env.BSTACK_CONFIG=JSON.stringify(this._bsConfig);cucumber.run().then(async output=>{const _results={scenarios:global.testSuites,steps:global.totalTests,scenariosFailed:global.testSuitesFailed,stepsFailed:global.testsFailed,stepsPassed:global.testsPassed,stepsSkipped:global.testsSkipped,stepsPending:global.testsPending,stepsUndefined:global.testsUndefined,stepsUnknown:global.testsUnknown,stepsAmbiguous:global.testsAmbiguous,processSuccess:output.success,testsErrorMessage:global.testsErrorMessage};await RequestQueueHandler.getInstance().shutdown();resolve(_results);}).catch(async er=>{await RequestQueueHandler.getInstance().shutdown();reject(er);});}else if(this._framework==='vanilla'){global.capabilities=[this._capability];process.argv=this._configuration.args;try{modifyCommand();require('../../index').browserstackAgent(this._configuration);let i=0;process.on('beforeExit',async()=>{if(i>0){return;}i++;await cleanupDrivers(global.__driversArray);});require(this._configuration.file);}catch(er){console.error(er);await BrowserstackCLI.getInstance().stop();process.exitCode=1;reject(er);}resolve();}});}}module.exports=Launcher;
|
|
1
|
+
function a27_0x2d8d(){const _0x3acb34=['includes','../../helpers/helper','../../helpers/test-observability/utils','_argv','testSuitesFailed','_framework','EVENTS','_testObservability','mochaOpts','../../helpers/performance/performance-tester','70449dYgcDj','_bsConfig','_configuration','5121984CbjlMe','testsUndefined','15222114xxkLtO','split','22UJTUHf','testsSkipped','_capability','2|6|13|19|23|22|20|5|3|14|8|18|11|16|17|10|7|9|15|1|21|12|0|4','__platformCaps','framework','../utils/clientTroubleshootingService','setupCucumber','nGRRj','92306AMxEMS','188wjfVLN','8040000igMjMs','setConfig','resolvePaths','testsAmbiguous','platformCaps','testSuites','1479990fRPUQH','formatter','AI_ENABLED_FRAMEWORK','3581627oZqHGM','testsPending','totalTests','platform','__platform__','_formatter','testsFailed','../../helpers/test-observability/requestQueueHandler','testsUnknown','../../helpers/ai-sdk/autoHealHelper','../../helpers/performance/constants','oemCu','_mochaOpts'];a27_0x2d8d=function(){return _0x3acb34;};return a27_0x2d8d();}const a27_0x323347=a27_0x1705;(function(_0x22de7d,_0x3ea27c){const _0x324b4b=a27_0x1705,_0x350df7=_0x22de7d();while(!![]){try{const _0x4fa7a3=parseInt(_0x324b4b(0x1db))/0x1*(parseInt(_0x324b4b(0x1e4))/0x2)+parseInt(_0x324b4b(0x1d4))/0x3*(-parseInt(_0x324b4b(0x1e5))/0x4)+parseInt(_0x324b4b(0x1ec))/0x5+-parseInt(_0x324b4b(0x1d7))/0x6+parseInt(_0x324b4b(0x1ef))/0x7+-parseInt(_0x324b4b(0x1e6))/0x8+parseInt(_0x324b4b(0x1d9))/0x9;if(_0x4fa7a3===_0x3ea27c)break;else _0x350df7['push'](_0x350df7['shift']());}catch(_0x283ce1){_0x350df7['push'](_0x350df7['shift']());}}}(a27_0x2d8d,0x86c46));function a27_0x1705(_0x2c0e29,_0x2ba45a){const _0x2d8ddf=a27_0x2d8d();return a27_0x1705=function(_0x17052f,_0x4afb30){_0x17052f=_0x17052f-0x1c4;let _0x16d184=_0x2d8ddf[_0x17052f];return _0x16d184;},a27_0x1705(_0x2c0e29,_0x2ba45a);}const path=require('path'),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a27_0x323347(0x1cb)),constants=require('../utils/constants'),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),RequestQueueHandler=require(a27_0x323347(0x1c4)),{isTestObservabilitySession}=require(a27_0x323347(0x1cc)),helper=require('../../helpers/helper'),PerformanceTester=require(a27_0x323347(0x1d3)),PerformanceEvents=require(a27_0x323347(0x1c7))[a27_0x323347(0x1d0)],{commandRepository}=require(a27_0x323347(0x1c6)),BrowserstackCLI=require('../v2/browserstackCLI'),ClientTroubleShootingService=require(a27_0x323347(0x1e1));class Launcher{constructor(_0x2c8030,_0x2b20f1,_0x3c7379,_0x213c5b=[]){const _0x4261e2=a27_0x323347,_0x34d893={'oemCu':_0x4261e2(0x1de),'kRrsj':function(_0x542244){return _0x542244();},'nGRRj':function(_0x1aa121){return _0x1aa121();}},_0x5a61b9=_0x34d893[_0x4261e2(0x1c8)][_0x4261e2(0x1da)]('|');let _0x18e23c=0x0;while(!![]){switch(_0x5a61b9[_0x18e23c++]){case'0':global['testsErrorMessage']={};continue;case'1':global[_0x4261e2(0x1d8)]=0x0;continue;case'2':this[_0x4261e2(0x1cf)]=_0x2c8030;continue;case'3':this[_0x4261e2(0x1d5)]=_0x3c7379;continue;case'4':!constants[_0x4261e2(0x1ee)][_0x4261e2(0x1ca)](_0x2c8030)&&(commandRepository[_0x4261e2(0x1e7)](_0x3c7379),commandRepository['setFramework'](_0x2c8030));continue;case'5':this[_0x4261e2(0x1cd)]=_0x213c5b;continue;case'6':this['_configuration']=_0x2b20f1['configuration']||{};continue;case'7':global[_0x4261e2(0x1f0)]=0x0;continue;case'8':this['_accessibilityAutomation']=_0x34d893['kRrsj'](isAccessibilityAutomationSession);continue;case'9':global[_0x4261e2(0x1dc)]=0x0;continue;case'10':global[_0x4261e2(0x1f5)]=0x0;continue;case'11':global[_0x4261e2(0x1eb)]=0x0;continue;case'12':global[_0x4261e2(0x1e9)]=0x0;continue;case'13':this['_configuration'][_0x4261e2(0x1e0)]=_0x2c8030;continue;case'14':this[_0x4261e2(0x1d1)]=_0x34d893[_0x4261e2(0x1e3)](isTestObservabilitySession);continue;case'15':global[_0x4261e2(0x1ce)]=0x0;continue;case'16':global[_0x4261e2(0x1f1)]=0x0;continue;case'17':global['testsPassed']=0x0;continue;case'18':global[_0x4261e2(0x1df)]=this[_0x4261e2(0x1d6)][_0x4261e2(0x1ea)]||{};continue;case'19':this[_0x4261e2(0x1c9)]=_0x2b20f1[_0x4261e2(0x1d2)];continue;case'20':global[_0x4261e2(0x1f3)]=this[_0x4261e2(0x1d6)][_0x4261e2(0x1f2)];continue;case'21':global[_0x4261e2(0x1c5)]=0x0;continue;case'22':this[_0x4261e2(0x1dd)]=this['_configuration']['capability'];continue;case'23':this[_0x4261e2(0x1f4)]=_0x2b20f1[_0x4261e2(0x1ed)];continue;}break;}}[a27_0x323347(0x1e2)](_0x38877b,_0x23c88b,_0x4b798a){const _0x54ab5e=a27_0x323347,_0xb06941=_0x38877b[_0x54ab5e(0x1e8)];_0x38877b.resolvePaths=async function(){const pathResults=await _0xb06941.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x4b798a));return pathResults;};const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;_0x23c88b.push('--format'),_0x23c88b.push(`"${normalizedPath}"`);}run(){return new Promise(async(resolve,reject)=>{PerformanceTester.start(PerformanceEvents.SDK_PRE_TEST);require('../../helpers/setKeepAlive')();if(this._framework==='mocha'){const mochaRunHelper=requireModule('mocha/lib/cli/run-helpers.js','mocha');const Mocha=requireModule('mocha');if(isBrowserstackInfra()){modifyCommand();}const mochaHooks=require('../mocha/test.setup').mochaHooks;if(!helper.isUndefined(this._mochaOpts.mochaRequire)){this._mochaOpts.require=this._mochaOpts.mochaRequire;const plugins=await mochaRunHelper.handleRequires([this._mochaOpts.require]);Object.assign(this._mochaOpts,plugins);}const rootHooks={beforeAll:[mochaHooks.beforeAll],beforeEach:[mochaHooks.beforeEach],afterAll:[mochaHooks.afterAll],afterEach:[mochaHooks.afterEach]};if(isTestObservabilitySession()){const mochaObservabilityHooks=require('../mocha/test-observability/data-hooks').mochaHooks;rootHooks.beforeAll.unshift(mochaObservabilityHooks.beforeAll);rootHooks.afterAll.push(mochaObservabilityHooks.afterAll);}if(this._mochaOpts.rootHooks){this._mochaOpts.rootHooks.beforeAll&&rootHooks.beforeAll.unshift(...this._mochaOpts.rootHooks.beforeAll);this._mochaOpts.rootHooks.beforeEach&&rootHooks.beforeEach.unshift(...this._mochaOpts.rootHooks.beforeEach);this._mochaOpts.rootHooks.afterAll&&rootHooks.afterAll.push(...this._mochaOpts.rootHooks.afterAll);this._mochaOpts.rootHooks.afterEach&&rootHooks.afterEach.push(...this._mochaOpts.rootHooks.afterEach);}const userReporter=this._mochaOpts.reporter;let mochaTimeout=this._mochaOpts.timeout*1;if(this._mochaOpts.timeout===0){mochaTimeout=0;}else{mochaTimeout+=constants.BSTACK_DELTA;}const mochaOpts={};Object.assign(mochaOpts,this._mochaOpts);const reporterOption={};Object.assign(reporterOption,this._mochaOpts.reporterOptions);Object.assign(reporterOption,{type:userReporter||'spec',testObservability:this._testObservability,bsConfig:this._bsConfig});mochaOpts.reporterOption=reporterOption;Object.assign(mochaOpts,{reporter:path.join(__dirname,'../mocha/bstack-reporter/customReporter.js'),parallel:false,rootHooks,isWorker:true,timeout:mochaTimeout});global.browserstackPlatformIndex=helper.nestedKeyValue(this._configuration,['platformIndex']);global.browserstackPercyBestPlatform=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','browserstackPercyBestPlatform']);global.percy=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percy']);global.percyCaptureMode=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percyCaptureMode']);global.capabilities=[this._capability];if(helper.isBrowserstackInfra()){if(this._bsConfig.testContextOptions.skipSessionName){global.__skipSessionName=true;}if(this._bsConfig.testContextOptions.skipSessionStatus){global.__skipSessionStatus=true;}}else{global.__skipSessionName=true;global.__skipSessionStatus=true;}if(this._bsConfig.turboScaleUrl){this._configuration.turboScaleUrl=this._bsConfig.turboScaleUrl;}const mocha=new Mocha(mochaOpts);mocha.prevRun=mocha.run;if(isTestObservabilitySession()){mocha.run=function(_){return mocha.prevRun(exit=>{const checkPendingUploadsInterval=setInterval(async()=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);if(RequestQueueHandler.getInstance().pendingUploads<=0){clearInterval(checkPendingUploadsInterval);await cleanupDrivers(global.__driversArray);resolve(exit);}},1000);});};}else{mocha.run=function(_){return mocha.prevRun(async exit=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);await cleanupDrivers(global.__driversArray);resolve(exit);});};}try{require('../../index').browserstackAgentV2(this._configuration,null,this._testObservability);}catch{}PerformanceTester.end(PerformanceEvents.SDK_PRE_TEST);const runProm=mochaRunHelper.runMocha(mocha,mochaOpts);runProm&&runProm.catch(er=>{reject(er);});}else if(this._framework==='cucumber-js'){let cucumberCli;global.capabilities=[this._capability];try{cucumberCli=requireModule('@cucumber/cucumber/lib/cli/index.js','@cucumber/cucumber');}catch(e){cucumberCli=requireModule('cucumber/lib/cli/index.js','cucumber');}const argv=this._argv;const index=argv.indexOf('cucumber-js');if(index>-1){argv.splice(index,1);}const timeoutFileName='../cucumber-js/timeout.setup.js';let paths;try{paths=requireModule('@cucumber/cucumber/lib/paths/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){try{paths=requireModule('@cucumber/cucumber/lib/api/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){let hookFileName='../cucumber-js/test.setup.js';let ConfigurationBuilder;try{ConfigurationBuilder=requireModule('@cucumber/cucumber/lib/cli/configuration_builder.js','@cucumber/cucumber').default;const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;argv.push('--format');argv.push(normalizedPath);}catch(e){ConfigurationBuilder=requireModule('cucumber/lib/cli/configuration_builder.js','cucumber').default;const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter_old_versions.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;argv.push('--format');argv.push(normalizedPath);hookFileName='../cucumber-js/test_old.setup.js';}const configBuilder=ConfigurationBuilder.prototype.build;ConfigurationBuilder.prototype.build=async function(){const builderHash=await configBuilder.call(this);builderHash.supportCodePaths.unshift(path.join(__dirname,hookFileName));builderHash.supportCodePaths.push(path.join(__dirname,timeoutFileName));return builderHash;};}}argv.push('--parallel');argv.push(`${this._configuration.maxWorkers}`);if(this._formatter&&this._formatter.length>0){for(let i=0;i<this._formatter.length;i++){const r=getPlatformName(this._capability).replace(/ /g,'_');if(this._formatter[i]!==undefined&&this._formatter[i].length>0){const formatterFinalOutputFileName=this._formatter[i][1];const formatterType=`${this._formatter[i][0]}`;if(formatterFinalOutputFileName!==undefined){const formatterOutputFile=`tmp/${r}${path.extname(formatterFinalOutputFileName)}`;argv.push('--format');argv.push(`${formatterType}:${formatterOutputFile}`);}else{argv.push('--format');argv.push(`${formatterType}:tmp/${r}`);}}}}const cucumber=new cucumberCli.default({argv:argv,cwd:process.cwd(),stdout:process.stdout,stderr:process.stderr,env:process.env});process.env.CONFIG=JSON.stringify(this._configuration);process.env.BSTACK_CONFIG=JSON.stringify(this._bsConfig);cucumber.run().then(async output=>{const _results={scenarios:global.testSuites,steps:global.totalTests,scenariosFailed:global.testSuitesFailed,stepsFailed:global.testsFailed,stepsPassed:global.testsPassed,stepsSkipped:global.testsSkipped,stepsPending:global.testsPending,stepsUndefined:global.testsUndefined,stepsUnknown:global.testsUnknown,stepsAmbiguous:global.testsAmbiguous,processSuccess:output.success,testsErrorMessage:global.testsErrorMessage};await RequestQueueHandler.getInstance().shutdown();resolve(_results);}).catch(async er=>{await RequestQueueHandler.getInstance().shutdown();reject(er);});}else if(this._framework==='vanilla'){global.capabilities=[this._capability];process.argv=this._configuration.args;try{modifyCommand();require('../../index').browserstackAgent(this._configuration);let i=0;process.on('beforeExit',async()=>{if(i>0){return;}i++;await cleanupDrivers(global.__driversArray);});require(this._configuration.file);}catch(er){console.error(er);await BrowserstackCLI.getInstance().stop();process.exitCode=1;reject(er);}resolve();}});}}module.exports=Launcher;
|
package/src/bin/load/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a28_0x2df268=a28_0x2a54;(function(_0x5a0d00,_0x171160){const _0x231a16=a28_0x2a54,_0x4b0252=_0x5a0d00();while(!![]){try{const _0x311fbd=-parseInt(_0x231a16(0xbf))/0x1+parseInt(_0x231a16(0xde))/0x2+-parseInt(_0x231a16(0xb4))/0x3*(-parseInt(_0x231a16(0xa5))/0x4)+-parseInt(_0x231a16(0xca))/0x5*(parseInt(_0x231a16(0xdb))/0x6)+-parseInt(_0x231a16(0xd9))/0x7*(parseInt(_0x231a16(0xc7))/0x8)+parseInt(_0x231a16(0x9c))/0x9*(-parseInt(_0x231a16(0xce))/0xa)+parseInt(_0x231a16(0xd7))/0xb*(parseInt(_0x231a16(0xa8))/0xc);if(_0x311fbd===_0x171160)break;else _0x4b0252['push'](_0x4b0252['shift']());}catch(_0x536b30){_0x4b0252['push'](_0x4b0252['shift']());}}}(a28_0x99dc,0xe1de3));function a28_0x99dc(){const _0x242322=['getCliDir','178552wvsZIe','close','1813adKlGg','BROWSERSTACK_ACCESSKEY','6MKXvnw','kill','killed','3689284aHEwqB','stack','./loadUtils','iOcsn','\x20exited\x20with\x20code\x20','YOiiX','333YmQXLR','../v2/cliUtils','UYlCz','zxzVy','Error\x20Details:\x20','exit','VuVUg',',\x20forwarding\x20to\x20child\x20process...','forEach','8IWMXTC','hREiS','../../helpers/helper','1596ZpTbyV','message','load','SIGINT','PGBva','\x20load\x20','pKDjM','zAQKG','djqQd','LmQRW','inherit','BROWSERSTACK_USERNAME','1752402whOxuO','checkAndUpdateCli','MVXMY','SIGHUP','LLKsc','stringify','Failed\x20to\x20download\x20or\x20locate\x20CLI\x20binary','error','Configuration\x20path:\x20','readConfig','SxdrF','1304439oeucpS','WmMko','yOSMI','join','getExistingCliPath','IMnIj','userName','debug','26616IIYZpq','exports','argv','8289325MxAZmY','accessKey','Failed\x20initiating\x20load\x20test:\x20','Error\x20details:\x20','114220ahoUnw','CKaYu','env','Error\x20loading\x20configuration:\x20','CLI\x20binary\x20not\x20found,\x20downloading\x20latest\x20version','Authentication\x20incomplete.\x20Please\x20add\x20your\x20userName\x20and\x20accessKey\x20to\x20either\x20the\x20browserstack.yml\x20file\x20or\x20as\x20environment\x20variables,\x20then\x20try\x20running\x20the\x20command\x20again.','ZDsPu','../../helpers/logger'];a28_0x99dc=function(){return _0x242322;};return a28_0x99dc();}function a28_0x2a54(_0x2f9b51,_0x28cdf6){const _0x99dcab=a28_0x99dc();return a28_0x2a54=function(_0x2a540e,_0x46a1f6){_0x2a540e=_0x2a540e-0x9c;let _0x282b36=_0x99dcab[_0x2a540e];return _0x282b36;},a28_0x2a54(_0x2f9b51,_0x28cdf6);}const {spawn}=require('child_process'),path=require('path'),helper=require(a28_0x2df268(0xa7)),CLIUtils=require(a28_0x2df268(0x9d)),{getLoadConfigPath,sleep}=require(a28_0x2df268(0xe0)),logger=require(a28_0x2df268(0xd5))['winstonLogger'];async function executeLoadTest(_0x4af27a){const _0x117ae6=a28_0x2df268,_0x2edf4e={'YOiiX':function(_0x4be750,_0x47e76a){return _0x4be750(_0x47e76a);},'MVXMY':_0x117ae6(0xd8),'hREiS':'Waiting\x20for\x20child\x20process\x20to\x20exit...','vjoom':'Loading\x20configuration\x20using\x20environment\x20variables\x20if\x20available.','yOSMI':function(_0x2bb2f4){return _0x2bb2f4();},'SxdrF':_0x117ae6(0xd3),'CKaYu':function(_0x40d41d){return _0x40d41d();},'PGBva':'Failed\x20to\x20determine\x20CLI\x20directory','SeWAG':_0x117ae6(0xd2),'WmMko':'CLI\x20binary\x20found,\x20Checking\x20for\x20CLI\x20updates','zxzVy':_0x117ae6(0xba),'iOcsn':function(_0x3b30c5){return _0x3b30c5();},'UYlCz':function(_0x8da681,_0x25e2f3,_0x2615a8,_0x2c1256){return _0x8da681(_0x25e2f3,_0x2615a8,_0x2c1256);},'zAQKG':_0x117ae6(0xaa),'IMnIj':_0x117ae6(0xb2),'LLKsc':_0x117ae6(0xab),'ZDsPu':'SIGTERM','pKDjM':'SIGQUIT','djqQd':_0x117ae6(0xb7),'LmQRW':function(_0x109feb){return _0x109feb();}};try{const _0x59ce77=process[_0x117ae6(0xc9)]['slice'](0x2),_0xda7aed=_0x59ce77['slice'](0x1);logger[_0x117ae6(0xc6)]('Executing\x20load\x20test\x20with\x20arguments:\x20'+_0xda7aed);let _0x54f095={};try{logger[_0x117ae6(0xc6)](_0x2edf4e['vjoom']);const _0x3be2e0={};_0x3be2e0[_0x117ae6(0xc5)]=process[_0x117ae6(0xd0)][_0x117ae6(0xb3)]||process[_0x117ae6(0xd0)]['BROWSERSTACK_USER'],_0x3be2e0[_0x117ae6(0xcb)]=process[_0x117ae6(0xd0)]['BROWSERSTACK_ACCESS_KEY']||process[_0x117ae6(0xd0)][_0x117ae6(0xda)],_0x54f095=_0x3be2e0;if(!_0x54f095[_0x117ae6(0xc5)]||!_0x54f095[_0x117ae6(0xcb)]){const _0x14c2a8=_0x2edf4e[_0x117ae6(0xe3)](getLoadConfigPath,_0x4af27a[_0x117ae6(0xc9)]);logger['debug'](_0x117ae6(0xbc)+_0x14c2a8),_0x14c2a8&&(_0x54f095=helper[_0x117ae6(0xbd)](_0x14c2a8));}}catch(_0x237c54){logger[_0x117ae6(0xbb)](_0x117ae6(0xd1)+_0x237c54[_0x117ae6(0xa9)]),logger['debug'](_0x117ae6(0xcd)+(_0x237c54[_0x117ae6(0xdf)]||JSON['stringify'](_0x237c54))),await _0x2edf4e['yOSMI'](sleep),process[_0x117ae6(0xa1)](0x1);}(!_0x54f095[_0x117ae6(0xc5)]||!_0x54f095[_0x117ae6(0xcb)])&&(logger['error'](_0x2edf4e[_0x117ae6(0xbe)]),await _0x2edf4e[_0x117ae6(0xcf)](sleep),process['exit'](0x1));const _0x48c166=CLIUtils[_0x117ae6(0xd6)]();!_0x48c166&&(logger[_0x117ae6(0xbb)](_0x2edf4e[_0x117ae6(0xac)]),await _0x2edf4e['yOSMI'](sleep),process[_0x117ae6(0xa1)](0x1));let _0xd8ed9c=CLIUtils[_0x117ae6(0xc3)](_0x48c166);try{!_0xd8ed9c?(logger[_0x117ae6(0xc6)](_0x2edf4e['SeWAG']),_0xd8ed9c=await CLIUtils[_0x117ae6(0xb5)]('',_0x48c166,_0x54f095)):(logger['debug'](_0x2edf4e[_0x117ae6(0xc0)]),_0xd8ed9c=await CLIUtils[_0x117ae6(0xb5)](_0xd8ed9c,_0x48c166,_0x54f095));}catch(_0x333ca9){logger[_0x117ae6(0xbb)](_0x2edf4e['SxdrF']),logger[_0x117ae6(0xc6)](_0x117ae6(0xa0)+(_0x333ca9['stack']||JSON[_0x117ae6(0xb9)](_0x333ca9))),await _0x2edf4e[_0x117ae6(0xc1)](sleep),process[_0x117ae6(0xa1)](0x1);}!_0xd8ed9c&&(logger[_0x117ae6(0xbb)](_0x2edf4e['SxdrF']),logger[_0x117ae6(0xc6)](_0x2edf4e[_0x117ae6(0x9f)]),await _0x2edf4e[_0x117ae6(0xe1)](sleep),process[_0x117ae6(0xa1)](0x1));logger[_0x117ae6(0xc6)]('Spawning:\x20'+_0xd8ed9c+_0x117ae6(0xad)+_0xda7aed[_0x117ae6(0xc2)]('\x20'));const _0x25dcb5=_0x2edf4e[_0x117ae6(0x9e)](spawn,_0xd8ed9c,[_0x2edf4e[_0x117ae6(0xaf)],..._0xda7aed],{'stdio':_0x2edf4e[_0x117ae6(0xc4)]});let _0xaae267=![];const _0x1c0198=new Promise(_0x1fce7b=>{const _0x2501f2=_0x117ae6;_0x25dcb5['on'](_0x2edf4e[_0x2501f2(0xb6)],_0x189e00=>{const _0x41ecfd=_0x2501f2;logger['debug'](_0xd8ed9c+_0x41ecfd(0xe2)+_0x189e00),_0x2edf4e['YOiiX'](_0x1fce7b,_0x189e00);});});[_0x2edf4e[_0x117ae6(0xb8)],_0x2edf4e[_0x117ae6(0xd4)],_0x2edf4e[_0x117ae6(0xae)],_0x2edf4e[_0x117ae6(0xb0)]][_0x117ae6(0xa4)](_0x5cf10e=>{const _0x48f172=_0x117ae6,_0x2d5b1d={};_0x2d5b1d[_0x48f172(0xa2)]=_0x2edf4e[_0x48f172(0xa6)];const _0x488279=_0x2d5b1d;process['on'](_0x5cf10e,()=>{const _0x282a47=_0x48f172;if(_0xaae267)return;_0xaae267=!![],logger[_0x282a47(0xc6)]('Received\x20'+_0x5cf10e+_0x282a47(0xa3)),_0x25dcb5&&!_0x25dcb5[_0x282a47(0xdd)]&&(_0x25dcb5[_0x282a47(0xdc)](_0x5cf10e),logger['debug'](_0x488279[_0x282a47(0xa2)]));});});const _0x4a173f=await _0x1c0198;await _0x2edf4e[_0x117ae6(0xb1)](sleep),process[_0x117ae6(0xa1)](_0x4a173f);}catch(_0x3b49c4){logger['error'](_0x117ae6(0xcc)+_0x3b49c4[_0x117ae6(0xa9)]),logger[_0x117ae6(0xc6)]('Error\x20details:\x20'+(_0x3b49c4['stack']||JSON['stringify'](_0x3b49c4))),await _0x2edf4e[_0x117ae6(0xb1)](sleep),process[_0x117ae6(0xa1)](0x1);}}module[a28_0x2df268(0xc8)]=executeLoadTest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a29_0x2df1(){const _0x4d4999=['../../helpers/logger','1372336fxMgIZ','path','endsWith','message','4026UFhtNQ','debug','2816193wBESXc','Failed\x20to\x20load\x20browserstack\x20config:\x20','Found\x20config\x20file:\x20','UGYrL','cwd','fjXns','2EZeGpj','28856564hNPbAL','ecLKH','pviXx','Checking\x20for:\x20','5941265aNhcgg','36cfkPuN','Config\x20file\x20specified:\x20','wJdqE','exports','join','mUuKK','4lPosbf','browserstack.yml','browserstack-load.yaml','.yml','394714ORiuDl','TyExC','load','Checking\x20for\x20config\x20file\x20with\x20arguments:\x20','browserstack-load.yml','sleep','8008kGeyAP','\x20and\x20Resolved\x20path:\x20','resolve','jhAtG','Checking\x20for\x20config\x20in\x20default\x20config\x20files...','Hhpvc','16489800yxjSSz','sEpGG','.yaml','obrQu'];a29_0x2df1=function(){return _0x4d4999;};return a29_0x2df1();}const a29_0x3a67fa=a29_0x3f48;function a29_0x3f48(_0x38d6c3,_0x2758b1){const _0x2df196=a29_0x2df1();return a29_0x3f48=function(_0x3f4837,_0x5ae724){_0x3f4837=_0x3f4837-0x16a;let _0x41a42b=_0x2df196[_0x3f4837];return _0x41a42b;},a29_0x3f48(_0x38d6c3,_0x2758b1);}(function(_0xa75835,_0xe07b47){const _0x3d9368=a29_0x3f48,_0x3ef3b6=_0xa75835();while(!![]){try{const _0x2b6902=parseInt(_0x3d9368(0x18c))/0x1*(-parseInt(_0x3d9368(0x16f))/0x2)+parseInt(_0x3d9368(0x186))/0x3+parseInt(_0x3d9368(0x16b))/0x4*(parseInt(_0x3d9368(0x191))/0x5)+parseInt(_0x3d9368(0x184))/0x6*(parseInt(_0x3d9368(0x175))/0x7)+parseInt(_0x3d9368(0x180))/0x8*(-parseInt(_0x3d9368(0x192))/0x9)+parseInt(_0x3d9368(0x17b))/0xa+-parseInt(_0x3d9368(0x18d))/0xb;if(_0x2b6902===_0xe07b47)break;else _0x3ef3b6['push'](_0x3ef3b6['shift']());}catch(_0x28226f){_0x3ef3b6['push'](_0x3ef3b6['shift']());}}}(a29_0x2df1,0xcced6));const fs=require('fs'),path=require(a29_0x3a67fa(0x181)),logger=require(a29_0x3a67fa(0x17f))['winstonLogger'];function getLoadConfigPath(_0x4d4575){const _0x52cf31=a29_0x3a67fa,_0x4cae80={};_0x4cae80[_0x52cf31(0x189)]=function(_0x4d89ff,_0x41d338){return _0x4d89ff===_0x41d338;},_0x4cae80[_0x52cf31(0x17e)]=_0x52cf31(0x171),_0x4cae80[_0x52cf31(0x170)]='run',_0x4cae80[_0x52cf31(0x16a)]='config-file',_0x4cae80[_0x52cf31(0x18e)]=_0x52cf31(0x16e),_0x4cae80[_0x52cf31(0x194)]=_0x52cf31(0x17d),_0x4cae80[_0x52cf31(0x178)]=_0x52cf31(0x173),_0x4cae80['fjXns']=_0x52cf31(0x16d),_0x4cae80[_0x52cf31(0x18f)]=_0x52cf31(0x16c),_0x4cae80[_0x52cf31(0x17a)]='browserstack.yaml',_0x4cae80[_0x52cf31(0x17c)]=_0x52cf31(0x179);const _0x3e6020=_0x4cae80;logger['debug'](_0x52cf31(0x172)+JSON['stringify'](_0x4d4575));try{const _0x79297b=_0x4d4575['_']||[],_0x164d7c=_0x3e6020[_0x52cf31(0x189)](_0x4d4575['_'][0x0],_0x3e6020[_0x52cf31(0x17e)])&&_0x3e6020[_0x52cf31(0x189)](_0x4d4575['subcommand'],_0x3e6020[_0x52cf31(0x170)]);if(_0x164d7c){if(_0x4d4575[_0x3e6020['mUuKK']]||_0x4d4575['cf']){const _0x3ce6d2=_0x4d4575[_0x3e6020[_0x52cf31(0x16a)]]||_0x4d4575['cf'],_0x528f3c=path[_0x52cf31(0x177)](_0x3ce6d2);logger[_0x52cf31(0x185)](_0x52cf31(0x193)+_0x3ce6d2+_0x52cf31(0x176)+_0x528f3c);if(_0x528f3c[_0x52cf31(0x182)](_0x3e6020[_0x52cf31(0x18e)])||_0x528f3c[_0x52cf31(0x182)](_0x3e6020[_0x52cf31(0x194)]))return logger['info']('Using\x20specified\x20config\x20file:\x20'+_0x528f3c),_0x528f3c;}}const _0x22f8a2=[_0x3e6020[_0x52cf31(0x178)],_0x3e6020[_0x52cf31(0x18b)],_0x3e6020['pviXx'],_0x3e6020[_0x52cf31(0x17a)]];logger['debug'](_0x3e6020[_0x52cf31(0x17c)]);for(const _0x2f9e5e of _0x22f8a2){const _0x2dab2e=path[_0x52cf31(0x196)](process[_0x52cf31(0x18a)](),_0x2f9e5e);logger[_0x52cf31(0x185)](_0x52cf31(0x190)+_0x2dab2e);if(fs['existsSync'](_0x2dab2e))return logger[_0x52cf31(0x185)](_0x52cf31(0x188)+_0x2dab2e),_0x2dab2e;}}catch(_0x2795f9){logger['error'](_0x52cf31(0x187)+_0x2795f9[_0x52cf31(0x183)]);}}function sleep(){return new Promise(_0xabb245=>setTimeout(_0xabb245,0x64));}const a29_0x9657b5={};a29_0x9657b5['getLoadConfigPath']=getLoadConfigPath,a29_0x9657b5[a29_0x3a67fa(0x174)]=sleep,module[a29_0x3a67fa(0x195)]=a29_0x9657b5;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a30_0x5da534=a30_0x2758;function a30_0x40c1(){const _0x3e2574=['kuBMO','platformName','RHjYE','setAccessibilityCapabilities','string','deviceName','getBrowserName','split','eTPfw','util','pyhEf','910481izkYPG','chromeOptions_','XmVth','--headless','isMobilePlatform','path','BS_A11Y_JWT','isBrowserSupportedForAccessibility','--headless=','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','browserstack.accessibilityOptions','__cloud_provider___','startsWith','FTiNT','TIJLS','latest','winstonLogger','parse','getBrowserVersion','scannerVersion','../../../helpers/globals','options_','browserVersion','1338zhOAEY','dSlGw','\x20or\x20higher\x20','capabilities_','lNqTL','25pEHsLP','isVersionSupported','SpQoX','zGGAV','info','246000JhVZUo','Options','Accessibility\x20Automation\x20is\x20enabled\x20for\x20Android\x20mobile\x20browser\x20(Chrome).\x20Skipping\x20extension\x20setup.','12195utSUwb','77PsrRfu','89508wYTxHD','Exception\x20in\x20setExtension\x20Error:\x20','isBrowserstackInfra','374ExVGMv','2539312lduljy','nestedKeyValue','keys','isUndefined','warn','MOBILE_SCANNING_DISABLED_WARNING','env','isMobileScanningEnabledForGroup','../../../helpers/accessibility-automation/helper','ALaHf','Exception\x20in\x20fetching\x20platform\x20details\x20with\x20error\x20:\x20','3380PQLNzp','hkMXy','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','mjLvw','setGlobal','JTWzl','getCapabilities','fYbYd','on\x20non-BrowserStack\x20infrastructure\x20','length','124878ixiotA','bHVVl','android','capability','debug','bstack:options','Exception\x20while\x20setting\x20Accessibility\x20Automation\x20capabilities.\x20Error\x20','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','isAccessibilityPlatform','KfASf','goog:chromeOptions','accessibilityOptions','diVGK','gkbrV','toLowerCase','browserName','getBrowserDisplayName','../../../helpers/helper','authToken','cqCAl','DLRWU','setExtension','get','chrome','requireModule','--headless=new','isArray','browserstack','UqZrK','accessibility','1880uudMWN','0|4|3|2|1','mvFNt','format','args','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','ceoES'];a30_0x40c1=function(){return _0x3e2574;};return a30_0x40c1();}function a30_0x2758(_0x4a4a1c,_0x47d451){const _0x40c1d0=a30_0x40c1();return a30_0x2758=function(_0x2758b8,_0x50af9c){_0x2758b8=_0x2758b8-0x7d;let _0xfea0e7=_0x40c1d0[_0x2758b8];return _0xfea0e7;},a30_0x2758(_0x4a4a1c,_0x47d451);}(function(_0x43c606,_0xf4340d){const _0x2776ca=a30_0x2758,_0x26c135=_0x43c606();while(!![]){try{const _0x50678a=-parseInt(_0x2776ca(0xc1))/0x1+parseInt(_0x2776ca(0xaf))/0x2*(parseInt(_0x2776ca(0xd8))/0x3)+parseInt(_0x2776ca(0xe7))/0x4*(-parseInt(_0x2776ca(0xdd))/0x5)+-parseInt(_0x2776ca(0x91))/0x6*(-parseInt(_0x2776ca(0xe6))/0x7)+-parseInt(_0x2776ca(0xeb))/0x8+parseInt(_0x2776ca(0xe5))/0x9*(parseInt(_0x2776ca(0x87))/0xa)+-parseInt(_0x2776ca(0xea))/0xb*(-parseInt(_0x2776ca(0xe2))/0xc);if(_0x50678a===_0xf4340d)break;else _0x26c135['push'](_0x26c135['shift']());}catch(_0x55dc20){_0x26c135['push'](_0x26c135['shift']());}}}(a30_0x40c1,0x71221));const path=require(a30_0x5da534(0xc6)),os=require('os'),util=require(a30_0x5da534(0xbf)),bsSetupHelper=require(a30_0x5da534(0xa2)),globals=require(a30_0x5da534(0xd5)),accessibilityHelper=require(a30_0x5da534(0x84)),logger=require('../../../helpers/logger')[a30_0x5da534(0xd1)];exports[a30_0x5da534(0xb9)]=_0x5625ff=>{const _0xa6ce8b=a30_0x5da534,_0x512b3c={};_0x512b3c['kbXcw']=function(_0x104793,_0x206e20){return _0x104793>_0x206e20;},_0x512b3c[_0xa6ce8b(0xdc)]=function(_0x28944e,_0x1bafd1){return _0x28944e>_0x1bafd1;},_0x512b3c[_0xa6ce8b(0xb1)]='bstack:options',_0x512b3c[_0xa6ce8b(0xb8)]='browserstack.accessibility',_0x512b3c['gkbrV']=_0xa6ce8b(0x99),_0x512b3c[_0xa6ce8b(0xb6)]=_0xa6ce8b(0xcb);const _0x5961c1=_0x512b3c;try{const _0x5c1152=_0x5961c1['kbXcw'](Object[_0xa6ce8b(0x7e)](_0x5625ff[_0xa6ce8b(0x94)])[_0xa6ce8b(0x90)],0x0)?_0x5625ff[_0xa6ce8b(0x94)]:_0x5961c1[_0xa6ce8b(0xdc)](Object[_0xa6ce8b(0x7e)](_0x5625ff['capabilities'])['length'],0x0)?_0x5625ff['capabilities'][0x0]:{};if(_0x5c1152[_0x5961c1['mvFNt']]&&_0x5c1152[_0x5961c1[_0xa6ce8b(0xb1)]][_0xa6ce8b(0xae)]||_0x5625ff['capability'][_0x5961c1[_0xa6ce8b(0xb8)]]){globals[_0xa6ce8b(0x8b)](_0x5961c1[_0xa6ce8b(0x9e)],!![]);if(_0x5c1152[_0x5961c1[_0xa6ce8b(0xb1)]]){if(_0x5c1152[_0x5961c1[_0xa6ce8b(0xb1)]][_0xa6ce8b(0x9c)])_0x5c1152[_0x5961c1[_0xa6ce8b(0xb1)]][_0xa6ce8b(0x9c)][_0xa6ce8b(0xa3)]=process[_0xa6ce8b(0x82)]['BS_A11Y_JWT'];else{const _0x140580={};_0x140580['authToken']=process['env'][_0xa6ce8b(0xc7)],_0x5c1152[_0x5961c1[_0xa6ce8b(0xb1)]][_0xa6ce8b(0x9c)]=_0x140580;}_0x5c1152[_0x5961c1[_0xa6ce8b(0xb1)]]['accessibilityOptions'][_0xa6ce8b(0xd4)]=JSON[_0xa6ce8b(0xd2)](process[_0xa6ce8b(0x82)][_0xa6ce8b(0xca)])['scannerVersion'];}else{if(_0x5625ff[_0xa6ce8b(0x94)][_0x5961c1[_0xa6ce8b(0xb8)]]){if(_0x5c1152[_0x5961c1[_0xa6ce8b(0xb6)]])_0x5c1152[_0x5961c1['kuBMO']][_0xa6ce8b(0xa3)]=process['env'][_0xa6ce8b(0xc7)];else{const _0x5e835c={};_0x5e835c[_0xa6ce8b(0xa3)]=process[_0xa6ce8b(0x82)][_0xa6ce8b(0xc7)],_0x5c1152[_0x5961c1[_0xa6ce8b(0xb6)]]=_0x5e835c;}_0x5c1152[_0x5961c1[_0xa6ce8b(0xb6)]][_0xa6ce8b(0xd4)]=JSON[_0xa6ce8b(0xd2)](process[_0xa6ce8b(0x82)][_0xa6ce8b(0xca)])[_0xa6ce8b(0xd4)];}}}}catch(_0x4779ba){logger[_0xa6ce8b(0x95)](_0xa6ce8b(0x97)+_0x4779ba);}},exports[a30_0x5da534(0xa6)]=(_0x360ab2,_0x2bc0f3)=>{const _0x5d4053=a30_0x5da534,_0xaff286={};_0xaff286[_0x5d4053(0xbe)]=_0x5d4053(0x96),_0xaff286[_0x5d4053(0xb5)]=function(_0xac6d6c,_0x52292d){return _0xac6d6c!==_0x52292d;},_0xaff286[_0x5d4053(0x85)]=function(_0x477f7b,_0x5bba9a){return _0x477f7b===_0x5bba9a;},_0xaff286[_0x5d4053(0xa5)]=_0x5d4053(0x93),_0xaff286[_0x5d4053(0xe0)]=_0x5d4053(0xa8),_0xaff286[_0x5d4053(0x8a)]=_0x5d4053(0xb0),_0xaff286[_0x5d4053(0xc3)]=_0x5d4053(0xc5),_0xaff286['diVGK']=_0x5d4053(0x99),_0xaff286[_0x5d4053(0x8e)]=_0x5d4053(0xe4),_0xaff286['bHVVl']=_0x5d4053(0x89),_0xaff286[_0x5d4053(0x8c)]=_0x5d4053(0xb4),_0xaff286['huFVC']=_0x5d4053(0xd0),_0xaff286[_0x5d4053(0x88)]=_0x5d4053(0x8f),_0xaff286['SpQoX']='selenium-webdriver/chrome.js',_0xaff286[_0x5d4053(0xa4)]='selenium-webdriver',_0xaff286[_0x5d4053(0xce)]=_0x5d4053(0xd6),_0xaff286['pyhEf']=_0x5d4053(0xb3),_0xaff286[_0x5d4053(0xad)]='chromeOptions',_0xaff286['dSlGw']=_0x5d4053(0x9b),_0xaff286['uQSfF']='Accessibility\x20Automation\x20will\x20not\x20run\x20on\x20legacy\x20headless\x20mode.\x20Switch\x20to\x20new\x20headless\x20mode\x20or\x20avoid\x20using\x20headless\x20mode.';const _0x3f4212=_0xaff286;try{const _0x26853a=_0x2bc0f3[_0x5d4053(0x94)]||{},_0x3c635f=(_0x26853a[_0x3f4212[_0x5d4053(0xbe)]]?_0x26853a[_0x3f4212['eTPfw']][_0x5d4053(0xbb)]:_0x26853a['device'])||'';if(_0x3f4212['ceoES'](_0x3c635f,'')){const _0x548efb=(_0x26853a[_0x3f4212['eTPfw']]?_0x26853a[_0x3f4212[_0x5d4053(0xbe)]][_0x5d4053(0xb7)]:_0x26853a[_0x5d4053(0xb7)])||'',_0x13ac6d=_0x26853a[_0x5d4053(0xa0)]||_0x360ab2[_0x5d4053(0xdb)]['getBrowserName']()||'';if(_0x3f4212[_0x5d4053(0x85)](_0x548efb[_0x5d4053(0x9f)](),_0x3f4212[_0x5d4053(0xa5)])&&_0x13ac6d[_0x5d4053(0x9f)]()['includes'](_0x3f4212[_0x5d4053(0xe0)])){const _0x3228c9=_0x3f4212[_0x5d4053(0x8a)][_0x5d4053(0xbd)]('|');let _0x1a648c=0x0;while(!![]){switch(_0x3228c9[_0x1a648c++]){case'0':if(!accessibilityHelper[_0x5d4053(0x83)]())return logger['warn'](accessibilityHelper[_0x5d4053(0x81)]),![];continue;case'1':return!![];case'2':globals[_0x5d4053(0x8b)](_0x3f4212[_0x5d4053(0xc3)],!![]);continue;case'3':globals['setGlobal'](_0x3f4212[_0x5d4053(0x9d)],!![]);continue;case'4':logger[_0x5d4053(0xe1)](_0x3f4212['fYbYd']);continue;}break;}}return logger[_0x5d4053(0x80)](_0x3f4212[_0x5d4053(0x92)]),![];}const _0x6c59bc=_0x26853a[_0x5d4053(0xa0)]||_0x360ab2[_0x5d4053(0xdb)]['getBrowserName'](),_0x36bcb1=_0x26853a[_0x5d4053(0xd7)]||_0x26853a['browser_version']||_0x360ab2[_0x5d4053(0xdb)]['getBrowserVersion']();if(!accessibilityHelper[_0x5d4053(0xc8)](_0x6c59bc))return logger[_0x5d4053(0x80)](_0x3f4212[_0x5d4053(0x8c)]),![];if(!bsSetupHelper[_0x5d4053(0x7f)](_0x36bcb1)&&_0x3f4212['ceoES'](_0x36bcb1,_0x3f4212['huFVC'])){const _0x462296=bsSetupHelper[_0x5d4053(0xe9)](),_0x5225a2=accessibilityHelper['getMinVersionForBrowser'](_0x6c59bc,_0x462296),_0xddf2d1=accessibilityHelper[_0x5d4053(0xa1)](_0x6c59bc);if(!accessibilityHelper[_0x5d4053(0xde)](_0x36bcb1,_0x5225a2)){const _0x421d88=_0x462296?'':_0x3f4212[_0x5d4053(0x88)];return logger[_0x5d4053(0x80)](_0x5d4053(0x98)+_0xddf2d1+'\x20browser\x20version\x20'+_0x5225a2+_0x5d4053(0xda)+_0x421d88+'.'),![];}}if(!accessibilityHelper['requiresChromeOptionsValidation'](_0x6c59bc))return!![];let _0x2ac867;try{_0x2ac867=bsSetupHelper[_0x5d4053(0xa9)](_0x3f4212[_0x5d4053(0xdf)],_0x3f4212[_0x5d4053(0xa4)]);}catch(_0x8d4aaa){return![];}const _0x4f8533=new _0x2ac867[(_0x5d4053(0xe3))](_0x360ab2[_0x5d4053(0xc2)]),_0x10bb21=bsSetupHelper['nestedKeyValue'](_0x4f8533,[_0x3f4212[_0x5d4053(0xce)],_0x3f4212[_0x5d4053(0xc0)]])||bsSetupHelper[_0x5d4053(0x7d)](_0x360ab2[_0x5d4053(0xdb)]['get'](_0x3f4212[_0x5d4053(0xbe)]),[_0x3f4212[_0x5d4053(0xad)],_0x3f4212[_0x5d4053(0xc0)]])||bsSetupHelper[_0x5d4053(0x7d)](_0x360ab2[_0x5d4053(0xdb)][_0x5d4053(0xa7)](_0x3f4212[_0x5d4053(0xad)]),[_0x3f4212['pyhEf']])||bsSetupHelper[_0x5d4053(0x7d)](_0x360ab2[_0x5d4053(0xdb)][_0x5d4053(0xa7)](_0x3f4212[_0x5d4053(0xd9)]),[_0x3f4212['pyhEf']])||[],_0x18a14d=Array[_0x5d4053(0xab)](_0x10bb21)?_0x10bb21:[];if(_0x18a14d['some'](_0x3f20ba=>typeof _0x3f20ba===_0x5d4053(0xba)&&(_0x3f20ba===_0x5d4053(0xc4)||_0x3f20ba[_0x5d4053(0xcd)](_0x5d4053(0xc9))&&_0x3f20ba!==_0x5d4053(0xaa))))return logger[_0x5d4053(0x80)](_0x3f4212['uQSfF']),![];return!![];}catch(_0xc09e82){logger[_0x5d4053(0x95)](_0x5d4053(0xe8)+util[_0x5d4053(0xb2)](_0xc09e82));}return![];},exports['fetchPlatformDetails']=async _0x2b79fa=>{const _0x550312=a30_0x5da534,_0x2f5fc6={};_0x2f5fc6[_0x550312(0x9a)]=function(_0x61b049,_0x23c253){return _0x61b049===_0x23c253;},_0x2f5fc6[_0x550312(0xcf)]=_0x550312(0xac);const _0x168692=_0x2f5fc6;let _0x3bdd78={};try{const _0xaa3f90=await _0x2b79fa[_0x550312(0x8d)]();_0x3bdd78={'os_name':_0xaa3f90['getPlatform'](),'os_version':bsSetupHelper['getPlatformVersion'](_0x168692[_0x550312(0x9a)](global[_0x550312(0xcc)],_0x168692[_0x550312(0xcf)])),'browser_name':_0xaa3f90[_0x550312(0xbc)](),'browser_version':_0xaa3f90[_0x550312(0xd3)]()};}catch(_0x570213){logger[_0x550312(0x95)](_0x550312(0x86)+_0x570213);}return _0x3bdd78;};
|
|
1
|
+
const a30_0x28a575=a30_0xec91;function a30_0x2527(){const _0x5fc727=['capability','info','oDSvt','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','45gFbwFA','35XbxPTR','setGlobal','parse','Exception\x20in\x20setExtension\x20Error:\x20','android','PyXfb','aHsqX','RxqSt','GDzWZ','cfzJR','--headless','MsAWu','ZvsOl','getBrowserName','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','xDozy','length','uPKEp','debug','accessibilityOptions','env','xfgzx','MOBILE_SCANNING_DISABLED_WARNING','winstonLogger','split','1776464MoAXSi','oGpTO','\x20or\x20higher\x20','scannerVersion','Options','jKIVl','TluSy','__cloud_provider___','capabilities_','205032BCtnYM','lyaMh','../../../helpers/logger','string','getBrowserVersion','requireModule','LCTKe','includes','setExtension','XMLlA','startsWith','207084SHqraD','Exception\x20while\x20setting\x20Accessibility\x20Automation\x20capabilities.\x20Error\x20','ocjus','warn','setAccessibilityCapabilities','nTrXL','platformName','get','authToken','Exception\x20in\x20fetching\x20platform\x20details\x20with\x20error\x20:\x20','accessibility','isMobileScanningEnabledForGroup','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','662090hWjuUS','UVKTL','952260aWfihy','isAccessibilityPlatform','BS_A11Y_JWT','nestedKeyValue','mCtJf','132pdUuAr','browserVersion','117HQWjLm','isArray','isBrowserstackInfra','browserName','\x20browser\x20version\x20','device','isBrowserSupportedForAccessibility','bstack:options','selenium-webdriver','fetchPlatformDetails','util','browserstack','--headless=new','bfZVN','chrome','deviceName','selenium-webdriver/chrome.js','args','options_','../../../helpers/globals','NuYrn','--headless=','../../../helpers/accessibility-automation/helper','408007esBnkI','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','chromeOptions','keys','chromeOptions_','pVVvc','capabilities','some','format','tJUgj','toLowerCase','browserstack.accessibility','goog:chromeOptions','5cOYWoc','474372bqEBWZ','getPlatform','Accessibility\x20Automation\x20will\x20not\x20run\x20on\x20legacy\x20headless\x20mode.\x20Switch\x20to\x20new\x20headless\x20mode\x20or\x20avoid\x20using\x20headless\x20mode.','0|1|3|2|4','getCapabilities'];a30_0x2527=function(){return _0x5fc727;};return a30_0x2527();}(function(_0x50ca94,_0x4cb6ff){const _0x11e8b3=a30_0xec91,_0x5713d2=_0x50ca94();while(!![]){try{const _0x2f7de5=-parseInt(_0x11e8b3(0x1e4))/0x1+-parseInt(_0x11e8b3(0x1f2))/0x2+-parseInt(_0x11e8b3(0x1fb))/0x3*(-parseInt(_0x11e8b3(0x1b7))/0x4)+-parseInt(_0x11e8b3(0x1f1))/0x5*(parseInt(_0x11e8b3(0x1ac))/0x6)+parseInt(_0x11e8b3(0x1fc))/0x7*(-parseInt(_0x11e8b3(0x215))/0x8)+parseInt(_0x11e8b3(0x1cd))/0x9*(parseInt(_0x11e8b3(0x1c4))/0xa)+-parseInt(_0x11e8b3(0x1cb))/0xb*(-parseInt(_0x11e8b3(0x1c6))/0xc);if(_0x2f7de5===_0x4cb6ff)break;else _0x5713d2['push'](_0x5713d2['shift']());}catch(_0x2cdaf0){_0x5713d2['push'](_0x5713d2['shift']());}}}(a30_0x2527,0xc348f));function a30_0xec91(_0x33fbf4,_0x26a70a){const _0x25274d=a30_0x2527();return a30_0xec91=function(_0xec918d,_0x562f22){_0xec918d=_0xec918d-0x1ac;let _0x1ff852=_0x25274d[_0xec918d];return _0x1ff852;},a30_0xec91(_0x33fbf4,_0x26a70a);}const path=require('path'),os=require('os'),util=require(a30_0x28a575(0x1d7)),bsSetupHelper=require('../../../helpers/helper'),globals=require(a30_0x28a575(0x1e0)),accessibilityHelper=require(a30_0x28a575(0x1e3)),logger=require(a30_0x28a575(0x1ae))[a30_0x28a575(0x213)];exports[a30_0x28a575(0x1bb)]=_0x386146=>{const _0x34023d=a30_0x28a575,_0x3bdf6b={};_0x3bdf6b['xDozy']=function(_0x3d27d5,_0x451497){return _0x3d27d5>_0x451497;},_0x3bdf6b['TluSy']=_0x34023d(0x1d4),_0x3bdf6b[_0x34023d(0x1ed)]=_0x34023d(0x1ef),_0x3bdf6b[_0x34023d(0x1c5)]=_0x34023d(0x1c7),_0x3bdf6b[_0x34023d(0x211)]='browserstack.accessibilityOptions';const _0x17f37b=_0x3bdf6b;try{const _0x3b29df=_0x17f37b[_0x34023d(0x20b)](Object[_0x34023d(0x1e7)](_0x386146[_0x34023d(0x1f7)])[_0x34023d(0x20c)],0x0)?_0x386146[_0x34023d(0x1f7)]:_0x17f37b[_0x34023d(0x20b)](Object['keys'](_0x386146[_0x34023d(0x1ea)])[_0x34023d(0x20c)],0x0)?_0x386146['capabilities'][0x0]:{};if(_0x3b29df[_0x17f37b['TluSy']]&&_0x3b29df[_0x17f37b['TluSy']][_0x34023d(0x1c1)]||_0x386146[_0x34023d(0x1f7)][_0x17f37b[_0x34023d(0x1ed)]]){globals[_0x34023d(0x1fd)](_0x17f37b[_0x34023d(0x1c5)],!![]);if(_0x3b29df[_0x17f37b[_0x34023d(0x21b)]]){if(_0x3b29df[_0x17f37b[_0x34023d(0x21b)]][_0x34023d(0x20f)])_0x3b29df[_0x17f37b[_0x34023d(0x21b)]][_0x34023d(0x20f)][_0x34023d(0x1bf)]=process[_0x34023d(0x210)][_0x34023d(0x1c8)];else{const _0x56a99a={};_0x56a99a[_0x34023d(0x1bf)]=process[_0x34023d(0x210)][_0x34023d(0x1c8)],_0x3b29df[_0x17f37b[_0x34023d(0x21b)]][_0x34023d(0x20f)]=_0x56a99a;}_0x3b29df[_0x17f37b[_0x34023d(0x21b)]]['accessibilityOptions'][_0x34023d(0x218)]=JSON[_0x34023d(0x1fe)](process[_0x34023d(0x210)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x34023d(0x218)];}else{if(_0x386146['capability'][_0x17f37b[_0x34023d(0x1ed)]]){if(_0x3b29df[_0x17f37b[_0x34023d(0x211)]])_0x3b29df[_0x17f37b['xfgzx']]['authToken']=process[_0x34023d(0x210)]['BS_A11Y_JWT'];else{const _0x170e9c={};_0x170e9c[_0x34023d(0x1bf)]=process[_0x34023d(0x210)][_0x34023d(0x1c8)],_0x3b29df[_0x17f37b['xfgzx']]=_0x170e9c;}_0x3b29df[_0x17f37b['xfgzx']][_0x34023d(0x218)]=JSON['parse'](process[_0x34023d(0x210)][_0x34023d(0x20a)])['scannerVersion'];}}}}catch(_0x2bf751){logger[_0x34023d(0x20e)](_0x34023d(0x1b8)+_0x2bf751);}},exports[a30_0x28a575(0x1b4)]=(_0x392a48,_0x8de637)=>{const _0x592b82=a30_0x28a575,_0x430a0c={};_0x430a0c[_0x592b82(0x1da)]=_0x592b82(0x1d4),_0x430a0c['cfzJR']=function(_0x20e3a1,_0x5498f2){return _0x20e3a1!==_0x5498f2;},_0x430a0c['RuGPV']=function(_0x2b9659,_0x314824){return _0x2b9659===_0x314824;},_0x430a0c[_0x592b82(0x216)]=_0x592b82(0x200),_0x430a0c['pVVvc']=_0x592b82(0x1db),_0x430a0c[_0x592b82(0x1b5)]=_0x592b82(0x1f5),_0x430a0c[_0x592b82(0x1ca)]='Accessibility\x20Automation\x20is\x20enabled\x20for\x20Android\x20mobile\x20browser\x20(Chrome).\x20Skipping\x20extension\x20setup.',_0x430a0c[_0x592b82(0x20d)]='isMobilePlatform',_0x430a0c[_0x592b82(0x207)]=_0x592b82(0x1c7),_0x430a0c[_0x592b82(0x21a)]=_0x592b82(0x1e5),_0x430a0c['WWdLR']=_0x592b82(0x1c3),_0x430a0c[_0x592b82(0x1f9)]='latest',_0x430a0c[_0x592b82(0x1b2)]='on\x20non-BrowserStack\x20infrastructure\x20',_0x430a0c['lyaMh']=_0x592b82(0x1dd),_0x430a0c[_0x592b82(0x202)]=_0x592b82(0x1d5),_0x430a0c[_0x592b82(0x201)]=_0x592b82(0x1df),_0x430a0c[_0x592b82(0x1bc)]=_0x592b82(0x1de),_0x430a0c[_0x592b82(0x1b9)]=_0x592b82(0x1e6),_0x430a0c['ZvsOl']=_0x592b82(0x1f0),_0x430a0c[_0x592b82(0x203)]=_0x592b82(0x1f4);const _0x4a0ac4=_0x430a0c;try{const _0xead2bc=_0x8de637[_0x592b82(0x1f7)]||{},_0x19bc54=(_0xead2bc[_0x4a0ac4[_0x592b82(0x1da)]]?_0xead2bc[_0x4a0ac4[_0x592b82(0x1da)]][_0x592b82(0x1dc)]:_0xead2bc[_0x592b82(0x1d2)])||'';if(_0x4a0ac4[_0x592b82(0x205)](_0x19bc54,'')){const _0x5af2c=(_0xead2bc[_0x4a0ac4['bfZVN']]?_0xead2bc[_0x4a0ac4[_0x592b82(0x1da)]][_0x592b82(0x1bd)]:_0xead2bc[_0x592b82(0x1bd)])||'',_0xcdf9c3=_0xead2bc[_0x592b82(0x1d0)]||_0x392a48['capabilities_'][_0x592b82(0x209)]()||'';if(_0x4a0ac4['RuGPV'](_0x5af2c[_0x592b82(0x1ee)](),_0x4a0ac4[_0x592b82(0x216)])&&_0xcdf9c3[_0x592b82(0x1ee)]()[_0x592b82(0x1b3)](_0x4a0ac4[_0x592b82(0x1e9)])){const _0x470a76=_0x4a0ac4[_0x592b82(0x1b5)][_0x592b82(0x214)]('|');let _0x5c1739=0x0;while(!![]){switch(_0x470a76[_0x5c1739++]){case'0':if(!accessibilityHelper[_0x592b82(0x1c2)]())return logger[_0x592b82(0x1ba)](accessibilityHelper[_0x592b82(0x212)]),![];continue;case'1':logger[_0x592b82(0x1f8)](_0x4a0ac4[_0x592b82(0x1ca)]);continue;case'2':globals['setGlobal'](_0x4a0ac4['uPKEp'],!![]);continue;case'3':globals['setGlobal'](_0x4a0ac4[_0x592b82(0x207)],!![]);continue;case'4':return!![];}break;}}return logger[_0x592b82(0x1ba)](_0x4a0ac4[_0x592b82(0x21a)]),![];}const _0x3f4f67=_0xead2bc[_0x592b82(0x1d0)]||_0x392a48[_0x592b82(0x21d)][_0x592b82(0x209)](),_0x40a43e=_0xead2bc[_0x592b82(0x1cc)]||_0xead2bc['browser_version']||_0x392a48['capabilities_'][_0x592b82(0x1b0)]();if(!accessibilityHelper[_0x592b82(0x1d3)](_0x3f4f67))return logger[_0x592b82(0x1ba)](_0x4a0ac4['WWdLR']),![];if(!bsSetupHelper['isUndefined'](_0x40a43e)&&_0x4a0ac4['cfzJR'](_0x40a43e,_0x4a0ac4[_0x592b82(0x1f9)])){const _0x1ca18b=bsSetupHelper[_0x592b82(0x1cf)](),_0x43dc47=accessibilityHelper['getMinVersionForBrowser'](_0x3f4f67,_0x1ca18b),_0x1ea531=accessibilityHelper['getBrowserDisplayName'](_0x3f4f67);if(!accessibilityHelper['isVersionSupported'](_0x40a43e,_0x43dc47)){const _0xe468a1=_0x1ca18b?'':_0x4a0ac4['LCTKe'];return logger[_0x592b82(0x1ba)](_0x592b82(0x1fa)+_0x1ea531+_0x592b82(0x1d1)+_0x43dc47+_0x592b82(0x217)+_0xe468a1+'.'),![];}}if(!accessibilityHelper['requiresChromeOptionsValidation'](_0x3f4f67))return!![];let _0x26deda;try{_0x26deda=bsSetupHelper[_0x592b82(0x1b1)](_0x4a0ac4[_0x592b82(0x1ad)],_0x4a0ac4[_0x592b82(0x202)]);}catch(_0x5de896){return![];}const _0x189d27=new _0x26deda[(_0x592b82(0x219))](_0x392a48[_0x592b82(0x1e8)]),_0x30e1bd=bsSetupHelper[_0x592b82(0x1c9)](_0x189d27,[_0x4a0ac4[_0x592b82(0x201)],_0x4a0ac4[_0x592b82(0x1bc)]])||bsSetupHelper[_0x592b82(0x1c9)](_0x392a48[_0x592b82(0x21d)][_0x592b82(0x1be)](_0x4a0ac4[_0x592b82(0x1da)]),[_0x4a0ac4[_0x592b82(0x1b9)],_0x4a0ac4[_0x592b82(0x1bc)]])||bsSetupHelper[_0x592b82(0x1c9)](_0x392a48['capabilities_'][_0x592b82(0x1be)](_0x4a0ac4[_0x592b82(0x1b9)]),[_0x4a0ac4[_0x592b82(0x1bc)]])||bsSetupHelper[_0x592b82(0x1c9)](_0x392a48['capabilities_'][_0x592b82(0x1be)](_0x4a0ac4[_0x592b82(0x208)]),[_0x4a0ac4['nTrXL']])||[],_0x9a4c78=Array[_0x592b82(0x1ce)](_0x30e1bd)?_0x30e1bd:[];if(_0x9a4c78[_0x592b82(0x1eb)](_0x24e71a=>typeof _0x24e71a===_0x592b82(0x1af)&&(_0x24e71a===_0x592b82(0x206)||_0x24e71a[_0x592b82(0x1b6)](_0x592b82(0x1e2))&&_0x24e71a!==_0x592b82(0x1d9))))return logger[_0x592b82(0x1ba)](_0x4a0ac4[_0x592b82(0x203)]),![];return!![];}catch(_0x3a4e76){logger[_0x592b82(0x20e)](_0x592b82(0x1ff)+util[_0x592b82(0x1ec)](_0x3a4e76));}return![];},exports[a30_0x28a575(0x1d6)]=async _0x536c39=>{const _0x7cbc29=a30_0x28a575,_0x5b4494={};_0x5b4494[_0x7cbc29(0x1e1)]=function(_0x40a286,_0xebdf7c){return _0x40a286===_0xebdf7c;},_0x5b4494[_0x7cbc29(0x204)]=_0x7cbc29(0x1d8);const _0x2688fd=_0x5b4494;let _0x27d5a6={};try{const _0x3fd93e=await _0x536c39[_0x7cbc29(0x1f6)]();_0x27d5a6={'os_name':_0x3fd93e[_0x7cbc29(0x1f3)](),'os_version':bsSetupHelper['getPlatformVersion'](_0x2688fd['NuYrn'](global[_0x7cbc29(0x21c)],_0x2688fd[_0x7cbc29(0x204)])),'browser_name':_0x3fd93e[_0x7cbc29(0x209)](),'browser_version':_0x3fd93e['getBrowserVersion']()};}catch(_0x486aa9){logger['debug'](_0x7cbc29(0x1c0)+_0x486aa9);}return _0x27d5a6;};
|