browserstack-node-sdk 1.38.2 → 1.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/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_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +2 -0
- package/src/bin/load/load/index.js +114 -0
- package/src/bin/load/load/loadUtils.js +58 -0
- package/src/bin/load/loadUtils.js +1 -0
- 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/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/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/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/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/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.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/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.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/processHelper.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_0x4b5b62=a23_0x5136;(function(_0x148801,_0x4159a6){const _0xe2ba9e=a23_0x5136,_0x17f87f=_0x148801();while(!![]){try{const _0x58c882=-parseInt(_0xe2ba9e(0x26c))/0x1*(parseInt(_0xe2ba9e(0x240))/0x2)+parseInt(_0xe2ba9e(0x236))/0x3*(parseInt(_0xe2ba9e(0x1a7))/0x4)+parseInt(_0xe2ba9e(0x235))/0x5+parseInt(_0xe2ba9e(0x1e3))/0x6+parseInt(_0xe2ba9e(0x1da))/0x7+parseInt(_0xe2ba9e(0x1c2))/0x8*(parseInt(_0xe2ba9e(0x26b))/0x9)+parseInt(_0xe2ba9e(0x20f))/0xa*(-parseInt(_0xe2ba9e(0x1d2))/0xb);if(_0x58c882===_0x4159a6)break;else _0x17f87f['push'](_0x17f87f['shift']());}catch(_0x4f700c){_0x17f87f['push'](_0x17f87f['shift']());}}}(a23_0xe909,0x71011));const {isTestObservabilitySession,PathHelper,debug,failureData,getFailureType,isInternalHook}=require(a23_0x4b5b62(0x1a5)),SessionHandler=require(a23_0x4b5b62(0x215)),{v4:uuidv4}=require(a23_0x4b5b62(0x219)),{name,version}=require(a23_0x4b5b62(0x245)),stackTrace=require(a23_0x4b5b62(0x1b2)),path=require(a23_0x4b5b62(0x1eb)),fs=require('fs'),TestDetails=require(a23_0x4b5b62(0x1f7)),{FRAMEWORKS}=require(a23_0x4b5b62(0x243)),{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler'),{getGitMetaData}=require(a23_0x4b5b62(0x260)),{appendTesthubParams,setCurrentTestData}=require(a23_0x4b5b62(0x1b8)),a23_0x485fa8={};a23_0x485fa8[a23_0x4b5b62(0x22a)]=a23_0x4b5b62(0x212),a23_0x485fa8['STATE_FAILED']=a23_0x4b5b62(0x23e),a23_0x485fa8[a23_0x4b5b62(0x1b4)]=a23_0x4b5b62(0x22d);const {STATE_PASSED,STATE_PENDING,STATE_FAILED}=a23_0x485fa8,a23_0x5f0d23={};function a23_0x5136(_0x25254f,_0x173795){const _0xe909d2=a23_0xe909();return a23_0x5136=function(_0x51365a,_0x2659c3){_0x51365a=_0x51365a-0x1a1;let _0x2d6a61=_0xe909d2[_0x51365a];return _0x2d6a61;},a23_0x5136(_0x25254f,_0x173795);}function a23_0xe909(){const _0x3842af=['9ezIQMF','failure_backtrace','title',':hookAnalyticsId','join','LoHtt','cpEli','testStarted','failed','isJestInternalHook','6HGFway','toISOString','getRootParentFile','../../utils/constants','started_at','../../../../package.json','bbAjT','root','AGsSc','ObservabilityReporter','parse','toString','gWilt','getHooksForTest','mapTestHooks','qvhBI','PJvkn','current_test','skipped','khVOH','SVeZT','getHierarchy','CBTSessionCreated','appendTestItemLog','bs:addPlatformDetails:','3|2|1|4|0','push','javascript','DIOzI','getTestEnv','iCTmv','beforeEach','../../../helpers/helper','OGTNO','vMWLt','testAnalyticsId','bs:addLog:','ROOT_DESCRIBE_BLOCK','aWMpA','jAZbD','state','WJMTM','kGHbN','64377VwTukG','160373SdABxl','tlsLp','ZCLwM','qpqYa','relative','../../../helpers/test-observability/utils','eojxa','258504TXpqwn','SQYcQ','mIeLP','2|0|6|5|1|4|3','hook_data','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','_testEnv','_testResults','RxVFR','File\x20path\x20could\x20not\x20be\x20found','Exception\x20in\x20getting\x20file\x20for\x20hook\x20','stack-trace','cwd','STATE_PENDING','location_prefix','current_hook','js-','../../../helpers/testhub/utils','analyticsResult','hook_run_uuid','bdKjW','prefixTestPath','JEST','hooks','cGeHF','findGitConfig',':testAnalyticsId','888qFIfcv','PhbEj','rElOE','LogCreated','parent','afterEach','errorsDetailed','failure_reason_expanded','markedStatus','jChQC','bind','_gitConfigPath','hook_failure','sendTestRunEvent','setTestUUID','test_run_uuid','17632351swdxWq','inspect','config','hqsJr','resetTestHooks','LUrIX','failure','apply','2399817SwovPh','appendTestPlatform','failed\x20to\x20get\x20root\x20parent\x20file\x20','hook_run','EWhyG','QDSMu','BEFORE_EACH','qwzzt','http_response','4262622tsqTMR','retryOf','failure_reason','CPvcw','yDfpR','qwOqq','dirname','eJHCB','path','forEach','jest-circus','psGmI','tbXHR','configureGit','XiFXV','backtrace','removeAllListeners','finished_at','aeRIM','pid','./test-details','registerListeners','monxP','uploadEventData','afterAll','GaXLD','NQhER','_paths','hookAnalyticsId','length','result','CfSzV','_gitConfigured','generic','reverse','AFTER_EACH','TbCRb','TestRunSkipped','getFileName','VlDIv','\x22\x20hook\x20for\x20\x22','getTime','UmJFG','vzCCW','10GdOelW','asyncError','testObservability','passed','expanded','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','../../../helpers/test-observability/sessionHandler','HookRunFinished','file','CkvVq','uuid','test_run','hook_type','sep','test','getTestUUID','\x20with\x20error\x20:\x20','getName','LbcJG','match','includes','KifJX','statSync','util','WmqfJ','SWiAf','BEFORE_ALL','STATE_PASSED','mwpNx','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20Observability\x20with\x20error\x20:\x20','pending','AdJfQ','cRPsV','name','type','beforeAll','exports','WZVVn','2528980MafYLd'];a23_0xe909=function(){return _0x3842af;};return a23_0xe909();}a23_0x5f0d23[a23_0x4b5b62(0x232)]=a23_0x4b5b62(0x229),a23_0x5f0d23[a23_0x4b5b62(0x1fb)]='AFTER_ALL',a23_0x5f0d23['beforeEach']=a23_0x4b5b62(0x1e0),a23_0x5f0d23[a23_0x4b5b62(0x1c7)]=a23_0x4b5b62(0x206);const HOOK_TYPES_MAP=a23_0x5f0d23;module[a23_0x4b5b62(0x233)]=o11yClassErrorHandler(class ObservabilityReporter{constructor(){const _0x92382e=a23_0x4b5b62,_0x431d07={'EfGor':_0x92382e(0x1aa),'vzCCW':function(_0x542fbe){return _0x542fbe();}},_0x974b5f=_0x431d07['EfGor']['split']('|');let _0x26fdb4=0x0;while(!![]){switch(_0x974b5f[_0x26fdb4++]){case'0':this[_0x92382e(0x1ae)]=[];continue;case'1':this[_0x92382e(0x1ab)]=[];continue;case'2':this[_0x92382e(0x211)]=_0x431d07[_0x92382e(0x20e)](isTestObservabilitySession);continue;case'3':this[_0x92382e(0x1cd)]=null;continue;case'4':this[_0x92382e(0x203)]=![];continue;case'5':this['_paths']=new PathHelper({'cwd':process[_0x92382e(0x1b3)]()},this[_0x92382e(0x1ad)][_0x92382e(0x1b5)]);continue;case'6':this[_0x92382e(0x1ad)]=this[_0x92382e(0x25d)]();continue;}break;}}[a23_0x4b5b62(0x25d)]=()=>{const _0x575507=a23_0x4b5b62,_0x4bd422={'yEchV':_0x575507(0x204),'CuJJV':function(_0x50a844){return _0x50a844();}};return{'ci':_0x4bd422['yEchV'],'key':_0x4bd422['CuJJV'](uuidv4),'version':version,'collector':_0x575507(0x1b7)+name};};[a23_0x4b5b62(0x1f8)](){const _0x46e382=a23_0x4b5b62;process[_0x46e382(0x1f3)](_0x46e382(0x264)+process[_0x46e382(0x1f6)]),process['on'](_0x46e382(0x264)+process[_0x46e382(0x1f6)],this['appendTestItemLog'][_0x46e382(0x1cc)](this)),process[_0x46e382(0x1f3)](_0x46e382(0x258)+process[_0x46e382(0x1f6)]),process['on']('bs:addPlatformDetails:'+process[_0x46e382(0x1f6)],this[_0x46e382(0x1db)][_0x46e382(0x1cc)](this));}[a23_0x4b5b62(0x23d)]=async _0x5ddafa=>{const _0x17695c=a23_0x4b5b62,_0x2186f5={'yDfpR':function(_0x396d30,_0x4d6264){return _0x396d30>_0x4d6264;},'jChQC':function(_0x3e8613,_0x1c3146){return _0x3e8613===_0x1c3146;},'psGmI':'TestRunStarted','mwpNx':function(_0x600bae,_0x3d1de2){return _0x600bae(_0x3d1de2);}};try{const _0x4625e9=this[_0x17695c(0x251)];this[_0x17695c(0x251)]=_0x5ddafa,_0x5ddafa[_0x17695c(0x1e4)]=null,_0x5ddafa['testAnalyticsId']=TestDetails[_0x17695c(0x1d0)](process['pid']+_0x17695c(0x1c1)),_0x5ddafa[_0x17695c(0x244)]=new Date()[_0x17695c(0x241)](),_0x2186f5[_0x17695c(0x1e7)](_0x5ddafa['_currentRetry'],0x0)&&_0x4625e9&&_0x2186f5[_0x17695c(0x1cb)](_0x4625e9['title'],_0x5ddafa[_0x17695c(0x238)])?(_0x5ddafa[_0x17695c(0x1e4)]=_0x4625e9[_0x17695c(0x263)],await this[_0x17695c(0x1cf)](_0x5ddafa,undefined,![],_0x2186f5[_0x17695c(0x1ee)]),_0x4625e9[_0x17695c(0x268)]=STATE_FAILED,await this['sendTestRunEvent'](_0x4625e9,undefined,!![])):await this[_0x17695c(0x1cf)](_0x5ddafa,undefined,![],_0x2186f5[_0x17695c(0x1ee)]);}catch(_0x196fa4){_0x2186f5[_0x17695c(0x22b)](debug,_0x17695c(0x1ac)+_0x196fa4);}};[a23_0x4b5b62(0x220)](_0x575981){const _0x3acf03=a23_0x4b5b62,_0x4cedcc={};_0x4cedcc[_0x3acf03(0x1bf)]=function(_0xdc47f2,_0x3d4577){return _0xdc47f2!==_0x3d4577;},_0x4cedcc[_0x3acf03(0x1e8)]=_0x3acf03(0x21d);const _0x572b14=_0x4cedcc;if(_0x572b14['cGeHF'](_0x575981['type'],_0x572b14['qwOqq']))return'\x22'+_0x575981[_0x3acf03(0x231)]+_0x3acf03(0x20b)+(_0x575981[_0x3acf03(0x1c6)]&&_0x575981['parent'][_0x3acf03(0x230)])+'\x22';return _0x575981[_0x3acf03(0x230)];}['sendTestRunEvent']=async(_0x2ee668,_0x3581cd=undefined,_0x2b71a3=![],_0x3ee921='TestRunFinished')=>{const _0x33625d=a23_0x4b5b62,_0x249207={'aWMpA':_0x33625d(0x259),'SQYcQ':_0x33625d(0x1dd),'UmJFG':_0x33625d(0x201),'XiFXV':_0x33625d(0x21a),'zQMsm':'failure_type','rElOE':_0x33625d(0x1d8),'GaXLD':_0x33625d(0x1e5),'CkvVq':function(_0x428454,_0x16d129){return _0x428454(_0x16d129);},'eJHCB':'jest-circus','ZCLwM':_0x33625d(0x226),'qwzzt':function(_0xcb22f3,_0x4da216){return _0xcb22f3!==_0x4da216;},'AdJfQ':_0x33625d(0x21d),'qvhBI':function(_0x29f436,_0x54786d){return _0x29f436!==_0x54786d;},'KifJX':'err','gJttN':_0x33625d(0x1b0),'bbAjT':_0x33625d(0x25b),'qpqYa':function(_0x3422ca,_0xbc712d){return _0x3422ca===_0xbc712d;},'QDSMu':_0x33625d(0x208),'mIeLP':_0x33625d(0x252),'CPvcw':function(_0x105413,_0x20a878){return _0x105413>_0x20a878;},'EWhyG':'failed','WZVVn':'passed','sfeyv':function(_0x30966d,_0xd18da1){return _0x30966d-_0xd18da1;},'hqsJr':function(_0x1bbc1e,_0x3e37e7){return _0x1bbc1e(_0x3e37e7);},'VlDIv':function(_0x584786,_0xabdef7,_0x1c25f9,_0x31511c,_0x3e4d84){return _0x584786(_0xabdef7,_0x1c25f9,_0x31511c,_0x3e4d84);},'vMWLt':function(_0x2961f4,_0x1906ec){return _0x2961f4===_0x1906ec;},'cRPsV':_0x33625d(0x244),'iCTmv':_0x33625d(0x1f4),'JIaIs':function(_0x1df9a9,_0x23618){return _0x1df9a9===_0x23618;},'LoHtt':_0x33625d(0x216),'kGHbN':function(_0x4731e5,_0x5034a8){return _0x4731e5!==_0x5034a8;},'TimbB':_0x33625d(0x237),'cXbGF':_0x33625d(0x1f2),'CfSzV':_0x33625d(0x1c9),'NQhER':_0x33625d(0x213),'SVeZT':'TestRunFinished','TbCRb':'hook_type','tlsLp':function(_0xe90f92,_0x44130b){return _0xe90f92>_0x44130b;},'bdKjW':function(_0x4b22fa,_0x251f26){return _0x4b22fa===_0x251f26;},'jAZbD':_0x33625d(0x232),'dkyII':function(_0x3c3b5e,_0x3f6b57,_0x44b725){return _0x3c3b5e(_0x3f6b57,_0x44b725);},'zcbCX':function(_0x46c97d,_0x308ff2){return _0x46c97d(_0x308ff2);}};try{if(_0x2ee668['fn']&&_0x2ee668['fn'][_0x33625d(0x24b)]()['match'](/browserstack internal helper hook/))return;await this['configureGit']();let _0x140b66;try{_0x140b66=this['getRootParentFile'](_0x2ee668);}catch(_0x136d99){_0x249207[_0x33625d(0x218)](debug,_0x33625d(0x1dc)+_0x136d99),_0x140b66=null;}if(_0x140b66[_0x33625d(0x223)](_0x249207[_0x33625d(0x1ea)]))return;const _0x164331=_0x249207[_0x33625d(0x218)](require,_0x249207[_0x33625d(0x1a2)]);let _0x51eabf=[];if(_0x249207[_0x33625d(0x1e1)](_0x2ee668[_0x33625d(0x1c8)],undefined))_0x51eabf=[_0x2ee668[_0x33625d(0x1c8)],_0x249207[_0x33625d(0x22e)]];else _0x249207[_0x33625d(0x24f)](_0x3581cd,undefined)?_0x51eabf=[_0x3581cd,_0x249207[_0x33625d(0x224)]]:_0x51eabf=[];const _0x5455cc=_0x249207[_0x33625d(0x1e1)](_0x2ee668['errorsDetailed'],undefined)?_0x164331[_0x33625d(0x1d3)](_0x2ee668['errorsDetailed'][0x0]):_0x249207[_0x33625d(0x1e1)](_0x3581cd,undefined)?_0x3581cd[_0x33625d(0x24b)]():undefined,_0x5ea8d4=_0x140b66?this[_0x33625d(0x1fe)][_0x33625d(0x1bc)](this[_0x33625d(0x242)](_0x2ee668)):_0x249207['gJttN'],_0x258796={'framework':FRAMEWORKS[_0x33625d(0x1bd)],'uuid':_0x2ee668[_0x33625d(0x263)]||_0x2ee668[_0x33625d(0x1ff)],'name':this[_0x33625d(0x220)](_0x2ee668),'body':{'lang':_0x249207[_0x33625d(0x246)],'code':_0x2ee668['fn']['toString']()},'scopes':this[_0x33625d(0x255)](_0x2ee668),'file_name':_0x5ea8d4,'vc_filepath':this[_0x33625d(0x1cd)]&&_0x140b66?path[_0x33625d(0x1a4)](this[_0x33625d(0x1cd)],_0x140b66):null,'location':_0x5ea8d4,'result':_0x249207[_0x33625d(0x1a3)](_0x3ee921,_0x249207[_0x33625d(0x1df)])?_0x249207[_0x33625d(0x1a9)]:this['analyticsResult'](_0x2ee668[_0x33625d(0x1c8)]&&_0x249207[_0x33625d(0x1e6)](_0x2ee668[_0x33625d(0x1c8)][_0x33625d(0x200)],0x0)?_0x249207[_0x33625d(0x1de)]:_0x249207[_0x33625d(0x234)]),'failure_reason':_0x5455cc,'duration_in_ms':_0x2ee668['duration']||(_0x3ee921[_0x33625d(0x222)](/Finished/)||_0x3ee921[_0x33625d(0x222)](/Skipped/)?_0x249207['sfeyv'](Date['now'](),new Date(_0x2ee668[_0x33625d(0x244)])[_0x33625d(0x20c)]()):null),'started_at':_0x2ee668[_0x33625d(0x244)],'finished_at':_0x3ee921[_0x33625d(0x222)](/Finished/)||_0x3ee921[_0x33625d(0x222)](/Skipped/)?new Date()[_0x33625d(0x241)]():null,'failure':failureData[_0x33625d(0x1d9)](null,_0x51eabf),'failure_type':!_0x5455cc?null:_0x249207[_0x33625d(0x1d5)](getFailureType,_0x5455cc),'retry_of':_0x2ee668['retryOf']};_0x249207[_0x33625d(0x20a)](appendTesthubParams,_0x258796,_0x3ee921,_0x2ee668,FRAMEWORKS['JEST']);_0x249207[_0x33625d(0x262)](_0x3ee921,_0x249207[_0x33625d(0x1df)])&&!_0x258796[_0x249207[_0x33625d(0x22f)]]&&(_0x258796[_0x249207[_0x33625d(0x22f)]]=_0x258796[_0x249207[_0x33625d(0x25e)]]);if(_0x3ee921[_0x33625d(0x222)](/HookRun/))[_0x258796[_0x33625d(0x21b)],_0x258796['name']]=[_0x2ee668[_0x33625d(0x231)],this[_0x33625d(0x220)](_0x2ee668)],_0x249207['JIaIs'](_0x3ee921,_0x249207[_0x33625d(0x23b)])&&(_0x249207[_0x33625d(0x26a)](_0x258796[_0x33625d(0x201)],_0x249207[_0x33625d(0x1de)])&&(_0x258796[_0x33625d(0x201)]=_0x249207['WZVVn']));else _0x3ee921[_0x33625d(0x222)](/TestRun/)&&this['mapTestHooks'](_0x2ee668);const _0x4b405f=_0x258796[_0x249207[_0x33625d(0x1c4)]][0x0];_0x4b405f&&(_0x258796[_0x249207['TimbB']]=_0x4b405f[_0x249207['cXbGF']],_0x258796[_0x249207[_0x33625d(0x202)]]=_0x4b405f[_0x249207[_0x33625d(0x1fd)]]);[_0x249207[_0x33625d(0x254)],_0x249207[_0x33625d(0x1df)]]['includes'](_0x3ee921)&&(this[_0x33625d(0x1ae)][_0x33625d(0x25a)](_0x258796),_0x258796['hooks']=this[_0x33625d(0x24d)](_0x2ee668),this['resetTestHooks'](_0x2ee668));const _0x940a4f={'event_type':_0x249207['vMWLt'](_0x3ee921,_0x249207['QDSMu'])?_0x249207[_0x33625d(0x254)]:_0x3ee921};_0x3ee921[_0x33625d(0x222)](/HookRun/)?(_0x258796[_0x249207[_0x33625d(0x207)]]=HOOK_TYPES_MAP[_0x258796[_0x249207[_0x33625d(0x207)]]],_0x940a4f[_0x249207[_0x33625d(0x1a8)]]=_0x258796):_0x940a4f[_0x249207[_0x33625d(0x1f1)]]=_0x258796;_0x249207[_0x33625d(0x1a1)](this['hook_data'][_0x33625d(0x200)],0x0)&&[_0x249207[_0x33625d(0x254)],_0x249207[_0x33625d(0x1df)]][_0x33625d(0x223)](_0x3ee921)&&(this['hook_data'][_0x33625d(0x1ec)](async _0x142342=>{const _0xda798c=_0x33625d,_0x24da37=_0x249207[_0xda798c(0x266)]['split']('|');let _0x4c617d=0x0;while(!![]){switch(_0x24da37[_0x4c617d++]){case'0':await SessionHandler[_0xda798c(0x1fa)](_0x142342);continue;case'1':_0x142342[_0x249207[_0xda798c(0x1a8)]][_0x249207[_0xda798c(0x20d)]]=_0x940a4f[_0x249207['XiFXV']][_0x249207[_0xda798c(0x20d)]];continue;case'2':_0x142342[_0x249207[_0xda798c(0x1a8)]][_0x249207['zQMsm']]=_0x940a4f[_0x249207['XiFXV']][_0x249207['zQMsm']];continue;case'3':_0x142342[_0x249207[_0xda798c(0x1a8)]][_0x249207['rElOE']]=_0x940a4f[_0x249207[_0xda798c(0x1f1)]][_0x249207[_0xda798c(0x1c4)]];continue;case'4':_0x142342[_0x249207['SQYcQ']][_0x249207[_0xda798c(0x1fc)]]=_0x940a4f[_0x249207[_0xda798c(0x1f1)]][_0x249207['GaXLD']];continue;}break;}}),this[_0x33625d(0x1ab)]=[]);if(_0x249207[_0x33625d(0x262)](this[_0x33625d(0x1ce)],_0x2ee668[_0x33625d(0x231)])){this[_0x33625d(0x1ab)][_0x33625d(0x25a)](_0x940a4f);return;}_0x249207[_0x33625d(0x1bb)](this[_0x33625d(0x1ce)],_0x249207[_0x33625d(0x267)])&&_0x940a4f[_0x249207[_0x33625d(0x1f1)]]&&(_0x940a4f[_0x249207['XiFXV']][_0x249207[_0x33625d(0x20d)]]=_0x249207[_0x33625d(0x1a9)],_0x940a4f[_0x249207[_0x33625d(0x1f1)]][_0x249207[_0x33625d(0x1c4)]]=null,_0x940a4f[_0x249207[_0x33625d(0x1f1)]][_0x249207['zQMsm']]=null),_0x249207['dkyII'](setCurrentTestData,FRAMEWORKS[_0x33625d(0x1bd)],_0x940a4f),await SessionHandler['uploadEventData'](_0x940a4f);}catch(_0x8eb2b0){_0x249207['zcbCX'](debug,_0x33625d(0x214)+_0x3ee921+_0x33625d(0x21f)+_0x8eb2b0);}};[a23_0x4b5b62(0x1c0)](_0x450b65){const _0x2d3832=a23_0x4b5b62,_0x4fc1b1={};_0x4fc1b1['LUrIX']=function(_0x1668c6,_0x482a6f){return _0x1668c6==_0x482a6f;},_0x4fc1b1[_0x2d3832(0x253)]=function(_0x3007d0,_0x1d814e){return _0x3007d0===_0x1d814e;},_0x4fc1b1['RxVFR']='.git',_0x4fc1b1['QDnrE']=_0x2d3832(0x1d4);const _0xb0aaed=_0x4fc1b1,_0x57d9c4=path[_0x2d3832(0x21c)];if(_0xb0aaed[_0x2d3832(0x1d7)](_0x450b65,null)||_0xb0aaed[_0x2d3832(0x253)](_0x450b65,'')||_0xb0aaed['khVOH'](_0x450b65,_0x57d9c4)||_0xb0aaed[_0x2d3832(0x253)](_0x450b65,path[_0x2d3832(0x1e9)](_0x450b65)))return null;try{return fs[_0x2d3832(0x225)](path[_0x2d3832(0x23a)](_0x450b65,_0xb0aaed[_0x2d3832(0x1af)],_0xb0aaed['QDnrE'])),_0x450b65;}catch(_0x789fba){const _0x375562=path[_0x2d3832(0x1e9)](_0x450b65);return this[_0x2d3832(0x1c0)](_0x375562);}}[a23_0x4b5b62(0x257)]=async _0x21d863=>{const _0x1d091a=a23_0x4b5b62,_0x4086fa={'cpEli':_0x1d091a(0x1c5),'YaARA':function(_0x304065,_0x39803a){return _0x304065(_0x39803a);}},_0x3e49e0=TestDetails[_0x1d091a(0x21e)](process[_0x1d091a(0x1f6)]+_0x1d091a(0x239)),_0x5692f1=TestDetails[_0x1d091a(0x21e)](process[_0x1d091a(0x1f6)]+_0x1d091a(0x1c1));try{(_0x3e49e0||this[_0x1d091a(0x1b6)]&&!this['current_hook'][_0x1d091a(0x1ca)])&&(_0x21d863[_0x1d091a(0x1ba)]=_0x3e49e0);!_0x21d863[_0x1d091a(0x1ba)]&&_0x5692f1&&(_0x21d863[_0x1d091a(0x1d1)]=_0x5692f1);if(_0x21d863[_0x1d091a(0x1ba)]||_0x21d863[_0x1d091a(0x1d1)]){const _0x29ea53={};_0x29ea53['event_type']=_0x4086fa[_0x1d091a(0x23c)],_0x29ea53['logs']=[_0x21d863],await SessionHandler[_0x1d091a(0x1fa)](_0x29ea53);}}catch(_0xd9e9c6){_0x4086fa['YaARA'](debug,'Exception\x20in\x20uploading\x20log\x20data\x20to\x20Observability\x20with\x20error\x20:\x20'+_0xd9e9c6);}};[a23_0x4b5b62(0x1db)]=async _0x472596=>{const _0x520d75=a23_0x4b5b62,_0x1018ee={'aeRIM':_0x520d75(0x1e2),'tbXHR':_0x520d75(0x256),'OGTNO':function(_0x26bb1d,_0x4515f6){return _0x26bb1d(_0x4515f6);}};try{const _0x43f881={'uuid':_0x472596[_0x520d75(0x219)]||TestDetails['getTestUUID'](process[_0x520d75(0x1f6)]+_0x520d75(0x1c1)),'integrations':_0x472596[_0x1018ee[_0x520d75(0x1f5)]]},_0x44c429={};_0x44c429['event_type']=_0x1018ee[_0x520d75(0x1ef)],_0x44c429[_0x520d75(0x21a)]=_0x43f881,await SessionHandler[_0x520d75(0x1fa)](_0x44c429);}catch(_0x10a2b5){_0x1018ee[_0x520d75(0x261)](debug,_0x520d75(0x22c)+_0x10a2b5);}};async[a23_0x4b5b62(0x1f0)](){const _0x172972=a23_0x4b5b62,_0x350a6c={'DeBXm':function(_0x569cf2){return _0x569cf2();}};if(this[_0x172972(0x203)])return this[_0x172972(0x1cd)];const _0x5ac365=await _0x350a6c['DeBXm'](getGitMetaData);_0x5ac365&&(this[_0x172972(0x1cd)]=_0x5ac365[_0x172972(0x247)]),this[_0x172972(0x203)]=!![];}[a23_0x4b5b62(0x1b9)](_0xc4c960){const _0x19e3ee=a23_0x4b5b62,_0x158cf9={};_0x158cf9[_0x19e3ee(0x25c)]=_0x19e3ee(0x212),_0x158cf9[_0x19e3ee(0x221)]=_0x19e3ee(0x22d),_0x158cf9[_0x19e3ee(0x248)]=_0x19e3ee(0x23e);const _0x34a79c=_0x158cf9,_0x3de2ff={};return _0x3de2ff[STATE_PASSED]=_0x34a79c[_0x19e3ee(0x25c)],_0x3de2ff[STATE_PENDING]=_0x34a79c[_0x19e3ee(0x221)],_0x3de2ff[STATE_FAILED]=_0x34a79c[_0x19e3ee(0x248)],_0x3de2ff[_0xc4c960];}[a23_0x4b5b62(0x255)](_0x2ce7c9){const _0x2f65b7=a23_0x4b5b62,_0x334a98={};_0x334a98[_0x2f65b7(0x227)]=function(_0x3779ec,_0x1fbc8b){return _0x3779ec!==_0x1fbc8b;},_0x334a98['pElLf']=_0x2f65b7(0x265);const _0x321122=_0x334a98,_0x2c9cce=[];if(_0x2ce7c9&&_0x2ce7c9[_0x2f65b7(0x1c6)]){let _0xef9797=_0x2ce7c9['parent'];while(_0xef9797&&_0x321122[_0x2f65b7(0x227)](_0xef9797[_0x2f65b7(0x230)],'')&&_0x321122[_0x2f65b7(0x227)](_0xef9797[_0x2f65b7(0x230)],_0x321122['pElLf'])){_0x2c9cce[_0x2f65b7(0x25a)](_0xef9797[_0x2f65b7(0x230)]),_0xef9797=_0xef9797[_0x2f65b7(0x1c6)];}}return _0x2c9cce[_0x2f65b7(0x205)](),_0x2c9cce;}[a23_0x4b5b62(0x242)]=_0x2dac6d=>{const _0x41bb27=a23_0x4b5b62;if(_0x2dac6d[_0x41bb27(0x210)]){const _0x4e49b9=stackTrace[_0x41bb27(0x24a)]['call'](stackTrace,_0x2dac6d[_0x41bb27(0x210)]);return _0x4e49b9[0x0][_0x41bb27(0x209)]();}if(_0x2dac6d[_0x41bb27(0x217)])return _0x2dac6d[_0x41bb27(0x217)];return null;};['mapTestHooks']=_0x7d631f=>{const _0x155376=a23_0x4b5b62;if(!_0x7d631f||!_0x7d631f[_0x155376(0x1c6)])return;_0x7d631f[_0x155376(0x1c6)][_0x155376(0x1be)][_0x155376(0x1ec)](_0x4e74ea=>{const _0x3a5e37=_0x155376;!_0x4e74ea[_0x3a5e37(0x1ff)]&&(_0x4e74ea[_0x3a5e37(0x1ff)]=TestDetails[_0x3a5e37(0x1d0)](process[_0x3a5e37(0x1f6)]+':hookAnalyticsId'));}),this[_0x155376(0x24e)](_0x7d631f[_0x155376(0x1c6)]);};['resetTestHooks']=_0x59783c=>{const _0x1c4ddf=a23_0x4b5b62,_0x5dbfc0={};_0x5dbfc0[_0x1c4ddf(0x250)]=_0x1c4ddf(0x25f),_0x5dbfc0[_0x1c4ddf(0x1f9)]='afterEach';const _0x14c51a=_0x5dbfc0;if(!_0x59783c||!_0x59783c[_0x1c4ddf(0x1c6)])return;_0x59783c[_0x1c4ddf(0x1c6)][_0x1c4ddf(0x1be)][_0x1c4ddf(0x1ec)](_0x18cc68=>{const _0x51d18a=_0x1c4ddf;[_0x14c51a[_0x51d18a(0x250)],_0x14c51a[_0x51d18a(0x1f9)]][_0x51d18a(0x223)](_0x18cc68['type'])&&_0x18cc68[_0x51d18a(0x1ff)]&&(_0x18cc68[_0x51d18a(0x1ff)]=null);}),this[_0x1c4ddf(0x24e)](_0x59783c[_0x1c4ddf(0x1c6)]);};[a23_0x4b5b62(0x23f)](_0xab6900){const _0x99f19f=a23_0x4b5b62,_0x3f3074={'gWilt':_0x99f19f(0x1ed),'SWiAf':function(_0x52f734,_0xba81e5){return _0x52f734(_0xba81e5);},'PhbEj':function(_0x3cb47f,_0x258363){return _0x3cb47f+_0x258363;},'WJMTM':_0x99f19f(0x1b1)};try{const _0x34ee74=this[_0x99f19f(0x242)](_0xab6900);return _0x34ee74[_0x99f19f(0x223)](_0x3f3074[_0x99f19f(0x24c)]);}catch(_0x4280ff){_0x3f3074[_0x99f19f(0x228)](debug,_0x3f3074[_0x99f19f(0x1c3)](_0x3f3074[_0x99f19f(0x269)],_0x4280ff));}return![];}[a23_0x4b5b62(0x24d)]=_0x310071=>{const _0x369302=a23_0x4b5b62,_0x6fe3={'eojxa':function(_0x72a2a2,_0x17d9f6){return _0x72a2a2(_0x17d9f6);}};if(!_0x310071||!_0x310071[_0x369302(0x1c6)])return[];const _0x23002d=[];return _0x310071[_0x369302(0x1c6)]['hooks'][_0x369302(0x1ec)](_0x290706=>{const _0x4192c7=_0x369302;_0x290706[_0x4192c7(0x1ff)]&&!_0x6fe3[_0x4192c7(0x1a6)](isInternalHook,_0x290706['fn'])&&!this[_0x4192c7(0x23f)](_0x290706)&&_0x23002d['push'](_0x290706[_0x4192c7(0x1ff)]);}),[..._0x23002d,...this['getHooksForTest'](_0x310071[_0x369302(0x1c6)])];};},[a23_0x4b5b62(0x25d),'registerListeners',a23_0x4b5b62(0x23d),a23_0x4b5b62(0x220),a23_0x4b5b62(0x1cf),'findGitConfig',a23_0x4b5b62(0x257),a23_0x4b5b62(0x1db),a23_0x4b5b62(0x1b9),'getHierarchy',a23_0x4b5b62(0x242),'mapTestHooks',a23_0x4b5b62(0x1d6),a23_0x4b5b62(0x24d),'configureGit'],a23_0x4b5b62(0x249));
|
|
1
|
+
function a23_0x488a(_0x250043,_0x2ca459){const _0x2ee593=a23_0x2ee5();return a23_0x488a=function(_0x488a5e,_0x3b8274){_0x488a5e=_0x488a5e-0xd1;let _0xb4e733=_0x2ee593[_0x488a5e];return _0xb4e733;},a23_0x488a(_0x250043,_0x2ca459);}const a23_0x34efc4=a23_0x488a;function a23_0x2ee5(){const _0x19da12=['Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','sYIMM','DFgPC','HgcTP','WxhBz','7870NgubAx','3113735SZgEau','prefixTestPath','WzytX','TestRunFinished','beforeEach','WkhJl','jest-circus','markedStatus','test','hookAnalyticsId','sep','dzlZd','VoXlG','generic','\x20with\x20error\x20:\x20','WUuhg','STATE_FAILED','XSwEF',':hookAnalyticsId','swRlC','current_hook','MFdnH','VVijO','testObservability','MNrtk','toString','title','BEFORE_EACH','getTime','BEFORE_ALL','config','getTestEnv','analyticsResult','alZuV','gWaBi','backtrace','match','uploadEventData','.git','bs:addLog:','hook_type','join','qGAmn','../../../helpers/testhub/utils','resetTestHooks','registerListeners','length','getTestUUID','mWlrn','../../../helpers/test-observability/utils','toISOString',':testAnalyticsId','split','event_type','QJQXb','uSYYw','result','testStarted','nDUkj','pid','391ENWiLu','_currentRetry','qoNjk','LogCreated','reverse','EEEfX','2428hwuybz','getHooksForTest','javascript','OasuU','configureGit','dirname','forEach','afterEach','UauyG','name','current_test','util','ObservabilityReporter','MXqtV','started_at','err','skipped','hook_run','failed','getRootParentFile','sInuO','lNRiA','14nDFlPZ','klKUY','test_run','JEST','Jrwaz','3|0|4|2|1','Exception\x20in\x20uploading\x20log\x20data\x20to\x20Observability\x20with\x20error\x20:\x20','type','call','32705178dGKTvp','passed','testAnalyticsId','zsMbW','PaHKm','hooks','afterAll','js-','push','AFTER_ALL','efRvF','../../../helpers/test-observability/sessionHandler','hhqMs','failure','MNkav','finished_at','setTestUUID','getName','errorsDetailed','oPUmj','file','uvMqW','AtIVu','ocgDp','STATE_PENDING','hook_data','failure_reason','findGitConfig','now','beforeAll','parent','getFileName','6|0|1|2|5|3|4','_testResults','expanded','8477680gennOv','87572OllLAj','TestRunStarted','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20Observability\x20with\x20error\x20:\x20','sRYvW','nhwsR','qFBak','getHierarchy','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','kveap','statSync','../../../helpers/helper','duration','_gitConfigPath','Jpzcn','aIPTB','failure_type','asyncError','TestRunSkipped','aCWZB','../../utils/constants','../../../helpers/test-observability/error-handler','_testEnv','retryOf','sendTestRunEvent','hook_failure','bs:addPlatformDetails:','yUwnE','apply','AyoPC','ROOT_DESCRIBE_BLOCK','_gitConfigured','xVcIf','XLavG','EzlfQ','10971fzSOHG','WXOVc','isJestInternalHook','state','GCnBT','uzYLA','msNEy','obHJv','fXRoE','path','69PVuyZz','534582itdqQK','mapTestHooks','HookRunFinished','uuid','qsvFS','includes','logs','root','appendTestPlatform','egjzL','appendTestItemLog','hook_run_uuid','bind','UQyMl'];a23_0x2ee5=function(){return _0x19da12;};return a23_0x2ee5();}(function(_0x3d770,_0x430a01){const _0x395228=a23_0x488a,_0x5523b7=_0x3d770();while(!![]){try{const _0x3f0060=-parseInt(_0x395228(0xd5))/0x1*(parseInt(_0x395228(0xdb))/0x2)+parseInt(_0x395228(0x14a))/0x3*(-parseInt(_0x395228(0x11e))/0x4)+parseInt(_0x395228(0x15f))/0x5+parseInt(_0x395228(0x14b))/0x6*(parseInt(_0x395228(0xf1))/0x7)+-parseInt(_0x395228(0x11d))/0x8+-parseInt(_0x395228(0x140))/0x9*(parseInt(_0x395228(0x15e))/0xa)+parseInt(_0x395228(0xfa))/0xb;if(_0x3f0060===_0x430a01)break;else _0x5523b7['push'](_0x5523b7['shift']());}catch(_0x238022){_0x5523b7['push'](_0x5523b7['shift']());}}}(a23_0x2ee5,0xbda9f));const {isTestObservabilitySession,PathHelper,debug,failureData,getFailureType,isInternalHook}=require(a23_0x34efc4(0x190)),SessionHandler=require(a23_0x34efc4(0x105)),{v4:uuidv4}=require(a23_0x34efc4(0x14e)),{name,version}=require('../../../../package.json'),stackTrace=require('stack-trace'),path=require(a23_0x34efc4(0x149)),fs=require('fs'),TestDetails=require('./test-details'),{FRAMEWORKS}=require(a23_0x34efc4(0x131)),{o11yClassErrorHandler}=require(a23_0x34efc4(0x132)),{getGitMetaData}=require(a23_0x34efc4(0x128)),{appendTesthubParams,setCurrentTestData}=require(a23_0x34efc4(0x18a)),a23_0x5f03ee={};a23_0x5f03ee['STATE_PASSED']=a23_0x34efc4(0xfb),a23_0x5f03ee[a23_0x34efc4(0x16f)]=a23_0x34efc4(0xed),a23_0x5f03ee[a23_0x34efc4(0x112)]='pending';const {STATE_PASSED,STATE_PENDING,STATE_FAILED}=a23_0x5f03ee,a23_0x147af8={};a23_0x147af8[a23_0x34efc4(0x117)]=a23_0x34efc4(0x17c),a23_0x147af8[a23_0x34efc4(0x100)]=a23_0x34efc4(0x103),a23_0x147af8[a23_0x34efc4(0x163)]=a23_0x34efc4(0x17a),a23_0x147af8['afterEach']='AFTER_EACH';const HOOK_TYPES_MAP=a23_0x147af8;module['exports']=o11yClassErrorHandler(class ObservabilityReporter{constructor(){const _0x5bcba7=a23_0x34efc4,_0x5f4484={'uGQag':_0x5bcba7(0x11a),'MNkav':function(_0x4874cd){return _0x4874cd();}},_0x2e97a3=_0x5f4484['uGQag'][_0x5bcba7(0x193)]('|');let _0x25c23d=0x0;while(!![]){switch(_0x2e97a3[_0x25c23d++]){case'0':this[_0x5bcba7(0x11b)]=[];continue;case'1':this['_testEnv']=this[_0x5bcba7(0x17e)]();continue;case'2':this['_paths']=new PathHelper({'cwd':process['cwd']()},this[_0x5bcba7(0x133)]['location_prefix']);continue;case'3':this[_0x5bcba7(0x13c)]=![];continue;case'4':this['_gitConfigPath']=null;continue;case'5':this[_0x5bcba7(0x113)]=[];continue;case'6':this[_0x5bcba7(0x176)]=_0x5f4484[_0x5bcba7(0x108)](isTestObservabilitySession);continue;}break;}}[a23_0x34efc4(0x17e)]=()=>{const _0x2dec4e=a23_0x34efc4,_0x50fff4={'egjzL':_0x2dec4e(0x16c),'MFdnH':function(_0x37d3a0){return _0x37d3a0();}};return{'ci':_0x50fff4[_0x2dec4e(0x154)],'key':_0x50fff4[_0x2dec4e(0x174)](uuidv4),'version':version,'collector':_0x2dec4e(0x101)+name};};['registerListeners'](){const _0x2f2f21=a23_0x34efc4;process['removeAllListeners']('bs:addLog:'+process[_0x2f2f21(0xd4)]),process['on'](_0x2f2f21(0x186)+process['pid'],this['appendTestItemLog'][_0x2f2f21(0x157)](this)),process['removeAllListeners']('bs:addPlatformDetails:'+process[_0x2f2f21(0xd4)]),process['on'](_0x2f2f21(0x137)+process[_0x2f2f21(0xd4)],this['appendTestPlatform']['bind'](this));}[a23_0x34efc4(0xd2)]=async _0x12dd9d=>{const _0x22cc84=a23_0x34efc4,_0x5b21b1={'xKrOa':function(_0x199112,_0x3fcbe2){return _0x199112>_0x3fcbe2;},'klKUY':function(_0x1f47dd,_0x169426){return _0x1f47dd===_0x169426;},'obHJv':_0x22cc84(0x11f),'oPUmj':function(_0x4ce816,_0x3e1404){return _0x4ce816(_0x3e1404);}};try{const _0x22e4c9=this[_0x22cc84(0xe5)];this[_0x22cc84(0xe5)]=_0x12dd9d,_0x12dd9d[_0x22cc84(0x134)]=null,_0x12dd9d[_0x22cc84(0xfc)]=TestDetails[_0x22cc84(0x10a)](process[_0x22cc84(0xd4)]+_0x22cc84(0x192)),_0x12dd9d[_0x22cc84(0xe9)]=new Date()[_0x22cc84(0x191)](),_0x5b21b1['xKrOa'](_0x12dd9d[_0x22cc84(0xd6)],0x0)&&_0x22e4c9&&_0x5b21b1[_0x22cc84(0xf2)](_0x22e4c9['title'],_0x12dd9d[_0x22cc84(0x179)])?(_0x12dd9d[_0x22cc84(0x134)]=_0x22e4c9[_0x22cc84(0xfc)],await this[_0x22cc84(0x135)](_0x12dd9d,undefined,![],_0x5b21b1[_0x22cc84(0x147)]),_0x22e4c9[_0x22cc84(0x143)]=STATE_FAILED,await this[_0x22cc84(0x135)](_0x22e4c9,undefined,!![])):await this[_0x22cc84(0x135)](_0x12dd9d,undefined,![],_0x5b21b1[_0x22cc84(0x147)]);}catch(_0x1a4ecb){_0x5b21b1[_0x22cc84(0x10d)](debug,_0x22cc84(0x125)+_0x1a4ecb);}};['getName'](_0x46c6c2){const _0x2243fd=a23_0x34efc4,_0x2fe35d={};_0x2fe35d[_0x2243fd(0x180)]=function(_0x19b276,_0x22be02){return _0x19b276!==_0x22be02;},_0x2fe35d[_0x2243fd(0xf5)]=_0x2243fd(0x167);const _0xfe600e=_0x2fe35d;if(_0xfe600e[_0x2243fd(0x180)](_0x46c6c2[_0x2243fd(0xf8)],_0xfe600e['Jrwaz']))return'\x22'+_0x46c6c2['type']+'\x22\x20hook\x20for\x20\x22'+(_0x46c6c2[_0x2243fd(0x118)]&&_0x46c6c2['parent'][_0x2243fd(0xe4)])+'\x22';return _0x46c6c2['name'];}[a23_0x34efc4(0x135)]=async(_0xeef5e9,_0x4424b4=undefined,_0x4a4281=![],_0x2155f4='TestRunFinished')=>{const _0x3272e6=a23_0x34efc4,_0x3e8abc={'zsMbW':_0x3272e6(0xf6),'EzlfQ':_0x3272e6(0xec),'AyoPC':_0x3272e6(0x12d),'aIPTB':_0x3272e6(0xf3),'qsvFS':_0x3272e6(0x114),'WkhJl':_0x3272e6(0x107),'xVcIf':_0x3272e6(0xd1),'msNEy':function(_0x501465,_0x3167fe){return _0x501465(_0x3167fe);},'UauyG':_0x3272e6(0x165),'fPiXz':function(_0x16bae0,_0x1f90ea){return _0x16bae0(_0x1f90ea);},'UyizY':_0x3272e6(0xe6),'WxhBz':function(_0x402a80,_0x1fa667){return _0x402a80!==_0x1fa667;},'dzlZd':_0x3272e6(0x167),'HgcTP':_0x3272e6(0xea),'qFBak':function(_0x53e9b8,_0x3f78b7){return _0x53e9b8!==_0x3f78b7;},'efRvF':'File\x20path\x20could\x20not\x20be\x20found','MXqtV':_0x3272e6(0xdd),'UVpAh':function(_0x10e855,_0xd9b5d0){return _0x10e855===_0xd9b5d0;},'sYIMM':_0x3272e6(0x12f),'sInuO':_0x3272e6(0xeb),'GCnBT':function(_0x3fd0c6,_0x16039b){return _0x3fd0c6>_0x16039b;},'swRlC':_0x3272e6(0xed),'uSYYw':'passed','UQyMl':function(_0x388f5b,_0x406bdc){return _0x388f5b-_0x406bdc;},'nhwsR':function(_0x6e5252,_0x14c46e){return _0x6e5252(_0x14c46e);},'AtIVu':function(_0x5350dc,_0x301223,_0x36526d,_0xff17b9,_0x3775af){return _0x5350dc(_0x301223,_0x36526d,_0xff17b9,_0x3775af);},'uvMqW':function(_0x30c220,_0x3bbad9){return _0x30c220===_0x3bbad9;},'fXRoE':'started_at','WXOVc':_0x3272e6(0x109),'IKQxk':function(_0x333572,_0x543762){return _0x333572===_0x543762;},'yUwnE':_0x3272e6(0x14d),'lNRiA':'failure_backtrace','OGumo':_0x3272e6(0x182),'DQCEu':'failure_reason_expanded','VVijO':_0x3272e6(0x11c),'QJQXb':_0x3272e6(0x162),'ocgDp':'hook_type','WUuhg':function(_0x469567,_0x5dc840){return _0x469567>_0x5dc840;},'XSwEF':function(_0x4860a4,_0x354c48){return _0x4860a4===_0x354c48;},'hhqMs':function(_0x147399,_0x21b50c){return _0x147399===_0x21b50c;},'mWlrn':'beforeAll','OasuU':function(_0x50aacc,_0xf39bb2,_0x222c81){return _0x50aacc(_0xf39bb2,_0x222c81);}};try{if(_0xeef5e9['fn']&&_0xeef5e9['fn'][_0x3272e6(0x178)]()['match'](/browserstack internal helper hook/))return;await this[_0x3272e6(0xdf)]();let _0x414671;try{_0x414671=this[_0x3272e6(0xee)](_0xeef5e9);}catch(_0x3e62d2){_0x3e8abc['msNEy'](debug,'failed\x20to\x20get\x20root\x20parent\x20file\x20'+_0x3e62d2),_0x414671=null;}if(_0x414671['includes'](_0x3e8abc[_0x3272e6(0xe3)]))return;const _0x330da2=_0x3e8abc['fPiXz'](require,_0x3e8abc['UyizY']);let _0x55e507=[];if(_0x3e8abc[_0x3272e6(0x15d)](_0xeef5e9['errorsDetailed'],undefined))_0x55e507=[_0xeef5e9[_0x3272e6(0x10c)],_0x3e8abc[_0x3272e6(0x16a)]];else _0x3e8abc[_0x3272e6(0x15d)](_0x4424b4,undefined)?_0x55e507=[_0x4424b4,_0x3e8abc[_0x3272e6(0x15c)]]:_0x55e507=[];const _0x57acba=_0x3e8abc[_0x3272e6(0x123)](_0xeef5e9[_0x3272e6(0x10c)],undefined)?_0x330da2['inspect'](_0xeef5e9['errorsDetailed'][0x0]):_0x3e8abc[_0x3272e6(0x123)](_0x4424b4,undefined)?_0x4424b4['toString']():undefined,_0x5ea40e=_0x414671?this['_paths'][_0x3272e6(0x160)](this['getRootParentFile'](_0xeef5e9)):_0x3e8abc[_0x3272e6(0x104)],_0x3717c6={'framework':FRAMEWORKS['JEST'],'uuid':_0xeef5e9[_0x3272e6(0xfc)]||_0xeef5e9[_0x3272e6(0x168)],'name':this[_0x3272e6(0x10b)](_0xeef5e9),'body':{'lang':_0x3e8abc[_0x3272e6(0xe8)],'code':_0xeef5e9['fn']['toString']()},'scopes':this[_0x3272e6(0x124)](_0xeef5e9),'file_name':_0x5ea40e,'vc_filepath':this[_0x3272e6(0x12a)]&&_0x414671?path['relative'](this['_gitConfigPath'],_0x414671):null,'location':_0x5ea40e,'result':_0x3e8abc['UVpAh'](_0x2155f4,_0x3e8abc[_0x3272e6(0x15a)])?_0x3e8abc['sInuO']:this[_0x3272e6(0x17f)](_0xeef5e9[_0x3272e6(0x10c)]&&_0x3e8abc[_0x3272e6(0x144)](_0xeef5e9[_0x3272e6(0x10c)][_0x3272e6(0x18d)],0x0)?_0x3e8abc[_0x3272e6(0x172)]:_0x3e8abc[_0x3272e6(0x196)]),'failure_reason':_0x57acba,'duration_in_ms':_0xeef5e9[_0x3272e6(0x129)]||(_0x2155f4[_0x3272e6(0x183)](/Finished/)||_0x2155f4[_0x3272e6(0x183)](/Skipped/)?_0x3e8abc[_0x3272e6(0x158)](Date[_0x3272e6(0x116)](),new Date(_0xeef5e9['started_at'])[_0x3272e6(0x17b)]()):null),'started_at':_0xeef5e9[_0x3272e6(0xe9)],'finished_at':_0x2155f4['match'](/Finished/)||_0x2155f4[_0x3272e6(0x183)](/Skipped/)?new Date()[_0x3272e6(0x191)]():null,'failure':failureData[_0x3272e6(0x139)](null,_0x55e507),'failure_type':!_0x57acba?null:_0x3e8abc[_0x3272e6(0x122)](getFailureType,_0x57acba),'retry_of':_0xeef5e9[_0x3272e6(0x134)]};_0x3e8abc[_0x3272e6(0x110)](appendTesthubParams,_0x3717c6,_0x2155f4,_0xeef5e9,FRAMEWORKS[_0x3272e6(0xf4)]);_0x3e8abc[_0x3272e6(0x10f)](_0x2155f4,_0x3e8abc['sYIMM'])&&!_0x3717c6[_0x3e8abc[_0x3272e6(0x148)]]&&(_0x3717c6[_0x3e8abc[_0x3272e6(0x148)]]=_0x3717c6[_0x3e8abc[_0x3272e6(0x141)]]);if(_0x2155f4[_0x3272e6(0x183)](/HookRun/))[_0x3717c6[_0x3272e6(0x187)],_0x3717c6[_0x3272e6(0xe4)]]=[_0xeef5e9[_0x3272e6(0xf8)],this[_0x3272e6(0x10b)](_0xeef5e9)],_0x3e8abc['IKQxk'](_0x2155f4,_0x3e8abc[_0x3272e6(0x138)])&&(_0x3e8abc[_0x3272e6(0x123)](_0x3717c6[_0x3272e6(0xd1)],_0x3e8abc[_0x3272e6(0x172)])&&(_0x3717c6['result']=_0x3e8abc[_0x3272e6(0x196)]));else _0x2155f4[_0x3272e6(0x183)](/TestRun/)&&this[_0x3272e6(0x14c)](_0xeef5e9);const _0x2c8ec5=_0x3717c6[_0x3e8abc[_0x3272e6(0x164)]][0x0];_0x2c8ec5&&(_0x3717c6[_0x3e8abc[_0x3272e6(0xf0)]]=_0x2c8ec5[_0x3e8abc['OGumo']],_0x3717c6[_0x3e8abc['DQCEu']]=_0x2c8ec5[_0x3e8abc[_0x3272e6(0x175)]]);[_0x3e8abc['QJQXb'],_0x3e8abc[_0x3272e6(0x15a)]][_0x3272e6(0x150)](_0x2155f4)&&(this[_0x3272e6(0x11b)][_0x3272e6(0x102)](_0x3717c6),_0x3717c6[_0x3272e6(0xff)]=this['getHooksForTest'](_0xeef5e9),this[_0x3272e6(0x18b)](_0xeef5e9));const _0xad5ed1={'event_type':_0x3e8abc[_0x3272e6(0x10f)](_0x2155f4,_0x3e8abc[_0x3272e6(0x15a)])?_0x3e8abc[_0x3272e6(0x195)]:_0x2155f4};_0x2155f4[_0x3272e6(0x183)](/HookRun/)?(_0x3717c6[_0x3e8abc[_0x3272e6(0x111)]]=HOOK_TYPES_MAP[_0x3717c6[_0x3e8abc[_0x3272e6(0x111)]]],_0xad5ed1[_0x3e8abc[_0x3272e6(0x13f)]]=_0x3717c6):_0xad5ed1[_0x3e8abc['aIPTB']]=_0x3717c6;_0x3e8abc[_0x3272e6(0x16e)](this[_0x3272e6(0x113)][_0x3272e6(0x18d)],0x0)&&[_0x3e8abc[_0x3272e6(0x195)],_0x3e8abc[_0x3272e6(0x15a)]][_0x3272e6(0x150)](_0x2155f4)&&(this[_0x3272e6(0x113)][_0x3272e6(0xe1)](async _0x43b0e6=>{const _0x28effd=_0x3272e6,_0x3b6162=_0x3e8abc[_0x28effd(0xfd)][_0x28effd(0x193)]('|');let _0x198001=0x0;while(!![]){switch(_0x3b6162[_0x198001++]){case'0':_0x43b0e6[_0x3e8abc[_0x28effd(0x13f)]][_0x3e8abc[_0x28effd(0x13a)]]=_0xad5ed1[_0x3e8abc['aIPTB']][_0x3e8abc[_0x28effd(0x13a)]];continue;case'1':await SessionHandler[_0x28effd(0x184)](_0x43b0e6);continue;case'2':_0x43b0e6[_0x3e8abc['EzlfQ']][_0x3e8abc[_0x28effd(0x14f)]]=_0xad5ed1[_0x3e8abc[_0x28effd(0x12c)]][_0x3e8abc[_0x28effd(0x14f)]];continue;case'3':_0x43b0e6[_0x3e8abc['EzlfQ']][_0x3e8abc[_0x28effd(0x164)]]=_0xad5ed1[_0x3e8abc[_0x28effd(0x12c)]][_0x3e8abc[_0x28effd(0x164)]];continue;case'4':_0x43b0e6[_0x3e8abc[_0x28effd(0x13f)]][_0x3e8abc['xVcIf']]=_0xad5ed1[_0x3e8abc['aIPTB']][_0x3e8abc[_0x28effd(0x13d)]];continue;}break;}}),this['hook_data']=[]);if(_0x3e8abc[_0x3272e6(0x170)](this[_0x3272e6(0x136)],_0xeef5e9['type'])){this[_0x3272e6(0x113)]['push'](_0xad5ed1);return;}_0x3e8abc[_0x3272e6(0x106)](this[_0x3272e6(0x136)],_0x3e8abc[_0x3272e6(0x18f)])&&_0xad5ed1[_0x3e8abc[_0x3272e6(0x12c)]]&&(_0xad5ed1[_0x3e8abc[_0x3272e6(0x12c)]][_0x3e8abc[_0x3272e6(0x13d)]]=_0x3e8abc[_0x3272e6(0xef)],_0xad5ed1[_0x3e8abc[_0x3272e6(0x12c)]][_0x3e8abc[_0x3272e6(0x164)]]=null,_0xad5ed1[_0x3e8abc['aIPTB']][_0x3e8abc[_0x3272e6(0x13a)]]=null),_0x3e8abc[_0x3272e6(0xde)](setCurrentTestData,FRAMEWORKS[_0x3272e6(0xf4)],_0xad5ed1),await SessionHandler['uploadEventData'](_0xad5ed1);}catch(_0x5809bd){_0x3e8abc[_0x3272e6(0x146)](debug,_0x3272e6(0x159)+_0x2155f4+_0x3272e6(0x16d)+_0x5809bd);}};[a23_0x34efc4(0x115)](_0x595394){const _0x241b5b=a23_0x34efc4,_0x35a2d5={};_0x35a2d5[_0x241b5b(0xda)]=function(_0x3dbbe8,_0x35049c){return _0x3dbbe8==_0x35049c;},_0x35a2d5[_0x241b5b(0x177)]=function(_0x43734a,_0x1aff10){return _0x43734a===_0x1aff10;},_0x35a2d5[_0x241b5b(0x16b)]=_0x241b5b(0x185),_0x35a2d5[_0x241b5b(0x130)]=_0x241b5b(0x17d);const _0x259aff=_0x35a2d5,_0x4536c2=path[_0x241b5b(0x169)];if(_0x259aff['EEEfX'](_0x595394,null)||_0x259aff[_0x241b5b(0x177)](_0x595394,'')||_0x259aff[_0x241b5b(0x177)](_0x595394,_0x4536c2)||_0x259aff[_0x241b5b(0x177)](_0x595394,path[_0x241b5b(0xe0)](_0x595394)))return null;try{return fs[_0x241b5b(0x127)](path[_0x241b5b(0x188)](_0x595394,_0x259aff[_0x241b5b(0x16b)],_0x259aff[_0x241b5b(0x130)])),_0x595394;}catch(_0x335412){const _0x364340=path[_0x241b5b(0xe0)](_0x595394);return this[_0x241b5b(0x115)](_0x364340);}}[a23_0x34efc4(0x155)]=async _0x1fc64a=>{const _0x2924d4=a23_0x34efc4,_0xedfe6={'DFgPC':_0x2924d4(0xd8),'EfjfI':function(_0x43702d,_0x5d3d48){return _0x43702d(_0x5d3d48);}},_0x3fd807=TestDetails[_0x2924d4(0x18e)](process[_0x2924d4(0xd4)]+':hookAnalyticsId'),_0x51f5b5=TestDetails[_0x2924d4(0x18e)](process[_0x2924d4(0xd4)]+_0x2924d4(0x192));try{(_0x3fd807||this[_0x2924d4(0x173)]&&!this[_0x2924d4(0x173)][_0x2924d4(0x166)])&&(_0x1fc64a[_0x2924d4(0x156)]=_0x3fd807);!_0x1fc64a['hook_run_uuid']&&_0x51f5b5&&(_0x1fc64a['test_run_uuid']=_0x51f5b5);if(_0x1fc64a[_0x2924d4(0x156)]||_0x1fc64a['test_run_uuid']){const _0x35840f={};_0x35840f[_0x2924d4(0x194)]=_0xedfe6[_0x2924d4(0x15b)],_0x35840f[_0x2924d4(0x151)]=[_0x1fc64a],await SessionHandler['uploadEventData'](_0x35840f);}}catch(_0x3b822a){_0xedfe6['EfjfI'](debug,_0x2924d4(0xf7)+_0x3b822a);}};[a23_0x34efc4(0x153)]=async _0x225e65=>{const _0x3017ed=a23_0x34efc4,_0x5c642e={'SewFv':'http_response','oVeKz':'CBTSessionCreated','sRYvW':function(_0x475ae3,_0x42081b){return _0x475ae3(_0x42081b);}};try{const _0x460502={'uuid':_0x225e65[_0x3017ed(0x14e)]||TestDetails[_0x3017ed(0x18e)](process[_0x3017ed(0xd4)]+_0x3017ed(0x192)),'integrations':_0x225e65[_0x5c642e['SewFv']]},_0x21a8e6={};_0x21a8e6[_0x3017ed(0x194)]=_0x5c642e['oVeKz'],_0x21a8e6[_0x3017ed(0xf3)]=_0x460502,await SessionHandler[_0x3017ed(0x184)](_0x21a8e6);}catch(_0x227e20){_0x5c642e[_0x3017ed(0x121)](debug,_0x3017ed(0x120)+_0x227e20);}};async['configureGit'](){const _0x334cd4=a23_0x34efc4,_0x63ceae={'PaHKm':function(_0x4f7e59){return _0x4f7e59();}};if(this[_0x334cd4(0x13c)])return this[_0x334cd4(0x12a)];const _0xd8a63a=await _0x63ceae[_0x334cd4(0xfe)](getGitMetaData);_0xd8a63a&&(this[_0x334cd4(0x12a)]=_0xd8a63a[_0x334cd4(0x152)]),this[_0x334cd4(0x13c)]=!![];}[a23_0x34efc4(0x17f)](_0x1cec5e){const _0x3ac52c=a23_0x34efc4,_0x5412a0={};_0x5412a0['WzytX']=_0x3ac52c(0xfb),_0x5412a0['DwokP']='pending',_0x5412a0[_0x3ac52c(0x12b)]=_0x3ac52c(0xed);const _0xb56325=_0x5412a0,_0x5cc17c={};return _0x5cc17c[STATE_PASSED]=_0xb56325[_0x3ac52c(0x161)],_0x5cc17c[STATE_PENDING]=_0xb56325['DwokP'],_0x5cc17c[STATE_FAILED]=_0xb56325[_0x3ac52c(0x12b)],_0x5cc17c[_0x1cec5e];}['getHierarchy'](_0x4c44a5){const _0x18691c=a23_0x34efc4,_0x3e6019={};_0x3e6019['qoNjk']=function(_0x4592b8,_0x3fc1bb){return _0x4592b8!==_0x3fc1bb;},_0x3e6019[_0x18691c(0x126)]=_0x18691c(0x13b);const _0x4dc02f=_0x3e6019,_0x3ee1e7=[];if(_0x4c44a5&&_0x4c44a5[_0x18691c(0x118)]){let _0x1979c7=_0x4c44a5[_0x18691c(0x118)];while(_0x1979c7&&_0x4dc02f['qoNjk'](_0x1979c7[_0x18691c(0xe4)],'')&&_0x4dc02f[_0x18691c(0xd7)](_0x1979c7[_0x18691c(0xe4)],_0x4dc02f[_0x18691c(0x126)])){_0x3ee1e7[_0x18691c(0x102)](_0x1979c7[_0x18691c(0xe4)]),_0x1979c7=_0x1979c7[_0x18691c(0x118)];}}return _0x3ee1e7[_0x18691c(0xd9)](),_0x3ee1e7;}[a23_0x34efc4(0xee)]=_0x13684f=>{const _0x19bc7d=a23_0x34efc4;if(_0x13684f[_0x19bc7d(0x12e)]){const _0x4ed0bc=stackTrace['parse'][_0x19bc7d(0xf9)](stackTrace,_0x13684f[_0x19bc7d(0x12e)]);return _0x4ed0bc[0x0][_0x19bc7d(0x119)]();}if(_0x13684f[_0x19bc7d(0x10e)])return _0x13684f[_0x19bc7d(0x10e)];return null;};[a23_0x34efc4(0x14c)]=_0xd95a26=>{const _0x5aa133=a23_0x34efc4;if(!_0xd95a26||!_0xd95a26[_0x5aa133(0x118)])return;_0xd95a26[_0x5aa133(0x118)][_0x5aa133(0xff)][_0x5aa133(0xe1)](_0x2a8a3f=>{const _0x4b5554=_0x5aa133;!_0x2a8a3f[_0x4b5554(0x168)]&&(_0x2a8a3f[_0x4b5554(0x168)]=TestDetails[_0x4b5554(0x10a)](process[_0x4b5554(0xd4)]+_0x4b5554(0x171)));}),this[_0x5aa133(0x14c)](_0xd95a26['parent']);};[a23_0x34efc4(0x18b)]=_0x4835cb=>{const _0x39a376=a23_0x34efc4,_0x2bc9fc={};_0x2bc9fc['qGAmn']=_0x39a376(0x163),_0x2bc9fc[_0x39a376(0x181)]=_0x39a376(0xe2);const _0x5a0c20=_0x2bc9fc;if(!_0x4835cb||!_0x4835cb['parent'])return;_0x4835cb[_0x39a376(0x118)]['hooks'][_0x39a376(0xe1)](_0x392c34=>{const _0x1a1f0d=_0x39a376;[_0x5a0c20[_0x1a1f0d(0x189)],_0x5a0c20[_0x1a1f0d(0x181)]]['includes'](_0x392c34[_0x1a1f0d(0xf8)])&&_0x392c34[_0x1a1f0d(0x168)]&&(_0x392c34[_0x1a1f0d(0x168)]=null);}),this['mapTestHooks'](_0x4835cb[_0x39a376(0x118)]);};[a23_0x34efc4(0x142)](_0x859948){const _0x556bc6=a23_0x34efc4,_0x184447={'lNHSu':_0x556bc6(0x165),'VuJBu':function(_0x6fc1c0,_0x3b207e){return _0x6fc1c0(_0x3b207e);},'XLavG':function(_0x944a1,_0xb2c233){return _0x944a1+_0xb2c233;},'uzYLA':'Exception\x20in\x20getting\x20file\x20for\x20hook\x20'};try{const _0x11a92d=this[_0x556bc6(0xee)](_0x859948);return _0x11a92d[_0x556bc6(0x150)](_0x184447['lNHSu']);}catch(_0x96c43d){_0x184447['VuJBu'](debug,_0x184447[_0x556bc6(0x13e)](_0x184447[_0x556bc6(0x145)],_0x96c43d));}return![];}['getHooksForTest']=_0x45a2d1=>{const _0x261c2d=a23_0x34efc4,_0x4fcd11={'nDUkj':function(_0x498ab7,_0x5404ff){return _0x498ab7(_0x5404ff);}};if(!_0x45a2d1||!_0x45a2d1[_0x261c2d(0x118)])return[];const _0x1f78e6=[];return _0x45a2d1[_0x261c2d(0x118)][_0x261c2d(0xff)]['forEach'](_0x23ff72=>{const _0x3d414d=_0x261c2d;_0x23ff72[_0x3d414d(0x168)]&&!_0x4fcd11[_0x3d414d(0xd3)](isInternalHook,_0x23ff72['fn'])&&!this[_0x3d414d(0x142)](_0x23ff72)&&_0x1f78e6['push'](_0x23ff72[_0x3d414d(0x168)]);}),[..._0x1f78e6,...this[_0x261c2d(0xdc)](_0x45a2d1[_0x261c2d(0x118)])];};},[a23_0x34efc4(0x17e),a23_0x34efc4(0x18c),a23_0x34efc4(0xd2),a23_0x34efc4(0x10b),a23_0x34efc4(0x135),a23_0x34efc4(0x115),a23_0x34efc4(0x155),a23_0x34efc4(0x153),a23_0x34efc4(0x17f),a23_0x34efc4(0x124),a23_0x34efc4(0xee),a23_0x34efc4(0x14c),a23_0x34efc4(0x18b),a23_0x34efc4(0xdc),a23_0x34efc4(0xdf)],a23_0x34efc4(0xe7));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a24_0x154ff2=a24_0x288e;function a24_0x2a08(){const _0x441b03=['toString','testData.json','8ADAiAU','JdKJt','getTestRunIdFromTestInfo','130XwAIFD','tests','nalSS','stringify','uuid','egyLG','exports','path','.browserstack','mjIGi','writeFileSync','794032WGKgkt','mkdirSync','wuMMf','1486266ddpZRh','shutdown','join','1165761YGUHqc','ENV_VAR','setTestData','2131062zneXGw','oZycA','1829432kbshnm','../../../helpers/testhub/constants','5EmZceQ','6550784joKCga','recursive','readFileSync','retry','HpfHM','3gtfQdm','setTestUUID','11311041tQuIBX','.json','unlinkSync','homedir','getTestUUID','removeTestUUID','existsSync','../../../helpers/helper','BROWSERSTACK_TESTHUB_UUID','dirPath','parse','getFilePath'];a24_0x2a08=function(){return _0x441b03;};return a24_0x2a08();}(function(_0x339485,_0x1b06f8){const _0x746b4d=a24_0x288e,_0x2956fb=_0x339485();while(!![]){try{const _0x5ea7e4=-parseInt(_0x746b4d(0x19a))/0x1+parseInt(_0x746b4d(0x197))/0x2+parseInt(_0x746b4d(0x1aa))/0x3*(parseInt(_0x746b4d(0x1a5))/0x4)+parseInt(_0x746b4d(0x1a4))/0x5*(-parseInt(_0x746b4d(0x1a0))/0x6)+-parseInt(_0x746b4d(0x1ac))/0x7+parseInt(_0x746b4d(0x189))/0x8*(parseInt(_0x746b4d(0x19d))/0x9)+-parseInt(_0x746b4d(0x18c))/0xa*(-parseInt(_0x746b4d(0x1a2))/0xb);if(_0x5ea7e4===_0x1b06f8)break;else _0x2956fb['push'](_0x2956fb['shift']());}catch(_0x573fe8){_0x2956fb['push'](_0x2956fb['shift']());}}}(a24_0x2a08,0xd427f));const fs=require('fs'),path=require(a24_0x154ff2(0x193)),{v4:uuidv4}=require(a24_0x154ff2(0x190)),helper=require(a24_0x154ff2(0x1b3)),testHubConstants=require(a24_0x154ff2(0x1a3));class TestDetails{static [a24_0x154ff2(0x18d)]={};static [a24_0x154ff2(0x1b5)]=path[a24_0x154ff2(0x19c)](helper[a24_0x154ff2(0x1af)](),a24_0x154ff2(0x194),'jest-o11y-'+process['env'][testHubConstants[a24_0x154ff2(0x19e)][a24_0x154ff2(0x1b4)]]);static['setup'](){const _0x475e97=a24_0x154ff2,_0x1451e3={};_0x1451e3[_0x475e97(0x199)]=_0x475e97(0x194);const _0x38ab4a=_0x1451e3;this['dirPath']=path[_0x475e97(0x19c)](helper['homedir'](),_0x38ab4a['wuMMf'],'jest-o11y-'+process['env'][testHubConstants[_0x475e97(0x19e)][_0x475e97(0x1b4)]]),this[_0x475e97(0x19b)]();const _0x4799d2={};_0x4799d2['recursive']=!![],fs[_0x475e97(0x198)](this[_0x475e97(0x1b5)],_0x4799d2);}static[a24_0x154ff2(0x186)](_0x484bf4){const _0x48f548=a24_0x154ff2,_0x108cee={};_0x108cee[_0x48f548(0x195)]=function(_0xeaaeea,_0x5912a8){return _0xeaaeea+_0x5912a8;},_0x108cee['QsIkf']=_0x48f548(0x1ad);const _0x177caf=_0x108cee;return path['join'](this[_0x48f548(0x1b5)],_0x177caf['mjIGi'](_0x484bf4,_0x177caf['QsIkf']));}static[a24_0x154ff2(0x18b)](_0x1aff95){const _0x302ab8=a24_0x154ff2,_0x151a6c={};_0x151a6c['cyMdv']=function(_0x1b200a,_0x28679a){return _0x1b200a+_0x28679a;},_0x151a6c['egyLG']=function(_0xc55707,_0x403dcd){return _0xc55707+_0x403dcd;},_0x151a6c[_0x302ab8(0x1a1)]=function(_0x2fc361,_0x29952c){return _0x2fc361+_0x29952c;};const _0x5a8600=_0x151a6c;return _0x5a8600['cyMdv'](_0x5a8600[_0x302ab8(0x191)](_0x5a8600[_0x302ab8(0x1a1)](_0x5a8600[_0x302ab8(0x191)](_0x1aff95['_test']['_projectId'],'-'),_0x1aff95['_test']['id']),'-'),_0x1aff95[_0x302ab8(0x1a8)]);}static[a24_0x154ff2(0x1b0)](_0x109dd5){const _0x414a5c=a24_0x154ff2,_0x3fe709=this['getFilePath'](_0x109dd5);if(fs['existsSync'](_0x3fe709)){const _0x42758f=JSON['parse'](fs[_0x414a5c(0x1a7)](_0x3fe709)[_0x414a5c(0x187)]());return this[_0x414a5c(0x18d)][_0x109dd5]=_0x42758f,this[_0x414a5c(0x18d)][_0x109dd5][_0x414a5c(0x190)];}}static[a24_0x154ff2(0x19f)](_0x469d3f){const _0x45c623=a24_0x154ff2,_0x32caf6={};_0x32caf6[_0x45c623(0x1a9)]=_0x45c623(0x188);const _0x286368=_0x32caf6,_0x104ec6=path['join'](this[_0x45c623(0x1b5)],_0x286368[_0x45c623(0x1a9)]);fs[_0x45c623(0x196)](_0x104ec6,JSON[_0x45c623(0x18f)](_0x469d3f));}static['getTestData'](){const _0x10eaaf=a24_0x154ff2,_0x192a7a={};_0x192a7a[_0x10eaaf(0x18a)]=_0x10eaaf(0x188);const _0x37b19b=_0x192a7a,_0x3969ea=path[_0x10eaaf(0x19c)](this[_0x10eaaf(0x1b5)],_0x37b19b['JdKJt']);let _0x55c62c={};try{return _0x3969ea&&fs[_0x10eaaf(0x1b2)](_0x3969ea)&&(_0x55c62c=JSON[_0x10eaaf(0x185)](fs[_0x10eaaf(0x1a7)](_0x3969ea)['toString']())),_0x55c62c;}catch(_0x2273e7){return _0x55c62c;}}static[a24_0x154ff2(0x1ab)](_0x5d51c0){const _0x4e6891=a24_0x154ff2,_0x1b1f80={'nalSS':function(_0x232da0){return _0x232da0();}},_0x58ab9c=this['getFilePath'](_0x5d51c0);return this['tests'][_0x5d51c0]={'uuid':_0x1b1f80[_0x4e6891(0x18e)](uuidv4)},fs[_0x4e6891(0x196)](_0x58ab9c,JSON['stringify'](this[_0x4e6891(0x18d)][_0x5d51c0])),this[_0x4e6891(0x18d)][_0x5d51c0]['uuid'];}static[a24_0x154ff2(0x1b1)](_0x3e7fc0){const _0xd43c80=a24_0x154ff2,_0x1b6d00=this['getFilePath'](_0x3e7fc0);_0x1b6d00&&(fs[_0xd43c80(0x1b2)](_0x1b6d00)&&fs[_0xd43c80(0x1ae)](_0x1b6d00));}static[a24_0x154ff2(0x19b)](){const _0x14fb49=a24_0x154ff2,_0x12cb08={};_0x12cb08[_0x14fb49(0x1a6)]=!![],_0x12cb08['force']=!![],fs['rmSync'](this['dirPath'],_0x12cb08);}}function a24_0x288e(_0x3e27cb,_0x39257f){const _0x2a08a2=a24_0x2a08();return a24_0x288e=function(_0x288e78,_0x3579b2){_0x288e78=_0x288e78-0x185;let _0x294178=_0x2a08a2[_0x288e78];return _0x294178;},a24_0x288e(_0x3e27cb,_0x39257f);}module[a24_0x154ff2(0x192)]=TestDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a25_0x4d3f53=a25_0xcc64;function a25_0x5b6b(){const _0x354d6e=['52088zvZNbA','4254uGArxO','3417870aMlZwk','selenium-webdriver','keys','__webdriver','5383ogVxcy','1978464LzWOvO','14XWbljK','7430445iuEjGv','6913312SpJSHk','10rfxAQv','905889IQLSQK','../../helpers/setKeepAlive','../../helpers/helper'];a25_0x5b6b=function(){return _0x354d6e;};return a25_0x5b6b();}(function(_0x4aadd5,_0x5c3756){const _0xc45d69=a25_0xcc64,_0x88b550=_0x4aadd5();while(!![]){try{const _0x25664f=-parseInt(_0xc45d69(0x121))/0x1*(-parseInt(_0xc45d69(0x11a))/0x2)+-parseInt(_0xc45d69(0x11e))/0x3+parseInt(_0xc45d69(0x119))/0x4+-parseInt(_0xc45d69(0x123))/0x5+parseInt(_0xc45d69(0x122))/0x6*(parseInt(_0xc45d69(0x118))/0x7)+parseInt(_0xc45d69(0x11c))/0x8+-parseInt(_0xc45d69(0x11b))/0x9*(parseInt(_0xc45d69(0x11d))/0xa);if(_0x25664f===_0x5c3756)break;else _0x88b550['push'](_0x88b550['shift']());}catch(_0x364598){_0x88b550['push'](_0x88b550['shift']());}}}(a25_0x5b6b,0x6fb03));function a25_0xcc64(_0xa990be,_0x577054){const _0x5b6bb9=a25_0x5b6b();return a25_0xcc64=function(_0xcc64cc,_0x25329c){_0xcc64cc=_0xcc64cc-0x117;let _0x400600=_0x5b6bb9[_0xcc64cc];return _0x400600;},a25_0xcc64(_0xa990be,_0x577054);}const {requireModule}=require(a25_0x4d3f53(0x120));require(a25_0x4d3f53(0x11f))();const __wd__=requireModule(a25_0x4d3f53(0x124));for(const key of Object[a25_0x4d3f53(0x125)](global[a25_0x4d3f53(0x117)])){__wd__[key]=global[a25_0x4d3f53(0x117)][key];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a26_0x1b5de2=a26_0x52a9;function a26_0x52a9(_0x45bd5a,_0xd35c7){const _0x1dcd17=a26_0x1dcd();return a26_0x52a9=function(_0x52a975,_0x2ca4cf){_0x52a975=_0x52a975-0x1e4;let _0x9b9f14=_0x1dcd17[_0x52a975];return _0x9b9f14;},a26_0x52a9(_0x45bd5a,_0xd35c7);}(function(_0x3dc1f2,_0x1c7239){const _0x12b193=a26_0x52a9,_0x4e8896=_0x3dc1f2();while(!![]){try{const _0x18f609=-parseInt(_0x12b193(0x1e8))/0x1*(parseInt(_0x12b193(0x1e6))/0x2)+-parseInt(_0x12b193(0x203))/0x3+-parseInt(_0x12b193(0x1f3))/0x4*(-parseInt(_0x12b193(0x1ec))/0x5)+parseInt(_0x12b193(0x1fa))/0x6+-parseInt(_0x12b193(0x1ff))/0x7+parseInt(_0x12b193(0x1f5))/0x8+-parseInt(_0x12b193(0x207))/0x9;if(_0x18f609===_0x1c7239)break;else _0x4e8896['push'](_0x4e8896['shift']());}catch(_0x459ca9){_0x4e8896['push'](_0x4e8896['shift']());}}}(a26_0x1dcd,0x1b456));function a26_0x1dcd(){const _0x2d6aa3=['_capability','4xxnLPw','_framework','901024pbVLpp','../../helpers/performance/constants','_testObservability','__platform__','../../helpers/performance/performance-tester','1324056rbMLPh','testsErrorMessage','platform','EVENTS','platformCaps','53025piHDxu','resolvePaths','setConfig','HaLxh','580389hxZEaT','testsAmbiguous','rFCKq','formatter','549738JNVkST','testSuitesFailed','setFramework','../v2/browserstackCLI','__platformCaps','path','_configuration','testSuites','2rbONdO','../utils/constants','102047wdNcRa','testsPassed','testsFailed','../../helpers/helper','712825jmsmEO','split','includes','../../helpers/test-observability/requestQueueHandler','_mochaOpts','testsUnknown'];a26_0x1dcd=function(){return _0x2d6aa3;};return a26_0x1dcd();}const path=require(a26_0x1b5de2(0x20c)),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a26_0x1b5de2(0x1eb)),constants=require(a26_0x1b5de2(0x1e7)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),RequestQueueHandler=require(a26_0x1b5de2(0x1ef)),{isTestObservabilitySession}=require('../../helpers/test-observability/utils'),helper=require('../../helpers/helper'),PerformanceTester=require(a26_0x1b5de2(0x1f9)),PerformanceEvents=require(a26_0x1b5de2(0x1f6))[a26_0x1b5de2(0x1fd)],{commandRepository}=require('../../helpers/ai-sdk/autoHealHelper'),BrowserstackCLI=require(a26_0x1b5de2(0x20a));class Launcher{constructor(_0x5e2719,_0xf23db6,_0x4a881,_0x5b840a=[]){const _0x5f303a=a26_0x1b5de2,_0x4f6888={'rFCKq':'8|1|0|14|22|12|13|11|6|20|18|16|23|7|9|10|5|3|17|2|15|21|19|4','HaLxh':function(_0xe8c649){return _0xe8c649();}},_0x3913e4=_0x4f6888[_0x5f303a(0x205)][_0x5f303a(0x1ed)]('|');let _0x10b1ad=0x0;while(!![]){switch(_0x3913e4[_0x10b1ad++]){case'0':this['_configuration']['framework']=_0x5e2719;continue;case'1':this[_0x5f303a(0x1e4)]=_0xf23db6['configuration']||{};continue;case'2':global['testsUndefined']=0x0;continue;case'3':global['testsSkipped']=0x0;continue;case'4':!constants['AI_ENABLED_FRAMEWORK'][_0x5f303a(0x1ee)](_0x5e2719)&&(commandRepository[_0x5f303a(0x201)](_0x4a881),commandRepository[_0x5f303a(0x209)](_0x5e2719));continue;case'5':global['testsPending']=0x0;continue;case'6':this['_bsConfig']=_0x4a881;continue;case'7':global['totalTests']=0x0;continue;case'8':this[_0x5f303a(0x1f4)]=_0x5e2719;continue;case'9':global[_0x5f303a(0x1e9)]=0x0;continue;case'10':global[_0x5f303a(0x1ea)]=0x0;continue;case'11':this['_argv']=_0x5b840a;continue;case'12':this[_0x5f303a(0x1f2)]=this['_configuration']['capability'];continue;case'13':global[_0x5f303a(0x1f8)]=this['_configuration'][_0x5f303a(0x1fc)];continue;case'14':this[_0x5f303a(0x1f0)]=_0xf23db6['mochaOpts'];continue;case'15':global[_0x5f303a(0x1f1)]=0x0;continue;case'16':global[_0x5f303a(0x20b)]=this[_0x5f303a(0x1e4)][_0x5f303a(0x1fe)]||{};continue;case'17':global[_0x5f303a(0x208)]=0x0;continue;case'18':this['_accessibilityAutomation']=_0x4f6888['HaLxh'](isAccessibilityAutomationSession);continue;case'19':global[_0x5f303a(0x1fb)]={};continue;case'20':this[_0x5f303a(0x1f7)]=_0x4f6888[_0x5f303a(0x202)](isTestObservabilitySession);continue;case'21':global[_0x5f303a(0x204)]=0x0;continue;case'22':this['_formatter']=_0xf23db6[_0x5f303a(0x206)];continue;case'23':global[_0x5f303a(0x1e5)]=0x0;continue;}break;}}['setupCucumber'](_0xa1258a,_0x1026a9,_0x128508){const _0x3261f7=a26_0x1b5de2,_0x282315=_0xa1258a[_0x3261f7(0x200)];_0xa1258a.resolvePaths=async function(){const pathResults=await _0x282315.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x128508));return pathResults;},_0x1026a9.push('--format'),_0x1026a9.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));}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;argv.push('--format');argv.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));}catch(e){ConfigurationBuilder=requireModule('cucumber/lib/cli/configuration_builder.js','cucumber').default;argv.push('--format');argv.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter_old_versions.js'));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
|
+
const a26_0x5e692e=a26_0x1769;(function(_0x3bf302,_0x57fc49){const _0x382f4d=a26_0x1769,_0x1b6677=_0x3bf302();while(!![]){try{const _0x2b29c2=-parseInt(_0x382f4d(0xf8))/0x1*(-parseInt(_0x382f4d(0xe1))/0x2)+-parseInt(_0x382f4d(0x108))/0x3*(-parseInt(_0x382f4d(0xee))/0x4)+-parseInt(_0x382f4d(0xf5))/0x5*(-parseInt(_0x382f4d(0xed))/0x6)+-parseInt(_0x382f4d(0xe4))/0x7*(parseInt(_0x382f4d(0xf2))/0x8)+-parseInt(_0x382f4d(0xff))/0x9+-parseInt(_0x382f4d(0x105))/0xa+-parseInt(_0x382f4d(0xdf))/0xb;if(_0x2b29c2===_0x57fc49)break;else _0x1b6677['push'](_0x1b6677['shift']());}catch(_0xbb4a8a){_0x1b6677['push'](_0x1b6677['shift']());}}}(a26_0x8c0a,0x1de6d));function a26_0x8c0a(){const _0x3d654f=['../../helpers/performance/constants','../../helpers/accessibility-automation/helper','testSuitesFailed','__platformCaps','testSuites','445126LIWlfB','testsPending','422JJccHs','ZkEky','../../helpers/test-observability/requestQueueHandler','7NvcIqO','testsFailed','_bsConfig','_testObservability','_capability','resolvePaths','testsAmbiguous','platformCaps','../../helpers/test-observability/utils','30ybEkgE','344uWZilK','../../helpers/performance/performance-tester','setConfig','BtaIv','76696qtheTb','testsSkipped','capability','86195NPnhJT','../../helpers/helper','../utils/constants','811pZalDA','testsErrorMessage','setFramework','totalTests','_framework','_argv','testsUndefined','864279ebtjVz','AI_ENABLED_FRAMEWORK','configuration','includes','__platform__','testsPassed','1661730oKGybj','testsUnknown','_configuration','6189sofrry'];a26_0x8c0a=function(){return _0x3d654f;};return a26_0x8c0a();}const path=require('path'),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a26_0x5e692e(0xf6)),constants=require(a26_0x5e692e(0xf7)),{isAccessibilityAutomationSession}=require(a26_0x5e692e(0xdb)),RequestQueueHandler=require(a26_0x5e692e(0xe3)),{isTestObservabilitySession}=require(a26_0x5e692e(0xec)),helper=require(a26_0x5e692e(0xf6)),PerformanceTester=require(a26_0x5e692e(0xef)),PerformanceEvents=require(a26_0x5e692e(0xda))['EVENTS'],{commandRepository}=require('../../helpers/ai-sdk/autoHealHelper'),BrowserstackCLI=require('../v2/browserstackCLI');class Launcher{constructor(_0x318ef6,_0xc174a3,_0x50b8d1,_0x3f9e34=[]){const _0x4b5843=a26_0x5e692e,_0x3fe707={'BtaIv':'4|5|11|8|19|17|0|16|18|7|15|20|3|6|1|10|9|12|2|14|13|22|23|21','xFaQV':function(_0x24a5ff){return _0x24a5ff();},'ZkEky':function(_0x5baf3c){return _0x5baf3c();}},_0x42fd3b=_0x3fe707[_0x4b5843(0xf1)]['split']('|');let _0x449c73=0x0;while(!![]){switch(_0x42fd3b[_0x449c73++]){case'0':global[_0x4b5843(0x103)]=this[_0x4b5843(0x107)]['platform'];continue;case'1':global[_0x4b5843(0x104)]=0x0;continue;case'2':global[_0x4b5843(0xdc)]=0x0;continue;case'3':global[_0x4b5843(0xde)]=0x0;continue;case'4':this[_0x4b5843(0xfc)]=_0x318ef6;continue;case'5':this[_0x4b5843(0x107)]=_0xc174a3[_0x4b5843(0x101)]||{};continue;case'6':global[_0x4b5843(0xfb)]=0x0;continue;case'7':this[_0x4b5843(0xe7)]=_0x3fe707['xFaQV'](isTestObservabilitySession);continue;case'8':this['_mochaOpts']=_0xc174a3['mochaOpts'];continue;case'9':global[_0x4b5843(0xe0)]=0x0;continue;case'10':global[_0x4b5843(0xe5)]=0x0;continue;case'11':this[_0x4b5843(0x107)]['framework']=_0x318ef6;continue;case'12':global[_0x4b5843(0xf3)]=0x0;continue;case'13':global[_0x4b5843(0x106)]=0x0;continue;case'14':global[_0x4b5843(0xfe)]=0x0;continue;case'15':this['_accessibilityAutomation']=_0x3fe707[_0x4b5843(0xe2)](isAccessibilityAutomationSession);continue;case'16':this[_0x4b5843(0xfd)]=_0x3f9e34;continue;case'17':this[_0x4b5843(0xe8)]=this[_0x4b5843(0x107)][_0x4b5843(0xf4)];continue;case'18':this[_0x4b5843(0xe6)]=_0x50b8d1;continue;case'19':this['_formatter']=_0xc174a3['formatter'];continue;case'20':global[_0x4b5843(0xdd)]=this[_0x4b5843(0x107)][_0x4b5843(0xeb)]||{};continue;case'21':!constants[_0x4b5843(0x100)][_0x4b5843(0x102)](_0x318ef6)&&(commandRepository[_0x4b5843(0xf0)](_0x50b8d1),commandRepository[_0x4b5843(0xfa)](_0x318ef6));continue;case'22':global[_0x4b5843(0xea)]=0x0;continue;case'23':global[_0x4b5843(0xf9)]={};continue;}break;}}['setupCucumber'](_0x12394f,_0x4f146b,_0x1bc798){const _0x1a7163=a26_0x5e692e,_0x10c592=_0x12394f[_0x1a7163(0xe9)];_0x12394f.resolvePaths=async function(){const pathResults=await _0x10c592.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x1bc798));return pathResults;},_0x4f146b.push('--format'),_0x4f146b.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));}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;argv.push('--format');argv.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));}catch(e){ConfigurationBuilder=requireModule('cucumber/lib/cli/configuration_builder.js','cucumber').default;argv.push('--format');argv.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter_old_versions.js'));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();}});}}function a26_0x1769(_0x188275,_0x44caa6){const _0x8c0a69=a26_0x8c0a();return a26_0x1769=function(_0x1769b9,_0x2f34fc){_0x1769b9=_0x1769b9-0xda;let _0x34cd2a=_0x8c0a69[_0x1769b9];return _0x34cd2a;},a26_0x1769(_0x188275,_0x44caa6);}module.exports=Launcher;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';const a27_0x346793=a27_0x1899;(function(_0x3a1b0b,_0x7cbc05){const _0x127d83=a27_0x1899,_0x16728c=_0x3a1b0b();while(!![]){try{const _0x5f3aae=-parseInt(_0x127d83(0x107))/0x1*(parseInt(_0x127d83(0xe1))/0x2)+parseInt(_0x127d83(0xe0))/0x3+parseInt(_0x127d83(0x108))/0x4*(-parseInt(_0x127d83(0xde))/0x5)+parseInt(_0x127d83(0x10c))/0x6*(-parseInt(_0x127d83(0x11a))/0x7)+parseInt(_0x127d83(0x104))/0x8*(-parseInt(_0x127d83(0xe9))/0x9)+parseInt(_0x127d83(0xed))/0xa+parseInt(_0x127d83(0x121))/0xb;if(_0x5f3aae===_0x7cbc05)break;else _0x16728c['push'](_0x16728c['shift']());}catch(_0x55a42c){_0x16728c['push'](_0x16728c['shift']());}}}(a27_0x1912,0x4e928));function a27_0x1912(){const _0x3217ee=['forEach','Configuration\x20loaded\x20successfully','./loadUtils','accessKey','No\x20configuration\x20file\x20found,\x20using\x20environment\x20variables\x20if\x20available.','yRClk','slice','utaWf','fEGbL','BROWSERSTACK_ACCESSKEY','child_process','../../helpers/helper','1446968pujVyx','Loading\x20configuration...','SIGINT','47487myFRSJ','2648uzREaT','Spawning:\x20','sAULy','Configuration\x20path:','1861668pFyyge','SIGHUP','wFoPE','env','killed','Waiting\x20for\x20child\x20process\x20to\x20exit...','RjYgR','qsPXz','SIGQUIT','pEbHP','username','winstonLogger','YbZVi','NmRTN','7lqnkcG','path','gusNc','Received\x20','Failed\x20to\x20determine\x20CLI\x20directory','checkAndUpdateCli','debug','15499825uWkJAQ','OpGwu','getCliDir','exports','readConfig','1990zAjsJI','exit','1190397RPZDrG','22hOspQj','iclIm','CLI\x20binary\x20found,\x20Checking\x20for\x20CLI\x20updates','sMGYy','\x20load\x20','BROWSERSTACK_ACCESS_KEY','\x20exited\x20with\x20code\x20','xNXNb','27nlbeRp','kill','NZwVh','includes','1546820dQKNje','SIGTERM','close','error','argv','Executing\x20load\x20test\x20with\x20arguments:','CLI\x20binary\x20not\x20found,\x20downloading\x20latest\x20version',',\x20forwarding\x20to\x20child\x20process...','Error\x20loading\x20configuration:','join','../../helpers/logger'];a27_0x1912=function(){return _0x3217ee;};return a27_0x1912();}const {spawn}=require(a27_0x346793(0x102)),path=require(a27_0x346793(0x11b)),helper=require(a27_0x346793(0x103)),logger=require(a27_0x346793(0xf7))[a27_0x346793(0x117)],CLIUtils=require('../v2/cliUtils'),{getLoadConfigPath}=require(a27_0x346793(0xfa));function a27_0x1899(_0x420b1d,_0x155e0d){const _0x191216=a27_0x1912();return a27_0x1899=function(_0x1899d0,_0x24972d){_0x1899d0=_0x1899d0-0xde;let _0xd0c817=_0x191216[_0x1899d0];return _0xd0c817;},a27_0x1899(_0x420b1d,_0x155e0d);}async function executeLoadTest(_0x332d68){const _0x4e2229=a27_0x346793,_0x5357e0={'sAULy':function(_0x29bc0a,_0xfa400a){return _0x29bc0a(_0xfa400a);},'NmRTN':_0x4e2229(0xef),'xNXNb':_0x4e2229(0x111),'gusNc':_0x4e2229(0xf2),'JNfME':'--help','yRClk':_0x4e2229(0x105),'utaWf':_0x4e2229(0x10b),'sMGYy':_0x4e2229(0xfc),'HVdgM':_0x4e2229(0xf9),'DGgFN':_0x4e2229(0xf5),'qsPXz':_0x4e2229(0x11e),'NZwVh':_0x4e2229(0xf3),'OpGwu':_0x4e2229(0xe3),'iclIm':'Failed\x20to\x20download\x20or\x20locate\x20CLI\x20binary','pEbHP':function(_0xfd241d,_0x738333,_0x1cc60b,_0x3ee96d){return _0xfd241d(_0x738333,_0x1cc60b,_0x3ee96d);},'wFoPE':'load','fEGbL':'inherit','YbZVi':_0x4e2229(0x106),'ADDKc':_0x4e2229(0xee),'YqqiK':_0x4e2229(0x114),'jfLTo':_0x4e2229(0x10d)};try{const _0xc9b85c=process[_0x4e2229(0xf1)][_0x4e2229(0xfe)](0x2),_0xa9508b=_0xc9b85c[_0x4e2229(0xfe)](0x1);logger[_0x4e2229(0x120)](_0x5357e0[_0x4e2229(0x11c)],_0xa9508b);const _0x2dabed=_0xa9508b[_0x4e2229(0xec)](_0x5357e0['JNfME'])||_0xa9508b['includes']('-h');let _0x37693a={};try{logger[_0x4e2229(0x120)](_0x5357e0[_0x4e2229(0xfd)]);const _0x195818=_0x5357e0[_0x4e2229(0x10a)](getLoadConfigPath,_0x332d68['argv']);logger['debug'](_0x5357e0[_0x4e2229(0xff)],_0x195818);if(_0x195818)_0x37693a=helper[_0x4e2229(0x125)](_0x195818);else{logger[_0x4e2229(0x120)](_0x5357e0[_0x4e2229(0xe4)]);const _0x307eba={};_0x307eba[_0x4e2229(0x116)]=process[_0x4e2229(0x10f)]['BROWSERSTACK_USERNAME']||process[_0x4e2229(0x10f)]['BROWSERSTACK_USER'],_0x307eba[_0x4e2229(0xfb)]=process['env'][_0x4e2229(0xe6)]||process[_0x4e2229(0x10f)][_0x4e2229(0x101)],_0x37693a=_0x307eba;}logger[_0x4e2229(0x120)](_0x5357e0['HVdgM']);}catch(_0x3a33f3){logger[_0x4e2229(0xf0)](_0x5357e0['DGgFN'],_0x3a33f3['message']),process['exit'](0x1);}const _0x5ca18b=CLIUtils[_0x4e2229(0x123)]();!_0x5ca18b&&(logger[_0x4e2229(0xf0)](_0x5357e0[_0x4e2229(0x113)]),process['exit'](0x1));let _0x32b510=CLIUtils['getExistingCliPath'](_0x5ca18b);!_0x32b510?(logger[_0x4e2229(0x120)](_0x5357e0[_0x4e2229(0xeb)]),_0x32b510=await CLIUtils[_0x4e2229(0x11f)]('',_0x5ca18b,_0x37693a)):(logger[_0x4e2229(0x120)](_0x5357e0[_0x4e2229(0x122)]),_0x32b510=await CLIUtils[_0x4e2229(0x11f)](_0x32b510,_0x5ca18b,_0x37693a));!_0x32b510&&(logger['error'](_0x5357e0[_0x4e2229(0xe2)]),process[_0x4e2229(0xdf)](0x1));logger[_0x4e2229(0x120)](_0x4e2229(0x109)+_0x32b510+_0x4e2229(0xe5)+_0xa9508b[_0x4e2229(0xf6)]('\x20'));const _0x426aeb=_0x5357e0[_0x4e2229(0x115)](spawn,_0x32b510,[_0x5357e0[_0x4e2229(0x10e)],..._0xa9508b],{'stdio':_0x5357e0[_0x4e2229(0x100)]});let _0x56aac2=![];const _0x46ec8e=new Promise(_0xab1bc9=>{const _0x209839=_0x4e2229;_0x426aeb['on'](_0x5357e0[_0x209839(0x119)],_0x6426c0=>{const _0x10a866=_0x209839;logger[_0x10a866(0x120)](_0x32b510+_0x10a866(0xe7)+_0x6426c0),_0x5357e0[_0x10a866(0x10a)](_0xab1bc9,_0x6426c0);});});[_0x5357e0[_0x4e2229(0x118)],_0x5357e0['ADDKc'],_0x5357e0['YqqiK'],_0x5357e0['jfLTo']][_0x4e2229(0xf8)](_0xa8aaf6=>{const _0x48afc9=_0x4e2229,_0x11589b={};_0x11589b[_0x48afc9(0x112)]=_0x5357e0[_0x48afc9(0xe8)];const _0x1e62d3=_0x11589b;process['on'](_0xa8aaf6,()=>{const _0x48b767=_0x48afc9;if(_0x56aac2)return;_0x56aac2=!![],logger[_0x48b767(0x120)](_0x48b767(0x11d)+_0xa8aaf6+_0x48b767(0xf4)),_0x426aeb&&!_0x426aeb[_0x48b767(0x110)]&&(_0x426aeb[_0x48b767(0xea)](_0xa8aaf6),logger[_0x48b767(0x120)](_0x1e62d3[_0x48b767(0x112)]));});});const _0x3c2114=await _0x46ec8e;process[_0x4e2229(0xdf)](_0x3c2114);}catch(_0x47d885){logger[_0x4e2229(0xf0)]('Failed\x20initiating\x20load\x20test:\x20'+_0x47d885['message']),process[_0x4e2229(0xdf)](0x1);}}module[a27_0x346793(0x124)]=executeLoadTest;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const {spawn} = require('child_process');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
const helper = require('../../helpers/helper');
|
|
7
|
+
const logger = require('../../helpers/logger').winstonLogger;
|
|
8
|
+
const CLIUtils = require('../v2/cliUtils');
|
|
9
|
+
const {getLoadConfigPath} = require('./loadUtils');
|
|
10
|
+
|
|
11
|
+
async function executeLoadTest(yargs) {
|
|
12
|
+
try {
|
|
13
|
+
const rawArgs = process.argv.slice(2);
|
|
14
|
+
const loadArgs = rawArgs.slice(1);
|
|
15
|
+
|
|
16
|
+
logger.debug('Executing load test with arguments:', loadArgs);
|
|
17
|
+
const isHelpCommand = loadArgs.includes('--help') || loadArgs.includes('-h');
|
|
18
|
+
let config = {};
|
|
19
|
+
|
|
20
|
+
try {
|
|
21
|
+
logger.debug('Loading configuration...');
|
|
22
|
+
|
|
23
|
+
const configPath = getLoadConfigPath(yargs.argv);
|
|
24
|
+
logger.debug('Configuration path:', configPath);
|
|
25
|
+
|
|
26
|
+
if (configPath) {
|
|
27
|
+
config = helper.readConfig(configPath);
|
|
28
|
+
} else {
|
|
29
|
+
logger.debug('No configuration file found, using environment variables if available.');
|
|
30
|
+
config = {
|
|
31
|
+
username: process.env.BROWSERSTACK_USERNAME || process.env.BROWSERSTACK_USER,
|
|
32
|
+
accessKey: process.env.BROWSERSTACK_ACCESS_KEY || process.env.BROWSERSTACK_ACCESSKEY
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
logger.debug('Configuration loaded successfully');
|
|
37
|
+
} catch (error) {
|
|
38
|
+
logger.error('Error loading configuration:', error.message);
|
|
39
|
+
process.exit(1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Get the CLI directory
|
|
43
|
+
const cliDir = CLIUtils.getCliDir();
|
|
44
|
+
if (!cliDir) {
|
|
45
|
+
logger.error('Failed to determine CLI directory');
|
|
46
|
+
process.exit(1);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Check if CLI binary exists
|
|
50
|
+
let binaryPath = CLIUtils.getExistingCliPath(cliDir);
|
|
51
|
+
|
|
52
|
+
// If CLI doesn't exist or needs to be updated, download it
|
|
53
|
+
// Pass config to CLI download/update process
|
|
54
|
+
if (!binaryPath) {
|
|
55
|
+
logger.debug('CLI binary not found, downloading latest version');
|
|
56
|
+
binaryPath = await CLIUtils.checkAndUpdateCli('', cliDir, config);
|
|
57
|
+
} else {
|
|
58
|
+
logger.debug('CLI binary found, Checking for CLI updates');
|
|
59
|
+
binaryPath = await CLIUtils.checkAndUpdateCli(binaryPath, cliDir, config);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (!binaryPath) {
|
|
63
|
+
logger.error('Failed to download or locate CLI binary');
|
|
64
|
+
process.exit(1);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
logger.debug(`Spawning: ${binaryPath} load ${loadArgs.join(' ')}`);
|
|
68
|
+
|
|
69
|
+
// Pass all arguments directly to the CLI binary
|
|
70
|
+
const childProc = spawn(binaryPath, ['load', ...loadArgs], {
|
|
71
|
+
stdio: 'inherit'
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
let isExiting = false;
|
|
75
|
+
|
|
76
|
+
// Promise that resolves when the child process exits
|
|
77
|
+
const childProcessPromise = new Promise((resolve) => {
|
|
78
|
+
childProc.on('close', (code) => {
|
|
79
|
+
logger.debug(`${binaryPath} exited with code ${code}`);
|
|
80
|
+
resolve(code);
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
// Handle signals like SIGINT (Ctrl+C), SIGTERM, etc.
|
|
85
|
+
['SIGINT', 'SIGTERM', 'SIGQUIT', 'SIGHUP'].forEach(signal => {
|
|
86
|
+
process.on(signal, () => {
|
|
87
|
+
if (isExiting) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
isExiting = true;
|
|
91
|
+
|
|
92
|
+
logger.debug(`Received ${signal}, forwarding to child process...`);
|
|
93
|
+
|
|
94
|
+
// Forward the signal to the child process
|
|
95
|
+
if (childProc && !childProc.killed) {
|
|
96
|
+
childProc.kill(signal);
|
|
97
|
+
logger.debug('Waiting for child process to exit...');
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// Wait for the child process to complete
|
|
103
|
+
const exitCode = await childProcessPromise;
|
|
104
|
+
|
|
105
|
+
// Exit with the same code as the child process
|
|
106
|
+
process.exit(exitCode);
|
|
107
|
+
|
|
108
|
+
} catch (error) {
|
|
109
|
+
logger.error(`Failed initiating load test: ${error.message}`);
|
|
110
|
+
process.exit(1);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
module.exports = executeLoadTest;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const logger = require('../../helpers/logger').winstonLogger;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Determines the path of the browserstack-load YAML config.
|
|
9
|
+
* @param {object} argv - The parsed command-line arguments (e.g., yargs.argv).
|
|
10
|
+
* @returns {string|undefined} The resolved config file path, or throws if none found.
|
|
11
|
+
*/
|
|
12
|
+
function getLoadConfigPath(argv) {
|
|
13
|
+
const cliArgs = argv._ || [];
|
|
14
|
+
|
|
15
|
+
// Check if this is a "load run" command
|
|
16
|
+
const isLoadRun = (cliArgs[0] === 'load' && cliArgs[1] === 'run');
|
|
17
|
+
if (isLoadRun) {
|
|
18
|
+
// Check if config file was specified via --config-file flag
|
|
19
|
+
if (argv['config-file'] || argv.cf) {
|
|
20
|
+
const configFile = argv['config-file'] || argv.cf;
|
|
21
|
+
const potentialPath = path.resolve(configFile);
|
|
22
|
+
logger.debug(`Config file specified: ${configFile} and Resolved path: ${potentialPath}`);
|
|
23
|
+
|
|
24
|
+
if (potentialPath.endsWith('.yml') || potentialPath.endsWith('.yaml')) {
|
|
25
|
+
logger.info(`Using specified config file: ${potentialPath}`);
|
|
26
|
+
|
|
27
|
+
return potentialPath;
|
|
28
|
+
}
|
|
29
|
+
throw new Error(`Error: Could not read configuration file: ${potentialPath} does not exist`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
// Look for default config files
|
|
33
|
+
const defaultConfigFiles = [
|
|
34
|
+
'browserstack-load.yml',
|
|
35
|
+
'browserstack-load.yaml',
|
|
36
|
+
'browserstack.yml',
|
|
37
|
+
'browserstack.yaml'
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
logger.debug('Checking for config in default config files...');
|
|
41
|
+
|
|
42
|
+
for (const fileName of defaultConfigFiles) {
|
|
43
|
+
const filePath = path.join(process.cwd(), fileName);
|
|
44
|
+
logger.debug(`Checking for: ${filePath}`);
|
|
45
|
+
|
|
46
|
+
if (fs.existsSync(filePath)) {
|
|
47
|
+
logger.debug(`Found config file: ${filePath}`);
|
|
48
|
+
|
|
49
|
+
return filePath;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
throw new Error('Error: Could not read configuration file: browserstack-load.yaml does not exist');
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
module.exports = {
|
|
57
|
+
getLoadConfigPath
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const a28_0x532b61=a28_0x13fd;function a28_0x2fef(){const _0x5c1929=['qYdvh','load','3dOlXsh','OgLtz','cwd','xVdwp','yVUfU','1846870iaxcFy','existsSync','debug','Config\x20file\x20specified:\x20','Error:\x20Could\x20not\x20read\x20configuration\x20file:\x20','\x20does\x20not\x20exist','736158uWkmeh','Checking\x20for\x20config\x20in\x20default\x20config\x20files...','360596MJzPTS','4992255sNmOgJ','albMm','7Cwxgem','\x20and\x20Resolved\x20path:\x20','vJFFN','resolve','vJNex','10GGRiCw','Using\x20specified\x20config\x20file:\x20','bzdiD','config-file','../../helpers/logger','run','.yaml','join','Error:\x20Could\x20not\x20read\x20configuration\x20file:\x20browserstack-load.yaml\x20does\x20not\x20exist','browserstack.yaml','browserstack-load.yaml','975440QXiRxY','216465pPglQl','vgTRj','1091292JQKkBs','KBwDR','endsWith','.yml'];a28_0x2fef=function(){return _0x5c1929;};return a28_0x2fef();}(function(_0x254d07,_0x398414){const _0x4884c3=a28_0x13fd,_0x10e8cf=_0x254d07();while(!![]){try{const _0x5f3a3d=parseInt(_0x4884c3(0x1d4))/0x1+-parseInt(_0x4884c3(0x1e9))/0x2+parseInt(_0x4884c3(0x1dc))/0x3*(-parseInt(_0x4884c3(0x1d6))/0x4)+-parseInt(_0x4884c3(0x1e1))/0x5+-parseInt(_0x4884c3(0x1e7))/0x6*(-parseInt(_0x4884c3(0x1ec))/0x7)+parseInt(_0x4884c3(0x1d3))/0x8+-parseInt(_0x4884c3(0x1ea))/0x9*(-parseInt(_0x4884c3(0x1c8))/0xa);if(_0x5f3a3d===_0x398414)break;else _0x10e8cf['push'](_0x10e8cf['shift']());}catch(_0x4fd268){_0x10e8cf['push'](_0x10e8cf['shift']());}}}(a28_0x2fef,0x2f308));function a28_0x13fd(_0x5d52af,_0x52f7e0){const _0x2fefe0=a28_0x2fef();return a28_0x13fd=function(_0x13fd4a,_0x24a4ec){_0x13fd4a=_0x13fd4a-0x1c8;let _0x127995=_0x2fefe0[_0x13fd4a];return _0x127995;},a28_0x13fd(_0x5d52af,_0x52f7e0);}const fs=require('fs'),path=require('path'),logger=require(a28_0x532b61(0x1cc))['winstonLogger'];function getLoadConfigPath(_0x2805c4){const _0x284e2a=a28_0x532b61,_0x49ebc7={};_0x49ebc7[_0x284e2a(0x1da)]=function(_0xec120e,_0x4ca303){return _0xec120e===_0x4ca303;},_0x49ebc7['QFHZs']=_0x284e2a(0x1db),_0x49ebc7[_0x284e2a(0x1f0)]=_0x284e2a(0x1cd),_0x49ebc7[_0x284e2a(0x1df)]=_0x284e2a(0x1cb),_0x49ebc7['KBwDR']=_0x284e2a(0x1d9),_0x49ebc7[_0x284e2a(0x1e0)]=_0x284e2a(0x1ce),_0x49ebc7[_0x284e2a(0x1eb)]='browserstack-load.yml',_0x49ebc7[_0x284e2a(0x1dd)]=_0x284e2a(0x1d2),_0x49ebc7[_0x284e2a(0x1ca)]='browserstack.yml',_0x49ebc7['VDmNw']=_0x284e2a(0x1d1),_0x49ebc7[_0x284e2a(0x1ee)]=_0x284e2a(0x1e8),_0x49ebc7[_0x284e2a(0x1d5)]=_0x284e2a(0x1d0);const _0x185943=_0x49ebc7,_0x1c9720=_0x2805c4['_']||[],_0x11f74a=_0x185943[_0x284e2a(0x1da)](_0x1c9720[0x0],_0x185943['QFHZs'])&&_0x185943[_0x284e2a(0x1da)](_0x1c9720[0x1],_0x185943[_0x284e2a(0x1f0)]);if(_0x11f74a){if(_0x2805c4[_0x185943[_0x284e2a(0x1df)]]||_0x2805c4['cf']){const _0x284bfb=_0x2805c4[_0x185943[_0x284e2a(0x1df)]]||_0x2805c4['cf'],_0x1a352d=path[_0x284e2a(0x1ef)](_0x284bfb);logger[_0x284e2a(0x1e3)](_0x284e2a(0x1e4)+_0x284bfb+_0x284e2a(0x1ed)+_0x1a352d);if(_0x1a352d['endsWith'](_0x185943[_0x284e2a(0x1d7)])||_0x1a352d[_0x284e2a(0x1d8)](_0x185943[_0x284e2a(0x1e0)]))return logger['info'](_0x284e2a(0x1c9)+_0x1a352d),_0x1a352d;throw new Error(_0x284e2a(0x1e5)+_0x1a352d+_0x284e2a(0x1e6));}}const _0x217204=[_0x185943[_0x284e2a(0x1eb)],_0x185943[_0x284e2a(0x1dd)],_0x185943[_0x284e2a(0x1ca)],_0x185943['VDmNw']];logger['debug'](_0x185943[_0x284e2a(0x1ee)]);for(const _0x5dc9d3 of _0x217204){const _0x5737ce=path[_0x284e2a(0x1cf)](process[_0x284e2a(0x1de)](),_0x5dc9d3);logger[_0x284e2a(0x1e3)]('Checking\x20for:\x20'+_0x5737ce);if(fs[_0x284e2a(0x1e2)](_0x5737ce))return logger[_0x284e2a(0x1e3)]('Found\x20config\x20file:\x20'+_0x5737ce),_0x5737ce;}throw new Error(_0x185943['vgTRj']);}const a28_0x4ca351={};a28_0x4ca351['getLoadConfigPath']=getLoadConfigPath,module['exports']=a28_0x4ca351;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x1c6b8c=a29_0x4a5e;(function(_0xa3cb63,_0x3c61af){const _0x33f63c=a29_0x4a5e,_0x3f7740=_0xa3cb63();while(!![]){try{const _0x59364d=-parseInt(_0x33f63c(0x181))/0x1+-parseInt(_0x33f63c(0x160))/0x2+parseInt(_0x33f63c(0x176))/0x3+parseInt(_0x33f63c(0x16e))/0x4+parseInt(_0x33f63c(0x19b))/0x5*(parseInt(_0x33f63c(0x192))/0x6)+parseInt(_0x33f63c(0x187))/0x7+parseInt(_0x33f63c(0x17c))/0x8;if(_0x59364d===_0x3c61af)break;else _0x3f7740['push'](_0x3f7740['shift']());}catch(_0x5b43be){_0x3f7740['push'](_0x3f7740['shift']());}}}(a29_0x41c0,0xd9e37));function a29_0x4a5e(_0x4ff5fc,_0x373eab){const _0x41c036=a29_0x41c0();return a29_0x4a5e=function(_0x4a5ee9,_0x4766a8){_0x4a5ee9=_0x4a5ee9-0x156;let _0x1ff6a3=_0x41c036[_0x4a5ee9];return _0x1ff6a3;},a29_0x4a5e(_0x4ff5fc,_0x373eab);}function a29_0x41c0(){const _0x321605=['setExtension','1835661oYUTBo','isUndefined','toLowerCase','parse','eVjxU','fVYsu','6018000jpQnIa','capability','Eqphf','device','options_','1206638zKTTaS','iuxZI','Accessibility\x20Automation\x20will\x20not\x20run\x20on\x20legacy\x20headless\x20mode.\x20Switch\x20to\x20new\x20headless\x20mode\x20or\x20avoid\x20using\x20headless\x20mode.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','../../../helpers/logger','fetchPlatformDetails','8585073YmoseM','Options','browserVersion','accessibilityOptions','get','chromeOptions_','wvqFP','Exception\x20while\x20setting\x20Accessibility\x20Automation\x20capabilities.\x20Error\x20','ofTLw','BS_A11Y_JWT','isAccessibilityPlatform','1694808SyZVjQ','JpvDu','browserName','accessibility','getPlatformVersion','authToken','scannerVersion','IdKDX','deviceName','10SWKsiI','pLmio','keys','mAShN','capabilities','debug','chrome','--headless','pQWaJ','vZEzp','bstack:options','length','hTSjL','__cloud_provider___','selenium-webdriver','YuNLw','jBnVc','path','warn','getPlatform','2168548PsXoRM','RmTBO','OOSRe','chromeOptions','requireModule','setGlobal','../../../helpers/helper','capabilities_','BDCZh','uAEMK','Exception\x20in\x20setExtension\x20Error:\x20','getBrowserVersion','getBrowserName','env','111484mQfACL','browserstack','getCapabilities','ImkpR','fXyFK','browserstack.accessibility','nestedKeyValue'];a29_0x41c0=function(){return _0x321605;};return a29_0x41c0();}const path=require(a29_0x1c6b8c(0x15d)),os=require('os'),util=require('util'),bsSetupHelper=require(a29_0x1c6b8c(0x166)),globals=require('../../../helpers/globals'),logger=require(a29_0x1c6b8c(0x185))['winstonLogger'];exports['setAccessibilityCapabilities']=_0x2871f6=>{const _0x56dd2a=a29_0x1c6b8c,_0x503632={};_0x503632[_0x56dd2a(0x17a)]=function(_0x4d2a8a,_0x56f8bf){return _0x4d2a8a>_0x56f8bf;},_0x503632['wvqFP']='bstack:options',_0x503632[_0x56dd2a(0x19c)]=_0x56dd2a(0x173),_0x503632[_0x56dd2a(0x15b)]=_0x56dd2a(0x191),_0x503632['uAEMK']='browserstack.accessibilityOptions';const _0x345216=_0x503632;try{const _0x56581e=_0x345216[_0x56dd2a(0x17a)](Object[_0x56dd2a(0x19d)](_0x2871f6[_0x56dd2a(0x17d)])[_0x56dd2a(0x157)],0x0)?_0x2871f6['capability']:_0x345216['eVjxU'](Object[_0x56dd2a(0x19d)](_0x2871f6[_0x56dd2a(0x19f)])[_0x56dd2a(0x157)],0x0)?_0x2871f6[_0x56dd2a(0x19f)][0x0]:{};if(_0x56581e[_0x345216[_0x56dd2a(0x18d)]]&&_0x56581e[_0x345216['wvqFP']][_0x56dd2a(0x195)]||_0x2871f6[_0x56dd2a(0x17d)][_0x345216[_0x56dd2a(0x19c)]]){globals[_0x56dd2a(0x165)](_0x345216[_0x56dd2a(0x15b)],!![]);if(_0x56581e[_0x345216[_0x56dd2a(0x18d)]]){if(_0x56581e[_0x345216[_0x56dd2a(0x18d)]][_0x56dd2a(0x18a)])_0x56581e[_0x345216[_0x56dd2a(0x18d)]][_0x56dd2a(0x18a)][_0x56dd2a(0x197)]=process[_0x56dd2a(0x16d)][_0x56dd2a(0x190)];else{const _0x256a53={};_0x256a53['authToken']=process['env']['BS_A11Y_JWT'],_0x56581e[_0x345216[_0x56dd2a(0x18d)]][_0x56dd2a(0x18a)]=_0x256a53;}_0x56581e[_0x345216['wvqFP']][_0x56dd2a(0x18a)]['scannerVersion']=JSON[_0x56dd2a(0x179)](process[_0x56dd2a(0x16d)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x56dd2a(0x198)];}else{if(_0x2871f6[_0x56dd2a(0x17d)][_0x345216[_0x56dd2a(0x19c)]]){if(_0x56581e[_0x345216[_0x56dd2a(0x169)]])_0x56581e[_0x345216[_0x56dd2a(0x169)]][_0x56dd2a(0x197)]=process[_0x56dd2a(0x16d)][_0x56dd2a(0x190)];else{const _0x55d4e3={};_0x55d4e3[_0x56dd2a(0x197)]=process[_0x56dd2a(0x16d)][_0x56dd2a(0x190)],_0x56581e[_0x345216[_0x56dd2a(0x169)]]=_0x55d4e3;}_0x56581e[_0x345216[_0x56dd2a(0x169)]]['scannerVersion']=JSON[_0x56dd2a(0x179)](process[_0x56dd2a(0x16d)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x56dd2a(0x198)];}}}}catch(_0x32542f){logger[_0x56dd2a(0x1a0)](_0x56dd2a(0x18e)+_0x32542f);}},exports[a29_0x1c6b8c(0x175)]=(_0x1a6be9,_0x56cdc0)=>{const _0xec55e3=a29_0x1c6b8c,_0xc49aee={};_0xc49aee[_0xec55e3(0x193)]=_0xec55e3(0x156),_0xc49aee[_0xec55e3(0x199)]=function(_0x26d178,_0x1989d5){return _0x26d178!==_0x1989d5;},_0xc49aee[_0xec55e3(0x171)]='Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.',_0xc49aee[_0xec55e3(0x1a4)]=_0xec55e3(0x1a1),_0xc49aee[_0xec55e3(0x168)]=_0xec55e3(0x184),_0xc49aee[_0xec55e3(0x162)]=function(_0x2a43ad,_0x401e66){return _0x2a43ad===_0x401e66;},_0xc49aee['pQWaJ']='latest',_0xc49aee['hTSjL']=function(_0x56742c,_0x59a956){return _0x56742c>_0x59a956;},_0xc49aee['MZLIm']='Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.',_0xc49aee['XsOrC']='selenium-webdriver/chrome.js',_0xc49aee[_0xec55e3(0x18f)]=_0xec55e3(0x15a),_0xc49aee[_0xec55e3(0x17e)]=_0xec55e3(0x180),_0xc49aee[_0xec55e3(0x17b)]='args',_0xc49aee[_0xec55e3(0x19e)]=_0xec55e3(0x163),_0xc49aee[_0xec55e3(0x161)]=_0xec55e3(0x1a2),_0xc49aee['iuxZI']=_0xec55e3(0x183);const _0x313e08=_0xc49aee;try{const _0x53fcb0=_0x56cdc0[_0xec55e3(0x17d)]||{},_0x68b4cb=(_0x53fcb0[_0x313e08[_0xec55e3(0x193)]]?_0x53fcb0[_0x313e08[_0xec55e3(0x193)]][_0xec55e3(0x19a)]:_0x53fcb0[_0xec55e3(0x17f)])||'';if(_0x313e08[_0xec55e3(0x199)](_0x68b4cb,''))return logger[_0xec55e3(0x15e)](_0x313e08[_0xec55e3(0x171)]),![];const _0x431539=_0x53fcb0[_0xec55e3(0x194)]||_0x1a6be9[_0xec55e3(0x167)][_0xec55e3(0x16c)]();if(_0x313e08[_0xec55e3(0x199)](_0x431539[_0xec55e3(0x178)](),_0x313e08[_0xec55e3(0x1a4)]))return logger[_0xec55e3(0x15e)](_0x313e08[_0xec55e3(0x168)]),![];const _0x5b2b6f=_0x53fcb0[_0xec55e3(0x189)]||_0x53fcb0['browser_version']||_0x1a6be9[_0xec55e3(0x167)][_0xec55e3(0x16b)]();if(!bsSetupHelper[_0xec55e3(0x177)](_0x5b2b6f)&&!(_0x313e08[_0xec55e3(0x162)](_0x5b2b6f,_0x313e08[_0xec55e3(0x1a3)])||_0x313e08[_0xec55e3(0x158)](_0x5b2b6f,0x5e)))return logger['warn'](_0x313e08['MZLIm']),![];let _0x2cb138;try{_0x2cb138=bsSetupHelper[_0xec55e3(0x164)](_0x313e08['XsOrC'],_0x313e08[_0xec55e3(0x18f)]);}catch(_0x2a4ff5){return![];}const _0x491cdd=new _0x2cb138[(_0xec55e3(0x188))](_0x1a6be9[_0xec55e3(0x18c)]),_0x274787=bsSetupHelper[_0xec55e3(0x174)](_0x491cdd,[_0x313e08[_0xec55e3(0x17e)],_0x313e08[_0xec55e3(0x17b)]])||bsSetupHelper[_0xec55e3(0x174)](_0x1a6be9[_0xec55e3(0x167)][_0xec55e3(0x18b)](_0x313e08[_0xec55e3(0x193)]),[_0x313e08[_0xec55e3(0x19e)],_0x313e08['fVYsu']])||bsSetupHelper[_0xec55e3(0x174)](_0x1a6be9['capabilities_'][_0xec55e3(0x18b)](_0x313e08['mAShN']),[_0x313e08['fVYsu']])||[];if(_0x274787['includes'](_0x313e08[_0xec55e3(0x161)]))return logger[_0xec55e3(0x15e)](_0x313e08[_0xec55e3(0x182)]),![];return!![];}catch(_0x2a67ec){logger['debug'](_0xec55e3(0x16a)+util['format'](_0x2a67ec));}return![];},exports[a29_0x1c6b8c(0x186)]=async _0xc123b9=>{const _0x1646b7=a29_0x1c6b8c,_0x2fa63f={};_0x2fa63f['fXyFK']=function(_0x524a95,_0x27449b){return _0x524a95===_0x27449b;},_0x2fa63f[_0x1646b7(0x15c)]=_0x1646b7(0x16f);const _0xbf2ecc=_0x2fa63f;let _0x3a1753={};try{const _0x5cd5b0=await _0xc123b9[_0x1646b7(0x170)]();_0x3a1753={'os_name':_0x5cd5b0[_0x1646b7(0x15f)](),'os_version':bsSetupHelper[_0x1646b7(0x196)](_0xbf2ecc[_0x1646b7(0x172)](global[_0x1646b7(0x159)],_0xbf2ecc[_0x1646b7(0x15c)])),'browser_name':_0x5cd5b0['getBrowserName'](),'browser_version':_0x5cd5b0['getBrowserVersion']()};}catch(_0x46d93f){logger['debug']('Exception\x20in\x20fetching\x20platform\x20details\x20with\x20error\x20:\x20'+_0x46d93f);}return _0x3a1753;};
|