browserstack-node-sdk 1.40.0 → 1.40.2
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 +2 -2
- 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 +1 -1
- package/src/bin/load/load/index.js +46 -27
- package/src/bin/load/load/loadUtils.js +37 -31
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/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_0x51caba=a23_0x3985;(function(_0x2be7f5,_0x56d4ad){const _0x4d07e0=a23_0x3985,_0x4cba70=_0x2be7f5();while(!![]){try{const _0x381688=parseInt(_0x4d07e0(0x11f))/0x1*(-parseInt(_0x4d07e0(0x12c))/0x2)+parseInt(_0x4d07e0(0x145))/0x3*(-parseInt(_0x4d07e0(0xc8))/0x4)+-parseInt(_0x4d07e0(0x113))/0x5+-parseInt(_0x4d07e0(0x178))/0x6*(-parseInt(_0x4d07e0(0x173))/0x7)+-parseInt(_0x4d07e0(0x10b))/0x8+-parseInt(_0x4d07e0(0x158))/0x9+parseInt(_0x4d07e0(0x15a))/0xa;if(_0x381688===_0x56d4ad)break;else _0x4cba70['push'](_0x4cba70['shift']());}catch(_0x5984ab){_0x4cba70['push'](_0x4cba70['shift']());}}}(a23_0x4921,0x2416f));const {isTestObservabilitySession,PathHelper,debug,failureData,getFailureType,isInternalHook}=require(a23_0x51caba(0xf4)),SessionHandler=require('../../../helpers/test-observability/sessionHandler'),{v4:uuidv4}=require('uuid'),{name,version}=require(a23_0x51caba(0xf5)),stackTrace=require(a23_0x51caba(0x104)),path=require(a23_0x51caba(0x14b)),fs=require('fs'),TestDetails=require(a23_0x51caba(0x122)),{FRAMEWORKS}=require('../../utils/constants'),{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler'),{getGitMetaData}=require('../../../helpers/helper'),{appendTesthubParams,setCurrentTestData}=require(a23_0x51caba(0x174)),a23_0x5d9b42={};a23_0x5d9b42['STATE_PASSED']='passed',a23_0x5d9b42[a23_0x51caba(0xd6)]='failed',a23_0x5d9b42[a23_0x51caba(0xfc)]=a23_0x51caba(0x161);const {STATE_PASSED,STATE_PENDING,STATE_FAILED}=a23_0x5d9b42,a23_0x560e90={};function a23_0x3985(_0x1a25de,_0x4852cd){const _0x49211b=a23_0x4921();return a23_0x3985=function(_0x39855b,_0x2ac479){_0x39855b=_0x39855b-0xc2;let _0x114ea0=_0x49211b[_0x39855b];return _0x114ea0;},a23_0x3985(_0x1a25de,_0x4852cd);}a23_0x560e90['beforeAll']=a23_0x51caba(0xc2),a23_0x560e90[a23_0x51caba(0x14a)]='AFTER_ALL',a23_0x560e90['beforeEach']=a23_0x51caba(0x13e),a23_0x560e90['afterEach']='AFTER_EACH';const HOOK_TYPES_MAP=a23_0x560e90;module[a23_0x51caba(0xe7)]=o11yClassErrorHandler(class ObservabilityReporter{constructor(){const _0x3a3f56=a23_0x51caba,_0x4bf5a4={'ihvbf':_0x3a3f56(0x142),'ESyRc':function(_0x37788c){return _0x37788c();}},_0xf28f6f=_0x4bf5a4[_0x3a3f56(0xd9)][_0x3a3f56(0x10f)]('|');let _0x5b7226=0x0;while(!![]){switch(_0xf28f6f[_0x5b7226++]){case'0':this[_0x3a3f56(0x101)]=new PathHelper({'cwd':process[_0x3a3f56(0xd5)]()},this[_0x3a3f56(0x106)]['location_prefix']);continue;case'1':this['hook_data']=[];continue;case'2':this[_0x3a3f56(0x169)]=![];continue;case'3':this[_0x3a3f56(0x106)]=this[_0x3a3f56(0xe8)]();continue;case'4':this[_0x3a3f56(0x141)]=null;continue;case'5':this['_testResults']=[];continue;case'6':this[_0x3a3f56(0x15b)]=_0x4bf5a4[_0x3a3f56(0x133)](isTestObservabilitySession);continue;}break;}}['getTestEnv']=()=>{const _0x190012=a23_0x51caba,_0x143ee9={'MiAjE':_0x190012(0x11a),'DDzLW':function(_0x1015e3){return _0x1015e3();}};return{'ci':_0x143ee9[_0x190012(0xcd)],'key':_0x143ee9[_0x190012(0xea)](uuidv4),'version':version,'collector':'js-'+name};};[a23_0x51caba(0xf2)](){const _0x50dd80=a23_0x51caba;process[_0x50dd80(0x166)](_0x50dd80(0xf8)+process['pid']),process['on'](_0x50dd80(0xf8)+process[_0x50dd80(0x128)],this[_0x50dd80(0x111)][_0x50dd80(0x16c)](this)),process['removeAllListeners']('bs:addPlatformDetails:'+process[_0x50dd80(0x128)]),process['on'](_0x50dd80(0xe0)+process[_0x50dd80(0x128)],this[_0x50dd80(0x167)][_0x50dd80(0x16c)](this));}[a23_0x51caba(0x12a)]=async _0x11cb3e=>{const _0x428cd2=a23_0x51caba,_0x19fb73={'Bsbzb':function(_0x26a312,_0x57ae61){return _0x26a312>_0x57ae61;},'ZiSUW':function(_0x3ab378,_0x4ab5fe){return _0x3ab378===_0x4ab5fe;},'eubKq':'TestRunStarted','qEWPA':function(_0x5b6ae6,_0x47d815){return _0x5b6ae6(_0x47d815);}};try{const _0x53e359=this[_0x428cd2(0x114)];this[_0x428cd2(0x114)]=_0x11cb3e,_0x11cb3e[_0x428cd2(0xc5)]=null,_0x11cb3e[_0x428cd2(0x123)]=TestDetails[_0x428cd2(0xe6)](process[_0x428cd2(0x128)]+_0x428cd2(0xc3)),_0x11cb3e[_0x428cd2(0xde)]=new Date()['toISOString'](),_0x19fb73['Bsbzb'](_0x11cb3e[_0x428cd2(0x105)],0x0)&&_0x53e359&&_0x19fb73[_0x428cd2(0x10d)](_0x53e359[_0x428cd2(0xfe)],_0x11cb3e['title'])?(_0x11cb3e[_0x428cd2(0xc5)]=_0x53e359[_0x428cd2(0x123)],await this[_0x428cd2(0x175)](_0x11cb3e,undefined,![],_0x19fb73[_0x428cd2(0x150)]),_0x53e359['state']=STATE_FAILED,await this['sendTestRunEvent'](_0x53e359,undefined,!![])):await this[_0x428cd2(0x175)](_0x11cb3e,undefined,![],_0x19fb73[_0x428cd2(0x150)]);}catch(_0x1167d2){_0x19fb73[_0x428cd2(0x15e)](debug,_0x428cd2(0xdf)+_0x1167d2);}};['getName'](_0x1ba2ad){const _0x3c3d24=a23_0x51caba,_0x538c27={};_0x538c27[_0x3c3d24(0x102)]=function(_0x2b6024,_0x117365){return _0x2b6024!==_0x117365;},_0x538c27[_0x3c3d24(0xcf)]=_0x3c3d24(0x121);const _0x1d23f2=_0x538c27;if(_0x1d23f2[_0x3c3d24(0x102)](_0x1ba2ad[_0x3c3d24(0x184)],_0x1d23f2[_0x3c3d24(0xcf)]))return'\x22'+_0x1ba2ad['type']+_0x3c3d24(0x17b)+(_0x1ba2ad[_0x3c3d24(0x17d)]&&_0x1ba2ad[_0x3c3d24(0x17d)][_0x3c3d24(0x11e)])+'\x22';return _0x1ba2ad[_0x3c3d24(0x11e)];}[a23_0x51caba(0x175)]=async(_0x213203,_0x454404=undefined,_0x56971f=![],_0x55476e=a23_0x51caba(0x108))=>{const _0x8e90d7=a23_0x51caba,_0x4eb2b1={'dAOal':_0x8e90d7(0x130),'vkulz':_0x8e90d7(0x154),'BNmwh':_0x8e90d7(0x15f),'BoTzH':'test_run','MtAId':_0x8e90d7(0xdc),'NSILt':_0x8e90d7(0x118),'bohgy':_0x8e90d7(0x13f),'lnybA':function(_0x34bc33,_0x58638e){return _0x34bc33(_0x58638e);},'hrAiG':_0x8e90d7(0x16e),'gjolP':function(_0x1826a5,_0x10aea4){return _0x1826a5(_0x10aea4);},'uLXXF':_0x8e90d7(0xff),'ZwRHc':function(_0x4465cc,_0x159328){return _0x4465cc!==_0x159328;},'RKhXS':'test','uhFwH':_0x8e90d7(0xd2),'iLMxD':_0x8e90d7(0xce),'ZZoHs':'javascript','ImTxb':function(_0x4fbc45,_0x19ea42){return _0x4fbc45===_0x19ea42;},'Rhifi':'TestRunSkipped','JZMOB':'skipped','EXCNO':function(_0x3e257a,_0x44ad69){return _0x3e257a>_0x44ad69;},'HxYPB':'failed','odEmh':_0x8e90d7(0x13d),'BsCCZ':function(_0x25eccc,_0x4749c8){return _0x25eccc-_0x4749c8;},'KAVSH':function(_0x56c173,_0x31299c,_0x3ecddb,_0x1cfb1b,_0x1f6c62){return _0x56c173(_0x31299c,_0x3ecddb,_0x1cfb1b,_0x1f6c62);},'jNjnC':function(_0x76334f,_0x204680){return _0x76334f===_0x204680;},'fUFVf':_0x8e90d7(0xde),'vbqwt':_0x8e90d7(0xe2),'SHbHs':function(_0x108be7,_0x3dbec7){return _0x108be7===_0x3dbec7;},'LEyTv':_0x8e90d7(0x14f),'ZfTnU':function(_0x3a54f9,_0x5f2a1e){return _0x3a54f9!==_0x5f2a1e;},'oyysk':_0x8e90d7(0x152),'ufvZv':'backtrace','QofeL':_0x8e90d7(0x171),'NhcDO':_0x8e90d7(0x12d),'AVfmj':_0x8e90d7(0x108),'VuRsw':_0x8e90d7(0x176),'SxCEC':_0x8e90d7(0x15c),'vDOah':function(_0x1e4add,_0xed4100,_0x51d2c3){return _0x1e4add(_0xed4100,_0x51d2c3);},'sNbwM':function(_0x10bc54,_0x59338a){return _0x10bc54(_0x59338a);}};try{if(_0x213203['fn']&&_0x213203['fn'][_0x8e90d7(0x149)]()[_0x8e90d7(0x14c)](/browserstack internal helper hook/))return;await this[_0x8e90d7(0x14e)]();let _0x5b4f58;try{_0x5b4f58=this['getRootParentFile'](_0x213203);}catch(_0x283302){_0x4eb2b1['lnybA'](debug,_0x8e90d7(0x15d)+_0x283302),_0x5b4f58=null;}if(_0x5b4f58[_0x8e90d7(0xe4)](_0x4eb2b1['hrAiG']))return;const _0x1b248e=_0x4eb2b1['gjolP'](require,_0x4eb2b1['uLXXF']);let _0x337918=[];if(_0x4eb2b1[_0x8e90d7(0x137)](_0x213203[_0x8e90d7(0x162)],undefined))_0x337918=[_0x213203[_0x8e90d7(0x162)],_0x4eb2b1[_0x8e90d7(0x100)]];else _0x4eb2b1[_0x8e90d7(0x137)](_0x454404,undefined)?_0x337918=[_0x454404,_0x4eb2b1[_0x8e90d7(0xfb)]]:_0x337918=[];const _0x381932=_0x4eb2b1[_0x8e90d7(0x137)](_0x213203[_0x8e90d7(0x162)],undefined)?_0x1b248e['inspect'](_0x213203[_0x8e90d7(0x162)][0x0]):_0x4eb2b1[_0x8e90d7(0x137)](_0x454404,undefined)?_0x454404[_0x8e90d7(0x149)]():undefined,_0x214b80=_0x5b4f58?this[_0x8e90d7(0x101)][_0x8e90d7(0x12f)](this[_0x8e90d7(0x13c)](_0x213203)):_0x4eb2b1[_0x8e90d7(0x146)],_0x48126e={'framework':FRAMEWORKS[_0x8e90d7(0x181)],'uuid':_0x213203[_0x8e90d7(0x123)]||_0x213203[_0x8e90d7(0xeb)],'name':this[_0x8e90d7(0xd7)](_0x213203),'body':{'lang':_0x4eb2b1[_0x8e90d7(0x16f)],'code':_0x213203['fn'][_0x8e90d7(0x149)]()},'scopes':this[_0x8e90d7(0x140)](_0x213203),'file_name':_0x214b80,'vc_filepath':this[_0x8e90d7(0x141)]&&_0x5b4f58?path[_0x8e90d7(0x11c)](this[_0x8e90d7(0x141)],_0x5b4f58):null,'location':_0x214b80,'result':_0x4eb2b1[_0x8e90d7(0xc6)](_0x55476e,_0x4eb2b1[_0x8e90d7(0xed)])?_0x4eb2b1['JZMOB']:this[_0x8e90d7(0x179)](_0x213203['errorsDetailed']&&_0x4eb2b1[_0x8e90d7(0x157)](_0x213203['errorsDetailed'][_0x8e90d7(0xd3)],0x0)?_0x4eb2b1[_0x8e90d7(0x159)]:_0x4eb2b1[_0x8e90d7(0xe5)]),'failure_reason':_0x381932,'duration_in_ms':_0x213203['duration']||(_0x55476e[_0x8e90d7(0x14c)](/Finished/)||_0x55476e[_0x8e90d7(0x14c)](/Skipped/)?_0x4eb2b1[_0x8e90d7(0x13b)](Date[_0x8e90d7(0x124)](),new Date(_0x213203[_0x8e90d7(0xde)])[_0x8e90d7(0x107)]()):null),'started_at':_0x213203['started_at'],'finished_at':_0x55476e[_0x8e90d7(0x14c)](/Finished/)||_0x55476e[_0x8e90d7(0x14c)](/Skipped/)?new Date()[_0x8e90d7(0x17a)]():null,'failure':failureData[_0x8e90d7(0x12b)](null,_0x337918),'failure_type':!_0x381932?null:_0x4eb2b1[_0x8e90d7(0xe3)](getFailureType,_0x381932),'retry_of':_0x213203[_0x8e90d7(0xc5)]};_0x4eb2b1[_0x8e90d7(0x147)](appendTesthubParams,_0x48126e,_0x55476e,_0x213203,FRAMEWORKS['JEST']);_0x4eb2b1[_0x8e90d7(0x170)](_0x55476e,_0x4eb2b1['Rhifi'])&&!_0x48126e[_0x4eb2b1[_0x8e90d7(0xf9)]]&&(_0x48126e[_0x4eb2b1[_0x8e90d7(0xf9)]]=_0x48126e[_0x4eb2b1['vbqwt']]);if(_0x55476e[_0x8e90d7(0x14c)](/HookRun/))[_0x48126e['hook_type'],_0x48126e[_0x8e90d7(0x11e)]]=[_0x213203['type'],this[_0x8e90d7(0xd7)](_0x213203)],_0x4eb2b1[_0x8e90d7(0x16d)](_0x55476e,_0x4eb2b1[_0x8e90d7(0x13a)])&&(_0x4eb2b1[_0x8e90d7(0x129)](_0x48126e[_0x8e90d7(0x13f)],_0x4eb2b1[_0x8e90d7(0x159)])&&(_0x48126e[_0x8e90d7(0x13f)]=_0x4eb2b1['odEmh']));else _0x55476e[_0x8e90d7(0x14c)](/TestRun/)&&this[_0x8e90d7(0x127)](_0x213203);const _0x14e2fe=_0x48126e[_0x4eb2b1[_0x8e90d7(0x16b)]][0x0];_0x14e2fe&&(_0x48126e[_0x4eb2b1[_0x8e90d7(0x160)]]=_0x14e2fe[_0x4eb2b1[_0x8e90d7(0xd1)]],_0x48126e[_0x4eb2b1['QofeL']]=_0x14e2fe[_0x4eb2b1[_0x8e90d7(0xe1)]]);[_0x4eb2b1['AVfmj'],_0x4eb2b1['Rhifi']][_0x8e90d7(0xe4)](_0x55476e)&&(this[_0x8e90d7(0x16a)][_0x8e90d7(0x17e)](_0x48126e),_0x48126e[_0x8e90d7(0x10e)]=this[_0x8e90d7(0xe9)](_0x213203),this[_0x8e90d7(0x153)](_0x213203));const _0x542f5a={'event_type':_0x4eb2b1[_0x8e90d7(0x16d)](_0x55476e,_0x4eb2b1[_0x8e90d7(0xed)])?_0x4eb2b1[_0x8e90d7(0x11d)]:_0x55476e};_0x55476e[_0x8e90d7(0x14c)](/HookRun/)?(_0x48126e[_0x4eb2b1[_0x8e90d7(0x172)]]=HOOK_TYPES_MAP[_0x48126e[_0x4eb2b1['VuRsw']]],_0x542f5a[_0x4eb2b1[_0x8e90d7(0x103)]]=_0x48126e):_0x542f5a[_0x4eb2b1[_0x8e90d7(0x115)]]=_0x48126e;_0x4eb2b1[_0x8e90d7(0x157)](this[_0x8e90d7(0x156)]['length'],0x0)&&[_0x4eb2b1['AVfmj'],_0x4eb2b1[_0x8e90d7(0xed)]][_0x8e90d7(0xe4)](_0x55476e)&&(this[_0x8e90d7(0x156)]['forEach'](async _0x290554=>{const _0x591597=_0x8e90d7,_0x3607fb=_0x4eb2b1[_0x591597(0xee)]['split']('|');let _0x37c8c6=0x0;while(!![]){switch(_0x3607fb[_0x37c8c6++]){case'0':_0x290554[_0x4eb2b1['vkulz']][_0x4eb2b1[_0x591597(0x117)]]=_0x542f5a[_0x4eb2b1[_0x591597(0x115)]][_0x4eb2b1[_0x591597(0x117)]];continue;case'1':_0x290554[_0x4eb2b1[_0x591597(0x103)]][_0x4eb2b1[_0x591597(0x16b)]]=_0x542f5a[_0x4eb2b1[_0x591597(0x115)]][_0x4eb2b1[_0x591597(0x16b)]];continue;case'2':await SessionHandler[_0x591597(0x11b)](_0x290554);continue;case'3':_0x290554[_0x4eb2b1['vkulz']][_0x4eb2b1[_0x591597(0x164)]]=_0x542f5a[_0x4eb2b1[_0x591597(0x115)]][_0x4eb2b1[_0x591597(0x164)]];continue;case'4':_0x290554[_0x4eb2b1[_0x591597(0x103)]][_0x4eb2b1[_0x591597(0xd8)]]=_0x542f5a[_0x4eb2b1['BoTzH']][_0x4eb2b1[_0x591597(0xd8)]];continue;}break;}}),this[_0x8e90d7(0x156)]=[]);if(_0x4eb2b1[_0x8e90d7(0xc6)](this['hook_failure'],_0x213203[_0x8e90d7(0x184)])){this[_0x8e90d7(0x156)]['push'](_0x542f5a);return;}_0x4eb2b1[_0x8e90d7(0xc6)](this[_0x8e90d7(0xcb)],_0x4eb2b1[_0x8e90d7(0x12e)])&&_0x542f5a[_0x4eb2b1[_0x8e90d7(0x115)]]&&(_0x542f5a[_0x4eb2b1[_0x8e90d7(0x115)]][_0x4eb2b1['bohgy']]=_0x4eb2b1[_0x8e90d7(0x17f)],_0x542f5a[_0x4eb2b1[_0x8e90d7(0x115)]][_0x4eb2b1['MtAId']]=null,_0x542f5a[_0x4eb2b1[_0x8e90d7(0x115)]][_0x4eb2b1['NSILt']]=null),_0x4eb2b1[_0x8e90d7(0x10c)](setCurrentTestData,FRAMEWORKS[_0x8e90d7(0x181)],_0x542f5a),await SessionHandler[_0x8e90d7(0x11b)](_0x542f5a);}catch(_0x477362){_0x4eb2b1['sNbwM'](debug,_0x8e90d7(0x110)+_0x55476e+'\x20with\x20error\x20:\x20'+_0x477362);}};[a23_0x51caba(0x116)](_0x47d3b1){const _0x12c95a=a23_0x51caba,_0x2b346d={};_0x2b346d[_0x12c95a(0x183)]=function(_0x525f16,_0x437b63){return _0x525f16==_0x437b63;},_0x2b346d[_0x12c95a(0x125)]=function(_0x3bb854,_0x23d180){return _0x3bb854===_0x23d180;},_0x2b346d[_0x12c95a(0x119)]=_0x12c95a(0x138),_0x2b346d['Solxa']='config';const _0x2db1a0=_0x2b346d,_0x5b6ac6=path[_0x12c95a(0x182)];if(_0x2db1a0[_0x12c95a(0x183)](_0x47d3b1,null)||_0x2db1a0[_0x12c95a(0x125)](_0x47d3b1,'')||_0x2db1a0[_0x12c95a(0x125)](_0x47d3b1,_0x5b6ac6)||_0x2db1a0[_0x12c95a(0x125)](_0x47d3b1,path['dirname'](_0x47d3b1)))return null;try{return fs['statSync'](path[_0x12c95a(0xc7)](_0x47d3b1,_0x2db1a0['VOOUF'],_0x2db1a0[_0x12c95a(0x168)])),_0x47d3b1;}catch(_0x50ed96){const _0xc87524=path[_0x12c95a(0x135)](_0x47d3b1);return this[_0x12c95a(0x116)](_0xc87524);}}[a23_0x51caba(0x111)]=async _0x15f696=>{const _0x731c91=a23_0x51caba,_0x4f0b2e={'bFxuH':_0x731c91(0xca),'DqjAy':function(_0xf393fb,_0x5daa63){return _0xf393fb(_0x5daa63);}},_0x435035=TestDetails[_0x731c91(0x17c)](process[_0x731c91(0x128)]+':hookAnalyticsId'),_0x29c25c=TestDetails[_0x731c91(0x17c)](process[_0x731c91(0x128)]+_0x731c91(0xc3));try{(_0x435035||this[_0x731c91(0xc9)]&&!this[_0x731c91(0xc9)][_0x731c91(0xf6)])&&(_0x15f696[_0x731c91(0x139)]=_0x435035);!_0x15f696[_0x731c91(0x139)]&&_0x29c25c&&(_0x15f696[_0x731c91(0x148)]=_0x29c25c);if(_0x15f696[_0x731c91(0x139)]||_0x15f696['test_run_uuid']){const _0x33bad7={};_0x33bad7[_0x731c91(0x144)]=_0x4f0b2e[_0x731c91(0x134)],_0x33bad7[_0x731c91(0xd0)]=[_0x15f696],await SessionHandler['uploadEventData'](_0x33bad7);}}catch(_0x3ca305){_0x4f0b2e['DqjAy'](debug,'Exception\x20in\x20uploading\x20log\x20data\x20to\x20Observability\x20with\x20error\x20:\x20'+_0x3ca305);}};[a23_0x51caba(0x167)]=async _0x3a2c1d=>{const _0xf4d4dd=a23_0x51caba,_0x1e2968={'rWfzV':'http_response','goxdT':_0xf4d4dd(0x136),'TFCJI':function(_0x14f3ee,_0x6eb1f3){return _0x14f3ee(_0x6eb1f3);}};try{const _0x159b33={'uuid':_0x3a2c1d[_0xf4d4dd(0x180)]||TestDetails[_0xf4d4dd(0x17c)](process[_0xf4d4dd(0x128)]+_0xf4d4dd(0xc3)),'integrations':_0x3a2c1d[_0x1e2968[_0xf4d4dd(0x155)]]},_0x24ee1a={};_0x24ee1a[_0xf4d4dd(0x144)]=_0x1e2968['goxdT'],_0x24ee1a[_0xf4d4dd(0x120)]=_0x159b33,await SessionHandler['uploadEventData'](_0x24ee1a);}catch(_0x4d931f){_0x1e2968[_0xf4d4dd(0xfd)](debug,_0xf4d4dd(0xf7)+_0x4d931f);}};async[a23_0x51caba(0x14e)](){const _0x3ba80b=a23_0x51caba,_0x451a73={'YDzuZ':function(_0x25ad22){return _0x25ad22();}};if(this['_gitConfigured'])return this['_gitConfigPath'];const _0x1a1bf2=await _0x451a73[_0x3ba80b(0x14d)](getGitMetaData);_0x1a1bf2&&(this['_gitConfigPath']=_0x1a1bf2[_0x3ba80b(0xc4)]),this[_0x3ba80b(0x169)]=!![];}[a23_0x51caba(0x179)](_0xc8327c){const _0x2bce91=a23_0x51caba,_0x29335f={};_0x29335f[_0x2bce91(0xd4)]=_0x2bce91(0x13d),_0x29335f[_0x2bce91(0xdd)]=_0x2bce91(0x161),_0x29335f[_0x2bce91(0x163)]=_0x2bce91(0xdb);const _0x5a2aaf=_0x29335f,_0x26b67e={};return _0x26b67e[STATE_PASSED]=_0x5a2aaf[_0x2bce91(0xd4)],_0x26b67e[STATE_PENDING]=_0x5a2aaf[_0x2bce91(0xdd)],_0x26b67e[STATE_FAILED]=_0x5a2aaf[_0x2bce91(0x163)],_0x26b67e[_0xc8327c];}[a23_0x51caba(0x140)](_0x1f5ff9){const _0x167098=a23_0x51caba,_0x56500e={};_0x56500e['ldNIA']=function(_0x12d9a2,_0x3b92be){return _0x12d9a2!==_0x3b92be;},_0x56500e[_0x167098(0x112)]=_0x167098(0xec);const _0x1973b5=_0x56500e,_0x3f7eec=[];if(_0x1f5ff9&&_0x1f5ff9['parent']){let _0x5dce6d=_0x1f5ff9[_0x167098(0x17d)];while(_0x5dce6d&&_0x1973b5['ldNIA'](_0x5dce6d[_0x167098(0x11e)],'')&&_0x1973b5['ldNIA'](_0x5dce6d['name'],_0x1973b5[_0x167098(0x112)])){_0x3f7eec[_0x167098(0x17e)](_0x5dce6d[_0x167098(0x11e)]),_0x5dce6d=_0x5dce6d[_0x167098(0x17d)];}}return _0x3f7eec[_0x167098(0xf1)](),_0x3f7eec;}[a23_0x51caba(0x13c)]=_0x1d31e6=>{const _0x9b3415=a23_0x51caba;if(_0x1d31e6[_0x9b3415(0xfa)]){const _0x22ee1f=stackTrace[_0x9b3415(0x10a)][_0x9b3415(0x165)](stackTrace,_0x1d31e6[_0x9b3415(0xfa)]);return _0x22ee1f[0x0][_0x9b3415(0x143)]();}if(_0x1d31e6['file'])return _0x1d31e6[_0x9b3415(0x177)];return null;};['mapTestHooks']=_0x51be69=>{const _0x64a1ea=a23_0x51caba;if(!_0x51be69||!_0x51be69[_0x64a1ea(0x17d)])return;_0x51be69['parent'][_0x64a1ea(0x10e)]['forEach'](_0x5e86a8=>{const _0x268449=_0x64a1ea;!_0x5e86a8['hookAnalyticsId']&&(_0x5e86a8[_0x268449(0xeb)]=TestDetails[_0x268449(0xe6)](process[_0x268449(0x128)]+_0x268449(0xf3)));}),this[_0x64a1ea(0x127)](_0x51be69[_0x64a1ea(0x17d)]);};['resetTestHooks']=_0x29519b=>{const _0x4a7052=a23_0x51caba,_0x2cbb73={};_0x2cbb73['WxXHA']=_0x4a7052(0xcc),_0x2cbb73[_0x4a7052(0xda)]=_0x4a7052(0xef);const _0x39b2fd=_0x2cbb73;if(!_0x29519b||!_0x29519b[_0x4a7052(0x17d)])return;_0x29519b['parent'][_0x4a7052(0x10e)][_0x4a7052(0x131)](_0x1c693f=>{const _0x469027=_0x4a7052;[_0x39b2fd[_0x469027(0x151)],_0x39b2fd[_0x469027(0xda)]][_0x469027(0xe4)](_0x1c693f[_0x469027(0x184)])&&_0x1c693f[_0x469027(0xeb)]&&(_0x1c693f[_0x469027(0xeb)]=null);}),this[_0x4a7052(0x127)](_0x29519b['parent']);};['isJestInternalHook'](_0x26eaae){const _0x58a0e5=a23_0x51caba,_0x1db7ad={'QJEyj':_0x58a0e5(0x16e),'INfGU':function(_0x417100,_0x3f8858){return _0x417100(_0x3f8858);},'IGBMA':function(_0x4dda91,_0x1f7503){return _0x4dda91+_0x1f7503;},'pGbMg':'Exception\x20in\x20getting\x20file\x20for\x20hook\x20'};try{const _0x2fec75=this[_0x58a0e5(0x13c)](_0x26eaae);return _0x2fec75[_0x58a0e5(0xe4)](_0x1db7ad['QJEyj']);}catch(_0x3ac92a){_0x1db7ad[_0x58a0e5(0x132)](debug,_0x1db7ad['IGBMA'](_0x1db7ad['pGbMg'],_0x3ac92a));}return![];}[a23_0x51caba(0xe9)]=_0x389b7e=>{const _0x2dcba2=a23_0x51caba,_0x21b934={'wgBlB':function(_0x29c710,_0x5018cd){return _0x29c710(_0x5018cd);}};if(!_0x389b7e||!_0x389b7e['parent'])return[];const _0x56cbf2=[];return _0x389b7e[_0x2dcba2(0x17d)][_0x2dcba2(0x10e)][_0x2dcba2(0x131)](_0x1f3e5f=>{const _0x4e21ca=_0x2dcba2;_0x1f3e5f['hookAnalyticsId']&&!_0x21b934[_0x4e21ca(0x126)](isInternalHook,_0x1f3e5f['fn'])&&!this[_0x4e21ca(0x109)](_0x1f3e5f)&&_0x56cbf2[_0x4e21ca(0x17e)](_0x1f3e5f[_0x4e21ca(0xeb)]);}),[..._0x56cbf2,...this[_0x2dcba2(0xe9)](_0x389b7e['parent'])];};},[a23_0x51caba(0xe8),'registerListeners',a23_0x51caba(0x12a),a23_0x51caba(0xd7),a23_0x51caba(0x175),a23_0x51caba(0x116),a23_0x51caba(0x111),a23_0x51caba(0x167),a23_0x51caba(0x179),'getHierarchy',a23_0x51caba(0x13c),a23_0x51caba(0x127),a23_0x51caba(0x153),a23_0x51caba(0xe9),a23_0x51caba(0x14e)],a23_0x51caba(0xf0));function a23_0x4921(){const _0x5243f9=['ZiSUW','hooks','split','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','appendTestItemLog','Yrbtd','217875PyKIKZ','current_test','BoTzH','findGitConfig','BNmwh','failure_type','VOOUF','generic','uploadEventData','relative','AVfmj','name','2stimVL','test_run','test','./test-details','testAnalyticsId','now','cBbus','wgBlB','mapTestHooks','pid','ZfTnU','testStarted','apply','8278nVwJbG','expanded','SxCEC','prefixTestPath','1|3|4|0|2','forEach','INfGU','ESyRc','bFxuH','dirname','CBTSessionCreated','ZwRHc','.git','hook_run_uuid','LEyTv','BsCCZ','getRootParentFile','passed','BEFORE_EACH','result','getHierarchy','_gitConfigPath','6|5|3|0|1|2|4','getFileName','event_type','355029nnxOXH','iLMxD','KAVSH','test_run_uuid','toString','afterAll','path','match','YDzuZ','configureGit','HookRunFinished','eubKq','WxXHA','failure_backtrace','resetTestHooks','hook_run','rWfzV','hook_data','EXCNO','1604619mRMkCp','HxYPB','3544460FXEarM','testObservability','beforeAll','failed\x20to\x20get\x20root\x20parent\x20file\x20','qEWPA','failure_reason','oyysk','pending','errorsDetailed','iwwma','NSILt','call','removeAllListeners','appendTestPlatform','Solxa','_gitConfigured','_testResults','MtAId','bind','SHbHs','jest-circus','ZZoHs','jNjnC','failure_reason_expanded','VuRsw','1873228ShzIVK','../../../helpers/testhub/utils','sendTestRunEvent','hook_type','file','6rlTniG','analyticsResult','toISOString','\x22\x20hook\x20for\x20\x22','getTestUUID','parent','push','JZMOB','uuid','JEST','sep','jRRbq','type','BEFORE_ALL',':testAnalyticsId','root','retryOf','ImTxb','join','4BRQnVK','current_hook','LogCreated','hook_failure','beforeEach','MiAjE','File\x20path\x20could\x20not\x20be\x20found','BRqLa','logs','ufvZv','err','length','zGsPY','cwd','STATE_FAILED','getName','bohgy','ihvbf','pmWDP','failed','failure','naQtv','started_at','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','bs:addPlatformDetails:','NhcDO','finished_at','gjolP','includes','odEmh','setTestUUID','exports','getTestEnv','getHooksForTest','DDzLW','hookAnalyticsId','ROOT_DESCRIBE_BLOCK','Rhifi','dAOal','afterEach','ObservabilityReporter','reverse','registerListeners',':hookAnalyticsId','../../../helpers/test-observability/utils','../../../../package.json','markedStatus','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20Observability\x20with\x20error\x20:\x20','bs:addLog:','fUFVf','asyncError','uhFwH','STATE_PENDING','TFCJI','title','util','RKhXS','_paths','LRHCQ','vkulz','stack-trace','_currentRetry','_testEnv','getTime','TestRunFinished','isJestInternalHook','parse','1005920TvNIsT','vDOah'];a23_0x4921=function(){return _0x5243f9;};return a23_0x4921();}
|
|
1
|
+
const a23_0x4e4c51=a23_0x5690;(function(_0x2131dd,_0x5ccf7d){const _0x25f078=a23_0x5690,_0x2e8890=_0x2131dd();while(!![]){try{const _0x553e9c=parseInt(_0x25f078(0x144))/0x1+-parseInt(_0x25f078(0x1d8))/0x2*(parseInt(_0x25f078(0x150))/0x3)+-parseInt(_0x25f078(0x123))/0x4+parseInt(_0x25f078(0x12f))/0x5+parseInt(_0x25f078(0x18b))/0x6+parseInt(_0x25f078(0x19b))/0x7*(-parseInt(_0x25f078(0x12e))/0x8)+-parseInt(_0x25f078(0x191))/0x9*(-parseInt(_0x25f078(0x167))/0xa);if(_0x553e9c===_0x5ccf7d)break;else _0x2e8890['push'](_0x2e8890['shift']());}catch(_0x3ccc81){_0x2e8890['push'](_0x2e8890['shift']());}}}(a23_0x49c6,0x7c9fa));function a23_0x5690(_0x4af83e,_0x1e49a7){const _0x49c678=a23_0x49c6();return a23_0x5690=function(_0x5690c5,_0x177de2){_0x5690c5=_0x5690c5-0x122;let _0x1e37b5=_0x49c678[_0x5690c5];return _0x1e37b5;},a23_0x5690(_0x4af83e,_0x1e49a7);}const {isTestObservabilitySession,PathHelper,debug,failureData,getFailureType,isInternalHook}=require(a23_0x4e4c51(0x1a1)),SessionHandler=require(a23_0x4e4c51(0x13a)),{v4:uuidv4}=require(a23_0x4e4c51(0x1af)),{name,version}=require('../../../../package.json'),stackTrace=require('stack-trace'),path=require(a23_0x4e4c51(0x160)),fs=require('fs'),TestDetails=require(a23_0x4e4c51(0x170)),{FRAMEWORKS}=require(a23_0x4e4c51(0x1e3)),{o11yClassErrorHandler}=require(a23_0x4e4c51(0x1a3)),{getGitMetaData}=require(a23_0x4e4c51(0x162)),{appendTesthubParams,setCurrentTestData}=require(a23_0x4e4c51(0x15a)),a23_0x4125ed={};a23_0x4125ed[a23_0x4e4c51(0x1c0)]=a23_0x4e4c51(0x19e),a23_0x4125ed['STATE_FAILED']=a23_0x4e4c51(0x15e),a23_0x4125ed['STATE_PENDING']='pending';function a23_0x49c6(){const _0xc919c3=['hook_type','finished_at','File\x20path\x20could\x20not\x20be\x20found','oUrsw','POkJV','location_prefix','apply','failure_type',':testAnalyticsId','ObservabilityReporter','../../../helpers/test-observability/sessionHandler','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','hook_run_uuid','getRootParentFile','rfnXN','backtrace','call','failed\x20to\x20get\x20root\x20parent\x20file\x20','XQbmR','getHierarchy','394636PMQErn','current_test','_testResults','scfUb','SBvus','duration','WIIEk','LogCreated','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20Observability\x20with\x20error\x20:\x20','WLFMH','wmrSN','4|1|3|0|2','1658259JlKZvb','parent','jest-circus','err','getHooksForTest','split','failure','findGitConfig','_gitConfigPath','relative','../../../helpers/testhub/utils','\x22\x20hook\x20for\x20\x22','IVfpH','tYMmW','failed','lYtiI','path','_paths','../../../helpers/helper','match','configureGit','LglwZ','removeAllListeners','51180HxcqvB','nUpBu','pTLkT','AFTER_ALL','asyncError','cwd','_testEnv','osiqk','Gxtyi','./test-details','appendTestPlatform','coglO','getTestEnv','testAnalyticsId','pid','getFileName','hooks','KytVf','MjCix','ElWVH','forEach',':hookAnalyticsId','beforeEach','icFRM','UFQxJ','scvFI','root','test_run_uuid','now','javascript','appendTestItemLog','bind','afterEach','type','test','result','2288928OKaDMB','testStarted','config','Lgrvi','whdMh','WcWbR','1863TOKFuF','getTestUUID','failure_backtrace','includes','HswOS','analyticsResult','poOgE','sXJFa','event_type','cSmwH','854567FzFnPP','seimh','hook_failure','passed','jMttQ','exports','../../../helpers/test-observability/utils','util','../../../helpers/test-observability/error-handler','TsGEd','length','fkkrd','uploadEventData','jVXMh','getTime','getName','mapTestHooks','ROOT_DESCRIBE_BLOCK','6|1|0|5|2|4|3','_gitConfigured','uuid','_currentRetry','test_run','bs:addLog:','inspect','state','eocVw','hookAnalyticsId','wHGDF','file','EplQQ','cuktH','ugBJz','title','errorsDetailed','parse','WKOBF','STATE_PASSED','Exception\x20in\x20getting\x20file\x20for\x20hook\x20','BEFORE_EACH','skipped','CZZXv','failure_reason','testObservability','FLNfi','sendTestRunEvent','toISOString','toString','TLgvT','http_response','beforeAll','push','gskkf','hook_run','zXrQT','CBTSessionCreated','uGdXG','Exception\x20in\x20uploading\x20log\x20data\x20to\x20Observability\x20with\x20error\x20:\x20','.git','psncL','bs:addPlatformDetails:','2lQahzD','isJestInternalHook','lCsAV','tgriB','statSync','AFTER_EACH','TestRunStarted','SvKZQ','hook_data','current_hook','js-','../../utils/constants','GAXeS','reverse','retryOf','aJjla','setTestUUID','TestRunFinished','JEST','1859440zuoMRI','name','QUreG','sep','resetTestHooks','failure_reason_expanded','zjZdN','CLVzi','markedStatus','jmsey','started_at','40cpmYhs','1514630vRMxeL'];a23_0x49c6=function(){return _0xc919c3;};return a23_0x49c6();}const {STATE_PASSED,STATE_PENDING,STATE_FAILED}=a23_0x4125ed,a23_0x4eae84={};a23_0x4eae84[a23_0x4e4c51(0x1cd)]='BEFORE_ALL',a23_0x4eae84['afterAll']=a23_0x4e4c51(0x16a),a23_0x4eae84[a23_0x4e4c51(0x17d)]=a23_0x4e4c51(0x1c2),a23_0x4eae84[a23_0x4e4c51(0x187)]=a23_0x4e4c51(0x1dd);const HOOK_TYPES_MAP=a23_0x4eae84;module[a23_0x4e4c51(0x1a0)]=o11yClassErrorHandler(class ObservabilityReporter{constructor(){const _0x3773a1=a23_0x4e4c51,_0x31f826={'CLVzi':_0x3773a1(0x1ad),'LglwZ':function(_0x1c75d9){return _0x1c75d9();}},_0x2aa707=_0x31f826[_0x3773a1(0x12a)]['split']('|');let _0x4a2870=0x0;while(!![]){switch(_0x2aa707[_0x4a2870++]){case'0':this[_0x3773a1(0x16d)]=this[_0x3773a1(0x173)]();continue;case'1':this[_0x3773a1(0x146)]=[];continue;case'2':this[_0x3773a1(0x1e0)]=[];continue;case'3':this[_0x3773a1(0x158)]=null;continue;case'4':this[_0x3773a1(0x1ae)]=![];continue;case'5':this[_0x3773a1(0x161)]=new PathHelper({'cwd':process[_0x3773a1(0x16c)]()},this[_0x3773a1(0x16d)][_0x3773a1(0x135)]);continue;case'6':this[_0x3773a1(0x1c6)]=_0x31f826[_0x3773a1(0x165)](isTestObservabilitySession);continue;}break;}}[a23_0x4e4c51(0x173)]=()=>{const _0x5d68ab=a23_0x4e4c51,_0x22895e={'sXJFa':'generic','WcWbR':function(_0x3e1cd9){return _0x3e1cd9();}};return{'ci':_0x22895e[_0x5d68ab(0x198)],'key':_0x22895e[_0x5d68ab(0x190)](uuidv4),'version':version,'collector':_0x5d68ab(0x1e2)+name};};['registerListeners'](){const _0x54e323=a23_0x4e4c51;process[_0x54e323(0x166)]('bs:addLog:'+process[_0x54e323(0x175)]),process['on'](_0x54e323(0x1b2)+process['pid'],this[_0x54e323(0x185)]['bind'](this)),process[_0x54e323(0x166)]('bs:addPlatformDetails:'+process[_0x54e323(0x175)]),process['on'](_0x54e323(0x1d7)+process['pid'],this[_0x54e323(0x171)][_0x54e323(0x186)](this));}[a23_0x4e4c51(0x18c)]=async _0x37eb75=>{const _0x20a727=a23_0x4e4c51,_0x3a011b={'AIvqS':function(_0x595881,_0x3d599c){return _0x595881>_0x3d599c;},'jVXMh':function(_0x340639,_0x3be986){return _0x340639===_0x3be986;},'ugBJz':_0x20a727(0x1de),'lYtiI':function(_0x427b3f,_0x7f1476){return _0x427b3f(_0x7f1476);}};try{const _0x7ef8f8=this[_0x20a727(0x145)];this[_0x20a727(0x145)]=_0x37eb75,_0x37eb75[_0x20a727(0x1e6)]=null,_0x37eb75[_0x20a727(0x174)]=TestDetails['setTestUUID'](process[_0x20a727(0x175)]+_0x20a727(0x138)),_0x37eb75[_0x20a727(0x12d)]=new Date()[_0x20a727(0x1c9)](),_0x3a011b['AIvqS'](_0x37eb75[_0x20a727(0x1b0)],0x0)&&_0x7ef8f8&&_0x3a011b[_0x20a727(0x1a8)](_0x7ef8f8[_0x20a727(0x1bc)],_0x37eb75['title'])?(_0x37eb75[_0x20a727(0x1e6)]=_0x7ef8f8['testAnalyticsId'],await this[_0x20a727(0x1c8)](_0x37eb75,undefined,![],_0x3a011b[_0x20a727(0x1bb)]),_0x7ef8f8[_0x20a727(0x1b4)]=STATE_FAILED,await this[_0x20a727(0x1c8)](_0x7ef8f8,undefined,!![])):await this[_0x20a727(0x1c8)](_0x37eb75,undefined,![],_0x3a011b[_0x20a727(0x1bb)]);}catch(_0x2184d4){_0x3a011b[_0x20a727(0x15f)](debug,'Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20'+_0x2184d4);}};[a23_0x4e4c51(0x1aa)](_0x1e1980){const _0x54de4c=a23_0x4e4c51,_0x100355={};_0x100355[_0x54de4c(0x13e)]=function(_0x572768,_0x1bf019){return _0x572768!==_0x1bf019;},_0x100355[_0x54de4c(0x19f)]='test';const _0x50a675=_0x100355;if(_0x50a675['rfnXN'](_0x1e1980['type'],_0x50a675[_0x54de4c(0x19f)]))return'\x22'+_0x1e1980[_0x54de4c(0x188)]+_0x54de4c(0x15b)+(_0x1e1980['parent']&&_0x1e1980[_0x54de4c(0x151)][_0x54de4c(0x124)])+'\x22';return _0x1e1980[_0x54de4c(0x124)];}['sendTestRunEvent']=async(_0x47faa2,_0x106e67=undefined,_0x259cc9=![],_0x1bb3dc=a23_0x4e4c51(0x1e9))=>{const _0x440de8=a23_0x4e4c51,_0x232425={'iIvdh':_0x440de8(0x14f),'jmsey':_0x440de8(0x1d0),'eocVw':_0x440de8(0x1c5),'psncL':_0x440de8(0x1b1),'TsGEd':_0x440de8(0x137),'HswOS':_0x440de8(0x18a),'gskkf':_0x440de8(0x156),'agRpG':function(_0x12328c,_0x2371f7){return _0x12328c(_0x2371f7);},'WKOBF':'jest-circus','Lgrvi':function(_0x2730ae,_0x329476){return _0x2730ae(_0x329476);},'eFsZn':_0x440de8(0x1a2),'zjZdN':function(_0x19867c,_0x526204){return _0x19867c!==_0x526204;},'scvFI':_0x440de8(0x189),'WIIEk':_0x440de8(0x153),'pesJr':function(_0x2a0faa,_0x50a8d2){return _0x2a0faa!==_0x50a8d2;},'UFQxJ':function(_0x59b7b7,_0x4346fb){return _0x59b7b7!==_0x4346fb;},'gtCLw':_0x440de8(0x132),'YTzJV':_0x440de8(0x184),'SBvus':function(_0x5d468e,_0x180e29){return _0x5d468e===_0x180e29;},'poOgE':'TestRunSkipped','coglO':_0x440de8(0x1c3),'txnFw':function(_0x23bdbf,_0x3bbe2d){return _0x23bdbf>_0x3bbe2d;},'EplQQ':_0x440de8(0x15e),'CZZXv':_0x440de8(0x19e),'XQbmR':function(_0x2178dd,_0x6a7f92){return _0x2178dd-_0x6a7f92;},'cSmwH':function(_0x16faf7,_0x356ee5,_0x261c1d,_0x3f3d12,_0x42226c){return _0x16faf7(_0x356ee5,_0x261c1d,_0x3f3d12,_0x42226c);},'fkkrd':_0x440de8(0x12d),'pTLkT':_0x440de8(0x131),'SvKZQ':'HookRunFinished','lCsAV':_0x440de8(0x193),'oUrsw':_0x440de8(0x13f),'VsCCd':_0x440de8(0x128),'aJjla':'expanded','tgriB':_0x440de8(0x1e9),'IVfpH':_0x440de8(0x130),'ltmis':function(_0x3ed5e7,_0x143971){return _0x3ed5e7>_0x143971;},'ElWVH':_0x440de8(0x1cd),'nUpBu':function(_0x195d60,_0x1d9e79,_0x4d0ee9){return _0x195d60(_0x1d9e79,_0x4d0ee9);},'WLFMH':function(_0x35f4e5,_0x5b34ff){return _0x35f4e5(_0x5b34ff);}};try{if(_0x47faa2['fn']&&_0x47faa2['fn'][_0x440de8(0x1ca)]()[_0x440de8(0x163)](/browserstack internal helper hook/))return;await this[_0x440de8(0x164)]();let _0x36c9a8;try{_0x36c9a8=this[_0x440de8(0x13d)](_0x47faa2);}catch(_0x31e0c5){_0x232425['agRpG'](debug,_0x440de8(0x141)+_0x31e0c5),_0x36c9a8=null;}if(_0x36c9a8[_0x440de8(0x194)](_0x232425[_0x440de8(0x1bf)]))return;const _0x280464=_0x232425[_0x440de8(0x18e)](require,_0x232425['eFsZn']);let _0x36294a=[];if(_0x232425[_0x440de8(0x129)](_0x47faa2[_0x440de8(0x1bd)],undefined))_0x36294a=[_0x47faa2[_0x440de8(0x1bd)],_0x232425[_0x440de8(0x180)]];else _0x232425['zjZdN'](_0x106e67,undefined)?_0x36294a=[_0x106e67,_0x232425[_0x440de8(0x14a)]]:_0x36294a=[];const _0x22d1e5=_0x232425['pesJr'](_0x47faa2[_0x440de8(0x1bd)],undefined)?_0x280464[_0x440de8(0x1b3)](_0x47faa2['errorsDetailed'][0x0]):_0x232425[_0x440de8(0x17f)](_0x106e67,undefined)?_0x106e67[_0x440de8(0x1ca)]():undefined,_0x173359=_0x36c9a8?this[_0x440de8(0x161)]['prefixTestPath'](this[_0x440de8(0x13d)](_0x47faa2)):_0x232425['gtCLw'],_0x10de2e={'framework':FRAMEWORKS[_0x440de8(0x122)],'uuid':_0x47faa2['testAnalyticsId']||_0x47faa2[_0x440de8(0x1b6)],'name':this[_0x440de8(0x1aa)](_0x47faa2),'body':{'lang':_0x232425['YTzJV'],'code':_0x47faa2['fn'][_0x440de8(0x1ca)]()},'scopes':this[_0x440de8(0x143)](_0x47faa2),'file_name':_0x173359,'vc_filepath':this[_0x440de8(0x158)]&&_0x36c9a8?path[_0x440de8(0x159)](this[_0x440de8(0x158)],_0x36c9a8):null,'location':_0x173359,'result':_0x232425[_0x440de8(0x148)](_0x1bb3dc,_0x232425['poOgE'])?_0x232425[_0x440de8(0x172)]:this[_0x440de8(0x196)](_0x47faa2[_0x440de8(0x1bd)]&&_0x232425['txnFw'](_0x47faa2[_0x440de8(0x1bd)][_0x440de8(0x1a5)],0x0)?_0x232425[_0x440de8(0x1b9)]:_0x232425[_0x440de8(0x1c4)]),'failure_reason':_0x22d1e5,'duration_in_ms':_0x47faa2[_0x440de8(0x149)]||(_0x1bb3dc[_0x440de8(0x163)](/Finished/)||_0x1bb3dc['match'](/Skipped/)?_0x232425[_0x440de8(0x142)](Date[_0x440de8(0x183)](),new Date(_0x47faa2[_0x440de8(0x12d)])[_0x440de8(0x1a9)]()):null),'started_at':_0x47faa2[_0x440de8(0x12d)],'finished_at':_0x1bb3dc['match'](/Finished/)||_0x1bb3dc[_0x440de8(0x163)](/Skipped/)?new Date()[_0x440de8(0x1c9)]():null,'failure':failureData[_0x440de8(0x136)](null,_0x36294a),'failure_type':!_0x22d1e5?null:_0x232425['Lgrvi'](getFailureType,_0x22d1e5),'retry_of':_0x47faa2['retryOf']};_0x232425[_0x440de8(0x19a)](appendTesthubParams,_0x10de2e,_0x1bb3dc,_0x47faa2,FRAMEWORKS['JEST']);_0x232425[_0x440de8(0x148)](_0x1bb3dc,_0x232425[_0x440de8(0x197)])&&!_0x10de2e[_0x232425[_0x440de8(0x1a6)]]&&(_0x10de2e[_0x232425[_0x440de8(0x1a6)]]=_0x10de2e[_0x232425[_0x440de8(0x169)]]);if(_0x1bb3dc[_0x440de8(0x163)](/HookRun/))[_0x10de2e[_0x440de8(0x130)],_0x10de2e[_0x440de8(0x124)]]=[_0x47faa2[_0x440de8(0x188)],this[_0x440de8(0x1aa)](_0x47faa2)],_0x232425[_0x440de8(0x148)](_0x1bb3dc,_0x232425[_0x440de8(0x1df)])&&(_0x232425[_0x440de8(0x17f)](_0x10de2e[_0x440de8(0x18a)],_0x232425[_0x440de8(0x1b9)])&&(_0x10de2e['result']=_0x232425[_0x440de8(0x1c4)]));else _0x1bb3dc[_0x440de8(0x163)](/TestRun/)&&this[_0x440de8(0x1ab)](_0x47faa2);const _0x21527d=_0x10de2e[_0x232425[_0x440de8(0x1cf)]][0x0];_0x21527d&&(_0x10de2e[_0x232425[_0x440de8(0x1da)]]=_0x21527d[_0x232425[_0x440de8(0x133)]],_0x10de2e[_0x232425['VsCCd']]=_0x21527d[_0x232425[_0x440de8(0x1e7)]]);[_0x232425[_0x440de8(0x1db)],_0x232425[_0x440de8(0x197)]]['includes'](_0x1bb3dc)&&(this[_0x440de8(0x146)][_0x440de8(0x1ce)](_0x10de2e),_0x10de2e[_0x440de8(0x177)]=this[_0x440de8(0x154)](_0x47faa2),this[_0x440de8(0x127)](_0x47faa2));const _0x1fca2e={'event_type':_0x232425[_0x440de8(0x148)](_0x1bb3dc,_0x232425[_0x440de8(0x197)])?_0x232425['tgriB']:_0x1bb3dc};_0x1bb3dc['match'](/HookRun/)?(_0x10de2e[_0x232425[_0x440de8(0x15c)]]=HOOK_TYPES_MAP[_0x10de2e[_0x232425['IVfpH']]],_0x1fca2e[_0x232425['jmsey']]=_0x10de2e):_0x1fca2e[_0x232425[_0x440de8(0x1d6)]]=_0x10de2e;_0x232425['ltmis'](this[_0x440de8(0x1e0)][_0x440de8(0x1a5)],0x0)&&[_0x232425[_0x440de8(0x1db)],_0x232425['poOgE']]['includes'](_0x1bb3dc)&&(this[_0x440de8(0x1e0)][_0x440de8(0x17b)](async _0x225c07=>{const _0x48523d=_0x440de8,_0x170cf0=_0x232425['iIvdh'][_0x48523d(0x155)]('|');let _0x513291=0x0;while(!![]){switch(_0x170cf0[_0x513291++]){case'0':_0x225c07[_0x232425[_0x48523d(0x12c)]][_0x232425[_0x48523d(0x1b5)]]=_0x1fca2e[_0x232425[_0x48523d(0x1d6)]][_0x232425[_0x48523d(0x1b5)]];continue;case'1':_0x225c07[_0x232425['jmsey']][_0x232425['TsGEd']]=_0x1fca2e[_0x232425[_0x48523d(0x1d6)]][_0x232425[_0x48523d(0x1a4)]];continue;case'2':await SessionHandler[_0x48523d(0x1a7)](_0x225c07);continue;case'3':_0x225c07[_0x232425['jmsey']][_0x232425['HswOS']]=_0x1fca2e[_0x232425[_0x48523d(0x1d6)]][_0x232425[_0x48523d(0x195)]];continue;case'4':_0x225c07[_0x232425[_0x48523d(0x12c)]][_0x232425['gskkf']]=_0x1fca2e[_0x232425[_0x48523d(0x1d6)]][_0x232425[_0x48523d(0x1cf)]];continue;}break;}}),this['hook_data']=[]);if(_0x232425[_0x440de8(0x148)](this[_0x440de8(0x19d)],_0x47faa2[_0x440de8(0x188)])){this[_0x440de8(0x1e0)]['push'](_0x1fca2e);return;}_0x232425['SBvus'](this[_0x440de8(0x19d)],_0x232425[_0x440de8(0x17a)])&&_0x1fca2e[_0x232425[_0x440de8(0x1d6)]]&&(_0x1fca2e[_0x232425['psncL']][_0x232425[_0x440de8(0x195)]]=_0x232425[_0x440de8(0x172)],_0x1fca2e[_0x232425[_0x440de8(0x1d6)]][_0x232425['gskkf']]=null,_0x1fca2e[_0x232425['psncL']][_0x232425[_0x440de8(0x1a4)]]=null),_0x232425[_0x440de8(0x168)](setCurrentTestData,FRAMEWORKS[_0x440de8(0x122)],_0x1fca2e),await SessionHandler[_0x440de8(0x1a7)](_0x1fca2e);}catch(_0xe5ca72){_0x232425[_0x440de8(0x14d)](debug,_0x440de8(0x13b)+_0x1bb3dc+'\x20with\x20error\x20:\x20'+_0xe5ca72);}};[a23_0x4e4c51(0x157)](_0x4c1287){const _0x1cf347=a23_0x4e4c51,_0x1d527c={};_0x1d527c[_0x1cf347(0x16e)]=function(_0x555dc4,_0x28e66e){return _0x555dc4==_0x28e66e;},_0x1d527c['FLNfi']=function(_0x13471d,_0x38e072){return _0x13471d===_0x38e072;},_0x1d527c['TMIEJ']=function(_0x5d0bcc,_0x127297){return _0x5d0bcc===_0x127297;},_0x1d527c[_0x1cf347(0x134)]=function(_0x430727,_0xb0a459){return _0x430727===_0xb0a459;},_0x1d527c[_0x1cf347(0x1e4)]=_0x1cf347(0x1d5),_0x1d527c[_0x1cf347(0x1d3)]=_0x1cf347(0x18d);const _0x8479b5=_0x1d527c,_0x59adc8=path[_0x1cf347(0x126)];if(_0x8479b5[_0x1cf347(0x16e)](_0x4c1287,null)||_0x8479b5[_0x1cf347(0x1c7)](_0x4c1287,'')||_0x8479b5['TMIEJ'](_0x4c1287,_0x59adc8)||_0x8479b5['POkJV'](_0x4c1287,path['dirname'](_0x4c1287)))return null;try{return fs[_0x1cf347(0x1dc)](path['join'](_0x4c1287,_0x8479b5[_0x1cf347(0x1e4)],_0x8479b5[_0x1cf347(0x1d3)])),_0x4c1287;}catch(_0x189169){const _0x591d1d=path['dirname'](_0x4c1287);return this[_0x1cf347(0x157)](_0x591d1d);}}['appendTestItemLog']=async _0x220bd7=>{const _0x561916=a23_0x4e4c51,_0x2c0d17={'wmrSN':_0x561916(0x14b),'YlMVJ':function(_0x2a0eb2,_0x270703){return _0x2a0eb2(_0x270703);}},_0x153ed0=TestDetails[_0x561916(0x192)](process[_0x561916(0x175)]+':hookAnalyticsId'),_0x495d1d=TestDetails[_0x561916(0x192)](process[_0x561916(0x175)]+':testAnalyticsId');try{(_0x153ed0||this[_0x561916(0x1e1)]&&!this[_0x561916(0x1e1)][_0x561916(0x12b)])&&(_0x220bd7[_0x561916(0x13c)]=_0x153ed0);!_0x220bd7['hook_run_uuid']&&_0x495d1d&&(_0x220bd7['test_run_uuid']=_0x495d1d);if(_0x220bd7[_0x561916(0x13c)]||_0x220bd7[_0x561916(0x182)]){const _0x5c66d1={};_0x5c66d1['event_type']=_0x2c0d17[_0x561916(0x14e)],_0x5c66d1['logs']=[_0x220bd7],await SessionHandler[_0x561916(0x1a7)](_0x5c66d1);}}catch(_0xeb2fda){_0x2c0d17['YlMVJ'](debug,_0x561916(0x1d4)+_0xeb2fda);}};[a23_0x4e4c51(0x171)]=async _0x2eb17c=>{const _0x442513=a23_0x4e4c51,_0x2328b9={'tYMmW':_0x442513(0x1cc),'KytVf':_0x442513(0x1d2),'icFRM':function(_0x1b8014,_0x49c521){return _0x1b8014(_0x49c521);}};try{const _0x3add9f={'uuid':_0x2eb17c[_0x442513(0x1af)]||TestDetails[_0x442513(0x192)](process[_0x442513(0x175)]+_0x442513(0x138)),'integrations':_0x2eb17c[_0x2328b9[_0x442513(0x15d)]]},_0x366492={};_0x366492[_0x442513(0x199)]=_0x2328b9[_0x442513(0x178)],_0x366492[_0x442513(0x1b1)]=_0x3add9f,await SessionHandler[_0x442513(0x1a7)](_0x366492);}catch(_0x500b96){_0x2328b9[_0x442513(0x17e)](debug,_0x442513(0x14c)+_0x500b96);}};async[a23_0x4e4c51(0x164)](){const _0x136433=a23_0x4e4c51,_0x37153c={'VEIQs':function(_0x5bb768){return _0x5bb768();}};if(this[_0x136433(0x1ae)])return this[_0x136433(0x158)];const _0x1ce0eb=await _0x37153c['VEIQs'](getGitMetaData);_0x1ce0eb&&(this[_0x136433(0x158)]=_0x1ce0eb[_0x136433(0x181)]),this[_0x136433(0x1ae)]=!![];}[a23_0x4e4c51(0x196)](_0x4ae7ac){const _0xfe452b=a23_0x4e4c51,_0x586621={};_0x586621['KKIeW']='passed',_0x586621[_0xfe452b(0x179)]='pending',_0x586621[_0xfe452b(0x18f)]=_0xfe452b(0x15e);const _0x2f8e78=_0x586621,_0x1350c0={};return _0x1350c0[STATE_PASSED]=_0x2f8e78['KKIeW'],_0x1350c0[STATE_PENDING]=_0x2f8e78[_0xfe452b(0x179)],_0x1350c0[STATE_FAILED]=_0x2f8e78[_0xfe452b(0x18f)],_0x1350c0[_0x4ae7ac];}[a23_0x4e4c51(0x143)](_0x2319c9){const _0x5c3ae5=a23_0x4e4c51,_0x43a1d4={};_0x43a1d4[_0x5c3ae5(0x147)]=function(_0x269e56,_0xd21816){return _0x269e56!==_0xd21816;},_0x43a1d4['YKpRd']=_0x5c3ae5(0x1ac);const _0x378fad=_0x43a1d4,_0x34a904=[];if(_0x2319c9&&_0x2319c9[_0x5c3ae5(0x151)]){let _0x305925=_0x2319c9[_0x5c3ae5(0x151)];while(_0x305925&&_0x378fad['scfUb'](_0x305925[_0x5c3ae5(0x124)],'')&&_0x378fad[_0x5c3ae5(0x147)](_0x305925['name'],_0x378fad['YKpRd'])){_0x34a904[_0x5c3ae5(0x1ce)](_0x305925[_0x5c3ae5(0x124)]),_0x305925=_0x305925['parent'];}}return _0x34a904[_0x5c3ae5(0x1e5)](),_0x34a904;}['getRootParentFile']=_0x29b8b2=>{const _0x5d91c3=a23_0x4e4c51;if(_0x29b8b2[_0x5d91c3(0x16b)]){const _0x59e92f=stackTrace[_0x5d91c3(0x1be)][_0x5d91c3(0x140)](stackTrace,_0x29b8b2[_0x5d91c3(0x16b)]);return _0x59e92f[0x0][_0x5d91c3(0x176)]();}if(_0x29b8b2[_0x5d91c3(0x1b8)])return _0x29b8b2['file'];return null;};[a23_0x4e4c51(0x1ab)]=_0x5a727c=>{const _0x5813e0=a23_0x4e4c51;if(!_0x5a727c||!_0x5a727c[_0x5813e0(0x151)])return;_0x5a727c[_0x5813e0(0x151)][_0x5813e0(0x177)][_0x5813e0(0x17b)](_0x2d1e6a=>{const _0x374142=_0x5813e0;!_0x2d1e6a['hookAnalyticsId']&&(_0x2d1e6a[_0x374142(0x1b6)]=TestDetails[_0x374142(0x1e8)](process[_0x374142(0x175)]+_0x374142(0x17c)));}),this[_0x5813e0(0x1ab)](_0x5a727c['parent']);};['resetTestHooks']=_0x2cda82=>{const _0x3591aa=a23_0x4e4c51,_0x43a2b2={};_0x43a2b2[_0x3591aa(0x19c)]=_0x3591aa(0x17d),_0x43a2b2[_0x3591aa(0x16f)]=_0x3591aa(0x187);const _0x487843=_0x43a2b2;if(!_0x2cda82||!_0x2cda82[_0x3591aa(0x151)])return;_0x2cda82['parent'][_0x3591aa(0x177)]['forEach'](_0x2448bd=>{const _0x5644e0=_0x3591aa;[_0x487843[_0x5644e0(0x19c)],_0x487843[_0x5644e0(0x16f)]][_0x5644e0(0x194)](_0x2448bd[_0x5644e0(0x188)])&&_0x2448bd[_0x5644e0(0x1b6)]&&(_0x2448bd['hookAnalyticsId']=null);}),this[_0x3591aa(0x1ab)](_0x2cda82[_0x3591aa(0x151)]);};[a23_0x4e4c51(0x1d9)](_0x4373ca){const _0x1f9b29=a23_0x4e4c51,_0x28cd7a={'cuktH':_0x1f9b29(0x152),'QUreG':function(_0x2603a0,_0x5ceeaf){return _0x2603a0(_0x5ceeaf);},'wHGDF':function(_0x3c4bd2,_0x4cd507){return _0x3c4bd2+_0x4cd507;},'zXrQT':_0x1f9b29(0x1c1)};try{const _0x1846b0=this['getRootParentFile'](_0x4373ca);return _0x1846b0[_0x1f9b29(0x194)](_0x28cd7a[_0x1f9b29(0x1ba)]);}catch(_0x4dd7){_0x28cd7a[_0x1f9b29(0x125)](debug,_0x28cd7a[_0x1f9b29(0x1b7)](_0x28cd7a[_0x1f9b29(0x1d1)],_0x4dd7));}return![];}[a23_0x4e4c51(0x154)]=_0x4c8000=>{const _0x30b739=a23_0x4e4c51,_0x5405c1={'TLgvT':function(_0x5d16ef,_0x29d5bf){return _0x5d16ef(_0x29d5bf);}};if(!_0x4c8000||!_0x4c8000['parent'])return[];const _0x4e94f1=[];return _0x4c8000['parent']['hooks']['forEach'](_0x112766=>{const _0x541c1e=a23_0x5690;_0x112766[_0x541c1e(0x1b6)]&&!_0x5405c1[_0x541c1e(0x1cb)](isInternalHook,_0x112766['fn'])&&!this[_0x541c1e(0x1d9)](_0x112766)&&_0x4e94f1[_0x541c1e(0x1ce)](_0x112766['hookAnalyticsId']);}),[..._0x4e94f1,...this[_0x30b739(0x154)](_0x4c8000['parent'])];};},[a23_0x4e4c51(0x173),'registerListeners',a23_0x4e4c51(0x18c),a23_0x4e4c51(0x1aa),a23_0x4e4c51(0x1c8),a23_0x4e4c51(0x157),a23_0x4e4c51(0x185),a23_0x4e4c51(0x171),'analyticsResult','getHierarchy',a23_0x4e4c51(0x13d),a23_0x4e4c51(0x1ab),a23_0x4e4c51(0x127),'getHooksForTest','configureGit'],a23_0x4e4c51(0x139));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a24_0x324b(_0x24af6c,_0xfaefbe){const _0x177a23=a24_0x177a();return a24_0x324b=function(_0x324be3,_0x520a45){_0x324be3=_0x324be3-0x181;let _0x29ee04=_0x177a23[_0x324be3];return _0x29ee04;},a24_0x324b(_0x24af6c,_0xfaefbe);}const a24_0x48ea8f=a24_0x324b;function a24_0x177a(){const _0x497797=['EfAOW','_test','639502QZwvVE','mkdirSync','tests','testData.json','../../../helpers/testhub/constants','196StjoMa','ZkTUK','homedir','jest-o11y-','dirPath','5686747rEpGpx','150448BJdzFk','SGWMF','5037546HplsjY','2546680LdJsff','2iYPZQW','vIjwk','env','234LIdlTL','4845FpKSBK','MkNEl','setup','existsSync','_projectId','BROWSERSTACK_TESTHUB_UUID','7htlqnd','readFileSync','uuid','removeTestUUID','force','unlinkSync','CnyNG','retry','.browserstack','.json','rmSync','parse','shutdown','GMIUX','toString','77660aQPPai','setTestUUID','recursive','exports','getFilePath','writeFileSync','join','../../../helpers/helper','xtjTi','ENV_VAR','getTestData','path','azFee','getTestUUID'];a24_0x177a=function(){return _0x497797;};return a24_0x177a();}(function(_0x40dc81,_0x1fee4b){const _0x350843=a24_0x324b,_0x799735=_0x40dc81();while(!![]){try{const _0x522e50=parseInt(_0x350843(0x1b3))/0x1*(parseInt(_0x350843(0x18a))/0x2)+-parseInt(_0x350843(0x18e))/0x3+-parseInt(_0x350843(0x1b8))/0x4*(parseInt(_0x350843(0x1a3))/0x5)+-parseInt(_0x350843(0x188))/0x6*(-parseInt(_0x350843(0x194))/0x7)+-parseInt(_0x350843(0x186))/0x8*(-parseInt(_0x350843(0x18d))/0x9)+-parseInt(_0x350843(0x189))/0xa+-parseInt(_0x350843(0x185))/0xb;if(_0x522e50===_0x1fee4b)break;else _0x799735['push'](_0x799735['shift']());}catch(_0xe2b491){_0x799735['push'](_0x799735['shift']());}}}(a24_0x177a,0x69e39));const fs=require('fs'),path=require(a24_0x48ea8f(0x1ae)),{v4:uuidv4}=require(a24_0x48ea8f(0x196)),helper=require(a24_0x48ea8f(0x1aa)),testHubConstants=require(a24_0x48ea8f(0x1b7));class TestDetails{static [a24_0x48ea8f(0x1b5)]={};static [a24_0x48ea8f(0x184)]=path[a24_0x48ea8f(0x1a9)](helper[a24_0x48ea8f(0x182)](),'.browserstack',a24_0x48ea8f(0x183)+process['env'][testHubConstants[a24_0x48ea8f(0x1ac)][a24_0x48ea8f(0x193)]]);static[a24_0x48ea8f(0x190)](){const _0xd614e9=a24_0x48ea8f,_0x3e9ef={};_0x3e9ef[_0xd614e9(0x1ab)]=_0xd614e9(0x19c);const _0x2c3b82=_0x3e9ef;this[_0xd614e9(0x184)]=path[_0xd614e9(0x1a9)](helper[_0xd614e9(0x182)](),_0x2c3b82[_0xd614e9(0x1ab)],_0xd614e9(0x183)+process[_0xd614e9(0x18c)][testHubConstants['ENV_VAR'][_0xd614e9(0x193)]]),this[_0xd614e9(0x1a0)]();const _0x1b1d87={};_0x1b1d87[_0xd614e9(0x1a5)]=!![],fs[_0xd614e9(0x1b4)](this['dirPath'],_0x1b1d87);}static[a24_0x48ea8f(0x1a7)](_0x214e21){const _0x7ea896=a24_0x48ea8f,_0x133ff0={};_0x133ff0['EfAOW']=function(_0x4ca562,_0x27555b){return _0x4ca562+_0x27555b;},_0x133ff0[_0x7ea896(0x181)]=_0x7ea896(0x19d);const _0x299976=_0x133ff0;return path[_0x7ea896(0x1a9)](this[_0x7ea896(0x184)],_0x299976[_0x7ea896(0x1b1)](_0x214e21,_0x299976[_0x7ea896(0x181)]));}static['getTestRunIdFromTestInfo'](_0x2f75ef){const _0x16706d=a24_0x48ea8f,_0x304c14={};_0x304c14['vIjwk']=function(_0x5d5d16,_0x13eb0c){return _0x5d5d16+_0x13eb0c;},_0x304c14['GMIUX']=function(_0x542bf9,_0x5afc47){return _0x542bf9+_0x5afc47;},_0x304c14[_0x16706d(0x1af)]=function(_0xf1e73d,_0x357356){return _0xf1e73d+_0x357356;};const _0x39ec3f=_0x304c14;return _0x39ec3f[_0x16706d(0x18b)](_0x39ec3f[_0x16706d(0x1a1)](_0x39ec3f[_0x16706d(0x1a1)](_0x39ec3f['azFee'](_0x2f75ef[_0x16706d(0x1b2)][_0x16706d(0x192)],'-'),_0x2f75ef[_0x16706d(0x1b2)]['id']),'-'),_0x2f75ef[_0x16706d(0x19b)]);}static[a24_0x48ea8f(0x1b0)](_0x4222a1){const _0x4a1921=a24_0x48ea8f,_0x495691=this[_0x4a1921(0x1a7)](_0x4222a1);if(fs['existsSync'](_0x495691)){const _0x38ce55=JSON[_0x4a1921(0x19f)](fs[_0x4a1921(0x195)](_0x495691)[_0x4a1921(0x1a2)]());return this[_0x4a1921(0x1b5)][_0x4222a1]=_0x38ce55,this[_0x4a1921(0x1b5)][_0x4222a1][_0x4a1921(0x196)];}}static['setTestData'](_0x1da8c9){const _0x5b5134=a24_0x48ea8f,_0x1150da={};_0x1150da[_0x5b5134(0x19a)]=_0x5b5134(0x1b6);const _0x367531=_0x1150da,_0x1fa682=path[_0x5b5134(0x1a9)](this['dirPath'],_0x367531[_0x5b5134(0x19a)]);fs['writeFileSync'](_0x1fa682,JSON['stringify'](_0x1da8c9));}static[a24_0x48ea8f(0x1ad)](){const _0x1c9652=a24_0x48ea8f,_0x725f95={};_0x725f95['MkNEl']=_0x1c9652(0x1b6);const _0xe30008=_0x725f95,_0x144138=path['join'](this[_0x1c9652(0x184)],_0xe30008[_0x1c9652(0x18f)]);let _0x26457b={};try{return _0x144138&&fs[_0x1c9652(0x191)](_0x144138)&&(_0x26457b=JSON[_0x1c9652(0x19f)](fs['readFileSync'](_0x144138)[_0x1c9652(0x1a2)]())),_0x26457b;}catch(_0x1ad5e2){return _0x26457b;}}static[a24_0x48ea8f(0x1a4)](_0x4a6011){const _0x3696c9=a24_0x48ea8f,_0x489446={'SGWMF':function(_0x3dbadd){return _0x3dbadd();}},_0x4d5060=this[_0x3696c9(0x1a7)](_0x4a6011);return this[_0x3696c9(0x1b5)][_0x4a6011]={'uuid':_0x489446[_0x3696c9(0x187)](uuidv4)},fs[_0x3696c9(0x1a8)](_0x4d5060,JSON['stringify'](this[_0x3696c9(0x1b5)][_0x4a6011])),this[_0x3696c9(0x1b5)][_0x4a6011][_0x3696c9(0x196)];}static[a24_0x48ea8f(0x197)](_0x5dda9b){const _0x359b97=a24_0x48ea8f,_0x6a714=this[_0x359b97(0x1a7)](_0x5dda9b);_0x6a714&&(fs[_0x359b97(0x191)](_0x6a714)&&fs[_0x359b97(0x199)](_0x6a714));}static[a24_0x48ea8f(0x1a0)](){const _0x276d24=a24_0x48ea8f,_0x1cd8c6={};_0x1cd8c6[_0x276d24(0x1a5)]=!![],_0x1cd8c6[_0x276d24(0x198)]=!![],fs[_0x276d24(0x19e)](this[_0x276d24(0x184)],_0x1cd8c6);}}module[a24_0x48ea8f(0x1a6)]=TestDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a25_0x51cee8=a25_0x2843;(function(_0x2f2c27,_0x19d3e7){const _0x1bbf2b=a25_0x2843,_0x454592=_0x2f2c27();while(!![]){try{const _0x23a535=-parseInt(_0x1bbf2b(0xef))/0x1*(-parseInt(_0x1bbf2b(0xf1))/0x2)+parseInt(_0x1bbf2b(0xec))/0x3+parseInt(_0x1bbf2b(0xed))/0x4+parseInt(_0x1bbf2b(0xf6))/0x5+-parseInt(_0x1bbf2b(0xf0))/0x6+parseInt(_0x1bbf2b(0xf5))/0x7+-parseInt(_0x1bbf2b(0xee))/0x8;if(_0x23a535===_0x19d3e7)break;else _0x454592['push'](_0x454592['shift']());}catch(_0x56caf1){_0x454592['push'](_0x454592['shift']());}}}(a25_0xef42,0xc4674));function a25_0x2843(_0x15f60e,_0x4fb2c6){const _0xef4236=a25_0xef42();return a25_0x2843=function(_0x2843ae,_0x19aa52){_0x2843ae=_0x2843ae-0xeb;let _0x1a3af1=_0xef4236[_0x2843ae];return _0x1a3af1;},a25_0x2843(_0x15f60e,_0x4fb2c6);}const {requireModule}=require(a25_0x51cee8(0xf2));require(a25_0x51cee8(0xf4))();const __wd__=requireModule(a25_0x51cee8(0xf3));for(const key of Object['keys'](global['__webdriver'])){__wd__[key]=global[a25_0x51cee8(0xeb)][key];}function a25_0xef42(){const _0x3f3577=['../../helpers/setKeepAlive','10325812azYKLT','6866630qcFXyL','__webdriver','2687298AkHxOR','6185880EvoOiu','33687536ifODom','26301rwJzFg','8437266mMwQKl','86CvAqii','../../helpers/helper','selenium-webdriver'];a25_0xef42=function(){return _0x3f3577;};return a25_0xef42();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a26_0x1d66(){const _0x30b14=['formatter','mochaOpts','_formatter','../../helpers/ai-sdk/autoHealHelper','99slSsZr','testSuitesFailed','../../helpers/helper','platform','_argv','56GDRQct','../utils/constants','_configuration','setConfig','testsUnknown','split','testsFailed','5WmzmtA','testsUndefined','path','_mochaOpts','nIjwb','718698oWmcUf','platformCaps','372928PZfmTy','testSuites','testsPassed','testsAmbiguous','../../helpers/performance/performance-tester','TgSWa','_framework','264414DvOcqa','../v2/browserstackCLI','498110iBWWfs','resolvePaths','testsPending','EVENTS','includes','capability','3364cOjPNh','3393fFsZrA','1724642hyvqvO','../../helpers/test-observability/requestQueueHandler','560997VNgMOD','_testObservability','testsErrorMessage','framework','_bsConfig'];a26_0x1d66=function(){return _0x30b14;};return a26_0x1d66();}const a26_0x31ffbf=a26_0x42ac;function a26_0x42ac(_0x16abd1,_0xb9b19d){const _0x1d66eb=a26_0x1d66();return a26_0x42ac=function(_0x42aca7,_0x4bcf7b){_0x42aca7=_0x42aca7-0x1a8;let _0x2cedce=_0x1d66eb[_0x42aca7];return _0x2cedce;},a26_0x42ac(_0x16abd1,_0xb9b19d);}(function(_0x165a3c,_0x16f28c){const _0x249a56=a26_0x42ac,_0xc514f5=_0x165a3c();while(!![]){try{const _0x242001=-parseInt(_0x249a56(0x1a9))/0x1+parseInt(_0x249a56(0x1b3))/0x2+-parseInt(_0x249a56(0x1b2))/0x3*(-parseInt(_0x249a56(0x1b1))/0x4)+parseInt(_0x249a56(0x1ca))/0x5*(-parseInt(_0x249a56(0x1cf))/0x6)+-parseInt(_0x249a56(0x1c3))/0x7*(parseInt(_0x249a56(0x1d1))/0x8)+-parseInt(_0x249a56(0x1b5))/0x9+-parseInt(_0x249a56(0x1ab))/0xa*(parseInt(_0x249a56(0x1be))/0xb);if(_0x242001===_0x16f28c)break;else _0xc514f5['push'](_0xc514f5['shift']());}catch(_0x193bbe){_0xc514f5['push'](_0xc514f5['shift']());}}}(a26_0x1d66,0x853c7));const path=require(a26_0x31ffbf(0x1cc)),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a26_0x31ffbf(0x1c0)),constants=require(a26_0x31ffbf(0x1c4)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),RequestQueueHandler=require(a26_0x31ffbf(0x1b4)),{isTestObservabilitySession}=require('../../helpers/test-observability/utils'),helper=require(a26_0x31ffbf(0x1c0)),PerformanceTester=require(a26_0x31ffbf(0x1d5)),PerformanceEvents=require('../../helpers/performance/constants')[a26_0x31ffbf(0x1ae)],{commandRepository}=require(a26_0x31ffbf(0x1bd)),BrowserstackCLI=require(a26_0x31ffbf(0x1aa));class Launcher{constructor(_0x28ce89,_0xb5791,_0x27895a,_0x382a4=[]){const _0x386933=a26_0x31ffbf,_0x19b002={'nIjwb':'11|13|9|0|22|21|4|18|14|8|3|6|7|19|23|17|2|15|10|1|5|12|20|16','TgSWa':function(_0x5a611e){return _0x5a611e();}},_0x4c204a=_0x19b002[_0x386933(0x1ce)][_0x386933(0x1c8)]('|');let _0x2981e4=0x0;while(!![]){switch(_0x4c204a[_0x2981e4++]){case'0':this[_0x386933(0x1cd)]=_0xb5791[_0x386933(0x1bb)];continue;case'1':global[_0x386933(0x1cb)]=0x0;continue;case'2':global[_0x386933(0x1ad)]=0x0;continue;case'3':this['_accessibilityAutomation']=_0x19b002[_0x386933(0x1d6)](isAccessibilityAutomationSession);continue;case'4':global['__platform__']=this[_0x386933(0x1c5)][_0x386933(0x1c1)];continue;case'5':global[_0x386933(0x1c7)]=0x0;continue;case'6':global['__platformCaps']=this[_0x386933(0x1c5)][_0x386933(0x1d0)]||{};continue;case'7':global[_0x386933(0x1d2)]=0x0;continue;case'8':this[_0x386933(0x1b6)]=_0x19b002[_0x386933(0x1d6)](isTestObservabilitySession);continue;case'9':this[_0x386933(0x1c5)][_0x386933(0x1b8)]=_0x28ce89;continue;case'10':global[_0x386933(0x1bf)]=0x0;continue;case'11':this[_0x386933(0x1a8)]=_0x28ce89;continue;case'12':global[_0x386933(0x1d4)]=0x0;continue;case'13':this[_0x386933(0x1c5)]=_0xb5791['configuration']||{};continue;case'14':this[_0x386933(0x1b9)]=_0x27895a;continue;case'15':global['testsSkipped']=0x0;continue;case'16':!constants['AI_ENABLED_FRAMEWORK'][_0x386933(0x1af)](_0x28ce89)&&(commandRepository[_0x386933(0x1c6)](_0x27895a),commandRepository['setFramework'](_0x28ce89));continue;case'17':global[_0x386933(0x1c9)]=0x0;continue;case'18':this[_0x386933(0x1c2)]=_0x382a4;continue;case'19':global['totalTests']=0x0;continue;case'20':global[_0x386933(0x1b7)]={};continue;case'21':this['_capability']=this[_0x386933(0x1c5)][_0x386933(0x1b0)];continue;case'22':this[_0x386933(0x1bc)]=_0xb5791[_0x386933(0x1ba)];continue;case'23':global[_0x386933(0x1d3)]=0x0;continue;}break;}}['setupCucumber'](_0x4d21ae,_0x46681a,_0x4690bb){const _0x4b22ff=a26_0x31ffbf,_0x39a7b2=_0x4d21ae[_0x4b22ff(0x1ac)];_0x4d21ae.resolvePaths=async function(){const pathResults=await _0x39a7b2.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x4690bb));return pathResults;},_0x46681a.push('--format'),_0x46681a.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_0x3f46ca=a26_0x53b9;(function(_0x210a05,_0x156211){const _0x11c07a=a26_0x53b9,_0x157a8c=_0x210a05();while(!![]){try{const _0x51cd5a=-parseInt(_0x11c07a(0x1a2))/0x1*(parseInt(_0x11c07a(0x17f))/0x2)+-parseInt(_0x11c07a(0x17d))/0x3+-parseInt(_0x11c07a(0x192))/0x4+-parseInt(_0x11c07a(0x1a4))/0x5+-parseInt(_0x11c07a(0x19b))/0x6+parseInt(_0x11c07a(0x190))/0x7*(-parseInt(_0x11c07a(0x18c))/0x8)+-parseInt(_0x11c07a(0x17a))/0x9*(-parseInt(_0x11c07a(0x1a3))/0xa);if(_0x51cd5a===_0x156211)break;else _0x157a8c['push'](_0x157a8c['shift']());}catch(_0x3f3f19){_0x157a8c['push'](_0x157a8c['shift']());}}}(a26_0x35ec,0x60a40));const path=require('path'),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a26_0x3f46ca(0x17c)),constants=require(a26_0x3f46ca(0x18d)),{isAccessibilityAutomationSession}=require(a26_0x3f46ca(0x188)),RequestQueueHandler=require(a26_0x3f46ca(0x18a)),{isTestObservabilitySession}=require('../../helpers/test-observability/utils'),helper=require(a26_0x3f46ca(0x17c)),PerformanceTester=require(a26_0x3f46ca(0x19a)),PerformanceEvents=require('../../helpers/performance/constants')['EVENTS'],{commandRepository}=require(a26_0x3f46ca(0x196)),BrowserstackCLI=require(a26_0x3f46ca(0x1a0));function a26_0x53b9(_0x9f3e8b,_0x26456e){const _0x35ecf9=a26_0x35ec();return a26_0x53b9=function(_0x53b9b9,_0x74a221){_0x53b9b9=_0x53b9b9-0x178;let _0x17b7b2=_0x35ecf9[_0x53b9b9];return _0x17b7b2;},a26_0x53b9(_0x9f3e8b,_0x26456e);}class Launcher{constructor(_0x4fa875,_0x49148b,_0xb91314,_0x2616d0=[]){const _0x54da76=a26_0x3f46ca,_0x1d2822={'ypBDM':_0x54da76(0x17e),'MaLlb':function(_0x5f055f){return _0x5f055f();},'HyujM':function(_0x37466c){return _0x37466c();}},_0x3f7c58=_0x1d2822[_0x54da76(0x17b)][_0x54da76(0x182)]('|');let _0x1dccca=0x0;while(!![]){switch(_0x3f7c58[_0x1dccca++]){case'0':global[_0x54da76(0x186)]=0x0;continue;case'1':global[_0x54da76(0x1a6)]=0x0;continue;case'2':global[_0x54da76(0x18b)]=0x0;continue;case'3':this[_0x54da76(0x180)]=_0x1d2822[_0x54da76(0x178)](isAccessibilityAutomationSession);continue;case'4':this['_configuration']=_0x49148b[_0x54da76(0x194)]||{};continue;case'5':global[_0x54da76(0x19c)]=this[_0x54da76(0x197)]['platform'];continue;case'6':global[_0x54da76(0x193)]=0x0;continue;case'7':this[_0x54da76(0x197)]['framework']=_0x4fa875;continue;case'8':this['_bsConfig']=_0xb91314;continue;case'9':global['__platformCaps']=this[_0x54da76(0x197)][_0x54da76(0x183)]||{};continue;case'10':!constants[_0x54da76(0x1a1)][_0x54da76(0x18f)](_0x4fa875)&&(commandRepository[_0x54da76(0x18e)](_0xb91314),commandRepository[_0x54da76(0x195)](_0x4fa875));continue;case'11':global[_0x54da76(0x199)]={};continue;case'12':this[_0x54da76(0x189)]=_0x49148b[_0x54da76(0x1a5)];continue;case'13':global[_0x54da76(0x191)]=0x0;continue;case'14':this['_framework']=_0x4fa875;continue;case'15':global['testsPassed']=0x0;continue;case'16':this[_0x54da76(0x185)]=_0x49148b[_0x54da76(0x19d)];continue;case'17':global[_0x54da76(0x181)]=0x0;continue;case'18':global[_0x54da76(0x187)]=0x0;continue;case'19':global[_0x54da76(0x19f)]=0x0;continue;case'20':this[_0x54da76(0x198)]=_0x2616d0;continue;case'21':this[_0x54da76(0x19e)]=_0x1d2822[_0x54da76(0x184)](isTestObservabilitySession);continue;case'22':this['_capability']=this[_0x54da76(0x197)]['capability'];continue;case'23':global[_0x54da76(0x179)]=0x0;continue;}break;}}['setupCucumber'](_0x19c8ef,_0x12364e,_0x3564fb){const _0x2860cd=_0x19c8ef['resolvePaths'];_0x19c8ef.resolvePaths=async function(){const pathResults=await _0x2860cd.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x3564fb));return pathResults;},_0x12364e.push('--format'),_0x12364e.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_0x35ec(){const _0x23610f=['../v2/browserstackCLI','AI_ENABLED_FRAMEWORK','623037RHvakS','6830zHNhzc','3536430hLqlzO','mochaOpts','testSuitesFailed','MaLlb','testSuites','40131AcXbxz','ypBDM','../../helpers/helper','1038657xYRJNk','14|4|7|12|16|22|5|20|8|21|3|9|23|19|15|13|17|6|1|0|18|2|11|10','2ObPldQ','_accessibilityAutomation','testsPending','split','platformCaps','HyujM','_formatter','testsUndefined','testsUnknown','../../helpers/accessibility-automation/helper','_mochaOpts','../../helpers/test-observability/requestQueueHandler','testsAmbiguous','5355728zDxFHy','../utils/constants','setConfig','includes','7vBMphR','testsFailed','505052IVetRH','testsSkipped','configuration','setFramework','../../helpers/ai-sdk/autoHealHelper','_configuration','_argv','testsErrorMessage','../../helpers/performance/performance-tester','1064316FwiZjc','__platform__','formatter','_testObservability','totalTests'];a26_0x35ec=function(){return _0x23610f;};return a26_0x35ec();}module.exports=Launcher;
|
package/src/bin/load/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a27_0xa640d9=a27_0x3960;(function(_0x38c7c2,_0x143b52){const _0x4eb988=a27_0x3960,_0x49e1e1=_0x38c7c2();while(!![]){try{const _0x47999a=parseInt(_0x4eb988(0x1a5))/0x1+-parseInt(_0x4eb988(0x1af))/0x2+parseInt(_0x4eb988(0x192))/0x3*(-parseInt(_0x4eb988(0x1b4))/0x4)+-parseInt(_0x4eb988(0x182))/0x5+parseInt(_0x4eb988(0x18c))/0x6+parseInt(_0x4eb988(0x17d))/0x7+parseInt(_0x4eb988(0x1b1))/0x8;if(_0x47999a===_0x143b52)break;else _0x49e1e1['push'](_0x49e1e1['shift']());}catch(_0x18f0b2){_0x49e1e1['push'](_0x49e1e1['shift']());}}}(a27_0xdcb8,0xad5a0));const {spawn}=require('child_process'),path=require(a27_0xa640d9(0x186)),helper=require(a27_0xa640d9(0x18d)),CLIUtils=require(a27_0xa640d9(0x17f)),{getLoadConfigPath,sleep}=require('./loadUtils'),logger=require(a27_0xa640d9(0x1ad))['winstonLogger'];async function executeLoadTest(_0x54d424){const _0x3cf944=a27_0xa640d9,_0x21b551={'DaXnE':function(_0x27a4e9,_0x3dc23a){return _0x27a4e9(_0x3dc23a);},'yywQL':_0x3cf944(0x1a2),'RXgJP':'Waiting\x20for\x20child\x20process\x20to\x20exit...','hRlqP':_0x3cf944(0x17e),'AAMrZ':function(_0x5e2ede,_0x5e9e0a){return _0x5e2ede(_0x5e9e0a);},'GWBzn':function(_0x8f7fb9){return _0x8f7fb9();},'gRYle':_0x3cf944(0x1a1),'vKXZh':_0x3cf944(0x17c),'TBKAF':_0x3cf944(0x175),'mJAHC':_0x3cf944(0x184),'Mvyxq':_0x3cf944(0x179),'ImETL':function(_0x3529eb,_0x467a9b,_0xa792b6,_0xec33e4){return _0x3529eb(_0x467a9b,_0xa792b6,_0xec33e4);},'vLZbx':_0x3cf944(0x193),'qduos':_0x3cf944(0x1b7),'lHUAf':_0x3cf944(0x18b),'jVGtX':_0x3cf944(0x181),'mmfEr':_0x3cf944(0x18f),'JVMWf':_0x3cf944(0x1b5),'OfPeO':function(_0x2b8b73){return _0x2b8b73();}};try{const _0x32912f=process['argv'][_0x3cf944(0x190)](0x2),_0xb182c2=_0x32912f[_0x3cf944(0x190)](0x1);logger['debug']('Executing\x20load\x20test\x20with\x20arguments:\x20'+_0xb182c2);let _0x10638f={};try{logger[_0x3cf944(0x1a9)](_0x21b551[_0x3cf944(0x171)]);const _0x1d3641={};_0x1d3641[_0x3cf944(0x196)]=process[_0x3cf944(0x194)]['BROWSERSTACK_USERNAME']||process[_0x3cf944(0x194)][_0x3cf944(0x197)],_0x1d3641[_0x3cf944(0x188)]=process[_0x3cf944(0x194)]['BROWSERSTACK_ACCESS_KEY']||process['env'][_0x3cf944(0x1b6)],_0x10638f=_0x1d3641;if(!_0x10638f[_0x3cf944(0x196)]||!_0x10638f[_0x3cf944(0x188)]){const _0x29ad82=_0x21b551['AAMrZ'](getLoadConfigPath,_0x54d424[_0x3cf944(0x18e)]);logger['debug'](_0x3cf944(0x19d)+_0x29ad82),_0x29ad82&&(_0x10638f=helper[_0x3cf944(0x18a)](_0x29ad82));}}catch(_0x55db56){logger['error'](_0x3cf944(0x1b3)+_0x55db56[_0x3cf944(0x19c)]),logger['debug'](_0x3cf944(0x1ae)+(_0x55db56[_0x3cf944(0x19a)]||JSON[_0x3cf944(0x198)](_0x55db56))),await _0x21b551[_0x3cf944(0x195)](sleep),process[_0x3cf944(0x172)](0x1);}(!_0x10638f[_0x3cf944(0x196)]||!_0x10638f[_0x3cf944(0x188)])&&(logger[_0x3cf944(0x19b)](_0x21b551['gRYle']),await _0x21b551['GWBzn'](sleep),process[_0x3cf944(0x172)](0x1));const _0xe15cf9=CLIUtils[_0x3cf944(0x1a0)]();!_0xe15cf9&&(logger['error'](_0x21b551[_0x3cf944(0x1a8)]),await _0x21b551[_0x3cf944(0x195)](sleep),process['exit'](0x1));let _0x13a195=CLIUtils[_0x3cf944(0x1a7)](_0xe15cf9);try{!_0x13a195?(logger[_0x3cf944(0x1a9)](_0x21b551[_0x3cf944(0x187)]),_0x13a195=await CLIUtils['checkAndUpdateCli']('',_0xe15cf9,_0x10638f)):(logger['debug'](_0x21b551[_0x3cf944(0x17a)]),_0x13a195=await CLIUtils[_0x3cf944(0x1a3)](_0x13a195,_0xe15cf9,_0x10638f));}catch(_0x3e3e7e){logger['error'](_0x21b551['gRYle']),logger[_0x3cf944(0x1a9)](_0x3cf944(0x174)+(_0x3e3e7e[_0x3cf944(0x19a)]||JSON[_0x3cf944(0x198)](_0x3e3e7e))),await _0x21b551[_0x3cf944(0x195)](sleep),process['exit'](0x1);}!_0x13a195&&(logger[_0x3cf944(0x19b)](_0x21b551[_0x3cf944(0x185)]),logger[_0x3cf944(0x1a9)](_0x21b551[_0x3cf944(0x19f)]),await _0x21b551[_0x3cf944(0x195)](sleep),process['exit'](0x1));logger[_0x3cf944(0x1a9)]('Spawning:\x20'+_0x13a195+_0x3cf944(0x1b0)+_0xb182c2[_0x3cf944(0x199)]('\x20'));const _0x517135=_0x21b551[_0x3cf944(0x19e)](spawn,_0x13a195,[_0x21b551[_0x3cf944(0x1ab)],..._0xb182c2],{'stdio':_0x21b551[_0x3cf944(0x17b)]});let _0x3adce8=![];const _0x2e2ee2=new Promise(_0x1fa770=>{const _0x5a75ca=_0x3cf944,_0x565133={'GhuQq':function(_0x14086d,_0x33a7d1){const _0x57754a=a27_0x3960;return _0x21b551[_0x57754a(0x1ac)](_0x14086d,_0x33a7d1);}};_0x517135['on'](_0x21b551[_0x5a75ca(0x180)],_0x49a1ba=>{const _0x571b2f=_0x5a75ca;logger[_0x571b2f(0x1a9)](_0x13a195+_0x571b2f(0x178)+_0x49a1ba),_0x565133['GhuQq'](_0x1fa770,_0x49a1ba);});});[_0x21b551[_0x3cf944(0x189)],_0x21b551[_0x3cf944(0x170)],_0x21b551[_0x3cf944(0x176)],_0x21b551[_0x3cf944(0x173)]]['forEach'](_0x242270=>{const _0x209081=_0x3cf944,_0x358242={};_0x358242[_0x209081(0x1b2)]=_0x21b551[_0x209081(0x177)];const _0x25df51=_0x358242;process['on'](_0x242270,()=>{const _0x13f4b6=_0x209081;if(_0x3adce8)return;_0x3adce8=!![],logger['debug'](_0x13f4b6(0x183)+_0x242270+_0x13f4b6(0x1aa)),_0x517135&&!_0x517135[_0x13f4b6(0x1a4)]&&(_0x517135[_0x13f4b6(0x1a6)](_0x242270),logger['debug'](_0x25df51['RutPw']));});});const _0x2f9667=await _0x2e2ee2;await _0x21b551['OfPeO'](sleep),process[_0x3cf944(0x172)](_0x2f9667);}catch(_0x2fe1f9){logger['error'](_0x3cf944(0x191)+_0x2fe1f9[_0x3cf944(0x19c)]),logger[_0x3cf944(0x1a9)]('Error\x20details:\x20'+(_0x2fe1f9[_0x3cf944(0x19a)]||JSON[_0x3cf944(0x198)](_0x2fe1f9))),await _0x21b551['OfPeO'](sleep),process[_0x3cf944(0x172)](0x1);}}module['exports']=executeLoadTest;function a27_0x3960(_0x4c53eb,_0x5b26e7){const _0xdcb8c1=a27_0xdcb8();return a27_0x3960=function(_0x3960dc,_0x3ef506){_0x3960dc=_0x3960dc-0x170;let _0x596eca=_0xdcb8c1[_0x3960dc];return _0x596eca;},a27_0x3960(_0x4c53eb,_0x5b26e7);}function a27_0xdcb8(){const _0x3f2ebf=['Failed\x20to\x20download\x20or\x20locate\x20CLI\x20binary','mJAHC','qduos','Failed\x20to\x20determine\x20CLI\x20directory','249060DKSvIz','Loading\x20configuration\x20using\x20environment\x20variables\x20if\x20available.','../v2/cliUtils','yywQL','SIGTERM','5669740PITLDf','Received\x20','CLI\x20binary\x20found,\x20Checking\x20for\x20CLI\x20updates','gRYle','path','TBKAF','accessKey','lHUAf','readConfig','SIGINT','5203290fGBnaV','../../helpers/helper','argv','SIGQUIT','slice','Failed\x20initiating\x20load\x20test:\x20','15927FAXsUQ','load','env','GWBzn','userName','BROWSERSTACK_USER','stringify','join','stack','error','message','Configuration\x20path:\x20','ImETL','Mvyxq','getCliDir','Authentication\x20incomplete.\x20Please\x20add\x20your\x20userName\x20and\x20accessKey\x20to\x20either\x20the\x20browserstack.yml\x20file\x20or\x20as\x20environment\x20variables,\x20then\x20try\x20running\x20the\x20command\x20again.','close','checkAndUpdateCli','killed','876065mDCGEM','kill','getExistingCliPath','vKXZh','debug',',\x20forwarding\x20to\x20child\x20process...','vLZbx','DaXnE','../../helpers/logger','Error\x20details:\x20','275532IxNEJK','\x20load\x20','8333792GXhexm','RutPw','Error\x20loading\x20configuration:\x20','632JaOJcE','SIGHUP','BROWSERSTACK_ACCESSKEY','inherit','jVGtX','hRlqP','exit','JVMWf','Error\x20Details:\x20','CLI\x20binary\x20not\x20found,\x20downloading\x20latest\x20version','mmfEr','RXgJP','\x20exited\x20with\x20code\x20'];a27_0xdcb8=function(){return _0x3f2ebf;};return a27_0xdcb8();}
|
|
@@ -4,38 +4,44 @@
|
|
|
4
4
|
const {spawn} = require('child_process');
|
|
5
5
|
const path = require('path');
|
|
6
6
|
const helper = require('../../helpers/helper');
|
|
7
|
-
const logger = require('../../helpers/logger').winstonLogger;
|
|
8
7
|
const CLIUtils = require('../v2/cliUtils');
|
|
9
|
-
const {getLoadConfigPath} = require('./loadUtils');
|
|
8
|
+
const {getLoadConfigPath, sleep} = require('./loadUtils');
|
|
9
|
+
const logger = require('../../helpers/logger').winstonLogger;
|
|
10
|
+
|
|
10
11
|
|
|
11
12
|
async function executeLoadTest(yargs) {
|
|
12
13
|
try {
|
|
13
14
|
const rawArgs = process.argv.slice(2);
|
|
14
15
|
const loadArgs = rawArgs.slice(1);
|
|
15
16
|
|
|
16
|
-
logger.debug(
|
|
17
|
-
const isHelpCommand = loadArgs.includes('--help') || loadArgs.includes('-h');
|
|
17
|
+
logger.debug(`Executing load test with arguments: ${loadArgs}`);
|
|
18
18
|
let config = {};
|
|
19
19
|
|
|
20
20
|
try {
|
|
21
|
-
logger.debug('Loading configuration
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
logger.debug(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
21
|
+
logger.debug('Loading configuration using environment variables if available.');
|
|
22
|
+
config = {
|
|
23
|
+
userName: process.env.BROWSERSTACK_USERNAME || process.env.BROWSERSTACK_USER,
|
|
24
|
+
accessKey: process.env.BROWSERSTACK_ACCESS_KEY || process.env.BROWSERSTACK_ACCESSKEY
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
if (!config.userName || !config.accessKey) {
|
|
28
|
+
const configPath = getLoadConfigPath(yargs.argv);
|
|
29
|
+
logger.debug(`Configuration path: ${configPath}`);
|
|
30
|
+
|
|
31
|
+
if (configPath) {
|
|
32
|
+
config = helper.readConfig(configPath);
|
|
33
|
+
}
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
logger.debug('Configuration loaded successfully');
|
|
37
35
|
} catch (error) {
|
|
38
|
-
logger.error(
|
|
36
|
+
logger.error(`Error loading configuration: ${error.message}`);
|
|
37
|
+
logger.debug(`Error details: ${error.stack || JSON.stringify(error)}`);
|
|
38
|
+
await sleep(); // Added sleep to ensure logs are flushed
|
|
39
|
+
process.exit(1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (!config.userName || !config.accessKey) {
|
|
43
|
+
logger.error('Authentication incomplete. Please add your userName and accessKey to either the browserstack.yml file or as environment variables, then try running the command again.');
|
|
44
|
+
await sleep();
|
|
39
45
|
process.exit(1);
|
|
40
46
|
}
|
|
41
47
|
|
|
@@ -43,6 +49,7 @@ async function executeLoadTest(yargs) {
|
|
|
43
49
|
const cliDir = CLIUtils.getCliDir();
|
|
44
50
|
if (!cliDir) {
|
|
45
51
|
logger.error('Failed to determine CLI directory');
|
|
52
|
+
await sleep();
|
|
46
53
|
process.exit(1);
|
|
47
54
|
}
|
|
48
55
|
|
|
@@ -51,16 +58,25 @@ async function executeLoadTest(yargs) {
|
|
|
51
58
|
|
|
52
59
|
// If CLI doesn't exist or needs to be updated, download it
|
|
53
60
|
// Pass config to CLI download/update process
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
try {
|
|
62
|
+
if (!binaryPath) {
|
|
63
|
+
logger.debug('CLI binary not found, downloading latest version');
|
|
64
|
+
binaryPath = await CLIUtils.checkAndUpdateCli('', cliDir, config);
|
|
65
|
+
} else {
|
|
66
|
+
logger.debug('CLI binary found, Checking for CLI updates');
|
|
67
|
+
binaryPath = await CLIUtils.checkAndUpdateCli(binaryPath, cliDir, config);
|
|
68
|
+
}
|
|
69
|
+
} catch (error) {
|
|
70
|
+
logger.error('Authentication incomplete. Please add your userName and accessKey to either the browserstack.yml file or as environment variables, then try running the command again.');
|
|
71
|
+
logger.debug(`Error Details: ${error.stack || JSON.stringify(error)}`);
|
|
72
|
+
await sleep();
|
|
73
|
+
process.exit(1);
|
|
60
74
|
}
|
|
61
75
|
|
|
62
76
|
if (!binaryPath) {
|
|
63
|
-
logger.error('
|
|
77
|
+
logger.error('Authentication incomplete. Please add your userName and accessKey to either the browserstack.yml file or as environment variables, then try running the command again.');
|
|
78
|
+
logger.debug('Failed to download or locate CLI binary');
|
|
79
|
+
await sleep();
|
|
64
80
|
process.exit(1);
|
|
65
81
|
}
|
|
66
82
|
|
|
@@ -103,10 +119,13 @@ async function executeLoadTest(yargs) {
|
|
|
103
119
|
const exitCode = await childProcessPromise;
|
|
104
120
|
|
|
105
121
|
// Exit with the same code as the child process
|
|
122
|
+
await sleep();
|
|
106
123
|
process.exit(exitCode);
|
|
107
124
|
|
|
108
125
|
} catch (error) {
|
|
109
126
|
logger.error(`Failed initiating load test: ${error.message}`);
|
|
127
|
+
logger.debug(`Error details: ${error.stack || JSON.stringify(error)}`);
|
|
128
|
+
await sleep();
|
|
110
129
|
process.exit(1);
|
|
111
130
|
}
|
|
112
131
|
}
|
|
@@ -10,49 +10,55 @@ const logger = require('../../helpers/logger').winstonLogger;
|
|
|
10
10
|
* @returns {string|undefined} The resolved config file path, or throws if none found.
|
|
11
11
|
*/
|
|
12
12
|
function getLoadConfigPath(argv) {
|
|
13
|
-
|
|
13
|
+
logger.debug(`Checking for config file with arguments: ${JSON.stringify(argv)}`);
|
|
14
|
+
try {
|
|
15
|
+
const cliArgs = argv._ || [];
|
|
16
|
+
// Check if this is a "load run" command
|
|
17
|
+
const isLoadRun = (argv._[0] === 'load' && argv.subcommand === 'run');
|
|
18
|
+
if (isLoadRun) {
|
|
19
|
+
// Check if config file was specified via --config-file flag
|
|
20
|
+
if (argv['config-file'] || argv.cf) {
|
|
21
|
+
const configFile = argv['config-file'] || argv.cf;
|
|
22
|
+
const potentialPath = path.resolve(configFile);
|
|
23
|
+
logger.debug(`Config file specified: ${configFile} and Resolved path: ${potentialPath}`);
|
|
14
24
|
|
|
15
|
-
|
|
16
|
-
|
|
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}`);
|
|
25
|
+
if (potentialPath.endsWith('.yml') || potentialPath.endsWith('.yaml')) {
|
|
26
|
+
logger.info(`Using specified config file: ${potentialPath}`);
|
|
23
27
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return potentialPath;
|
|
28
|
+
return potentialPath;
|
|
29
|
+
}
|
|
28
30
|
}
|
|
29
|
-
throw new Error(`Error: Could not read configuration file: ${potentialPath} does not exist`);
|
|
30
31
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
];
|
|
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
39
|
|
|
40
|
-
|
|
40
|
+
logger.debug('Checking for config in default config files...');
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
for (const fileName of defaultConfigFiles) {
|
|
43
|
+
const filePath = path.join(process.cwd(), fileName);
|
|
44
|
+
logger.debug(`Checking for: ${filePath}`);
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
if (fs.existsSync(filePath)) {
|
|
47
|
+
logger.debug(`Found config file: ${filePath}`);
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
return filePath;
|
|
50
|
+
}
|
|
50
51
|
}
|
|
52
|
+
} catch (err) {
|
|
53
|
+
logger.error(`Failed to load browserstack config: ${err.message}`);
|
|
51
54
|
}
|
|
55
|
+
}
|
|
52
56
|
|
|
53
|
-
|
|
57
|
+
function sleep() {
|
|
58
|
+
return new Promise(resolve => setTimeout(resolve, 100));
|
|
54
59
|
}
|
|
55
60
|
|
|
56
61
|
module.exports = {
|
|
57
|
-
getLoadConfigPath
|
|
62
|
+
getLoadConfigPath,
|
|
63
|
+
sleep
|
|
58
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a28_0x1a9767=a28_0x34df;function a28_0x34df(_0x25ea55,_0x39b9cb){const _0x1eab26=a28_0x1eab();return a28_0x34df=function(_0x34dfe2,_0x3ebcbe){_0x34dfe2=_0x34dfe2-0x98;let _0x1791b2=_0x1eab26[_0x34dfe2];return _0x1791b2;},a28_0x34df(_0x25ea55,_0x39b9cb);}(function(_0x12f2c5,_0x3cbc6b){const _0x21165a=a28_0x34df,_0x1b0938=_0x12f2c5();while(!![]){try{const _0x1f9f2b=-parseInt(_0x21165a(0xae))/0x1+-parseInt(_0x21165a(0xa9))/0x2*(-parseInt(_0x21165a(0xc3))/0x3)+-parseInt(_0x21165a(0x98))/0x4*(-parseInt(_0x21165a(0xc4))/0x5)+-parseInt(_0x21165a(0xb6))/0x6*(parseInt(_0x21165a(0xb1))/0x7)+-parseInt(_0x21165a(0xb0))/0x8+parseInt(_0x21165a(0xa5))/0x9*(-parseInt(_0x21165a(0xab))/0xa)+parseInt(_0x21165a(0xc0))/0xb*(parseInt(_0x21165a(0xa8))/0xc);if(_0x1f9f2b===_0x3cbc6b)break;else _0x1b0938['push'](_0x1b0938['shift']());}catch(_0x571f61){_0x1b0938['push'](_0x1b0938['shift']());}}}(a28_0x1eab,0xca1aa));const fs=require('fs'),path=require(a28_0x1a9767(0xaa)),logger=require('../../helpers/logger')['winstonLogger'];function getLoadConfigPath(_0x5bcd7a){const _0x2ffa36=a28_0x1a9767,_0x2d7170={};_0x2d7170[_0x2ffa36(0xbb)]=function(_0x1932c3,_0x50cab5){return _0x1932c3===_0x50cab5;},_0x2d7170['kvfGa']=_0x2ffa36(0xa6),_0x2d7170[_0x2ffa36(0xbe)]=_0x2ffa36(0xa0),_0x2d7170['aotxL']=_0x2ffa36(0xb2),_0x2d7170[_0x2ffa36(0x9c)]='.yml',_0x2d7170['gCqCd']='.yaml',_0x2d7170['fpkYV']=_0x2ffa36(0xa3),_0x2d7170[_0x2ffa36(0xb8)]=_0x2ffa36(0xb5),_0x2d7170[_0x2ffa36(0xb9)]=_0x2ffa36(0xaf),_0x2d7170[_0x2ffa36(0xad)]=_0x2ffa36(0xbd),_0x2d7170['rOxZJ']='Checking\x20for\x20config\x20in\x20default\x20config\x20files...';const _0x544b13=_0x2d7170;logger['debug']('Checking\x20for\x20config\x20file\x20with\x20arguments:\x20'+JSON[_0x2ffa36(0x9f)](_0x5bcd7a));try{const _0x3f8f3b=_0x5bcd7a['_']||[],_0x4c1e7d=_0x544b13[_0x2ffa36(0xbb)](_0x5bcd7a['_'][0x0],_0x544b13['kvfGa'])&&_0x544b13[_0x2ffa36(0xbb)](_0x5bcd7a[_0x2ffa36(0x9b)],_0x544b13[_0x2ffa36(0xbe)]);if(_0x4c1e7d){if(_0x5bcd7a[_0x544b13[_0x2ffa36(0x99)]]||_0x5bcd7a['cf']){const _0x46a522=_0x5bcd7a[_0x544b13['aotxL']]||_0x5bcd7a['cf'],_0x3d8ea4=path[_0x2ffa36(0xa7)](_0x46a522);logger['debug'](_0x2ffa36(0xc2)+_0x46a522+_0x2ffa36(0xb4)+_0x3d8ea4);if(_0x3d8ea4[_0x2ffa36(0xa1)](_0x544b13[_0x2ffa36(0x9c)])||_0x3d8ea4['endsWith'](_0x544b13['gCqCd']))return logger[_0x2ffa36(0xac)]('Using\x20specified\x20config\x20file:\x20'+_0x3d8ea4),_0x3d8ea4;}}const _0x1b4b4d=[_0x544b13[_0x2ffa36(0xa4)],_0x544b13[_0x2ffa36(0xb8)],_0x544b13[_0x2ffa36(0xb9)],_0x544b13[_0x2ffa36(0xad)]];logger['debug'](_0x544b13[_0x2ffa36(0xba)]);for(const _0xfe2d74 of _0x1b4b4d){const _0x674d5e=path[_0x2ffa36(0xc1)](process['cwd'](),_0xfe2d74);logger['debug'](_0x2ffa36(0xa2)+_0x674d5e);if(fs[_0x2ffa36(0x9a)](_0x674d5e))return logger[_0x2ffa36(0x9e)]('Found\x20config\x20file:\x20'+_0x674d5e),_0x674d5e;}}catch(_0x2e2eda){logger[_0x2ffa36(0xb3)](_0x2ffa36(0x9d)+_0x2e2eda[_0x2ffa36(0xbc)]);}}function a28_0x1eab(){const _0x2ddfae=['219345sFxDUF','config-file','error','\x20and\x20Resolved\x20path:\x20','browserstack-load.yaml','210GtbTPx','exports','LdpkP','asFGw','rOxZJ','XmHMF','message','browserstack.yaml','drTXV','sleep','22ArePJS','join','Config\x20file\x20specified:\x20','216249INAIJf','1994165dwaIaP','getLoadConfigPath','4PgQorn','aotxL','existsSync','subcommand','mwNFD','Failed\x20to\x20load\x20browserstack\x20config:\x20','debug','stringify','run','endsWith','Checking\x20for:\x20','browserstack-load.yml','fpkYV','63WXvDfw','load','resolve','20722188SaZGwr','16VhcQGZ','path','2325610kxFSvy','info','tqOjc','560187ydtFpX','browserstack.yml','2532304LtjDYT'];a28_0x1eab=function(){return _0x2ddfae;};return a28_0x1eab();}function sleep(){return new Promise(_0x367e8a=>setTimeout(_0x367e8a,0x64));}const a28_0x2c75b1={};a28_0x2c75b1[a28_0x1a9767(0xc5)]=getLoadConfigPath,a28_0x2c75b1[a28_0x1a9767(0xbf)]=sleep,module[a28_0x1a9767(0xb7)]=a28_0x2c75b1;
|