browserstack-node-sdk 1.49.5 → 1.49.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/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/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/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/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/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 a85_0xc696ba=a85_0x4684;(function(_0xae814d,_0x75f35c){const _0x101346=a85_0x4684,_0x409651=_0xae814d();while(!![]){try{const _0x182eac=parseInt(_0x101346(0x87))/0x1*(-parseInt(_0x101346(0x8b))/0x2)+parseInt(_0x101346(0x94))/0x3+-parseInt(_0x101346(0x81))/0x4+parseInt(_0x101346(0xe8))/0x5+-parseInt(_0x101346(0xc2))/0x6*(parseInt(_0x101346(0x8f))/0x7)+-parseInt(_0x101346(0x96))/0x8*(parseInt(_0x101346(0xad))/0x9)+parseInt(_0x101346(0xb2))/0xa;if(_0x182eac===_0x75f35c)break;else _0x409651['push'](_0x409651['shift']());}catch(_0x6c3ab7){_0x409651['push'](_0x409651['shift']());}}}(a85_0x2d38,0x64a44));function a85_0x4684(_0x57f2ce,_0x39e4e6){const _0x2d3848=a85_0x2d38();return a85_0x4684=function(_0x468432,_0x50b7cb){_0x468432=_0x468432-0x81;let _0x1d560c=_0x2d3848[_0x468432];return _0x1d560c;},a85_0x4684(_0x57f2ce,_0x39e4e6);}const util=require(a85_0xc696ba(0x9a)),BaseModule=require('./baseModule'),{createClassLogger}=require(a85_0xc696ba(0xbd)),AutomationFramework=require(a85_0xc696ba(0xde)),AutomationFrameworkState=require(a85_0xc696ba(0x9d)),HookState=require(a85_0xc696ba(0xbf)),TestFramework=require(a85_0xc696ba(0xb0)),TestFrameworkState=require('../state/testFrameworkState.js'),PlaywrightDriverModule=require(a85_0xc696ba(0xc1)),TestFrameworkConstants=require(a85_0xc696ba(0x92)),GrpcClient=require(a85_0xc696ba(0xb4)),CLIUtils=require(a85_0xc696ba(0xa2)),TestInfo=require('../TestInfo.js'),testHubConstants=require('../../../helpers/testhub/constants'),{FRAMEWORKS}=require(a85_0xc696ba(0x9e)),helper=require(a85_0xc696ba(0xda)),LoadTestModule=require(a85_0xc696ba(0xe6)),JestUtils=require(a85_0xc696ba(0xd2)),BrowserstackCLI=require(a85_0xc696ba(0x95)),{getPlaywrightProvider}=require(a85_0xc696ba(0xda));function a85_0x2d38(){const _0x4ca457=['KEY_SESSION_ID','testFrameworkEvent','Error\x20in\x20sending\x20CBTSession:\x20','BROWSERSTACK_TESTHUB_UUID','isLTSSession','../utils/jest-utils.js','testFrameworkData','KKovT','testFrameworkState','retry','ENV_VAR','hookState','mUfbm','../../../helpers/helper.js','getState','CREATE','jestUtils','../framework/automationFramework.js','getContext','POST','recreateIdentifierFromTestInfo','from','getJwt','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','piIwy','./loadTestModule.js','test_identifier','2043045ALMyCd','getTestFramework','testInfo','getTestDetails','4|5|8|6|7|2|1|0|3','getInstance','2809724ARUJmx','frameworkName','stringify','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','LgqwQ','JEST','1VnXInY','format','getBuildHashedId','test_deferred','531964UGqEQp','getThreadId','instance','sendTestFrameworkEvent','936257rsXSFO','registerObserver','eHOrD','../framework/constants/testFrameworkConstants.js','values','2302683YFDgrs','../browserstackCLI.js','5048IgmaaB','UcgDO','zvjlI','split','util','onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20','vGzbb','../state/automationFrameworkState.js','../../../helpers/test-observability/constants.js','getTestUUID','env','onPageCreate','../cliUtils.js','page','testUuid','getLTSSessionId','\x20hookState:\x20','MODULE_NAME','getTestId','testSessionEvent','keys','name','bind','6147wVhZzE','sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','frameworkVersion','../framework/testFramework.js','testhubConfig','9029460qDbHCQ','getRef','../grpcClient.js','KEY_HUB_URL','TestHubModule','toString','getModuleName','Error\x20in\x20sendTestFrameworkEvent:\x20','KEY_CAPABILITIES','getTestIdentifierFromTestInfo','logger','../../../helpers/classLogger.js','O11yHashedID','../state/hookState.js','length','./playwrightDriverModule.js','12dEySfI','TEST','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','getCurrentTestState','wmOFQ','createTestFrameworkEventPayload','forEach','onPageCreate\x20CBTSession\x20payload:\x20','debug','KEY_TEST_FRAMEWORK_NAME','GClZP'];a85_0x2d38=function(){return _0x4ca457;};return a85_0x2d38();}class TestHubModule extends BaseModule{[a85_0xc696ba(0xbc)]=createClassLogger(a85_0xc696ba(0xb6));constructor(_0x1198e1,_0x5af0d9=null){const _0x29c486=a85_0xc696ba,_0x8d331f={};_0x8d331f[_0x29c486(0x98)]=_0x29c486(0xec),_0x8d331f[_0x29c486(0xd4)]=_0x29c486(0xb6);const _0x1037ef=_0x8d331f,_0x437370=_0x1037ef[_0x29c486(0x98)][_0x29c486(0x99)]('|');let _0x459a9f=0x0;while(!![]){switch(_0x437370[_0x459a9f++]){case'0':process[_0x29c486(0xa0)][testHubConstants[_0x29c486(0xd7)][_0x29c486(0xd0)]]=this[_0x29c486(0xb1)][_0x29c486(0x89)]();continue;case'1':process[_0x29c486(0xa0)][testHubConstants[_0x29c486(0xd7)]['BROWSERSTACK_TESTHUB_JWT']]=this['testhubConfig'][_0x29c486(0xe3)]();continue;case'2':Object[_0x29c486(0x93)](TestFrameworkState)[_0x29c486(0xc8)](_0xf926b5=>{const _0x81936f=_0x29c486;Object[_0x81936f(0x93)](HookState)[_0x81936f(0xc8)](_0x3ca00c=>{const _0x4e61dc=_0x81936f;TestFramework[_0x4e61dc(0x90)](_0xf926b5,_0x3ca00c,this['onAllTestEvents'][_0x4e61dc(0xac)](this));});});continue;case'3':BrowserstackCLI[_0x29c486(0xbe)]=this[_0x29c486(0xb1)][_0x29c486(0x89)]();continue;case'4':super(_0x5af0d9);continue;case'5':this[_0x29c486(0xab)]=_0x1037ef[_0x29c486(0xd4)];continue;case'6':this['jestUtils']=new JestUtils();continue;case'7':AutomationFramework[_0x29c486(0x90)](AutomationFrameworkState[_0x29c486(0xdc)],HookState['POST'],this[_0x29c486(0xa1)][_0x29c486(0xac)](this));continue;case'8':this[_0x29c486(0xb1)]=_0x1198e1;continue;}break;}}[a85_0xc696ba(0xb8)](){const _0x44137d=a85_0xc696ba;return TestHubModule[_0x44137d(0xa7)];}['onAllTestEvents'](_0x53dafd){const _0x29c404=a85_0xc696ba,_0x3d72f9={};_0x3d72f9[_0x29c404(0xd9)]=function(_0x29f583,_0x34958c){return _0x29f583===_0x34958c;};const _0x2e1db2=_0x3d72f9,_0xb0e6c=_0x53dafd[_0x29c404(0x8d)],_0x16262e=_0xb0e6c[_0x29c404(0xc5)]();(_0x2e1db2[_0x29c404(0xd9)](_0x16262e,TestFrameworkState[_0x29c404(0xc3)])||CLIUtils['matchHookRegex'](_0x16262e[_0x29c404(0xb7)]()[_0x29c404(0x99)]('.')[0x1]))&&this[_0x29c404(0x8e)](_0x53dafd);}async[a85_0xc696ba(0x8e)](_0x4b2c0d){const _0x421c2a=a85_0xc696ba,_0x217357={};_0x217357['vGzbb']=function(_0x27bde6,_0x28d33d){return _0x27bde6===_0x28d33d;},_0x217357[_0x421c2a(0x91)]=_0x421c2a(0xae);const _0x39f8cf=_0x217357;try{const _0x2c3ea8=BrowserstackCLI[_0x421c2a(0xed)]()[_0x421c2a(0xe9)]()[_0x421c2a(0xc7)](_0x4b2c0d);if(!_0x2c3ea8||_0x39f8cf[_0x421c2a(0x9c)](Object[_0x421c2a(0xaa)](_0x2c3ea8)[_0x421c2a(0xc0)],0x0)){this[_0x421c2a(0xbc)]['debug'](_0x39f8cf['eHOrD']);return;}const _0x44dcf7=await GrpcClient[_0x421c2a(0xed)]()[_0x421c2a(0xce)](_0x2c3ea8);this[_0x421c2a(0xbc)][_0x421c2a(0xca)](_0x421c2a(0xc4)+_0x2c3ea8[_0x421c2a(0xd5)]+_0x421c2a(0xa6)+_0x2c3ea8[_0x421c2a(0xd8)]);}catch(_0x5625c2){this['logger']['error'](_0x421c2a(0xb9)+util[_0x421c2a(0x88)](_0x5625c2));}}async[a85_0xc696ba(0xa1)](_0x5e9a0a){const _0x528854=a85_0xc696ba,_0x656e76={'UcgDO':function(_0x5a1475,_0x29c361){return _0x5a1475===_0x29c361;},'GClZP':_0x528854(0xe4),'wmOFQ':function(_0x2aa45c,_0x19be07){return _0x2aa45c===_0x19be07;},'LgqwQ':function(_0xe966aa,_0x58540e){return _0xe966aa(_0x58540e);},'ymyIn':'base64','piIwy':function(_0x600580,_0xc6653c){return _0x600580===_0xc6653c;}};try{if(_0x5e9a0a[_0x528854(0xa3)]){const _0x5bbdb9=this[_0x528854(0xa8)](_0x5e9a0a);this['logger'][_0x528854(0xca)]('onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20'+_0x5bbdb9);if(this[_0x528854(0xd3)]&&_0x656e76[_0x528854(0x97)](this[_0x528854(0xd3)]['name'],FRAMEWORKS[_0x528854(0x86)])&&!_0x5e9a0a['testInfo']){this['logger']['debug'](_0x656e76[_0x528854(0xcc)]);return;}let _0x7867f6,_0x579b3d;if(this[_0x528854(0xd3)]&&_0x656e76[_0x528854(0x97)](this[_0x528854(0xd3)][_0x528854(0xab)],FRAMEWORKS['CUCUMBER']))_0x7867f6=_0x5bbdb9,_0x579b3d=TestInfo[_0x528854(0x9f)](_0x7867f6);else this[_0x528854(0xd3)]&&_0x656e76[_0x528854(0xc6)](this[_0x528854(0xd3)]['name'],FRAMEWORKS['JEST'])?(_0x7867f6=this[_0x528854(0xdd)][_0x528854(0xe1)](_0x5e9a0a[_0x528854(0xea)]),this[_0x528854(0xbc)]['debug'](_0x528854(0x9b)+_0x7867f6)):(_0x7867f6=TestInfo[_0x528854(0xbb)](_0x5e9a0a[_0x528854(0xea)],_0x5e9a0a['testInfo'][_0x528854(0xd6)]),_0x579b3d=TestInfo[_0x528854(0x9f)](_0x7867f6));const _0x21feba=TestInfo[_0x528854(0xeb)](_0x7867f6),_0x47284b=_0x5e9a0a[_0x528854(0x8d)],_0x1c4c5c=AutomationFramework[_0x528854(0xdb)](_0x47284b,PlaywrightDriverModule['KEY_PLATFORM_INDEX']),_0x51b026=_0x21feba?.[TestFrameworkConstants[_0x528854(0xcb)]]||this[_0x528854(0xd3)]&&this['testFrameworkData'][_0x528854(0xab)],_0x10f01c=_0x21feba?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]||this[_0x528854(0xd3)]&&this[_0x528854(0xd3)]['version'],_0x1b1219=TestFrameworkState[_0x528854(0xc3)]['toString']()[_0x528854(0x99)]('.')[0x1],_0x70dfeb=HookState[_0x528854(0xe0)][_0x528854(0xb7)]()[_0x528854(0x99)]('.')[0x1],_0x50e005=_0x47284b[_0x528854(0xdf)](),_0x1c4759=AutomationFramework['getState'](_0x47284b,PlaywrightDriverModule[_0x528854(0xb5)],''),_0x6b80a5={'provider':_0x656e76[_0x528854(0x85)](getPlaywrightProvider,_0x1c4759),'frameworkName':_0x47284b[_0x528854(0x82)],'frameworkVersion':_0x47284b[_0x528854(0xaf)],'frameworkSessionId':LoadTestModule[_0x528854(0xd1)]()?LoadTestModule[_0x528854(0xa5)]():AutomationFramework['getState'](_0x47284b,PlaywrightDriverModule[_0x528854(0xcd)],''),'ref':_0x47284b[_0x528854(0xb3)](),'hubUrl':_0x1c4759};let _0x55c335=AutomationFramework['getState'](_0x47284b,PlaywrightDriverModule[_0x528854(0xba)],{});_0x55c335=Buffer[_0x528854(0xe2)](JSON[_0x528854(0x83)](_0x55c335))[_0x528854(0xb7)](_0x656e76['ymyIn']);const _0x4d5928={'hash':_0x50e005['getId'](),'threadId':_0x50e005[_0x528854(0x8c)]()[_0x528854(0xb7)](),'processId':_0x50e005['getProcessId']()[_0x528854(0xb7)]()},_0x4aefa5={};_0x4aefa5[_0x528854(0xe7)]=_0x7867f6;const _0x10f331={};_0x10f331[_0x528854(0xa4)]=_0x579b3d;const _0x6094a0={'platformIndex':_0x1c4c5c,'testFrameworkName':_0x51b026,'testFrameworkVersion':_0x10f01c,'testFrameworkState':_0x1b1219,'testHookState':_0x70dfeb,...this['testFrameworkData']&&_0x656e76[_0x528854(0xe5)](this[_0x528854(0xd3)][_0x528854(0xab)],FRAMEWORKS['JEST'])?_0x4aefa5:_0x10f331,'automationSession':_0x6b80a5,'capabilities':_0x55c335,'executionContext':_0x4d5928};this[_0x528854(0xbc)][_0x528854(0xca)](_0x528854(0xc9)+util[_0x528854(0x88)](_0x6094a0));const _0x2b5b90=await GrpcClient[_0x528854(0xed)]()[_0x528854(0xa9)](_0x6094a0);this[_0x528854(0xbc)][_0x528854(0xca)](_0x528854(0x84)+_0x5bbdb9+(this[_0x528854(0xd3)]&&_0x656e76[_0x528854(0x97)](this[_0x528854(0xd3)][_0x528854(0xab)],FRAMEWORKS[_0x528854(0x86)])?',\x20test_identifier:\x20'+_0x7867f6:''));}}catch(_0x5b64a4){this[_0x528854(0xbc)]['error'](_0x528854(0xcf)+util[_0x528854(0x88)](_0x5b64a4));}}}TestHubModule['MODULE_NAME']='TestHubModule',TestHubModule['KEY_TEST_DEFERRED']=a85_0xc696ba(0x8a),module['exports']=TestHubModule;
|
|
1
|
+
function a85_0x6913(){const _0x2309ea=['KEY_SESSION_ID','443509BwdQHR','bIwXL','pdJiE','KEY_TEST_FRAMEWORK_NAME','CUCUMBER','values','POST','getState','onPageCreate','matchHookRegex','testInfo','\x20hookState:\x20','toString','../framework/testFramework.js','../TestInfo.js','base64','version','1748430bEmaio','../state/hookState.js','debug','./baseModule','4629250xrUfCU','retry','getBuildHashedId','name','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','Error\x20in\x20sending\x20CBTSession:\x20','testhubConfig','MODULE_NAME','upadB','split','15DpGIkE','234996RfXiQl','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','QvbhN','153352mjFfWH','testSessionEvent','registerObserver','../utils/jest-utils.js','262436UsFBtq','O11yHashedID','getContext','stringify','frameworkVersion','KEY_HUB_URL','instance','getModuleName','KEY_PLATFORM_INDEX','getLTSSessionId','TestHubModule','testUuid','getTestIdentifierFromTestInfo','../../../helpers/classLogger.js','getJwt','7zNWGYR','getRef','util','BROWSERSTACK_TESTHUB_UUID','hookState','getCurrentTestState','../browserstackCLI.js','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','testFrameworkEvent','JEST','testFrameworkState','10VFDRlU','BROWSERSTACK_TESTHUB_JWT','logger','KEY_TEST_DEFERRED','CztuN','getTestDetails','8aAPncq','LLrhL','../../../helpers/test-observability/constants.js','sendTestFrameworkEvent','from','372fDymsR','ENV_VAR','lLXwg','getThreadId','rPKxz','format','recreateIdentifierFromTestInfo','./playwrightDriverModule.js','Pyflw','../state/automationFrameworkState.js',',\x20test_identifier:\x20','KEY_CAPABILITIES','TEST','dalhE','test_identifier','bind','1361484SqdIky','isLTSSession','testFrameworkData','VmaxP','../../../helpers/helper.js','forEach','getInstance','onAllTestEvents','error','../framework/automationFramework.js','getTestUUID'];a85_0x6913=function(){return _0x2309ea;};return a85_0x6913();}const a85_0xc8f7b1=a85_0x1dd0;(function(_0x37be96,_0x544544){const _0x2c5471=a85_0x1dd0,_0xf257c6=_0x37be96();while(!![]){try{const _0xf91ceb=parseInt(_0x2c5471(0x172))/0x1+-parseInt(_0x2c5471(0x190))/0x2*(parseInt(_0x2c5471(0x16e))/0x3)+parseInt(_0x2c5471(0x176))/0x4*(-parseInt(_0x2c5471(0x16d))/0x5)+parseInt(_0x2c5471(0x142))/0x6*(-parseInt(_0x2c5471(0x185))/0x7)+-parseInt(_0x2c5471(0x196))/0x8*(-parseInt(_0x2c5471(0x15f))/0x9)+-parseInt(_0x2c5471(0x163))/0xa+-parseInt(_0x2c5471(0x14e))/0xb*(-parseInt(_0x2c5471(0x132))/0xc);if(_0xf91ceb===_0x544544)break;else _0xf257c6['push'](_0xf257c6['shift']());}catch(_0x42170b){_0xf257c6['push'](_0xf257c6['shift']());}}}(a85_0x6913,0x4ded1));function a85_0x1dd0(_0x300e48,_0x4fa0b8){const _0x6913ab=a85_0x6913();return a85_0x1dd0=function(_0x1dd017,_0x3f2d11){_0x1dd017=_0x1dd017-0x12e;let _0xc96cc1=_0x6913ab[_0x1dd017];return _0xc96cc1;},a85_0x1dd0(_0x300e48,_0x4fa0b8);}const util=require(a85_0xc8f7b1(0x187)),BaseModule=require(a85_0xc8f7b1(0x162)),{createClassLogger}=require(a85_0xc8f7b1(0x183)),AutomationFramework=require(a85_0xc8f7b1(0x14b)),AutomationFrameworkState=require(a85_0xc8f7b1(0x13b)),HookState=require(a85_0xc8f7b1(0x160)),TestFramework=require(a85_0xc8f7b1(0x15b)),TestFrameworkState=require('../state/testFrameworkState.js'),PlaywrightDriverModule=require(a85_0xc8f7b1(0x139)),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),GrpcClient=require('../grpcClient.js'),CLIUtils=require('../cliUtils.js'),TestInfo=require(a85_0xc8f7b1(0x15c)),testHubConstants=require('../../../helpers/testhub/constants'),{FRAMEWORKS}=require(a85_0xc8f7b1(0x12f)),helper=require(a85_0xc8f7b1(0x146)),LoadTestModule=require('./loadTestModule.js'),JestUtils=require(a85_0xc8f7b1(0x175)),BrowserstackCLI=require(a85_0xc8f7b1(0x18b)),{getPlaywrightProvider}=require(a85_0xc8f7b1(0x146));class TestHubModule extends BaseModule{[a85_0xc8f7b1(0x192)]=createClassLogger(a85_0xc8f7b1(0x180));constructor(_0x12c943,_0x350d01=null){const _0x27c577=a85_0xc8f7b1,_0x5804ed={};_0x5804ed[_0x27c577(0x13a)]='0|1|7|4|5|2|6|3|8',_0x5804ed[_0x27c577(0x150)]='TestHubModule';const _0x51b8cb=_0x5804ed,_0xbab89b=_0x51b8cb['Pyflw'][_0x27c577(0x16c)]('|');let _0x251495=0x0;while(!![]){switch(_0xbab89b[_0x251495++]){case'0':super(_0x350d01);continue;case'1':this[_0x27c577(0x166)]=_0x51b8cb[_0x27c577(0x150)];continue;case'2':Object[_0x27c577(0x153)](TestFrameworkState)[_0x27c577(0x147)](_0xcb05fc=>{const _0x2fc672=_0x27c577;Object[_0x2fc672(0x153)](HookState)[_0x2fc672(0x147)](_0x44565a=>{const _0x46f26b=_0x2fc672;TestFramework[_0x46f26b(0x174)](_0xcb05fc,_0x44565a,this['onAllTestEvents'][_0x46f26b(0x141)](this));});});continue;case'3':process['env'][testHubConstants[_0x27c577(0x133)][_0x27c577(0x188)]]=this[_0x27c577(0x169)]['getBuildHashedId']();continue;case'4':this['jestUtils']=new JestUtils();continue;case'5':AutomationFramework['registerObserver'](AutomationFrameworkState['CREATE'],HookState[_0x27c577(0x154)],this[_0x27c577(0x156)]['bind'](this));continue;case'6':process['env'][testHubConstants[_0x27c577(0x133)][_0x27c577(0x191)]]=this['testhubConfig'][_0x27c577(0x184)]();continue;case'7':this[_0x27c577(0x169)]=_0x12c943;continue;case'8':BrowserstackCLI[_0x27c577(0x177)]=this[_0x27c577(0x169)][_0x27c577(0x165)]();continue;}break;}}[a85_0xc8f7b1(0x17d)](){const _0x5eb666=a85_0xc8f7b1;return TestHubModule[_0x5eb666(0x16a)];}[a85_0xc8f7b1(0x149)](_0x440bdf){const _0x56ae12=a85_0xc8f7b1,_0x13d92f={};_0x13d92f[_0x56ae12(0x145)]=function(_0x195014,_0x15e486){return _0x195014===_0x15e486;};const _0x4ceda5=_0x13d92f,_0x1fa3f7=_0x440bdf[_0x56ae12(0x17c)],_0x534082=_0x1fa3f7[_0x56ae12(0x18a)]();(_0x4ceda5[_0x56ae12(0x145)](_0x534082,TestFrameworkState[_0x56ae12(0x13e)])||CLIUtils[_0x56ae12(0x157)](_0x534082[_0x56ae12(0x15a)]()[_0x56ae12(0x16c)]('.')[0x1]))&&this[_0x56ae12(0x130)](_0x440bdf);}async[a85_0xc8f7b1(0x130)](_0x348b08){const _0x44f152=a85_0xc8f7b1,_0x37f742={};_0x37f742[_0x44f152(0x194)]=function(_0x5952c9,_0x5a02e3){return _0x5952c9===_0x5a02e3;},_0x37f742[_0x44f152(0x14f)]='sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event';const _0x12821a=_0x37f742;try{const _0x340ab5=BrowserstackCLI[_0x44f152(0x148)]()['getTestFramework']()['createTestFrameworkEventPayload'](_0x348b08);if(!_0x340ab5||_0x12821a[_0x44f152(0x194)](Object['keys'](_0x340ab5)['length'],0x0)){this[_0x44f152(0x192)][_0x44f152(0x161)](_0x12821a[_0x44f152(0x14f)]);return;}const _0x49eef1=await GrpcClient['getInstance']()[_0x44f152(0x18d)](_0x340ab5);this['logger']['debug'](_0x44f152(0x170)+_0x340ab5[_0x44f152(0x18f)]+_0x44f152(0x159)+_0x340ab5[_0x44f152(0x189)]);}catch(_0x6c0596){this[_0x44f152(0x192)][_0x44f152(0x14a)]('Error\x20in\x20sendTestFrameworkEvent:\x20'+util[_0x44f152(0x137)](_0x6c0596));}}async[a85_0xc8f7b1(0x156)](_0x2ce6fb){const _0x21f065=a85_0xc8f7b1,_0x5ddcb1={'lLXwg':function(_0x432469,_0x547de5){return _0x432469===_0x547de5;},'QvbhN':_0x21f065(0x167),'dalhE':function(_0x4cfc05,_0x319f5e){return _0x4cfc05===_0x319f5e;},'LLrhL':function(_0x5636b1,_0x2854e2){return _0x5636b1(_0x2854e2);},'rPKxz':_0x21f065(0x15d),'upadB':function(_0x588c1b,_0x594d85){return _0x588c1b===_0x594d85;}};try{if(_0x2ce6fb['page']){const _0x2d1532=this['getTestId'](_0x2ce6fb);this['logger'][_0x21f065(0x161)](_0x21f065(0x16f)+_0x2d1532);if(this['testFrameworkData']&&_0x5ddcb1[_0x21f065(0x134)](this['testFrameworkData']['name'],FRAMEWORKS[_0x21f065(0x18e)])&&!_0x2ce6fb[_0x21f065(0x158)]){this['logger'][_0x21f065(0x161)](_0x5ddcb1[_0x21f065(0x171)]);return;}let _0x57b9ac,_0x5c79ef;if(this[_0x21f065(0x144)]&&_0x5ddcb1['lLXwg'](this['testFrameworkData']['name'],FRAMEWORKS[_0x21f065(0x152)]))_0x57b9ac=_0x2d1532,_0x5c79ef=TestInfo[_0x21f065(0x14c)](_0x57b9ac);else this[_0x21f065(0x144)]&&_0x5ddcb1['dalhE'](this[_0x21f065(0x144)]['name'],FRAMEWORKS[_0x21f065(0x18e)])?(_0x57b9ac=this['jestUtils'][_0x21f065(0x138)](_0x2ce6fb[_0x21f065(0x158)]),this['logger'][_0x21f065(0x161)]('onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20'+_0x57b9ac)):(_0x57b9ac=TestInfo[_0x21f065(0x182)](_0x2ce6fb[_0x21f065(0x158)],_0x2ce6fb[_0x21f065(0x158)][_0x21f065(0x164)]),_0x5c79ef=TestInfo[_0x21f065(0x14c)](_0x57b9ac));const _0x1f0572=TestInfo[_0x21f065(0x195)](_0x57b9ac),_0xa657f3=_0x2ce6fb['instance'],_0x28ccea=AutomationFramework['getState'](_0xa657f3,PlaywrightDriverModule[_0x21f065(0x17e)]),_0x3b77d2=_0x1f0572?.[TestFrameworkConstants[_0x21f065(0x151)]]||this[_0x21f065(0x144)]&&this[_0x21f065(0x144)][_0x21f065(0x166)],_0x3b2f57=_0x1f0572?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]||this[_0x21f065(0x144)]&&this[_0x21f065(0x144)][_0x21f065(0x15e)],_0x48f79f=TestFrameworkState[_0x21f065(0x13e)][_0x21f065(0x15a)]()[_0x21f065(0x16c)]('.')[0x1],_0xde6a1e=HookState[_0x21f065(0x154)][_0x21f065(0x15a)]()[_0x21f065(0x16c)]('.')[0x1],_0x46a24c=_0xa657f3[_0x21f065(0x178)](),_0x24e3e8=AutomationFramework[_0x21f065(0x155)](_0xa657f3,PlaywrightDriverModule[_0x21f065(0x17b)],''),_0xfc57e4={'provider':_0x5ddcb1[_0x21f065(0x12e)](getPlaywrightProvider,_0x24e3e8),'frameworkName':_0xa657f3['frameworkName'],'frameworkVersion':_0xa657f3[_0x21f065(0x17a)],'frameworkSessionId':LoadTestModule[_0x21f065(0x143)]()?LoadTestModule[_0x21f065(0x17f)]():AutomationFramework[_0x21f065(0x155)](_0xa657f3,PlaywrightDriverModule[_0x21f065(0x14d)],''),'ref':_0xa657f3[_0x21f065(0x186)](),'hubUrl':_0x24e3e8};let _0x253287=AutomationFramework[_0x21f065(0x155)](_0xa657f3,PlaywrightDriverModule[_0x21f065(0x13d)],{});_0x253287=Buffer[_0x21f065(0x131)](JSON[_0x21f065(0x179)](_0x253287))[_0x21f065(0x15a)](_0x5ddcb1[_0x21f065(0x136)]);const _0x4fb62f={'hash':_0x46a24c['getId'](),'threadId':_0x46a24c[_0x21f065(0x135)]()[_0x21f065(0x15a)](),'processId':_0x46a24c['getProcessId']()[_0x21f065(0x15a)]()},_0x18cf99={};_0x18cf99[_0x21f065(0x140)]=_0x57b9ac;const _0x286e99={};_0x286e99[_0x21f065(0x181)]=_0x5c79ef;const _0x5e172d={'platformIndex':_0x28ccea,'testFrameworkName':_0x3b77d2,'testFrameworkVersion':_0x3b2f57,'testFrameworkState':_0x48f79f,'testHookState':_0xde6a1e,...this[_0x21f065(0x144)]&&_0x5ddcb1[_0x21f065(0x13f)](this[_0x21f065(0x144)]['name'],FRAMEWORKS[_0x21f065(0x18e)])?_0x18cf99:_0x286e99,'automationSession':_0xfc57e4,'capabilities':_0x253287,'executionContext':_0x4fb62f};this[_0x21f065(0x192)]['debug']('onPageCreate\x20CBTSession\x20payload:\x20'+util[_0x21f065(0x137)](_0x5e172d));const _0x3a27f0=await GrpcClient[_0x21f065(0x148)]()[_0x21f065(0x173)](_0x5e172d);this[_0x21f065(0x192)][_0x21f065(0x161)](_0x21f065(0x18c)+_0x2d1532+(this['testFrameworkData']&&_0x5ddcb1[_0x21f065(0x16b)](this[_0x21f065(0x144)][_0x21f065(0x166)],FRAMEWORKS['JEST'])?_0x21f065(0x13c)+_0x57b9ac:''));}}catch(_0x39ad86){this[_0x21f065(0x192)][_0x21f065(0x14a)](_0x21f065(0x168)+util['format'](_0x39ad86));}}}TestHubModule[a85_0xc8f7b1(0x16a)]=a85_0xc8f7b1(0x180),TestHubModule[a85_0xc8f7b1(0x193)]='test_deferred',module['exports']=TestHubModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x1a5727=a86_0x1880;(function(_0x418c76,_0x3112bf){const _0x296fe7=a86_0x1880,_0x5cd189=_0x418c76();while(!![]){try{const _0x750a3c=-parseInt(_0x296fe7(0xc7))/0x1*(parseInt(_0x296fe7(0xd7))/0x2)+-parseInt(_0x296fe7(0xd8))/0x3*(parseInt(_0x296fe7(0xd1))/0x4)+parseInt(_0x296fe7(0xc6))/0x5+parseInt(_0x296fe7(0xc3))/0x6+-parseInt(_0x296fe7(0xd5))/0x7+-parseInt(_0x296fe7(0xd2))/0x8*(parseInt(_0x296fe7(0xc0))/0x9)+parseInt(_0x296fe7(0xd6))/0xa*(parseInt(_0x296fe7(0xc1))/0xb);if(_0x750a3c===_0x3112bf)break;else _0x5cd189['push'](_0x5cd189['shift']());}catch(_0x2f271c){_0x5cd189['push'](_0x5cd189['shift']());}}}(a86_0x2b4a,0x4cde3));const {PLAYWRIGHT}=require(a86_0x1a5727(0xdb)),a86_0x4786e0={};a86_0x4786e0[a86_0x1a5727(0xd3)]=0x0,a86_0x4786e0[a86_0x1a5727(0xcc)]=function(){const _0x56c9d2=a86_0x1a5727,_0x5200cf={};_0x5200cf[_0x56c9d2(0xcd)]=_0x56c9d2(0xda);const _0x3fb37f=_0x5200cf;return _0x3fb37f[_0x56c9d2(0xcd)];};const a86_0x5048f={};a86_0x5048f[a86_0x1a5727(0xd3)]=0x1,a86_0x5048f['toString']=function(){const _0x453a88=a86_0x1a5727,_0x54165c={};_0x54165c[_0x453a88(0xc4)]=_0x453a88(0xc2);const _0x49eb65=_0x54165c;return _0x49eb65[_0x453a88(0xc4)];};const a86_0x2a7631={};a86_0x2a7631[a86_0x1a5727(0xd3)]=0x2,a86_0x2a7631[a86_0x1a5727(0xcc)]=function(){const _0xcd097b=a86_0x1a5727,_0x36c5a2={};_0x36c5a2[_0xcd097b(0xce)]=_0xcd097b(0xd4);const _0x16642e=_0x36c5a2;return _0x16642e['TRDje'];};const a86_0x18b93f={};a86_0x18b93f[a86_0x1a5727(0xd3)]=0x3,a86_0x18b93f['toString']=function(){const _0x44fcad=a86_0x1a5727,_0x4a170c={};_0x4a170c[_0x44fcad(0xd9)]='AutomationFrameworkState.EXECUTE';const _0x5960d9=_0x4a170c;return _0x5960d9[_0x44fcad(0xd9)];};const a86_0x5cf6e0={};function a86_0x1880(_0x5df9f9,_0x29e19f){const _0x2b4ad8=a86_0x2b4a();return a86_0x1880=function(_0x188049,_0x1d18b1){_0x188049=_0x188049-0xc0;let _0x393e3b=_0x2b4ad8[_0x188049];return _0x393e3b;},a86_0x1880(_0x5df9f9,_0x29e19f);}a86_0x5cf6e0[a86_0x1a5727(0xd3)]=0x4,a86_0x5cf6e0[a86_0x1a5727(0xcc)]=function(){const _0x5c4db3=a86_0x1a5727,_0x20e1e6={};_0x20e1e6[_0x5c4db3(0xc9)]=_0x5c4db3(0xc5);const _0x21b984=_0x20e1e6;return _0x21b984['gnlLe'];};const a86_0x3b0ed4={};a86_0x3b0ed4[a86_0x1a5727(0xd3)]=0x5,a86_0x3b0ed4['toString']=function(){const _0x3cf371=a86_0x1a5727,_0x58e644={};_0x58e644[_0x3cf371(0xcf)]=_0x3cf371(0xc8);const _0x44704d=_0x58e644;return _0x44704d[_0x3cf371(0xcf)];};const AutomationFrameworkState=Object['freeze']({'NONE':a86_0x4786e0,'CREATE':a86_0x5048f,'PLAYWRIGHT_DISPATCH':a86_0x2a7631,'EXECUTE':a86_0x18b93f,'IDLE':a86_0x5cf6e0,'QUIT':a86_0x3b0ed4,'fromValue'(_0x4154f0){const _0x41bc3d=a86_0x1a5727;return Object[_0x41bc3d(0xca)](AutomationFrameworkState)[_0x41bc3d(0xd0)](_0x317342=>_0x317342[_0x41bc3d(0xd3)]===_0x4154f0);}});function a86_0x2b4a(){const _0x3535e8=['AutomationFrameworkState.CREATE','436554NBoNpI','BKfNT','AutomationFrameworkState.IDLE','2048750gQIJrO','334451FmcTpe','AutomationFrameworkState.QUIT','gnlLe','values','exports','toString','CHwVQ','TRDje','wXtvO','find','8TkbYVu','472nGcDKY','value','AutomationFrameworkState.PLAYWRIGHT_DISPATCH','3147452MIAUWv','540zKWCal','2ClrCuc','319446KHzVru','BZqTn','AutomationFrameworkState.NONE','../../utils/constants','45963iPZlqd','230329sAOUdx'];a86_0x2b4a=function(){return _0x3535e8;};return a86_0x2b4a();}module[a86_0x1a5727(0xcb)]=AutomationFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x569b5b=a87_0x21d7;(function(_0x321ebd,_0xf171c7){const _0x6384e=a87_0x21d7,_0xe6cff2=_0x321ebd();while(!![]){try{const _0x126e45=parseInt(_0x6384e(0x1bb))/0x1*(-parseInt(_0x6384e(0x1be))/0x2)+-parseInt(_0x6384e(0x1c8))/0x3*(-parseInt(_0x6384e(0x1c2))/0x4)+-parseInt(_0x6384e(0x1bf))/0x5*(-parseInt(_0x6384e(0x1c7))/0x6)+parseInt(_0x6384e(0x1cc))/0x7+parseInt(_0x6384e(0x1ca))/0x8*(-parseInt(_0x6384e(0x1c6))/0x9)+parseInt(_0x6384e(0x1c9))/0xa+-parseInt(_0x6384e(0x1bc))/0xb*(parseInt(_0x6384e(0x1c3))/0xc);if(_0x126e45===_0xf171c7)break;else _0xe6cff2['push'](_0xe6cff2['shift']());}catch(_0x1b4233){_0xe6cff2['push'](_0xe6cff2['shift']());}}}(a87_0x379d,0x7202e));const a87_0x58b698={};a87_0x58b698[a87_0x569b5b(0x1bd)]=0x0,a87_0x58b698[a87_0x569b5b(0x1c4)]=function(){const _0x4ff86b=a87_0x569b5b,_0xb42927={};_0xb42927[_0x4ff86b(0x1c1)]=_0x4ff86b(0x1cd);const _0x1502e7=_0xb42927;return _0x1502e7[_0x4ff86b(0x1c1)];};function a87_0x21d7(_0x197b7a,_0x439908){const _0x379de8=a87_0x379d();return a87_0x21d7=function(_0x21d7cc,_0x2148e3){_0x21d7cc=_0x21d7cc-0x1bb;let _0x23c930=_0x379de8[_0x21d7cc];return _0x23c930;},a87_0x21d7(_0x197b7a,_0x439908);}const a87_0x4b60d1={};a87_0x4b60d1[a87_0x569b5b(0x1bd)]=0x1,a87_0x4b60d1['toString']=function(){const _0x23dff4=a87_0x569b5b,_0x5c9863={};_0x5c9863[_0x23dff4(0x1c5)]='HookState.PRE';const _0x547c40=_0x5c9863;return _0x547c40['bgVta'];};function a87_0x379d(){const _0x636473=['63lvEkfi','772962knpSFp','145482ubDWKq','2596390xLyLzQ','553256KUrBfO','find','771225Ncttzp','HookState.NONE','freeze','HookState.POST','2CCDHgj','2962487CEImHU','value','843756CgJwah','30HGoeyw','arVmH','AiBmH','76pjcmiV','12jZTidU','toString','bgVta'];a87_0x379d=function(){return _0x636473;};return a87_0x379d();}const a87_0x34b2f3={};a87_0x34b2f3['value']=0x2,a87_0x34b2f3[a87_0x569b5b(0x1c4)]=function(){const _0x7a4362=a87_0x569b5b,_0xe55483={};_0xe55483[_0x7a4362(0x1c0)]=_0x7a4362(0x1cf);const _0x5aee7e=_0xe55483;return _0x5aee7e[_0x7a4362(0x1c0)];};const HookState=Object[a87_0x569b5b(0x1ce)]({'NONE':a87_0x58b698,'PRE':a87_0x4b60d1,'POST':a87_0x34b2f3,'fromValue'(_0xe72ef9){const _0x33d9bc=a87_0x569b5b;return Object['values'](HookState)[_0x33d9bc(0x1cb)](_0x5100e6=>_0x5100e6[_0x33d9bc(0x1bd)]===_0xe72ef9);}});module['exports']=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x2a58a6=a88_0x2948;(function(_0x2c8ca1,_0x9c1aa2){const _0x5252bb=a88_0x2948,_0x19565f=_0x2c8ca1();while(!![]){try{const _0x532f7c=-parseInt(_0x5252bb(0x127))/0x1+-parseInt(_0x5252bb(0x126))/0x2*(parseInt(_0x5252bb(0x122))/0x3)+-parseInt(_0x5252bb(0x121))/0x4*(parseInt(_0x5252bb(0x125))/0x5)+-parseInt(_0x5252bb(0x120))/0x6+-parseInt(_0x5252bb(0x12e))/0x7*(parseInt(_0x5252bb(0x12f))/0x8)+-parseInt(_0x5252bb(0x13b))/0x9*(-parseInt(_0x5252bb(0x123))/0xa)+parseInt(_0x5252bb(0x136))/0xb;if(_0x532f7c===_0x9c1aa2)break;else _0x19565f['push'](_0x19565f['shift']());}catch(_0x33e1bb){_0x19565f['push'](_0x19565f['shift']());}}}(a88_0x20a1,0x84e7c));const a88_0x5e29c9={};a88_0x5e29c9[a88_0x2a58a6(0x141)]=0x0,a88_0x5e29c9['toString']=function(){const _0x25b899=a88_0x2a58a6,_0x6cb895={};_0x6cb895[_0x25b899(0x13a)]=_0x25b899(0x138);const _0x26bcb3=_0x6cb895;return _0x26bcb3[_0x25b899(0x13a)];};const a88_0x35da9b={};a88_0x35da9b[a88_0x2a58a6(0x141)]=0x1,a88_0x35da9b[a88_0x2a58a6(0x12c)]=function(){const _0x39ba26=a88_0x2a58a6,_0x167585={};_0x167585[_0x39ba26(0x140)]=_0x39ba26(0x11e);const _0x28652e=_0x167585;return _0x28652e['rZAWt'];};const a88_0x6b97f8={};a88_0x6b97f8['value']=0x2,a88_0x6b97f8[a88_0x2a58a6(0x12c)]=function(){const _0x56ea42=a88_0x2a58a6,_0x428c09={};_0x428c09[_0x56ea42(0x13f)]=_0x56ea42(0x133);const _0x536123=_0x428c09;return _0x536123[_0x56ea42(0x13f)];};const a88_0x36cc24={};a88_0x36cc24[a88_0x2a58a6(0x141)]=0x3,a88_0x36cc24[a88_0x2a58a6(0x12c)]=function(){const _0x5caf04=a88_0x2a58a6,_0x27ada1={};_0x27ada1[_0x5caf04(0x11f)]=_0x5caf04(0x13d);const _0x4ed3eb=_0x27ada1;return _0x4ed3eb[_0x5caf04(0x11f)];};const a88_0x18ced6={};a88_0x18ced6[a88_0x2a58a6(0x141)]=0x4,a88_0x18ced6['toString']=function(){const _0x492ac0=a88_0x2a58a6,_0x4b0c13={};_0x4b0c13['uzLfL']=_0x492ac0(0x12d);const _0x2e703e=_0x4b0c13;return _0x2e703e[_0x492ac0(0x12a)];};function a88_0x20a1(){const _0x486511=['3955020WPcOXh','4EAaXoy','74367bSDVis','465640VYUnNz','DjmPy','950745pWYEdn','70tUVOZp','188007IYmDEN','bvrxs','TestFrameworkState.STEP','uzLfL','freeze','toString','TestFrameworkState.INIT_TEST','623uTXMWY','90088NZiNGh','find','UrlzK','QGarc','TestFrameworkState.LOG','SMpCj','izCbW','36942642aWTgyy','TestFrameworkState.LOG_REPORT','TestFrameworkState.NONE','TestFrameworkState.AFTER_ALL','fNfKF','18XjYBza','TestFrameworkState.TEST','TestFrameworkState.SETUP_FIXTURE','TestFrameworkState.TEST_SCREENSHOT','NQyWn','rZAWt','value','TpZxd','exports','TestFrameworkState.BEFORE_ALL','uUyAe'];a88_0x20a1=function(){return _0x486511;};return a88_0x20a1();}const a88_0x1dbfc8={};a88_0x1dbfc8[a88_0x2a58a6(0x141)]=0x5,a88_0x1dbfc8[a88_0x2a58a6(0x12c)]=function(){const _0x3d8877=a88_0x2a58a6,_0x24fdea={};_0x24fdea['izCbW']='TestFrameworkState.BEFORE_EACH';const _0x52c867=_0x24fdea;return _0x52c867[_0x3d8877(0x135)];};const a88_0x1a99a3={};a88_0x1a99a3[a88_0x2a58a6(0x141)]=0x6,a88_0x1a99a3['toString']=function(){const _0x44dca4=a88_0x2a58a6,_0x1e0547={};_0x1e0547[_0x44dca4(0x128)]='TestFrameworkState.AFTER_EACH';const _0x352831=_0x1e0547;return _0x352831['bvrxs'];};const a88_0x5d5dc5={};a88_0x5d5dc5['value']=0x7,a88_0x5d5dc5[a88_0x2a58a6(0x12c)]=function(){const _0x47e084=a88_0x2a58a6,_0x2f6a3e={};_0x2f6a3e['QGarc']=_0x47e084(0x13c);const _0x2c9a4c=_0x2f6a3e;return _0x2c9a4c[_0x47e084(0x132)];};const a88_0x528fef={};a88_0x528fef[a88_0x2a58a6(0x141)]=0x8,a88_0x528fef[a88_0x2a58a6(0x12c)]=function(){const _0x1158b7=a88_0x2a58a6,_0xb32f52={};_0xb32f52[_0x1158b7(0x124)]=_0x1158b7(0x129);const _0x4ea03e=_0xb32f52;return _0x4ea03e['DjmPy'];};const a88_0x408c6c={};a88_0x408c6c['value']=0x9,a88_0x408c6c['toString']=function(){const _0x32e91a=a88_0x2a58a6,_0x150581={};_0x150581[_0x32e91a(0x11c)]=_0x32e91a(0x137);const _0x1da286=_0x150581;return _0x1da286[_0x32e91a(0x11c)];};const a88_0x28c798={};function a88_0x2948(_0x5f3a12,_0x5e58c4){const _0x20a142=a88_0x20a1();return a88_0x2948=function(_0x2948c9,_0x843c23){_0x2948c9=_0x2948c9-0x11c;let _0x217f0b=_0x20a142[_0x2948c9];return _0x217f0b;},a88_0x2948(_0x5f3a12,_0x5e58c4);}a88_0x28c798['value']=0xa,a88_0x28c798[a88_0x2a58a6(0x12c)]=function(){const _0x385d53=a88_0x2a58a6,_0xfa41cf={};_0xfa41cf[_0x385d53(0x131)]=_0x385d53(0x139);const _0x136eeb=_0xfa41cf;return _0x136eeb[_0x385d53(0x131)];};const a88_0x35781b={};a88_0x35781b[a88_0x2a58a6(0x141)]=0xb,a88_0x35781b[a88_0x2a58a6(0x12c)]=function(){const _0x2eb268=a88_0x2a58a6,_0x45734a={};_0x45734a[_0x2eb268(0x134)]=_0x2eb268(0x13e);const _0x38222f=_0x45734a;return _0x38222f[_0x2eb268(0x134)];};const TestFrameworkState=Object[a88_0x2a58a6(0x12b)]({'NONE':a88_0x5e29c9,'BEFORE_ALL':a88_0x35da9b,'LOG':a88_0x6b97f8,'SETUP_FIXTURE':a88_0x36cc24,'INIT_TEST':a88_0x18ced6,'BEFORE_EACH':a88_0x1dbfc8,'AFTER_EACH':a88_0x1a99a3,'TEST':a88_0x5d5dc5,'STEP':a88_0x528fef,'LOG_REPORT':a88_0x408c6c,'AFTER_ALL':a88_0x28c798,'TEST_SCREENSHOT':a88_0x35781b,'fromValue'(_0x129cca){const _0x56ee3a=a88_0x2a58a6;return Object['values'](TestFrameworkState)[_0x56ee3a(0x130)](_0xd73209=>_0xd73209['value']===_0x129cca);}});module[a88_0x2a58a6(0x11d)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a89_0x13f3(_0x4ae80e,_0x2a82f3){const _0x4cf4a1=a89_0x4cf4();return a89_0x13f3=function(_0x13f322,_0x2b3e08){_0x13f322=_0x13f322-0xd3;let _0x380f48=_0x4cf4a1[_0x13f322];return _0x380f48;},a89_0x13f3(_0x4ae80e,_0x2a82f3);}const a89_0x1d6c15=a89_0x13f3;(function(_0x37323e,_0x298ed3){const _0x5ad12a=a89_0x13f3,_0x1be7f0=_0x37323e();while(!![]){try{const _0x436306=parseInt(_0x5ad12a(0x11c))/0x1*(-parseInt(_0x5ad12a(0x135))/0x2)+parseInt(_0x5ad12a(0x129))/0x3+-parseInt(_0x5ad12a(0x15c))/0x4+-parseInt(_0x5ad12a(0x127))/0x5+-parseInt(_0x5ad12a(0x150))/0x6*(-parseInt(_0x5ad12a(0x153))/0x7)+-parseInt(_0x5ad12a(0x102))/0x8+parseInt(_0x5ad12a(0xf2))/0x9;if(_0x436306===_0x298ed3)break;else _0x1be7f0['push'](_0x1be7f0['shift']());}catch(_0x21d650){_0x1be7f0['push'](_0x1be7f0['shift']());}}}(a89_0x4cf4,0xe5e87));const os=require('os'),fs=require('fs'),path=require('path'),util=require(a89_0x1d6c15(0x146)),BrowserstackCLI=require(a89_0x1d6c15(0x12b)),https=require(a89_0x1d6c15(0xe8)),http=require(a89_0x1d6c15(0x122)),AutomationFramework=require(a89_0x1d6c15(0x142)),PlaywrightDriverModule=require(a89_0x1d6c15(0xd4)),TestInfo=require(a89_0x1d6c15(0x106)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require(a89_0x1d6c15(0xd7));function a89_0x4cf4(){const _0x26d5bd=['ypadX','Cleared\x20attachment\x20folder','gNPlo','https://','YwZLg','unlinkSync','mwBSm','87113kRNRJZ','isRunning','join','MlwLf','debug','addMultipleEntries','http','pipe','dVbne','dsxDY','basename','2665440ibPwCP','format','1304700slUtWu','rmSync','./browserstackCLI','close','error','BuildLevel','QTSry','EJIzn','__jestCurrentTestIdentifier','CNxJP','tiYzV','getState','34sEbEkO','testhubConfig','POST','EEaJP','createWriteStream','JFlTQ','existsSync','QEpmj','./state/testFrameworkState','Created\x20folder:\x20%s','getAllData','sLfyx','uploadAttachments','./framework/automationFramework','testInfo','wvOos','KEY_TEST_ID','util','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','QiAQM','eUFIR','KEY_FILE_NAME','force','fbWux','xuUtQ','trackFile','204Jbodsd','Jijsl','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','109228rzdAth','nKOin','toObject','logger','MnBOX','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','HJDcw','uploadAttachmentsManager','get','5899448dmGNbb','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','recursive','./modules/playwrightDriverModule','getTrackedInstance',',\x20filepath:\x20','../../helpers/classLogger.js','statSync','LevrF','buildHashedId','mkdirSync','message','JDMiY','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','tzgZa','RFWTz','retry','toFixed','ofnGO','etBTw','TestLevel','size','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','https','modules','statusCode','Rzgcf','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','jest','.browserstack','Attachment\x20recevied\x20for\x20path:\x20%s','Created\x20.browserstack\x20folder\x20at:\x20%s','homedir','45628533pcOZzp','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','exports','__workerDetails','TBRnk','File\x20downloaded\x20to:\x20%s','KEY_FILE_PATH','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','name','copyFileSync','nGBxA','getTestFramework','WQewI','clearAttachments','KEY_FILE_LEVEL','startsWith','12837592qxqqON','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','currentTest','getInstance','./TestInfo','KEY_TEST_ATTACHMENTS','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','lunCA','uPLCQ','KEY_FILE_SIZE','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','TEST','wdixP','xnucj','http://','FQljR','VpiGz','TestHubModule','./cliUtils'];a89_0x4cf4=function(){return _0x26d5bd;};return a89_0x4cf4();}class uploadAttachmentsManager{static [a89_0x1d6c15(0x156)]=createClassLogger(a89_0x1d6c15(0x15a));static[a89_0x1d6c15(0x141)](_0x35a0b2,_0x5a9958=![]){const _0x5ab499=a89_0x1d6c15,_0x1a8bf7={};_0x1a8bf7[_0x5ab499(0x133)]=function(_0x5b805a,_0xb04be){return _0x5b805a/_0xb04be;},_0x1a8bf7[_0x5ab499(0x144)]=function(_0x599713,_0x1a1ae8){return _0x599713*_0x1a1ae8;},_0x1a8bf7[_0x5ab499(0x149)]=function(_0x1985f9,_0x310d63){return _0x1985f9>_0x310d63;},_0x1a8bf7[_0x5ab499(0x14e)]=_0x5ab499(0xec),_0x1a8bf7[_0x5ab499(0x10f)]=_0x5ab499(0xf7),_0x1a8bf7[_0x5ab499(0xe3)]=function(_0x3edf94,_0x321a42){return _0x3edf94===_0x321a42;},_0x1a8bf7['LevrF']='finish',_0x1a8bf7[_0x5ab499(0x124)]='Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload',_0x1a8bf7[_0x5ab499(0x157)]=_0x5ab499(0xf9),_0x1a8bf7['EEaJP']=_0x5ab499(0xef),_0x1a8bf7[_0x5ab499(0xfe)]=_0x5ab499(0xee),_0x1a8bf7[_0x5ab499(0x125)]=_0x5ab499(0x147),_0x1a8bf7[_0x5ab499(0x117)]=_0x5ab499(0xf0),_0x1a8bf7[_0x5ab499(0x111)]=_0x5ab499(0x13e),_0x1a8bf7[_0x5ab499(0xeb)]='Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.',_0x1a8bf7[_0x5ab499(0xfc)]=_0x5ab499(0x118),_0x1a8bf7[_0x5ab499(0x151)]=_0x5ab499(0x110),_0x1a8bf7['nKOin']=_0x5ab499(0x12d),_0x1a8bf7['sDCLC']=_0x5ab499(0x108),_0x1a8bf7['MlwLf']=function(_0x160989,_0x265d17){return _0x160989/_0x265d17;},_0x1a8bf7[_0x5ab499(0x115)]=function(_0x5b4aea,_0x38b9de){return _0x5b4aea>_0x38b9de;},_0x1a8bf7[_0x5ab499(0x130)]='File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.';const _0xfa03f=_0x1a8bf7;this[_0x5ab499(0x156)]['debug'](util[_0x5ab499(0x128)](_0xfa03f[_0x5ab499(0x138)],_0x35a0b2));const _0x193014=os['homedir'](),_0x10cd20=path[_0x5ab499(0x11e)](_0x193014,_0xfa03f[_0x5ab499(0xfe)]);!fs[_0x5ab499(0x13b)](_0x10cd20)&&(this[_0x5ab499(0x156)][_0x5ab499(0x120)](util[_0x5ab499(0x128)](_0xfa03f[_0x5ab499(0x125)],_0x10cd20)),fs[_0x5ab499(0xdb)](_0x10cd20),this['logger'][_0x5ab499(0x120)](util[_0x5ab499(0x128)](_0xfa03f[_0x5ab499(0x117)],_0x10cd20)));const _0x14ea0b=BrowserstackCLI[_0x5ab499(0x105)]()[_0x5ab499(0xe9)][_0x5ab499(0x113)]?.[_0x5ab499(0x136)]?.[_0x5ab499(0x155)]()?.[_0x5ab499(0xda)],_0x178263=path[_0x5ab499(0x11e)](_0x10cd20,_0x14ea0b);!fs[_0x5ab499(0x13b)](_0x178263)&&(fs['mkdirSync'](_0x178263),this['logger'][_0x5ab499(0x120)](util[_0x5ab499(0x128)](_0xfa03f[_0x5ab499(0x111)],_0x178263)));if(_0xfa03f[_0x5ab499(0xe3)](_0x35a0b2['trim'](),'')){this[_0x5ab499(0x156)][_0x5ab499(0x120)](util[_0x5ab499(0x128)](_0xfa03f[_0x5ab499(0xeb)]));return;}if(_0x35a0b2[_0x5ab499(0x101)](_0xfa03f['nGBxA'])||_0x35a0b2[_0x5ab499(0x101)](_0xfa03f[_0x5ab499(0x151)])){const _0x2d9d81=_0x35a0b2[_0x5ab499(0x101)](_0xfa03f[_0x5ab499(0xfc)])?https:http,_0x12de0f=path[_0x5ab499(0x126)](_0x35a0b2),_0x3c08d1=path[_0x5ab499(0x11e)](_0x178263,_0x12de0f),_0x8c9da6=fs[_0x5ab499(0x139)](_0x3c08d1);_0x2d9d81[_0x5ab499(0x15b)](_0x35a0b2,_0x322b31=>{const _0x54a24c=_0x5ab499,_0x3601f0={'sLfyx':function(_0x3eb07,_0xbec5ca){const _0x2dd041=a89_0x13f3;return _0xfa03f[_0x2dd041(0x133)](_0x3eb07,_0xbec5ca);},'mwBSm':function(_0x55d230,_0x52cb35){const _0xd2a815=a89_0x13f3;return _0xfa03f[_0xd2a815(0x144)](_0x55d230,_0x52cb35);},'QEpmj':function(_0x2027f9,_0x1da303){return _0xfa03f['QiAQM'](_0x2027f9,_0x1da303);},'TBRnk':_0xfa03f[_0x54a24c(0x14e)],'CNxJP':_0xfa03f['xnucj']};if(_0xfa03f[_0x54a24c(0xe3)](_0x322b31[_0x54a24c(0xea)],0xc8))_0x322b31[_0x54a24c(0x123)](_0x8c9da6),_0x8c9da6['on'](_0xfa03f[_0x54a24c(0xd9)],()=>{const _0x1b73e0=_0x54a24c;_0x8c9da6['close']();const _0x209ddc=fs[_0x1b73e0(0xd8)](_0x3c08d1),_0xaa597=_0x3601f0[_0x1b73e0(0x140)](_0x209ddc[_0x1b73e0(0xe6)],_0x3601f0[_0x1b73e0(0x11b)](0x400,0x400));if(_0x3601f0[_0x1b73e0(0x13c)](_0xaa597,0x64)){this[_0x1b73e0(0x156)][_0x1b73e0(0x120)](util['format'](_0x3601f0[_0x1b73e0(0xf6)],_0xaa597[_0x1b73e0(0xe2)](0x2))),fs[_0x1b73e0(0x11a)](_0x3c08d1);return;}this['logger'][_0x1b73e0(0x120)](util['format'](_0x3601f0[_0x1b73e0(0x132)],_0x3c08d1)),uploadAttachmentsManager[_0x1b73e0(0x14f)](_0x3c08d1,_0x5a9958);});else{this[_0x54a24c(0x156)]['debug'](util[_0x54a24c(0x128)](_0xfa03f[_0x54a24c(0x124)],_0x322b31['statusCode'])),_0x8c9da6['close'](),fs['unlinkSync'](_0x3c08d1);return;}})['on'](_0xfa03f[_0x5ab499(0x154)],_0x4a598d=>{const _0x1c12cf=_0x5ab499;this[_0x1c12cf(0x156)][_0x1c12cf(0x120)](util[_0x1c12cf(0x128)](_0xfa03f[_0x1c12cf(0x157)],_0x4a598d[_0x1c12cf(0xdc)])),_0x8c9da6[_0x1c12cf(0x12c)](),fs[_0x1c12cf(0x11a)](_0x3c08d1);return;});}else{if(!fs[_0x5ab499(0x13b)](_0x35a0b2)){this[_0x5ab499(0x156)][_0x5ab499(0x120)](util['format'](_0xfa03f['sDCLC'],_0x35a0b2));return;}const _0x1684ac=fs[_0x5ab499(0xd8)](_0x35a0b2),_0x532e2d=_0xfa03f[_0x5ab499(0x11f)](_0x1684ac[_0x5ab499(0xe6)],_0xfa03f['wvOos'](0x400,0x400));if(_0xfa03f[_0x5ab499(0x115)](_0x532e2d,0x64)){this[_0x5ab499(0x156)][_0x5ab499(0x120)](util['format'](_0xfa03f[_0x5ab499(0x130)],_0x532e2d[_0x5ab499(0xe2)](0x2)));return;}const _0x1a4d56=path[_0x5ab499(0x126)](_0x35a0b2),_0x2d0aae=path[_0x5ab499(0x11e)](_0x178263,_0x1a4d56);fs[_0x5ab499(0xfb)](_0x35a0b2,_0x2d0aae),uploadAttachmentsManager[_0x5ab499(0x14f)](_0x2d0aae,_0x5a9958);}}static[a89_0x1d6c15(0x14f)](_0x4c3e94,_0x47df03){const _0x4dc76b=a89_0x1d6c15,_0x46cf2f={'uPLCQ':function(_0x1e2d22,_0x5124b4){return _0x1e2d22(_0x5124b4);},'QTSry':'./browserstackCLI','wdixP':function(_0x56c899,_0x332bb1){return _0x56c899(_0x332bb1);},'eUFIR':_0x4dc76b(0x114),'HJDcw':function(_0x530f4c,_0xdc50fc){return _0x530f4c===_0xdc50fc;},'lunCA':_0x4dc76b(0xed),'piUum':_0x4dc76b(0xe7),'fbWux':_0x4dc76b(0x12e),'VpiGz':_0x4dc76b(0xe5),'NmnZG':'trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','JFlTQ':_0x4dc76b(0x13d),'olAEG':function(_0x3b3984,_0x48fc3e){return _0x3b3984(_0x48fc3e);},'dTuVf':'./state/hookState','RFWTz':_0x4dc76b(0x152),'YwZLg':_0x4dc76b(0x10c),'etBTw':_0x4dc76b(0x148)};try{let _0x42c202;const _0x542602=global[_0x4dc76b(0xf5)]?.[_0x4dc76b(0x104)]?.[_0x4dc76b(0x143)],_0x40e24a=_0x46cf2f[_0x4dc76b(0x10a)](require,_0x46cf2f[_0x4dc76b(0x12f)]),_0x317769=_0x46cf2f[_0x4dc76b(0x10e)](require,_0x46cf2f[_0x4dc76b(0x14a)]),_0x546a8c=_0x40e24a[_0x4dc76b(0x105)]()[_0x4dc76b(0x11d)]()&&_0x46cf2f[_0x4dc76b(0x159)](_0x317769['getTestFrameworkDetail']()?.[_0x4dc76b(0xfa)]?.['toLowerCase'](),_0x46cf2f[_0x4dc76b(0x109)]);if(_0x546a8c){_0x42c202=global[_0x4dc76b(0x131)];if(!_0x42c202){const _0x15d634=AutomationFramework[_0x4dc76b(0xd5)]();_0x42c202=AutomationFramework[_0x4dc76b(0x134)](_0x15d634,PlaywrightDriverModule[_0x4dc76b(0x145)],'');}this['logger']['debug'](_0x4dc76b(0x103)+_0x42c202);}else{if(!_0x542602){const _0x434668=AutomationFramework[_0x4dc76b(0xd5)]();_0x42c202=AutomationFramework['getState'](_0x434668,PlaywrightDriverModule[_0x4dc76b(0x145)],'');}else _0x42c202=TestInfo['getTestIdentifierFromTestInfo'](_0x542602,_0x542602[_0x4dc76b(0xe1)]);this[_0x4dc76b(0x156)]['debug'](_0x4dc76b(0x15d)+_0x42c202);}if(!_0x42c202){this[_0x4dc76b(0x156)][_0x4dc76b(0x120)](_0x46cf2f['piUum']);return;}const _0x10f1ed={[TestFrameworkConstants[_0x4dc76b(0x10b)]]:fs['statSync'](_0x4c3e94)['size'],[TestFrameworkConstants[_0x4dc76b(0x14b)]]:path[_0x4dc76b(0x126)](_0x4c3e94),[TestFrameworkConstants[_0x4dc76b(0xf8)]]:_0x4c3e94,[TestFrameworkConstants[_0x4dc76b(0x100)]]:_0x47df03?_0x46cf2f[_0x4dc76b(0x14d)]:_0x46cf2f[_0x4dc76b(0x112)]};if(_0x546a8c){const _0x23849a=_0x40e24a[_0x4dc76b(0x105)]()[_0x4dc76b(0xfd)]();if(!_0x23849a){this[_0x4dc76b(0x156)][_0x4dc76b(0x120)](_0x46cf2f['NmnZG']);return;}const _0x18a375=_0x46cf2f[_0x4dc76b(0x10e)](require,_0x46cf2f[_0x4dc76b(0x13a)]),_0x4749f4=_0x46cf2f['olAEG'](require,_0x46cf2f['dTuVf']),_0x142edf=_0x23849a['resolveInstance'](_0x18a375[_0x4dc76b(0x10d)],_0x4749f4[_0x4dc76b(0x137)]);if(!_0x142edf){this[_0x4dc76b(0x156)]['debug'](_0x46cf2f[_0x4dc76b(0xe0)]);return;}const _0x9eb994=_0x142edf[_0x4dc76b(0x13f)]()[_0x4dc76b(0x15b)](_0x42c202)||{},_0x5c81a7=_0x9eb994[TestFrameworkConstants[_0x4dc76b(0x107)]]||{},_0xeb0ec9={..._0x5c81a7};_0xeb0ec9[_0x4c3e94]=_0x10f1ed;const _0x2c46c9=_0xeb0ec9,_0x3e7c89={[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]:_0x2c46c9},_0x67398d={};_0x67398d[_0x42c202]=_0x3e7c89,_0x142edf[_0x4dc76b(0x121)](_0x67398d),this[_0x4dc76b(0x156)]['debug'](_0x4dc76b(0x158)+_0x42c202+_0x4dc76b(0xd6)+_0x4c3e94);}else{const _0x43fc79=TestInfo['getTestDetails'](_0x42c202),_0x5c76c4=_0x43fc79[TestFrameworkConstants[_0x4dc76b(0x107)]]||{};_0x5c76c4[_0x4c3e94]=_0x10f1ed,_0x43fc79[TestFrameworkConstants[_0x4dc76b(0x107)]]=_0x5c76c4,TestInfo['setTestDetails'](_0x42c202,_0x43fc79),this[_0x4dc76b(0x156)][_0x4dc76b(0x120)](_0x4dc76b(0xf3)+_0x42c202+_0x4dc76b(0xd6)+_0x4c3e94);}this[_0x4dc76b(0x156)][_0x4dc76b(0x120)](util[_0x4dc76b(0x128)](_0x46cf2f[_0x4dc76b(0x119)],_0x4c3e94));}catch(_0x3ec33d){this['logger'][_0x4dc76b(0x120)](util['format'](_0x46cf2f[_0x4dc76b(0xe4)],_0x3ec33d[_0x4dc76b(0xdc)]));}}static[a89_0x1d6c15(0xff)](){const _0x35adb5=a89_0x1d6c15,_0x53f812={};_0x53f812['wtPsu']=_0x35adb5(0xee),_0x53f812[_0x35adb5(0xdd)]=_0x35adb5(0xde),_0x53f812[_0x35adb5(0xdf)]=_0x35adb5(0x116);const _0x129963=_0x53f812,_0x464cd4=os[_0x35adb5(0xf1)](),_0x370ce0=path['join'](_0x464cd4,_0x129963['wtPsu']);if(!fs[_0x35adb5(0x13b)](_0x370ce0))return;const _0x258f34=BrowserstackCLI[_0x35adb5(0x105)]()[_0x35adb5(0xe9)][_0x35adb5(0x113)]?.[_0x35adb5(0x136)]?.['toObject']()?.[_0x35adb5(0xda)],_0x1e39e0=_0x258f34?path[_0x35adb5(0x11e)](_0x370ce0,_0x258f34):null;if(!_0x1e39e0||!fs[_0x35adb5(0x13b)](_0x1e39e0)){this[_0x35adb5(0x156)][_0x35adb5(0x120)](util['format'](_0x129963['JDMiY'],_0x258f34));return;}const _0x314bb4={};_0x314bb4[_0x35adb5(0xd3)]=!![],_0x314bb4[_0x35adb5(0x14c)]=!![],fs[_0x35adb5(0x12a)](_0x1e39e0,_0x314bb4),this['logger'][_0x35adb5(0x120)](util[_0x35adb5(0x128)](_0x129963[_0x35adb5(0xdf)]));}}module[a89_0x1d6c15(0xf4)]=uploadAttachmentsManager;
|
|
1
|
+
function a89_0x5cf9(){const _0x52f95a=['debug','statSync','existsSync','./state/hookState','logger','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','getAllData','5803wyahdM','sSKIj','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','./cliUtils','1304cleRvy','JKZKR','http','./TestInfo','JXWyl','3815174regqBg','util','14629ihnZXz','KEY_FILE_LEVEL','copyFileSync','getTestFramework','getTestIdentifierFromTestInfo','AdrkM','toFixed','clearAttachments','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','./state/testFrameworkState','mWktQ','HbdRg','basename','uploadAttachmentsManager','./modules/playwrightDriverModule','dcDyC','37278fbpVvr','.browserstack','gRDij','iNXxr','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','toLowerCase','addMultipleEntries','dSkBc','name','TEST','1602TusNeW','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','oIado','uploadAttachments','349516cWFrIn','BuildLevel',',\x20filepath:\x20','close','join','trackFile','4udIKGJ','startsWith','http://','abzxa','format','QKFlg','pipe','getTrackedInstance','qYCwL','https://','statusCode','210WRVOhP','xSLrK','JoDic','getTestDetails','UtJEu','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','POST','jest','message','pHsiF','unlinkSync','LZhhm','PjqZt','KEY_TEST_ID','./framework/constants/testFrameworkConstants','modules','Created\x20folder:\x20%s','testhubConfig','homedir','setTestDetails','size','WeDkr','wutxg','yxLTt','retry','SmrOS','TestLevel','exports','lhGxW','getTestFrameworkDetail','MieIV','GQQya','buildHashedId','YScUy','../../helpers/classLogger.js','wlnpH','QBxls','toObject','GYcKH','Created\x20.browserstack\x20folder\x20at:\x20%s','finish','getInstance','ElCQS','WZsCI','3865mcNKKL','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','oNdYg','KEY_FILE_SIZE','error','Attachment\x20recevied\x20for\x20path:\x20%s','SFOxe','eamvU','sriNS','KEY_TEST_ATTACHMENTS','hLEPO','__workerDetails','mkdirSync','TestHubModule','createWriteStream','83106NwJiCF','Xstfl','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','ICHVL','ZUpCZ','getState'];a89_0x5cf9=function(){return _0x52f95a;};return a89_0x5cf9();}function a89_0x4ae6(_0x35d3c,_0x4d3e89){const _0x5cf998=a89_0x5cf9();return a89_0x4ae6=function(_0x4ae673,_0x535a08){_0x4ae673=_0x4ae673-0xee;let _0x1b9ea0=_0x5cf998[_0x4ae673];return _0x1b9ea0;},a89_0x4ae6(_0x35d3c,_0x4d3e89);}const a89_0x539d20=a89_0x4ae6;(function(_0x2f7639,_0x5f4797){const _0x4300f6=a89_0x4ae6,_0x3723db=_0x2f7639();while(!![]){try{const _0x349260=-parseInt(_0x4300f6(0x10d))/0x1*(-parseInt(_0x4300f6(0x131))/0x2)+-parseInt(_0x4300f6(0x11d))/0x3+-parseInt(_0x4300f6(0x12b))/0x4+-parseInt(_0x4300f6(0x168))/0x5*(parseInt(_0x4300f6(0x127))/0x6)+parseInt(_0x4300f6(0x102))/0x7*(-parseInt(_0x4300f6(0x106))/0x8)+parseInt(_0x4300f6(0xf4))/0x9*(parseInt(_0x4300f6(0x13c))/0xa)+parseInt(_0x4300f6(0x10b))/0xb;if(_0x349260===_0x5f4797)break;else _0x3723db['push'](_0x3723db['shift']());}catch(_0x1f9207){_0x3723db['push'](_0x3723db['shift']());}}}(a89_0x5cf9,0x1f6ab));const os=require('os'),fs=require('fs'),path=require('path'),util=require(a89_0x539d20(0x10c)),BrowserstackCLI=require('./browserstackCLI'),https=require('https'),http=require(a89_0x539d20(0x108)),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require(a89_0x539d20(0x11b)),TestInfo=require(a89_0x539d20(0x109)),TestFrameworkConstants=require(a89_0x539d20(0x14a)),{createClassLogger}=require(a89_0x539d20(0x15e));class uploadAttachmentsManager{static [a89_0x539d20(0xff)]=createClassLogger(a89_0x539d20(0x11a));static[a89_0x539d20(0x12a)](_0x50186b,_0x795c15=![]){const _0xe694c7=a89_0x539d20,_0x54ef09={};_0x54ef09[_0xe694c7(0x139)]=function(_0x42840a,_0xbaabe1){return _0x42840a/_0xbaabe1;},_0x54ef09[_0xe694c7(0x103)]=function(_0x4a9445,_0x29a725){return _0x4a9445*_0x29a725;},_0x54ef09[_0xe694c7(0x13e)]=function(_0x5f13a7,_0x47ae43){return _0x5f13a7>_0x47ae43;},_0x54ef09[_0xe694c7(0x10a)]='Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.',_0x54ef09[_0xe694c7(0x148)]='File\x20downloaded\x20to:\x20%s',_0x54ef09[_0xe694c7(0x11f)]=function(_0x485f3e,_0x3992ac){return _0x485f3e===_0x3992ac;},_0x54ef09['SFOxe']=_0xe694c7(0x164),_0x54ef09[_0xe694c7(0x140)]=_0xe694c7(0x104),_0x54ef09['Opvdt']=_0xe694c7(0x100),_0x54ef09[_0xe694c7(0x107)]=_0xe694c7(0x16d),_0x54ef09[_0xe694c7(0xef)]=_0xe694c7(0x11e),_0x54ef09[_0xe694c7(0xf8)]='.browserstack\x20folder\x20not\x20found\x20at:\x20%s',_0x54ef09[_0xe694c7(0x15b)]=_0xe694c7(0x163),_0x54ef09[_0xe694c7(0x16a)]=_0xe694c7(0x14c),_0x54ef09[_0xe694c7(0x160)]=function(_0x566b93,_0x216a90){return _0x566b93===_0x216a90;},_0x54ef09[_0xe694c7(0x166)]='Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.',_0x54ef09[_0xe694c7(0x16f)]=_0xe694c7(0x13a),_0x54ef09[_0xe694c7(0x145)]=_0xe694c7(0x133),_0x54ef09[_0xe694c7(0x147)]=_0xe694c7(0x16c),_0x54ef09[_0xe694c7(0x117)]=_0xe694c7(0x141),_0x54ef09[_0xe694c7(0x124)]=function(_0x5f670d,_0x5f29e9){return _0x5f670d/_0x5f29e9;},_0x54ef09[_0xe694c7(0x118)]=function(_0x6b2520,_0x5557f3){return _0x6b2520*_0x5557f3;},_0x54ef09[_0xe694c7(0xf5)]=_0xe694c7(0x121);const _0x54e888=_0x54ef09;this['logger'][_0xe694c7(0xfb)](util[_0xe694c7(0x135)](_0x54e888[_0xe694c7(0x107)],_0x50186b));const _0x35be4d=os['homedir'](),_0x5a23dd=path[_0xe694c7(0x12f)](_0x35be4d,_0x54e888[_0xe694c7(0xef)]);!fs[_0xe694c7(0xfd)](_0x5a23dd)&&(this[_0xe694c7(0xff)][_0xe694c7(0xfb)](util[_0xe694c7(0x135)](_0x54e888[_0xe694c7(0xf8)],_0x5a23dd)),fs['mkdirSync'](_0x5a23dd),this[_0xe694c7(0xff)][_0xe694c7(0xfb)](util[_0xe694c7(0x135)](_0x54e888[_0xe694c7(0x15b)],_0x5a23dd)));const _0x59948a=BrowserstackCLI[_0xe694c7(0x165)]()[_0xe694c7(0x14b)][_0xe694c7(0xf2)]?.['testhubConfig']?.[_0xe694c7(0x161)]()?.[_0xe694c7(0x15c)],_0x17c49a=path[_0xe694c7(0x12f)](_0x5a23dd,_0x59948a);!fs['existsSync'](_0x17c49a)&&(fs[_0xe694c7(0xf1)](_0x17c49a),this[_0xe694c7(0xff)][_0xe694c7(0xfb)](util['format'](_0x54e888[_0xe694c7(0x16a)],_0x17c49a)));if(_0x54e888[_0xe694c7(0x160)](_0x50186b['trim'](),'')){this[_0xe694c7(0xff)][_0xe694c7(0xfb)](util[_0xe694c7(0x135)](_0x54e888['ElCQS']));return;}if(_0x50186b[_0xe694c7(0x132)](_0x54e888[_0xe694c7(0x16f)])||_0x50186b[_0xe694c7(0x132)](_0x54e888['pHsiF'])){const _0x17ab61=_0x50186b[_0xe694c7(0x132)](_0x54e888[_0xe694c7(0x16f)])?https:http,_0x3fbc6e=path[_0xe694c7(0x119)](_0x50186b),_0x5d40f0=path[_0xe694c7(0x12f)](_0x17c49a,_0x3fbc6e),_0x4761c7=fs[_0xe694c7(0xf3)](_0x5d40f0);_0x17ab61['get'](_0x50186b,_0x4eb2be=>{const _0x36521a=_0xe694c7,_0x22324f={'dcDyC':function(_0x4e9ee7,_0xd3187c){const _0x244232=a89_0x4ae6;return _0x54e888[_0x244232(0x139)](_0x4e9ee7,_0xd3187c);},'sriNS':function(_0x3c5dc9,_0x4c8ae8){const _0x5b3ae9=a89_0x4ae6;return _0x54e888[_0x5b3ae9(0x103)](_0x3c5dc9,_0x4c8ae8);},'abzxa':function(_0x497cdc,_0x47592e){const _0xbb15a6=a89_0x4ae6;return _0x54e888[_0xbb15a6(0x13e)](_0x497cdc,_0x47592e);},'RgTnu':_0x54e888['JXWyl'],'xSLrK':_0x54e888[_0x36521a(0x148)]};if(_0x54e888[_0x36521a(0x11f)](_0x4eb2be[_0x36521a(0x13b)],0xc8))_0x4eb2be[_0x36521a(0x137)](_0x4761c7),_0x4761c7['on'](_0x54e888[_0x36521a(0x16e)],()=>{const _0x575c2d=_0x36521a;_0x4761c7[_0x575c2d(0x12e)]();const _0x1bba9c=fs[_0x575c2d(0xfc)](_0x5d40f0),_0x367086=_0x22324f[_0x575c2d(0x11c)](_0x1bba9c['size'],_0x22324f[_0x575c2d(0x170)](0x400,0x400));if(_0x22324f[_0x575c2d(0x134)](_0x367086,0x64)){this[_0x575c2d(0xff)]['debug'](util['format'](_0x22324f['RgTnu'],_0x367086[_0x575c2d(0x113)](0x2))),fs['unlinkSync'](_0x5d40f0);return;}this[_0x575c2d(0xff)][_0x575c2d(0xfb)](util[_0x575c2d(0x135)](_0x22324f[_0x575c2d(0x13d)],_0x5d40f0)),uploadAttachmentsManager[_0x575c2d(0x130)](_0x5d40f0,_0x795c15);});else{this[_0x36521a(0xff)][_0x36521a(0xfb)](util['format'](_0x54e888[_0x36521a(0x140)],_0x4eb2be[_0x36521a(0x13b)])),_0x4761c7[_0x36521a(0x12e)](),fs[_0x36521a(0x146)](_0x5d40f0);return;}})['on'](_0x54e888[_0xe694c7(0x147)],_0x4cf81b=>{const _0x9ee53a=_0xe694c7;this[_0x9ee53a(0xff)][_0x9ee53a(0xfb)](util[_0x9ee53a(0x135)](_0x54e888['Opvdt'],_0x4cf81b[_0x9ee53a(0x144)])),_0x4761c7['close'](),fs[_0x9ee53a(0x146)](_0x5d40f0);return;});}else{if(!fs['existsSync'](_0x50186b)){this['logger']['debug'](util['format'](_0x54e888[_0xe694c7(0x117)],_0x50186b));return;}const _0x3e4c78=fs['statSync'](_0x50186b),_0x11f374=_0x54e888[_0xe694c7(0x124)](_0x3e4c78[_0xe694c7(0x150)],_0x54e888[_0xe694c7(0x118)](0x400,0x400));if(_0x54e888[_0xe694c7(0x13e)](_0x11f374,0x64)){this['logger']['debug'](util[_0xe694c7(0x135)](_0x54e888['Xstfl'],_0x11f374['toFixed'](0x2)));return;}const _0x513520=path[_0xe694c7(0x119)](_0x50186b),_0x166ebc=path[_0xe694c7(0x12f)](_0x17c49a,_0x513520);fs[_0xe694c7(0x10f)](_0x50186b,_0x166ebc),uploadAttachmentsManager['trackFile'](_0x166ebc,_0x795c15);}}static[a89_0x539d20(0x130)](_0x529102,_0x26263a){const _0x4f2603=a89_0x539d20,_0x422b86={'MieIV':function(_0x356051,_0x5a4b66){return _0x356051(_0x5a4b66);},'oFadI':'./browserstackCLI','QKFlg':_0x4f2603(0x105),'DBMhc':function(_0x99708b,_0x3aa16){return _0x99708b===_0x3aa16;},'GYcKH':_0x4f2603(0x143),'GFdEA':'trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','wutxg':_0x4f2603(0x12c),'SmrOS':_0x4f2603(0x156),'WZsCI':_0x4f2603(0x169),'yxLTt':function(_0x42b022,_0x9cab2b){return _0x42b022(_0x9cab2b);},'wlnpH':_0x4f2603(0x116),'oIado':_0x4f2603(0xfe),'WeDkr':'trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','ZUpCZ':_0x4f2603(0xf7),'iNXxr':'Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload'};try{let _0x1b6b03;const _0x3229cf=global[_0x4f2603(0xf0)]?.['currentTest']?.['testInfo'],_0x38577d=_0x422b86[_0x4f2603(0x15a)](require,_0x422b86['oFadI']),_0x2d99d3=_0x422b86[_0x4f2603(0x15a)](require,_0x422b86[_0x4f2603(0x136)]),_0x2a9393=_0x38577d[_0x4f2603(0x165)]()['isRunning']()&&_0x422b86['DBMhc'](_0x2d99d3[_0x4f2603(0x159)]()?.[_0x4f2603(0x125)]?.[_0x4f2603(0x122)](),_0x422b86[_0x4f2603(0x162)]);if(_0x2a9393){_0x1b6b03=global['__jestCurrentTestIdentifier'];if(!_0x1b6b03){const _0x284f57=AutomationFramework[_0x4f2603(0x138)]();_0x1b6b03=AutomationFramework['getState'](_0x284f57,PlaywrightDriverModule[_0x4f2603(0x149)],'');}this[_0x4f2603(0xff)][_0x4f2603(0xfb)](_0x4f2603(0xf6)+_0x1b6b03);}else{if(!_0x3229cf){const _0x3b6e5a=AutomationFramework[_0x4f2603(0x138)]();_0x1b6b03=AutomationFramework[_0x4f2603(0xfa)](_0x3b6e5a,PlaywrightDriverModule[_0x4f2603(0x149)],'');}else _0x1b6b03=TestInfo[_0x4f2603(0x111)](_0x3229cf,_0x3229cf[_0x4f2603(0x154)]);this[_0x4f2603(0xff)][_0x4f2603(0xfb)]('trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20'+_0x1b6b03);}if(!_0x1b6b03){this[_0x4f2603(0xff)][_0x4f2603(0xfb)](_0x422b86['GFdEA']);return;}const _0xcb9d28={[TestFrameworkConstants[_0x4f2603(0x16b)]]:fs['statSync'](_0x529102)[_0x4f2603(0x150)],[TestFrameworkConstants['KEY_FILE_NAME']]:path[_0x4f2603(0x119)](_0x529102),[TestFrameworkConstants['KEY_FILE_PATH']]:_0x529102,[TestFrameworkConstants[_0x4f2603(0x10e)]]:_0x26263a?_0x422b86[_0x4f2603(0x152)]:_0x422b86[_0x4f2603(0x155)]};if(_0x2a9393){const _0x121355=_0x38577d[_0x4f2603(0x165)]()[_0x4f2603(0x110)]();if(!_0x121355){this['logger'][_0x4f2603(0xfb)](_0x422b86[_0x4f2603(0x167)]);return;}const _0x1b53d8=_0x422b86[_0x4f2603(0x153)](require,_0x422b86[_0x4f2603(0x15f)]),_0x26eaef=_0x422b86[_0x4f2603(0x153)](require,_0x422b86[_0x4f2603(0x129)]),_0x5f5c03=_0x121355['resolveInstance'](_0x1b53d8[_0x4f2603(0x126)],_0x26eaef[_0x4f2603(0x142)]);if(!_0x5f5c03){this[_0x4f2603(0xff)][_0x4f2603(0xfb)](_0x422b86[_0x4f2603(0x151)]);return;}const _0x49081a=_0x5f5c03[_0x4f2603(0x101)]()['get'](_0x1b6b03)||{},_0x49af96=_0x49081a[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x36c396={..._0x49af96};_0x36c396[_0x529102]=_0xcb9d28;const _0x5948c7=_0x36c396,_0x26cf8b={[TestFrameworkConstants[_0x4f2603(0xee)]]:_0x5948c7},_0xcfe579={};_0xcfe579[_0x1b6b03]=_0x26cf8b,_0x5f5c03[_0x4f2603(0x123)](_0xcfe579),this[_0x4f2603(0xff)][_0x4f2603(0xfb)]('trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20'+_0x1b6b03+_0x4f2603(0x12d)+_0x529102);}else{const _0x3a3c69=TestInfo[_0x4f2603(0x13f)](_0x1b6b03),_0x19056c=_0x3a3c69[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{};_0x19056c[_0x529102]=_0xcb9d28,_0x3a3c69[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]=_0x19056c,TestInfo[_0x4f2603(0x14f)](_0x1b6b03,_0x3a3c69),this[_0x4f2603(0xff)][_0x4f2603(0xfb)](_0x4f2603(0x128)+_0x1b6b03+_0x4f2603(0x12d)+_0x529102);}this[_0x4f2603(0xff)][_0x4f2603(0xfb)](util[_0x4f2603(0x135)](_0x422b86[_0x4f2603(0xf9)],_0x529102));}catch(_0x27c377){this[_0x4f2603(0xff)][_0x4f2603(0xfb)](util[_0x4f2603(0x135)](_0x422b86[_0x4f2603(0x120)],_0x27c377[_0x4f2603(0x144)]));}}static[a89_0x539d20(0x114)](){const _0x2e6256=a89_0x539d20,_0x27543d={};_0x27543d[_0x2e6256(0x112)]=_0x2e6256(0x11e),_0x27543d['YScUy']=_0x2e6256(0x115),_0x27543d[_0x2e6256(0x158)]='Cleared\x20attachment\x20folder';const _0x6a9492=_0x27543d,_0x24fca8=os[_0x2e6256(0x14e)](),_0x2f9e94=path['join'](_0x24fca8,_0x6a9492['AdrkM']);if(!fs[_0x2e6256(0xfd)](_0x2f9e94))return;const _0x3c363b=BrowserstackCLI[_0x2e6256(0x165)]()[_0x2e6256(0x14b)][_0x2e6256(0xf2)]?.[_0x2e6256(0x14d)]?.[_0x2e6256(0x161)]()?.[_0x2e6256(0x15c)],_0x5bdcd6=_0x3c363b?path[_0x2e6256(0x12f)](_0x2f9e94,_0x3c363b):null;if(!_0x5bdcd6||!fs[_0x2e6256(0xfd)](_0x5bdcd6)){this[_0x2e6256(0xff)][_0x2e6256(0xfb)](util[_0x2e6256(0x135)](_0x6a9492[_0x2e6256(0x15d)],_0x3c363b));return;}const _0x29a671={};_0x29a671['recursive']=!![],_0x29a671['force']=!![],fs['rmSync'](_0x5bdcd6,_0x29a671),this['logger'][_0x2e6256(0xfb)](util[_0x2e6256(0x135)](_0x6a9492[_0x2e6256(0x158)]));}}module[a89_0x539d20(0x157)]=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a90_0x2cc258=a90_0x423d;(function(_0x153e0a,_0x2bcfd8){const _0x35bfee=a90_0x423d,_0x5732e8=_0x153e0a();while(!![]){try{const _0x3ed79e=-parseInt(_0x35bfee(0xc2))/0x1+parseInt(_0x35bfee(0xb7))/0x2+parseInt(_0x35bfee(0x92))/0x3+-parseInt(_0x35bfee(0xac))/0x4+-parseInt(_0x35bfee(0xb1))/0x5*(-parseInt(_0x35bfee(0xed))/0x6)+parseInt(_0x35bfee(0xd4))/0x7*(parseInt(_0x35bfee(0xd8))/0x8)+parseInt(_0x35bfee(0xf8))/0x9*(-parseInt(_0x35bfee(0xc0))/0xa);if(_0x3ed79e===_0x2bcfd8)break;else _0x5732e8['push'](_0x5732e8['shift']());}catch(_0x39ed9c){_0x5732e8['push'](_0x5732e8['shift']());}}}(a90_0x1f01,0xd5d1b));const path=require('path'),util=require(a90_0x2cc258(0xdc)),{getGitMetaData,isUndefined,nestedKeyValue}=require('../../../helpers/helper.js'),logger=require('../../../helpers/logger.js')[a90_0x2cc258(0x8a)],{o11yClassErrorHandler}=require(a90_0x2cc258(0xee)),TestInfo=require(a90_0x2cc258(0xae)),hooksMap={};function a90_0x1f01(){const _0x3a964c=['timestamp','passed','relative','util','value','rule','javascript','xDtQs','_gitConfigPath','duration_in_ms','find','sendHook','ZYyNe','format','CjPke','dpobr','failureData','exports','failed','scenario','600BxGVSm','../../../helpers/test-observability/error-handler.js','qVaEz','BhTKp','testCaseFinished','BEFORE_EACH','length','getHookRunEventData','cucumber','mhbOE','toISOString','2134665ydLglJ','kRdgY','UnhandledError','_gitConfigured','zPhXp','iqEPP','sbuFU','WyQxM','unknown','toLowerCase','KHhle','examples','FAILED','QSCHV','debug','split','tnwFQ','exception','configureGit','dLuYQ','createHookData','feature','VHTrs','lVhIk','jZaDw','finished_at','Exception\x20in\x20getHookRunEventData:\x20','SbWkC','skipped','bstack','failure','result','winstonLogger','PafTd','hookId','includes','otuwE','testStepFinished','getScenarioExamples','OhExb','558606zRZKCB','pickleStepId','root','sourceReference','eaKnW','ltsin','xQQye','hooks','strip-ansi','SKIPPED','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','LEpso','backtrace','pending','ldFrE','failure_type','GPVoB','uuid','ydcbN','kBdge','HVEwB','map','EYZmQ','name','lSZyt','cells','3346796FUjNZB','status','../TestInfo.js','AFTER_EACH','children','65925fZgATg','PpoYC','XWFgj','getTestUUID','pOpvN','push','2464000niCaqQ','message','XmoYv','lEhVu','tags','HookRunFinished','flatMap','astNodeIds','match','50GKqCRf','every','1036441VCdRyL','tableBody','createTestFrameworkData','CHPLX','JVSwg','tagExpression','forEach','getCucumberHookType','AssertionError','test','uri','sendTestRunEventForCucumber','failureType','getHookResult','qCWFs','LNubR','toString','yhKZj','5894kqZswn','zxEss','FEMpr','nanos','11384QPQcMY'];a90_0x1f01=function(){return _0x3a964c;};return a90_0x1f01();}function a90_0x423d(_0x2cfbcc,_0xd7b40c){const _0x1f01e3=a90_0x1f01();return a90_0x423d=function(_0x423d55,_0x1685b9){_0x423d55=_0x423d55-0x72;let _0x36e59e=_0x1f01e3[_0x423d55];return _0x36e59e;},a90_0x423d(_0x2cfbcc,_0xd7b40c);}class CucumberUtils{constructor(){const _0x1e228b=a90_0x2cc258;this[_0x1e228b(0xfb)]=![],this['_gitConfigPath']=null;}async[a90_0x2cc258(0xc4)](_0x42c091,_0x5dc438,_0x49c039,_0xfafda8,_0x44a7f7,_0x4d4f2a){const _0x1970cf=a90_0x2cc258,_0x527da6={'xQQye':function(_0x4171b1,_0x51dbf4){return _0x4171b1===_0x51dbf4;},'iLzzh':_0x1970cf(0x76),'lSZyt':_0x1970cf(0xeb),'kBdge':_0x1970cf(0x9b),'HVEwB':_0x1970cf(0x86),'ltsin':function(_0x2bd734,_0x3a010d){return _0x2bd734||_0x3a010d;},'FEMpr':function(_0x1daffd,_0x42d7a8){return _0x1daffd+_0x42d7a8;},'lVhIk':function(_0x2a879d,_0x17f0f6){return _0x2a879d+_0x17f0f6;},'sbuFU':_0x1970cf(0xcb),'PpoYC':_0x1970cf(0xdf),'xDtQs':_0x1970cf(0xf5),'qCWFs':_0x1970cf(0x9f),'qVaEz':_0x1970cf(0xda),'JVSwg':function(_0x36d812,_0x3ff7a7){return _0x36d812!==_0x3ff7a7;},'CHPLX':function(_0x3c8266,_0x13eeca){return _0x3c8266/_0x13eeca;},'VHTrs':function(_0xb8b30d,_0x5af379){return _0xb8b30d===_0x5af379;},'PafTd':_0x1970cf(0x9a),'SbWkC':function(_0x1cbac5,_0x18c01a){return _0x1cbac5(_0x18c01a);},'dLuYQ':_0x1970cf(0x72),'dpobr':_0x1970cf(0xca),'iqEPP':_0x1970cf(0xfa)},{feature:_0x851047,scenario:_0x47de8b,steps:_0x32c23b,uuid:_0xc70bdf,startedAt:_0x2abb83,finishedAt:_0xd2c4f4}=_0x527da6[_0x1970cf(0x97)](_0x42c091,{}),_0x223d7a=this[_0x1970cf(0x90)](_0xfafda8,_0x5dc438);await this[_0x1970cf(0x7c)]();const _0x3d1643=_0x223d7a?_0x527da6[_0x1970cf(0xd6)](_0x527da6[_0x1970cf(0xd6)](_0x527da6[_0x1970cf(0x81)](_0x5dc438[_0x1970cf(0xa9)],'\x20('),_0x223d7a['join'](',\x20')),')'):_0x5dc438[_0x1970cf(0xa9)],_0x440309={'id':_0x44a7f7,'uuid':_0x44a7f7,'startedAt':_0x2abb83,'finishedAt':_0xd2c4f4,'type':_0x527da6[_0x1970cf(0xfe)],'body':{'lang':_0x527da6[_0x1970cf(0xb2)],'code':null},'name':_0x3d1643,'scopes':[_0x851047&&_0x851047[_0x1970cf(0xa9)]?_0x851047[_0x1970cf(0xa9)]:''],'tags':_0x5dc438[_0x1970cf(0xbb)]?_0x5dc438[_0x1970cf(0xbb)][_0x1970cf(0xa7)](({name:_0x4e2c6f})=>_0x4e2c6f):[],'file_name':_0x5dc438[_0x1970cf(0xcc)],'location':_0x5dc438[_0x1970cf(0xcc)],'vc_filepath':this[_0x1970cf(0xe1)]&&_0x5dc438[_0x1970cf(0xcc)]?path[_0x1970cf(0xdb)](this[_0x1970cf(0xe1)],_0x5dc438['uri']):null,'framework':_0x527da6[_0x1970cf(0xe0)],'result':_0x527da6[_0x1970cf(0xd0)],'meta':{'feature':_0x851047,'scenario':_0x47de8b,'steps':_0x32c23b,'examples':_0x223d7a},'customRerunParam':{'rerun_name':_0x3d1643}};if(_0x49c039[_0x1970cf(0xf1)]&&_0x32c23b){const _0x2b096f=_0x49c039[_0x1970cf(0xf1)];let _0x70b534=_0x527da6[_0x1970cf(0xef)];_0x32c23b[_0x1970cf(0xc1)](_0x3614ba=>{const _0x4d0fa3=_0x1970cf;if(_0x527da6[_0x4d0fa3(0x98)](_0x3614ba['result'],_0x527da6['iLzzh']))return _0x70b534=_0x527da6['lSZyt'],_0x2b096f[_0x4d0fa3(0x88)]=_0x3614ba[_0x4d0fa3(0x88)],_0x2b096f['failureType']=_0x3614ba[_0x4d0fa3(0xce)],![];else{if(_0x527da6[_0x4d0fa3(0x98)](_0x3614ba['result'],_0x527da6[_0x4d0fa3(0xa5)]))return _0x70b534=_0x527da6[_0x4d0fa3(0xa6)],![];}return!![];}),_0x440309['finishedAt']=new Date()[_0x1970cf(0xf7)](),_0x440309[_0x1970cf(0x89)]=_0x70b534;_0x2b096f[_0x1970cf(0xd9)]&&_0x527da6[_0x1970cf(0xc6)](_0x2b096f[_0x1970cf(0xd9)][_0x1970cf(0xd7)],undefined)?_0x440309[_0x1970cf(0xe2)]=_0x527da6[_0x1970cf(0xc5)](_0x2b096f[_0x1970cf(0xd9)][_0x1970cf(0xd7)],0xf4240):_0x440309['duration_in_ms']=undefined;if(_0x527da6[_0x1970cf(0x80)](_0x70b534,_0x527da6[_0x1970cf(0xaa)])){const {default:_0x3b2afa}=await import(_0x527da6[_0x1970cf(0x8b)]);_0x440309['failure']=[{'backtrace':[_0x2b096f[_0x1970cf(0x88)]?_0x527da6[_0x1970cf(0x85)](_0x3b2afa,_0x2b096f['failure']):_0x527da6[_0x1970cf(0x7d)]]}],_0x440309['failure_reason']=_0x2b096f[_0x1970cf(0x88)]?_0x527da6[_0x1970cf(0x85)](_0x3b2afa,_0x2b096f[_0x1970cf(0x88)]):_0x2b096f[_0x1970cf(0xb8)],_0x2b096f[_0x1970cf(0xce)]&&(_0x440309[_0x1970cf(0xa1)]=_0x2b096f['failureType'][_0x1970cf(0xbf)](/AssertError/)?_0x527da6[_0x1970cf(0xe8)]:_0x527da6[_0x1970cf(0xfd)]);}}return _0x440309;}[a90_0x2cc258(0xf4)](_0x1bb5e1,_0x5f2bf0,_0x5acaa4,_0x3ec522,_0x3efc2f,_0xf3ca63){const _0x7beb50=a90_0x2cc258,_0xfde74a={'yhKZj':function(_0x1ac5ae,_0x33edb2){return _0x1ac5ae===_0x33edb2;},'hfVDn':_0x7beb50(0xbc),'QSCHV':function(_0x505bf6,_0x3e00f3,_0xb06619){return _0x505bf6(_0x3e00f3,_0xb06619);},'jZaDw':_0x7beb50(0x95),'ZYyNe':'uri','zxEss':_0x7beb50(0x9f),'XWFgj':'hook','eaKnW':'javascript','mhbOE':_0x7beb50(0x7f),'GPVoB':'name','bxsXg':function(_0x57e863,_0x5199ea,_0xe7a52d){return _0x57e863(_0x5199ea,_0xe7a52d);},'ydcbN':'cucumber'};try{if(_0xfde74a[_0x7beb50(0xd3)](_0x5acaa4,_0xfde74a['hfVDn'])){const _0x22a0fc=new Date()[_0x7beb50(0xf7)](),_0x3e01d2=hooksMap[_0x5f2bf0];if(!_0x3e01d2)return;const _0x50b696=_0x3e01d2[_0x7beb50(0xe3)](_0x5a10d5=>_0x5a10d5[_0x7beb50(0xa3)]===_0x3ec522['id']);if(!_0x50b696)return;const _0x14a2e2=this[_0x7beb50(0xcf)](_0x1bb5e1,_0x5f2bf0);_0x50b696[_0x7beb50(0x89)]=_0x14a2e2['status'],_0x50b696[_0x7beb50(0x83)]=_0x22a0fc,_0x50b696[_0x7beb50(0xa1)]=_0x14a2e2[_0x7beb50(0xce)];const _0x45713f={};return _0x45713f[_0x7beb50(0x9e)]=_0x14a2e2[_0x7beb50(0xe9)],_0x50b696['failure_data']=[_0x45713f],_0x50b696;}const _0x165812=TestInfo[_0x7beb50(0xb4)](_0x5f2bf0),_0x492111=_0x1bb5e1['hooks'][_0x7beb50(0xe3)](_0x3c738a=>_0x3c738a['id']===_0x3ec522[_0x7beb50(0x8c)]),_0x9c084b=_0xfde74a[_0x7beb50(0x77)](nestedKeyValue,_0x492111,[_0xfde74a[_0x7beb50(0x82)],_0xfde74a[_0x7beb50(0xe5)]]),_0xc7ced0=new Date()['toISOString'](),_0x1f60a8=_0xfde74a[_0x7beb50(0xd5)],_0x486b0f=_0x492111[_0x7beb50(0xc7)]?_0x492111[_0x7beb50(0xc7)][_0x7beb50(0x79)]('\x20')['filter'](_0x3a2684=>_0x3a2684[_0x7beb50(0x8d)]('@')):[],_0x29b472={'uuid':_0x3ec522['id'],'type':_0xfde74a[_0x7beb50(0xb3)],'hook_type':_0xf3ca63,'name':_0x492111[_0x7beb50(0xa9)],'body':{'lang':_0xfde74a[_0x7beb50(0x96)],'code':null},'tags':_0x486b0f,'test_run_id':_0x165812,'scope':_0xfde74a[_0x7beb50(0x77)](nestedKeyValue,_0x3efc2f,[_0xfde74a['mhbOE'],_0xfde74a[_0x7beb50(0xa2)]]),'scopes':[_0xfde74a['bxsXg'](nestedKeyValue,_0x3efc2f,[_0xfde74a[_0x7beb50(0xf6)],_0xfde74a[_0x7beb50(0xa2)]])||''],'file_name':_0x9c084b,'location':_0x9c084b,'vc_filepath':this['_gitConfigPath']?path['relative'](this[_0x7beb50(0xe1)],_0x9c084b):null,'result':_0x1f60a8,'started_at':_0xc7ced0,'framework':_0xfde74a[_0x7beb50(0xa4)]};return _0x29b472;}catch(_0x1121d4){logger[_0x7beb50(0x78)](_0x7beb50(0x84)+util[_0x7beb50(0xe6)](_0x1121d4)+'\x20');}}async[a90_0x2cc258(0x7e)](_0x50418e,_0x21c709,_0x1a7b64,_0x3d9fbe,_0x33e894,_0x58776d){const _0x790d11=a90_0x2cc258,_0x2fa674={'WyQxM':function(_0x8929a1,_0x25fb95){return _0x8929a1===_0x25fb95;},'kRdgY':'HookRunStarted','nlvTP':function(_0xc678ad,_0x50bb12,_0xa34383){return _0xc678ad(_0x50bb12,_0xa34383);},'tnwFQ':'sourceReference','KHhle':_0x790d11(0xcc),'otuwE':_0x790d11(0x9c),'LGxrg':_0x790d11(0x87)};try{const _0x54f7ed=_0x3d9fbe[_0x790d11(0xe3)](_0xa6f68a=>_0xa6f68a['id']===_0x33e894);if(!_0x54f7ed['hookId'])return;const _0xb31cc3=this[_0x790d11(0xc9)](_0x3d9fbe,_0x54f7ed),_0x4f7918=this['getHookRunEventData'](_0x50418e,_0x21c709,_0x1a7b64,_0x54f7ed,_0x58776d,_0xb31cc3);if(!_0x4f7918)return;_0x2fa674[_0x790d11(0xff)](_0x1a7b64,_0x2fa674[_0x790d11(0xf9)])&&(hooksMap[_0x21c709]?hooksMap[_0x21c709][_0x790d11(0xb6)](_0x4f7918):hooksMap[_0x21c709]=[_0x4f7918]);const _0x43b217=_0x50418e[_0x790d11(0x99)]['find'](_0x37f422=>_0x37f422['id']===_0x54f7ed[_0x790d11(0x8c)]),_0x4c7373=_0x2fa674['nlvTP'](nestedKeyValue,_0x43b217,[_0x2fa674[_0x790d11(0x7a)],_0x2fa674[_0x790d11(0x74)]]);if(!_0x4c7373)return;else{if(_0x4c7373['includes'](_0x2fa674[_0x790d11(0x8e)]))return;}if(_0x2fa674['WyQxM'](_0x4f7918[_0x790d11(0xa9)],_0x2fa674['LGxrg']))return;return _0x4f7918;}catch(_0x3e1fdb){logger['debug']('Exception\x20in\x20createHookData:\x20'+util[_0x790d11(0xe6)](_0x3e1fdb)+'\x20');}}[a90_0x2cc258(0xcf)](_0x20fafd,_0x3f920d){const _0x2b1908=a90_0x2cc258,_0x525ab7={};_0x525ab7[_0x2b1908(0xfc)]=function(_0xdae5bd,_0xc4eae){return _0xdae5bd===_0xc4eae;},_0x525ab7['CjPke']=_0x2b1908(0xeb),_0x525ab7[_0x2b1908(0xa0)]=function(_0x105694,_0x59bdb9){return _0x105694===_0x59bdb9;},_0x525ab7[_0x2b1908(0xb9)]=_0x2b1908(0xfa),_0x525ab7[_0x2b1908(0xba)]=_0x2b1908(0xca),_0x525ab7[_0x2b1908(0x91)]=function(_0x32d228,_0x4f29b7){return _0x32d228||_0x4f29b7;};const _0x51971e=_0x525ab7,_0x32c59e=_0x20fafd[_0x2b1908(0x8f)][_0x3f920d]['testStepResult'];let _0x51383f,_0x22ed29;return _0x32c59e&&_0x51971e['zPhXp'](_0x32c59e[_0x2b1908(0xad)][_0x2b1908(0xd2)]()[_0x2b1908(0x73)](),_0x51971e[_0x2b1908(0xe7)])&&(_0x51383f=_0x51971e[_0x2b1908(0xa0)](_0x32c59e[_0x2b1908(0x7b)],undefined)?_0x32c59e[_0x2b1908(0xb8)]:_0x32c59e[_0x2b1908(0x7b)][_0x2b1908(0xb8)],_0x22ed29=_0x51971e[_0x2b1908(0xa0)](_0x32c59e['exception'],undefined)?_0x51971e[_0x2b1908(0xb9)]:_0x32c59e['message'][_0x2b1908(0xbf)](/Assert/)?_0x51971e[_0x2b1908(0xba)]:_0x51971e[_0x2b1908(0xb9)]),{'status':_0x32c59e[_0x2b1908(0xad)][_0x2b1908(0x73)](),'failureType':_0x51971e[_0x2b1908(0x91)](_0x22ed29,null),'failureData':!_0x51383f?null:[_0x51383f]};}['getCucumberHookType'](_0x1439b8,_0x12b787){const _0x4c6fd8=a90_0x2cc258,_0x76d9dd={};_0x76d9dd[_0x4c6fd8(0xb5)]=function(_0x8b46e1,_0x34fadd){return _0x8b46e1===_0x34fadd;},_0x76d9dd[_0x4c6fd8(0xd1)]=_0x4c6fd8(0xaf),_0x76d9dd['BhTKp']=_0x4c6fd8(0xf2);const _0x35579e=_0x76d9dd;let _0x170702=![];for(const _0x40c00a of _0x1439b8){_0x40c00a[_0x4c6fd8(0x93)]&&(_0x170702=!![]);if(_0x35579e[_0x4c6fd8(0xb5)](_0x12b787['id'],_0x40c00a['id']))return _0x170702?_0x35579e[_0x4c6fd8(0xd1)]:_0x35579e[_0x4c6fd8(0xf0)];}}[a90_0x2cc258(0x90)]=(_0x159b82,_0x3204ed)=>{const _0x11bdb3=a90_0x2cc258,_0x5df246={};_0x5df246[_0x11bdb3(0xa8)]=function(_0x367a19,_0x1f8193){return _0x367a19===_0x1f8193;},_0x5df246[_0x11bdb3(0x9d)]=function(_0x251571,_0x6299fb){return _0x251571>_0x6299fb;};const _0x5de5c0=_0x5df246;if(!(_0x3204ed[_0x11bdb3(0xbe)]&&_0x5de5c0[_0x11bdb3(0x9d)](_0x3204ed[_0x11bdb3(0xbe)][_0x11bdb3(0xf3)],0x1)))return;const _0x414fe5=_0x3204ed[_0x11bdb3(0xbe)][0x0],_0x200bc5=_0x3204ed['astNodeIds'][0x1],_0x19224c=_0x159b82[_0x11bdb3(0x7f)]&&_0x159b82[_0x11bdb3(0x7f)][_0x11bdb3(0xb0)]?_0x159b82[_0x11bdb3(0x7f)]['children']:undefined;let _0x59fd9e=[];_0x19224c&&_0x19224c[_0x11bdb3(0xc8)](_0x19ff71=>{const _0x1750e7=_0x11bdb3;if(_0x19ff71[_0x1750e7(0xde)])_0x19ff71['rule'][_0x1750e7(0xb0)][_0x1750e7(0xc8)](_0x12e8ef=>{const _0x411a3b=_0x1750e7;if(_0x12e8ef[_0x411a3b(0xec)]&&_0x5de5c0[_0x411a3b(0xa8)](_0x12e8ef[_0x411a3b(0xec)]['id'],_0x414fe5)&&_0x12e8ef[_0x411a3b(0xec)][_0x411a3b(0x75)]){const _0x297b30=_0x12e8ef[_0x411a3b(0xec)][_0x411a3b(0x75)][_0x411a3b(0xbd)](_0x39e897=>_0x39e897[_0x411a3b(0xc3)])[_0x411a3b(0xe3)](_0x53d850=>_0x53d850['id']===_0x200bc5);let _0x3b3b82;_0x297b30&&_0x297b30[_0x411a3b(0xab)]?_0x3b3b82=_0x297b30[_0x411a3b(0xab)][_0x411a3b(0xa7)](_0x5a54b1=>_0x5a54b1[_0x411a3b(0xdd)]):_0x3b3b82=[],_0x3b3b82&&(_0x59fd9e=_0x3b3b82);}});else{if(_0x19ff71[_0x1750e7(0xec)]&&_0x5de5c0[_0x1750e7(0xa8)](_0x19ff71[_0x1750e7(0xec)]['id'],_0x414fe5)&&_0x19ff71[_0x1750e7(0xec)][_0x1750e7(0x75)]){const _0x488379=_0x19ff71[_0x1750e7(0xec)][_0x1750e7(0x75)][_0x1750e7(0xbd)](_0x14681a=>_0x14681a[_0x1750e7(0xc3)])[_0x1750e7(0xe3)](_0x13942b=>_0x13942b['id']===_0x200bc5);let _0x20951a;_0x488379&&_0x488379[_0x1750e7(0xab)]?_0x20951a=_0x488379[_0x1750e7(0xab)]['map'](_0x20edd3=>_0x20edd3[_0x1750e7(0xdd)]):_0x20951a=[],_0x20951a&&(_0x59fd9e=_0x20951a);}}});if(_0x59fd9e[_0x11bdb3(0xf3)])return _0x59fd9e;return;};async[a90_0x2cc258(0x7c)](){const _0x5a526a=a90_0x2cc258,_0x4eb443={'PkBwK':function(_0x478496){return _0x478496();}};if(this['_gitConfigured'])return this['_gitConfigPath'];const _0x2a7d77=await _0x4eb443['PkBwK'](getGitMetaData);_0x2a7d77&&(this['_gitConfigPath']=_0x2a7d77[_0x5a526a(0x94)]),this[_0x5a526a(0xfb)]=!![];}}module[a90_0x2cc258(0xea)]=o11yClassErrorHandler(CucumberUtils,[a90_0x2cc258(0x7c),a90_0x2cc258(0x90),a90_0x2cc258(0xc9),a90_0x2cc258(0xcf),a90_0x2cc258(0xe4),a90_0x2cc258(0xf4),a90_0x2cc258(0xcd),'createTestFrameworkData']);
|
|
1
|
+
function a90_0x1cf0(){const _0x561d4a=['TScbt','XDgEe','length','push','vwcjY','VTTOb','debug','Vbbil','AssertionError','JLTdz','toString','getTestUUID','passed','../../../helpers/test-observability/error-handler.js','ypfkq','forEach','examples','YoqSC','createTestFrameworkData','2749392ctLfRw','result','unknown','status','sendHook','javascript','backtrace','configureGit','PWbOo','1547588HwpFKo','toISOString','cells','StaJQ','exception','6DVaAZy','../../../helpers/helper.js','testStepFinished','GjryI','HmltT','qczMJ','xEosM','feature','format','name','BUcKP','toLowerCase','testStepResult','HAgua','oKZjv','VLVKe','getHookResult','nanos','skipped','pwbQG','PQAji','includes','relative','failure','27145863NYfgrt','1597155Fzkage','GBzqX','failure_type','xvZUh','failureData','failure_data','path','PaBel','gMqEI','flatMap','winstonLogger','qGwpm','Exception\x20in\x20getHookRunEventData:\x20','test','_gitConfigured','UnhandledError','7903llFWMb','hook','BiWjT','GyxVo','AFTER_EACH','VlyYO','failure_reason','getHookRunEventData','scenario','ymTay','uri','../../../helpers/logger.js','vpXMx','SiNdS','HookRunFinished','vHalR','failed','lCbXJ','_gitConfigPath','strip-ansi','sourceReference','pending','getCucumberHookType','MSMqA','SKIPPED','hooks','tagExpression','failureType','dbJWg','tCzmn','timestamp','1422cPHdLT','filter','cucumber','tVLPB','match','uppUt','children','rule','map','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','duration_in_ms','find','testCaseFinished','AzSWa','tags','LjhwF','FDxrz','value','UVCoG','AGZRE','pickleStepId','mlGqS','createHookData','message','647188IPOXEo','astNodeIds','bstack','juzjz','getScenarioExamples','exports','AWupP','hookId','FAILED','695814tKRXHR','root','rFLCN','tableBody'];a90_0x1cf0=function(){return _0x561d4a;};return a90_0x1cf0();}function a90_0x5762(_0x108843,_0x32e356){const _0x1cf091=a90_0x1cf0();return a90_0x5762=function(_0x57622c,_0x21f4e3){_0x57622c=_0x57622c-0x153;let _0x2d2c92=_0x1cf091[_0x57622c];return _0x2d2c92;},a90_0x5762(_0x108843,_0x32e356);}const a90_0x51945b=a90_0x5762;(function(_0x46f26f,_0x84129c){const _0x411113=a90_0x5762,_0x3cdaa4=_0x46f26f();while(!![]){try{const _0x472908=-parseInt(_0x411113(0x1a1))/0x1+-parseInt(_0x411113(0x198))/0x2*(parseInt(_0x411113(0x1c6))/0x3)+-parseInt(_0x411113(0x1c1))/0x4+-parseInt(_0x411113(0x1df))/0x5+parseInt(_0x411113(0x180))/0x6*(-parseInt(_0x411113(0x161))/0x7)+-parseInt(_0x411113(0x1b8))/0x8+parseInt(_0x411113(0x1de))/0x9;if(_0x472908===_0x84129c)break;else _0x3cdaa4['push'](_0x3cdaa4['shift']());}catch(_0x17758d){_0x3cdaa4['push'](_0x3cdaa4['shift']());}}}(a90_0x1cf0,0x56d2e));const path=require(a90_0x51945b(0x157)),util=require('util'),{getGitMetaData,isUndefined,nestedKeyValue}=require(a90_0x51945b(0x1c7)),logger=require(a90_0x51945b(0x16c))[a90_0x51945b(0x15b)],{o11yClassErrorHandler}=require(a90_0x51945b(0x1b2)),TestInfo=require('../TestInfo.js'),hooksMap={};class CucumberUtils{constructor(){const _0x202942=a90_0x51945b;this[_0x202942(0x15f)]=![],this[_0x202942(0x173)]=null;}async[a90_0x51945b(0x1b7)](_0x5ee123,_0x1a7543,_0x44467b,_0xbf189,_0x416300,_0x153e67){const _0x3eccbc=a90_0x51945b,_0x2d2dbd={'gMqEI':function(_0x107217,_0x3e6c34){return _0x107217===_0x3e6c34;},'VlyYO':_0x3eccbc(0x1a0),'SiNdS':_0x3eccbc(0x171),'TkBWV':function(_0x168f9f,_0x3dfa53){return _0x168f9f===_0x3dfa53;},'PQAji':_0x3eccbc(0x179),'lvVsz':_0x3eccbc(0x1d8),'vpXMx':function(_0x2ceced,_0x117ef7){return _0x2ceced||_0x117ef7;},'AzSWa':function(_0x1e5f82,_0xef6e3c){return _0x1e5f82+_0xef6e3c;},'mlGqS':function(_0x2d2940,_0x4eaac9){return _0x2d2940+_0x4eaac9;},'tVLPB':_0x3eccbc(0x15e),'HAgua':_0x3eccbc(0x1bd),'ptvQJ':_0x3eccbc(0x182),'tCzmn':_0x3eccbc(0x176),'xEosM':_0x3eccbc(0x1b1),'AGZRE':function(_0x1491f6,_0x4f3758){return _0x1491f6!==_0x4f3758;},'oKZjv':function(_0x5bbb64,_0x15daa8){return _0x5bbb64/_0x15daa8;},'gsABY':function(_0x1cdc04,_0x55ab95){return _0x1cdc04===_0x55ab95;},'XDgEe':_0x3eccbc(0x174),'lCbXJ':function(_0x1abc8d,_0x19a723){return _0x1abc8d(_0x19a723);},'xvZUh':_0x3eccbc(0x1ba),'ypfkq':_0x3eccbc(0x1ad),'ymTay':_0x3eccbc(0x160)},{feature:_0x2e76c0,scenario:_0x226426,steps:_0x60a547,uuid:_0x28acf7,startedAt:_0x596d8f,finishedAt:_0x3f23f0}=_0x2d2dbd[_0x3eccbc(0x16d)](_0x5ee123,{}),_0x390bb4=this[_0x3eccbc(0x19c)](_0xbf189,_0x1a7543);await this[_0x3eccbc(0x1bf)]();const _0x25eab9=_0x390bb4?_0x2d2dbd['AzSWa'](_0x2d2dbd[_0x3eccbc(0x18d)](_0x2d2dbd[_0x3eccbc(0x195)](_0x1a7543['name'],'\x20('),_0x390bb4['join'](',\x20')),')'):_0x1a7543[_0x3eccbc(0x1cf)],_0x3d041b={'id':_0x416300,'uuid':_0x416300,'startedAt':_0x596d8f,'finishedAt':_0x3f23f0,'type':_0x2d2dbd[_0x3eccbc(0x183)],'body':{'lang':_0x2d2dbd[_0x3eccbc(0x1d3)],'code':null},'name':_0x25eab9,'scopes':[_0x2e76c0&&_0x2e76c0[_0x3eccbc(0x1cf)]?_0x2e76c0[_0x3eccbc(0x1cf)]:''],'tags':_0x1a7543[_0x3eccbc(0x18e)]?_0x1a7543['tags'][_0x3eccbc(0x188)](({name:_0x3bfdea})=>_0x3bfdea):[],'file_name':_0x1a7543[_0x3eccbc(0x16b)],'location':_0x1a7543['uri'],'vc_filepath':this[_0x3eccbc(0x173)]&&_0x1a7543['uri']?path[_0x3eccbc(0x1dc)](this['_gitConfigPath'],_0x1a7543[_0x3eccbc(0x16b)]):null,'framework':_0x2d2dbd['ptvQJ'],'result':_0x2d2dbd[_0x3eccbc(0x17e)],'meta':{'feature':_0x2e76c0,'scenario':_0x226426,'steps':_0x60a547,'examples':_0x390bb4},'customRerunParam':{'rerun_name':_0x25eab9}};if(_0x44467b[_0x3eccbc(0x18c)]&&_0x60a547){const _0x3bb694=_0x44467b[_0x3eccbc(0x18c)];let _0x30d616=_0x2d2dbd[_0x3eccbc(0x1cc)];_0x60a547['every'](_0x813d89=>{const _0xf0bf33=_0x3eccbc;if(_0x2d2dbd[_0xf0bf33(0x159)](_0x813d89[_0xf0bf33(0x1b9)],_0x2d2dbd[_0xf0bf33(0x166)]))return _0x30d616=_0x2d2dbd[_0xf0bf33(0x16e)],_0x3bb694[_0xf0bf33(0x1dd)]=_0x813d89[_0xf0bf33(0x1dd)],_0x3bb694[_0xf0bf33(0x17c)]=_0x813d89[_0xf0bf33(0x17c)],![];else{if(_0x2d2dbd['TkBWV'](_0x813d89[_0xf0bf33(0x1b9)],_0x2d2dbd[_0xf0bf33(0x1da)]))return _0x30d616=_0x2d2dbd['lvVsz'],![];}return!![];}),_0x3d041b['finishedAt']=new Date()['toISOString'](),_0x3d041b['result']=_0x30d616;_0x3bb694[_0x3eccbc(0x17f)]&&_0x2d2dbd[_0x3eccbc(0x193)](_0x3bb694[_0x3eccbc(0x17f)][_0x3eccbc(0x1d7)],undefined)?_0x3d041b[_0x3eccbc(0x18a)]=_0x2d2dbd[_0x3eccbc(0x1d4)](_0x3bb694[_0x3eccbc(0x17f)][_0x3eccbc(0x1d7)],0xf4240):_0x3d041b[_0x3eccbc(0x18a)]=undefined;if(_0x2d2dbd['gsABY'](_0x30d616,_0x2d2dbd[_0x3eccbc(0x16e)])){const {default:_0x498270}=await import(_0x2d2dbd[_0x3eccbc(0x1a6)]);_0x3d041b[_0x3eccbc(0x1dd)]=[{'backtrace':[_0x3bb694[_0x3eccbc(0x1dd)]?_0x2d2dbd['lCbXJ'](_0x498270,_0x3bb694[_0x3eccbc(0x1dd)]):_0x2d2dbd[_0x3eccbc(0x154)]]}],_0x3d041b[_0x3eccbc(0x167)]=_0x3bb694[_0x3eccbc(0x1dd)]?_0x2d2dbd[_0x3eccbc(0x172)](_0x498270,_0x3bb694[_0x3eccbc(0x1dd)]):_0x3bb694['message'],_0x3bb694[_0x3eccbc(0x17c)]&&(_0x3d041b[_0x3eccbc(0x153)]=_0x3bb694['failureType'][_0x3eccbc(0x184)](/AssertError/)?_0x2d2dbd[_0x3eccbc(0x1b3)]:_0x2d2dbd[_0x3eccbc(0x16a)]);}}return _0x3d041b;}['getHookRunEventData'](_0x4fe440,_0x29035a,_0x1e40c6,_0x22ec6b,_0x208b2c,_0x582333){const _0x26bbf0=a90_0x51945b,_0xb57247={'QGJYy':function(_0x27ce7b,_0x346e3d){return _0x27ce7b===_0x346e3d;},'qGwpm':_0x26bbf0(0x16f),'YoqSC':function(_0x3cb3d6,_0x47d3d0,_0x11993c){return _0x3cb3d6(_0x47d3d0,_0x11993c);},'eXhYY':'sourceReference','zXTOi':'uri','Vbbil':_0x26bbf0(0x176),'MSMqA':_0x26bbf0(0x162),'VLVKe':_0x26bbf0(0x1bd),'GBzqX':_0x26bbf0(0x1cd),'VTTOb':'name','StaJQ':_0x26bbf0(0x182)};try{if(_0xb57247['QGJYy'](_0x1e40c6,_0xb57247[_0x26bbf0(0x15c)])){const _0x514b52=new Date()[_0x26bbf0(0x1c2)](),_0x228e7=hooksMap[_0x29035a];if(!_0x228e7)return;const _0x25492a=_0x228e7[_0x26bbf0(0x18b)](_0x55b857=>_0x55b857['uuid']===_0x22ec6b['id']);if(!_0x25492a)return;const _0x1ccb9f=this[_0x26bbf0(0x1d6)](_0x4fe440,_0x29035a);_0x25492a[_0x26bbf0(0x1b9)]=_0x1ccb9f['status'],_0x25492a['finished_at']=_0x514b52,_0x25492a['failure_type']=_0x1ccb9f['failureType'];const _0x11748b={};return _0x11748b[_0x26bbf0(0x1be)]=_0x1ccb9f[_0x26bbf0(0x155)],_0x25492a[_0x26bbf0(0x156)]=[_0x11748b],_0x25492a;}const _0x207db2=TestInfo[_0x26bbf0(0x1b0)](_0x29035a),_0x3dc698=_0x4fe440[_0x26bbf0(0x17a)][_0x26bbf0(0x18b)](_0x390f84=>_0x390f84['id']===_0x22ec6b[_0x26bbf0(0x19f)]),_0x313418=_0xb57247[_0x26bbf0(0x1b6)](nestedKeyValue,_0x3dc698,[_0xb57247['eXhYY'],_0xb57247['zXTOi']]),_0x36bea0=new Date()['toISOString'](),_0x376cec=_0xb57247[_0x26bbf0(0x1ac)],_0x2319f2=_0x3dc698[_0x26bbf0(0x17b)]?_0x3dc698[_0x26bbf0(0x17b)]['split']('\x20')[_0x26bbf0(0x181)](_0x398576=>_0x398576[_0x26bbf0(0x1db)]('@')):[],_0x3d23e2={'uuid':_0x22ec6b['id'],'type':_0xb57247[_0x26bbf0(0x178)],'hook_type':_0x582333,'name':_0x3dc698[_0x26bbf0(0x1cf)],'body':{'lang':_0xb57247[_0x26bbf0(0x1d5)],'code':null},'tags':_0x2319f2,'test_run_id':_0x207db2,'scope':_0xb57247[_0x26bbf0(0x1b6)](nestedKeyValue,_0x208b2c,[_0xb57247[_0x26bbf0(0x1e0)],_0xb57247[_0x26bbf0(0x1aa)]]),'scopes':[_0xb57247[_0x26bbf0(0x1b6)](nestedKeyValue,_0x208b2c,[_0xb57247[_0x26bbf0(0x1e0)],_0xb57247[_0x26bbf0(0x1aa)]])||''],'file_name':_0x313418,'location':_0x313418,'vc_filepath':this[_0x26bbf0(0x173)]?path[_0x26bbf0(0x1dc)](this['_gitConfigPath'],_0x313418):null,'result':_0x376cec,'started_at':_0x36bea0,'framework':_0xb57247[_0x26bbf0(0x1c4)]};return _0x3d23e2;}catch(_0x174b05){logger['debug'](_0x26bbf0(0x15d)+util[_0x26bbf0(0x1ce)](_0x174b05)+'\x20');}}async[a90_0x51945b(0x196)](_0x533b47,_0x174e47,_0x2e16d8,_0x1a37c6,_0x3e8302,_0x329d9e){const _0x1c8650=a90_0x51945b,_0x39df82={'uppUt':function(_0xcef968,_0x8d52dc){return _0xcef968===_0x8d52dc;},'HmltT':'HookRunStarted','rFLCN':function(_0x5e24b6,_0x484cf4,_0x1bc548){return _0x5e24b6(_0x484cf4,_0x1bc548);},'LjhwF':_0x1c8650(0x175),'TScbt':_0x1c8650(0x16b),'BiWjT':_0x1c8650(0x189),'pwbQG':_0x1c8650(0x19a)};try{const _0x5bfc59=_0x1a37c6[_0x1c8650(0x18b)](_0x286f37=>_0x286f37['id']===_0x3e8302);if(!_0x5bfc59[_0x1c8650(0x19f)])return;const _0x262b10=this[_0x1c8650(0x177)](_0x1a37c6,_0x5bfc59),_0x1598cf=this[_0x1c8650(0x168)](_0x533b47,_0x174e47,_0x2e16d8,_0x5bfc59,_0x329d9e,_0x262b10);if(!_0x1598cf)return;_0x39df82[_0x1c8650(0x185)](_0x2e16d8,_0x39df82[_0x1c8650(0x1ca)])&&(hooksMap[_0x174e47]?hooksMap[_0x174e47][_0x1c8650(0x1a8)](_0x1598cf):hooksMap[_0x174e47]=[_0x1598cf]);const _0x3fa147=_0x533b47['hooks'][_0x1c8650(0x18b)](_0x4aca88=>_0x4aca88['id']===_0x5bfc59['hookId']),_0x284a46=_0x39df82[_0x1c8650(0x1a3)](nestedKeyValue,_0x3fa147,[_0x39df82[_0x1c8650(0x18f)],_0x39df82[_0x1c8650(0x1a5)]]);if(!_0x284a46)return;else{if(_0x284a46[_0x1c8650(0x1db)](_0x39df82[_0x1c8650(0x163)]))return;}if(_0x39df82['uppUt'](_0x1598cf[_0x1c8650(0x1cf)],_0x39df82[_0x1c8650(0x1d9)]))return;return _0x1598cf;}catch(_0x2524b0){logger[_0x1c8650(0x1ab)]('Exception\x20in\x20createHookData:\x20'+util[_0x1c8650(0x1ce)](_0x2524b0)+'\x20');}}['getHookResult'](_0xabdac,_0x2a5028){const _0x2b1df4=a90_0x51945b,_0x2ac9b7={};_0x2ac9b7[_0x2b1df4(0x1a9)]=function(_0x1ed9f7,_0x24ac0c){return _0x1ed9f7===_0x24ac0c;},_0x2ac9b7[_0x2b1df4(0x1ae)]=_0x2b1df4(0x171),_0x2ac9b7['AWupP']=function(_0x57d17e,_0x15082d){return _0x57d17e===_0x15082d;},_0x2ac9b7[_0x2b1df4(0x1d0)]=function(_0x42b18f,_0x5268a0){return _0x42b18f===_0x5268a0;},_0x2ac9b7[_0x2b1df4(0x19b)]=_0x2b1df4(0x160),_0x2ac9b7[_0x2b1df4(0x170)]='AssertionError',_0x2ac9b7[_0x2b1df4(0x1c9)]=function(_0x331f06,_0x593d67){return _0x331f06||_0x593d67;};const _0x2b2baf=_0x2ac9b7,_0x41b8bb=_0xabdac[_0x2b1df4(0x1c8)][_0x2a5028][_0x2b1df4(0x1d2)];let _0x2023a4,_0x4bf3f8;return _0x41b8bb&&_0x2b2baf[_0x2b1df4(0x1a9)](_0x41b8bb[_0x2b1df4(0x1bb)][_0x2b1df4(0x1af)]()['toLowerCase'](),_0x2b2baf[_0x2b1df4(0x1ae)])&&(_0x2023a4=_0x2b2baf[_0x2b1df4(0x19e)](_0x41b8bb[_0x2b1df4(0x1c5)],undefined)?_0x41b8bb['message']:_0x41b8bb['exception']['message'],_0x4bf3f8=_0x2b2baf[_0x2b1df4(0x1d0)](_0x41b8bb[_0x2b1df4(0x1c5)],undefined)?_0x2b2baf[_0x2b1df4(0x19b)]:_0x41b8bb[_0x2b1df4(0x197)][_0x2b1df4(0x184)](/Assert/)?_0x2b2baf[_0x2b1df4(0x170)]:_0x2b2baf[_0x2b1df4(0x19b)]),{'status':_0x41b8bb[_0x2b1df4(0x1bb)][_0x2b1df4(0x1d1)](),'failureType':_0x2b2baf[_0x2b1df4(0x1c9)](_0x4bf3f8,null),'failureData':!_0x2023a4?null:[_0x2023a4]};}[a90_0x51945b(0x177)](_0xaaf57b,_0x400df2){const _0x45ab02=a90_0x51945b,_0x5ce965={};_0x5ce965[_0x45ab02(0x164)]=function(_0x3865a8,_0x433d1c){return _0x3865a8===_0x433d1c;},_0x5ce965[_0x45ab02(0x192)]=_0x45ab02(0x165),_0x5ce965[_0x45ab02(0x190)]='BEFORE_EACH';const _0x4b568a=_0x5ce965;let _0x50799e=![];for(const _0x1b9209 of _0xaaf57b){_0x1b9209[_0x45ab02(0x194)]&&(_0x50799e=!![]);if(_0x4b568a['GyxVo'](_0x400df2['id'],_0x1b9209['id']))return _0x50799e?_0x4b568a[_0x45ab02(0x192)]:_0x4b568a[_0x45ab02(0x190)];}}['getScenarioExamples']=(_0x14613c,_0x2ec64d)=>{const _0x30b81a=a90_0x51945b,_0x426280={};_0x426280['PaBel']=function(_0x54873c,_0x485d3c){return _0x54873c===_0x485d3c;},_0x426280[_0x30b81a(0x1cb)]=function(_0x393562,_0x29ff03){return _0x393562>_0x29ff03;};const _0x47b76a=_0x426280;if(!(_0x2ec64d[_0x30b81a(0x199)]&&_0x47b76a[_0x30b81a(0x1cb)](_0x2ec64d['astNodeIds'][_0x30b81a(0x1a7)],0x1)))return;const _0x16e5f8=_0x2ec64d[_0x30b81a(0x199)][0x0],_0x5d4875=_0x2ec64d['astNodeIds'][0x1],_0x2c23ee=_0x14613c['feature']&&_0x14613c['feature'][_0x30b81a(0x186)]?_0x14613c['feature'][_0x30b81a(0x186)]:undefined;let _0x53fd2c=[];_0x2c23ee&&_0x2c23ee[_0x30b81a(0x1b4)](_0x2297b4=>{const _0x279de7=_0x30b81a,_0x1cd32f={'dbJWg':function(_0xceff2c,_0x375941){const _0x5141e1=a90_0x5762;return _0x47b76a[_0x5141e1(0x158)](_0xceff2c,_0x375941);}};if(_0x2297b4['rule'])_0x2297b4[_0x279de7(0x187)]['children'][_0x279de7(0x1b4)](_0x2f86c5=>{const _0x5a76a6=_0x279de7;if(_0x2f86c5[_0x5a76a6(0x169)]&&_0x1cd32f[_0x5a76a6(0x17d)](_0x2f86c5[_0x5a76a6(0x169)]['id'],_0x16e5f8)&&_0x2f86c5[_0x5a76a6(0x169)][_0x5a76a6(0x1b5)]){const _0xa6fc30=_0x2f86c5[_0x5a76a6(0x169)][_0x5a76a6(0x1b5)]['flatMap'](_0x2b44e9=>_0x2b44e9[_0x5a76a6(0x1a4)])[_0x5a76a6(0x18b)](_0x2416b2=>_0x2416b2['id']===_0x5d4875);let _0x365d8d;_0xa6fc30&&_0xa6fc30[_0x5a76a6(0x1c3)]?_0x365d8d=_0xa6fc30[_0x5a76a6(0x1c3)][_0x5a76a6(0x188)](_0x425d9b=>_0x425d9b['value']):_0x365d8d=[],_0x365d8d&&(_0x53fd2c=_0x365d8d);}});else{if(_0x2297b4[_0x279de7(0x169)]&&_0x47b76a[_0x279de7(0x158)](_0x2297b4['scenario']['id'],_0x16e5f8)&&_0x2297b4[_0x279de7(0x169)][_0x279de7(0x1b5)]){const _0x170e82=_0x2297b4[_0x279de7(0x169)][_0x279de7(0x1b5)][_0x279de7(0x15a)](_0x29489a=>_0x29489a[_0x279de7(0x1a4)])[_0x279de7(0x18b)](_0x2fea21=>_0x2fea21['id']===_0x5d4875);let _0x32efb2;_0x170e82&&_0x170e82[_0x279de7(0x1c3)]?_0x32efb2=_0x170e82[_0x279de7(0x1c3)][_0x279de7(0x188)](_0x51ef01=>_0x51ef01[_0x279de7(0x191)]):_0x32efb2=[],_0x32efb2&&(_0x53fd2c=_0x32efb2);}}});if(_0x53fd2c[_0x30b81a(0x1a7)])return _0x53fd2c;return;};async[a90_0x51945b(0x1bf)](){const _0x37daa4=a90_0x51945b,_0x17cac3={'PWbOo':function(_0x4bec70){return _0x4bec70();}};if(this['_gitConfigured'])return this[_0x37daa4(0x173)];const _0x2805ad=await _0x17cac3[_0x37daa4(0x1c0)](getGitMetaData);_0x2805ad&&(this[_0x37daa4(0x173)]=_0x2805ad[_0x37daa4(0x1a2)]),this[_0x37daa4(0x15f)]=!![];}}module[a90_0x51945b(0x19d)]=o11yClassErrorHandler(CucumberUtils,[a90_0x51945b(0x1bf),'getScenarioExamples',a90_0x51945b(0x177),a90_0x51945b(0x1d6),a90_0x51945b(0x1bc),a90_0x51945b(0x168),'sendTestRunEventForCucumber',a90_0x51945b(0x1b7)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a91_0xa1c6(_0x1ae66d,_0x3dff36){const _0x256614=a91_0x2566();return a91_0xa1c6=function(_0xa1c635,_0x4ea224){_0xa1c635=_0xa1c635-0x1cf;let _0x52d1c0=_0x256614[_0xa1c635];return _0x52d1c0;},a91_0xa1c6(_0x1ae66d,_0x3dff36);}const a91_0x43e592=a91_0xa1c6;(function(_0x377d9,_0x5ebfce){const _0x4cfc70=a91_0xa1c6,_0x3874dc=_0x377d9();while(!![]){try{const _0x4ff0c1=-parseInt(_0x4cfc70(0x23f))/0x1+-parseInt(_0x4cfc70(0x1d4))/0x2+-parseInt(_0x4cfc70(0x24f))/0x3+-parseInt(_0x4cfc70(0x272))/0x4*(parseInt(_0x4cfc70(0x231))/0x5)+-parseInt(_0x4cfc70(0x229))/0x6*(-parseInt(_0x4cfc70(0x240))/0x7)+parseInt(_0x4cfc70(0x25b))/0x8+parseInt(_0x4cfc70(0x257))/0x9;if(_0x4ff0c1===_0x5ebfce)break;else _0x3874dc['push'](_0x3874dc['shift']());}catch(_0x3701e7){_0x3874dc['push'](_0x3874dc['shift']());}}}(a91_0x2566,0xe26e6));const path=require('path'),util=require(a91_0x43e592(0x207)),crypto=require('crypto'),{getGitMetaData,isUndefined,nestedKeyValue}=require(a91_0x43e592(0x1f1)),logger=require(a91_0x43e592(0x213))[a91_0x43e592(0x244)],{o11yClassErrorHandler}=require(a91_0x43e592(0x1d0)),TestInfo=require(a91_0x43e592(0x249)),{failureData,getFailureType}=require('../../../helpers/test-observability/utils'),stackTrace=require(a91_0x43e592(0x255)),a91_0x3bd2b5={};a91_0x3bd2b5[a91_0x43e592(0x26f)]=a91_0x43e592(0x1d1),a91_0x3bd2b5[a91_0x43e592(0x1f0)]=a91_0x43e592(0x1d6),a91_0x3bd2b5['beforeEach']=a91_0x43e592(0x26a),a91_0x3bd2b5['afterEach']=a91_0x43e592(0x277);const HOOK_TYPES_MAP=a91_0x3bd2b5,hooksMap={};function a91_0x2566(){const _0x4df809=['aYAYz','skipped','kRuvU','format','relative','parse','err','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','match','ftKmw','AwlAr','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','retryOf','cXrFV','BEFORE_EACH','root','hook','fJGVj','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','beforeAll','yGgYL','vPEOu','657428dRiPiZ','inspect','UNnXm','toISOString','configureGit','AFTER_EACH','createIdentifierFromJestTest','expanded','getHookRunEventData','HookRunFinished','UmCop','title','getHierarchy','test','kIeXb',',\x20hookUUID:\x20','xzTqk','split','toUpperCase','saOfg','../../../helpers/test-observability/error-handler.js','BEFORE_ALL','errorsDetailed','ROOT_DESCRIBE_BLOCK','449750usIjxe','Exception\x20in\x20createHookData:\x20','AFTER_ALL','JmGLQ','ONyFW','getName','ReQAh','hooks','kxAqq','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','tMyqy','EfbqE','JmVSY','sCcVl','vAaAc','OwecB','aBwhg','failed','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','stack','Exception\x20in\x20createTestFrameworkData:\x20','File\x20path\x20could\x20not\x20be\x20found','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','finishedAt','recreateIdentifierFromTestInfo',',\x20testRunId:\x20','Pgigg','call','afterAll','../../../helpers/helper.js','DWlsM','testAnalyticsId','orKnW','file','expect','ZXiue','startedAt','now','asyncError','failure_data','pending','\x20from\x20compositeKey:\x20','pid','testPath','ADpQa','WKUzt','XvyVb','browserstack-node-agent/src/bin/jest','push','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','NidbX','util','RXVWZ','dGoiw','backtrace','kJtKx','getTestIdentifier','_gitConfigPath','result','length','Nuprk','ZlqoH','QDiSr','../../../helpers/logger.js','OCYrD','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','toString','fcWzY','digest','lhLwE','createHookData','failure_reason_expanded','jUADc','createHash','displayName','createJestTestIdentifier','clearHooksMap','Creating\x20hook\x20data\x20for\x20eventType:\x20','find','started_at','zhmjf','jest','finished_at','substring','createTestFrameworkData','4314666HEUuLx','bNmDz','Amoul','jest-circus','passed','includes','oTBCX','extractTestFilePath','30wZlbZr','failure_reason','tAYER','getRootParentFile','[jestUtils]\x20Error\x20creating\x20identifier:\x20','md5','\x22\x20hook\x20for\x20\x22','apply','exports','type','bFWiZ','error','FnDOa','TestRunSkipped','1610497uxvZIn','7ipVqNQ','VbyRo','currentTest','debug','winstonLogger','testIdentifier','duration','name','oBoPC','../TestInfo.js','failure_type','parent',':jest-','TestRunFinished','yvexy','2177232ESXaeR','_gitConfigured','HookRunStarted','getFileName','rDwpT','getState','stack-trace',',\x20testIdentifier:\x20','23652765OQyAEe','CgKXw','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','isJestInternalHook','9020192vlzJfG'];a91_0x2566=function(){return _0x4df809;};return a91_0x2566();}class JestUtils{constructor(){const _0x37c73d=a91_0x43e592;this[_0x37c73d(0x250)]=![],this['_gitConfigPath']=null;}async['createTestFrameworkData'](_0x1fb1a3,_0x251844,_0x494079=a91_0x43e592(0x24d),_0x4372c8=undefined){const _0x4c0f40=a91_0x43e592,_0x2384e0={'kJtKx':_0x4c0f40(0x215),'sCcVl':_0x4c0f40(0x22c),'OwecB':function(_0x2c7bad,_0x45f46c){return _0x2c7bad||_0x45f46c;},'AwlAr':_0x4c0f40(0x1e9),'UNnXm':function(_0x416618,_0x316d07){return _0x416618!==_0x316d07;},'ReQAh':_0x4c0f40(0x27f),'ADpQa':function(_0x1c4a59,_0x32affb){return _0x1c4a59!==_0x32affb;},'zhmjf':_0x4c0f40(0x262),'AAgZh':function(_0x56d2e0,_0x37e549){return _0x56d2e0!==_0x37e549;},'yGgYL':_0x4c0f40(0x1fc),'oBoPC':function(_0x4517a7,_0x16ff25){return _0x4517a7===_0x16ff25;},'EfbqE':_0x4c0f40(0x23e),'PAPJo':_0x4c0f40(0x25d),'YSsfW':function(_0x5a85c1,_0x192311){return _0x5a85c1>_0x192311;},'dJjEo':_0x4c0f40(0x1e5),'NidbX':_0x4c0f40(0x22d),'UmCop':function(_0x192cbd,_0x393887){return _0x192cbd!==_0x393887;},'eNIJQ':function(_0x4eb422,_0x5a59e4){return _0x4eb422-_0x5a59e4;},'CrOim':'javascript','JmGLQ':_0x4c0f40(0x225),'CgKXw':function(_0x169630,_0x54b8e9){return _0x169630(_0x54b8e9);},'rDwpT':function(_0x3babc4,_0x17baa3){return _0x3babc4===_0x17baa3;},'saOfg':function(_0x2d3b8c,_0x2a8afe){return _0x2d3b8c===_0x2a8afe;},'ftKmw':_0x4c0f40(0x24d),'QDiSr':function(_0x33e2ff,_0xfee36){return _0x33e2ff===_0xfee36;}};logger['debug'](_0x4c0f40(0x26e)+_0x494079+_0x4c0f40(0x256)+_0x251844);try{if(!_0x1fb1a3)return logger[_0x4c0f40(0x243)](_0x2384e0[_0x4c0f40(0x20b)]),null;if(_0x1fb1a3['fn']&&_0x1fb1a3['fn'][_0x4c0f40(0x216)]()[_0x4c0f40(0x264)](/browserstack internal helper hook/))return null;await this[_0x4c0f40(0x276)]();let _0x4fd433;try{_0x4fd433=this[_0x4c0f40(0x234)](_0x1fb1a3);if(_0x4fd433&&_0x4fd433[_0x4c0f40(0x22e)](_0x2384e0[_0x4c0f40(0x1e1)]))return null;}catch(_0x409279){logger[_0x4c0f40(0x243)](_0x4c0f40(0x263)+util[_0x4c0f40(0x25f)](_0x409279)),_0x4fd433=null;}const _0x3816ef=this[_0x4c0f40(0x27e)](_0x1fb1a3),_0x485f5c=this[_0x4c0f40(0x1d9)](_0x1fb1a3),_0x7c6be5=_0x2384e0[_0x4c0f40(0x1e3)](_0x4fd433,_0x2384e0[_0x4c0f40(0x266)]);let _0x1f2d23=[];if(_0x2384e0[_0x4c0f40(0x274)](_0x1fb1a3[_0x4c0f40(0x1d2)],undefined))_0x1f2d23=[_0x1fb1a3[_0x4c0f40(0x1d2)],_0x2384e0[_0x4c0f40(0x1da)]];else _0x2384e0[_0x4c0f40(0x200)](_0x4372c8,undefined)&&(_0x1f2d23=[_0x4372c8,_0x2384e0[_0x4c0f40(0x224)]]);const _0x3237de=_0x2384e0[_0x4c0f40(0x200)](_0x1fb1a3[_0x4c0f40(0x1d2)],undefined)?util['inspect'](_0x1fb1a3[_0x4c0f40(0x1d2)][0x0]):_0x2384e0['AAgZh'](_0x4372c8,undefined)?_0x4372c8[_0x4c0f40(0x216)]():undefined;let _0x15a022=_0x2384e0[_0x4c0f40(0x270)];if(_0x2384e0[_0x4c0f40(0x248)](_0x494079,_0x2384e0['EfbqE']))_0x15a022=_0x2384e0['PAPJo'];else _0x1fb1a3[_0x4c0f40(0x1d2)]&&_0x2384e0['YSsfW'](_0x1fb1a3[_0x4c0f40(0x1d2)]['length'],0x0)?_0x15a022=_0x2384e0['dJjEo']:_0x15a022=_0x2384e0[_0x4c0f40(0x206)];let _0x106d58=null;if(_0x2384e0[_0x4c0f40(0x27c)](_0x1fb1a3[_0x4c0f40(0x246)],undefined))_0x106d58=_0x1fb1a3['duration'];else(_0x494079[_0x4c0f40(0x264)](/Finished/)||_0x494079[_0x4c0f40(0x264)](/Skipped/))&&(_0x1fb1a3[_0x4c0f40(0x223)]&&(_0x106d58=_0x2384e0['eNIJQ'](Date[_0x4c0f40(0x1f9)](),new Date(_0x1fb1a3['started_at'])['getTime']())));const _0x488763=_0x1fb1a3['fn']?_0x1fb1a3['fn']['toString']():null,_0x395b18={'id':_0x251844,'uuid':_0x251844,'startedAt':_0x1fb1a3[_0x4c0f40(0x223)]||new Date()['toISOString'](),'finishedAt':_0x494079['match'](/Finished/)||_0x494079[_0x4c0f40(0x264)](/Skipped/)?new Date()[_0x4c0f40(0x275)]():null,'type':_0x2384e0[_0x4c0f40(0x1da)],'body':{'lang':_0x2384e0['CrOim'],'code':_0x488763},'name':_0x485f5c,'scopes':_0x3816ef,'file_name':_0x7c6be5,'location':_0x7c6be5,'vc_filepath':this[_0x4c0f40(0x20d)]&&_0x4fd433?path[_0x4c0f40(0x260)](this['_gitConfigPath'],_0x4fd433):null,'framework':_0x2384e0[_0x4c0f40(0x1d7)],'result':_0x15a022,'failure_reason':_0x3237de,'duration_in_ms':_0x106d58,'failure':failureData[_0x4c0f40(0x238)](null,_0x1f2d23),'failure_type':!_0x3237de?null:_0x2384e0[_0x4c0f40(0x258)](getFailureType,_0x3237de),'retry_of':_0x1fb1a3[_0x4c0f40(0x268)]||null,'customRerunParam':{'rerun_name':_0x485f5c}};_0x2384e0[_0x4c0f40(0x253)](_0x494079,_0x2384e0[_0x4c0f40(0x1df)])&&!_0x395b18[_0x4c0f40(0x1f8)]&&(_0x395b18[_0x4c0f40(0x1f8)]=_0x395b18[_0x4c0f40(0x1eb)]);const _0x359a49=_0x395b18['failure']&&_0x395b18['failure'][0x0];return _0x359a49&&(_0x395b18['failure_backtrace']=_0x359a49[_0x4c0f40(0x20a)],_0x395b18[_0x4c0f40(0x21b)]=_0x359a49[_0x4c0f40(0x279)]),(_0x2384e0[_0x4c0f40(0x1cf)](_0x494079,_0x2384e0[_0x4c0f40(0x265)])||_0x2384e0[_0x4c0f40(0x212)](_0x494079,_0x2384e0['EfbqE']))&&(_0x1fb1a3[_0x4c0f40(0x1db)]&&(_0x395b18[_0x4c0f40(0x1db)]=_0x1fb1a3['hooks'])),_0x395b18;}catch(_0x509f2a){return logger['debug'](_0x4c0f40(0x1e8)+util[_0x4c0f40(0x25f)](_0x509f2a)),null;}}async['createHookData'](_0x4694b2,_0x130d69,_0x510bbc,_0x1911a5){const _0x520f0f=a91_0x43e592,_0x3bb63c={'ZXiue':'No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','orKnW':_0x520f0f(0x22c),'Amoul':_0x520f0f(0x203),'vPEOu':'unknown','tMyqy':_0x520f0f(0x1fc),'kxAqq':function(_0x5d5432,_0x2e69cc){return _0x5d5432===_0x2e69cc;},'Pgigg':_0x520f0f(0x27b),'yvexy':function(_0x48d3a3,_0x294544){return _0x48d3a3>_0x294544;},'sjnqw':'failed','xzTqk':function(_0x1b873f,_0x580ed3){return _0x1b873f(_0x580ed3);},'dGoiw':_0x520f0f(0x27f),'bNmDz':_0x520f0f(0x22d),'ParjW':_0x520f0f(0x26c),'fJGVj':'javascript','vAaAc':_0x520f0f(0x225),'VbyRo':function(_0x41df2e,_0x1f0f6a){return _0x41df2e===_0x1f0f6a;},'meNUn':_0x520f0f(0x251)};logger[_0x520f0f(0x243)](_0x520f0f(0x221)+_0x510bbc+_0x520f0f(0x281)+_0x130d69+_0x520f0f(0x1ed)+_0x1911a5);try{if(!_0x4694b2)return logger[_0x520f0f(0x243)](_0x3bb63c[_0x520f0f(0x1f7)]),null;if(this['isJestInternalHook'](_0x4694b2))return null;await this['configureGit']();let _0x267d75=null;try{_0x267d75=this['getRootParentFile'](_0x4694b2);if(_0x267d75&&_0x267d75['includes'](_0x3bb63c[_0x520f0f(0x1f4)]))return null;if(_0x267d75&&_0x267d75[_0x520f0f(0x22e)](_0x3bb63c[_0x520f0f(0x22b)]))return null;}catch(_0x526ecd){logger['debug'](_0x520f0f(0x267)+util[_0x520f0f(0x25f)](_0x526ecd));}const _0x18c39e=this[_0x520f0f(0x1d9)](_0x4694b2),_0x2c3b5d=_0x4694b2[_0x520f0f(0x23a)]||_0x3bb63c[_0x520f0f(0x271)],_0x18a67c=HOOK_TYPES_MAP[_0x2c3b5d]||_0x2c3b5d[_0x520f0f(0x284)](),_0x206fed=_0x4694b2[_0x520f0f(0x24b)]&&_0x4694b2[_0x520f0f(0x24b)][_0x520f0f(0x247)]?_0x4694b2[_0x520f0f(0x24b)][_0x520f0f(0x247)]:'';let _0xae4877=_0x3bb63c[_0x520f0f(0x1de)],_0x1f207b=null,_0x51c25a=null,_0x4f227a=null,_0x4fd39b=null;_0x3bb63c[_0x520f0f(0x1dc)](_0x510bbc,_0x3bb63c[_0x520f0f(0x1ee)])&&(_0x4fd39b=new Date()[_0x520f0f(0x275)](),_0x4694b2[_0x520f0f(0x1d2)]&&_0x3bb63c[_0x520f0f(0x24e)](_0x4694b2['errorsDetailed'][_0x520f0f(0x20f)],0x0)?(_0xae4877=_0x3bb63c['sjnqw'],_0x51c25a=util[_0x520f0f(0x273)](_0x4694b2[_0x520f0f(0x1d2)][0x0]),_0x1f207b=_0x3bb63c[_0x520f0f(0x282)](getFailureType,_0x51c25a),_0x4f227a=failureData[_0x520f0f(0x238)](null,[_0x4694b2[_0x520f0f(0x1d2)],_0x3bb63c[_0x520f0f(0x209)]])):_0xae4877=_0x3bb63c[_0x520f0f(0x22a)]);const _0x46a2c3={'uuid':_0x130d69,'type':_0x3bb63c['ParjW'],'hook_type':_0x18a67c,'name':_0x18c39e,'body':{'lang':_0x3bb63c[_0x520f0f(0x26d)],'code':_0x4694b2['fn']?_0x4694b2['fn'][_0x520f0f(0x216)]():null},'tags':[],'test_run_id':_0x1911a5,'scope':_0x206fed,'scopes':[_0x206fed],'file_name':_0x267d75,'location':_0x267d75,'vc_filepath':this[_0x520f0f(0x20d)]&&_0x267d75?path[_0x520f0f(0x260)](this['_gitConfigPath'],_0x267d75):null,'result':_0xae4877,'started_at':_0x4694b2[_0x520f0f(0x223)]||new Date()[_0x520f0f(0x275)](),'finished_at':_0x4fd39b,'failure_type':_0x1f207b,'failure_reason':_0x51c25a,'failure_data':_0x4f227a,'framework':_0x3bb63c[_0x520f0f(0x1e2)]};return _0x3bb63c[_0x520f0f(0x241)](_0x510bbc,_0x3bb63c['meNUn'])&&(hooksMap[_0x1911a5]?hooksMap[_0x1911a5]['push'](_0x46a2c3):hooksMap[_0x1911a5]=[_0x46a2c3]),_0x46a2c3;}catch(_0x1d1830){return logger[_0x520f0f(0x243)](_0x520f0f(0x1d5)+util['format'](_0x1d1830)),null;}}[a91_0x43e592(0x27a)](_0x14cf11,_0x40e1a1,_0x5772c0){const _0x2e8f4b=a91_0x43e592,_0x202ede={'bakIz':function(_0x379740,_0x442634){return _0x379740>_0x442634;},'FnDOa':_0x2e8f4b(0x1e5),'ONyFW':function(_0x28c1fe,_0x5b4aaa){return _0x28c1fe(_0x5b4aaa);},'DWlsM':_0x2e8f4b(0x27f),'jUADc':_0x2e8f4b(0x22d)};try{const _0xff4c71=hooksMap[_0x14cf11];if(!_0xff4c71)return null;const _0x29c183=_0xff4c71[_0x2e8f4b(0x222)](_0x44d486=>_0x44d486['uuid']===_0x40e1a1);if(!_0x29c183)return null;return _0x29c183[_0x2e8f4b(0x226)]=new Date()['toISOString'](),_0x5772c0[_0x2e8f4b(0x1d2)]&&_0x202ede['bakIz'](_0x5772c0['errorsDetailed'][_0x2e8f4b(0x20f)],0x0)?(_0x29c183['result']=_0x202ede[_0x2e8f4b(0x23d)],_0x29c183[_0x2e8f4b(0x232)]=util[_0x2e8f4b(0x273)](_0x5772c0[_0x2e8f4b(0x1d2)][0x0]),_0x29c183[_0x2e8f4b(0x24a)]=_0x202ede[_0x2e8f4b(0x1d8)](getFailureType,_0x29c183[_0x2e8f4b(0x232)]),_0x29c183[_0x2e8f4b(0x1fb)]=failureData[_0x2e8f4b(0x238)](null,[_0x5772c0[_0x2e8f4b(0x1d2)],_0x202ede[_0x2e8f4b(0x1f2)]])):_0x29c183[_0x2e8f4b(0x20e)]=_0x202ede[_0x2e8f4b(0x21c)],_0x29c183;}catch(_0x5281fc){return logger[_0x2e8f4b(0x243)]('Exception\x20in\x20getHookRunEventData:\x20'+util['format'](_0x5281fc)),null;}}[a91_0x43e592(0x1d9)](_0x4453d5){const _0x2a2783=a91_0x43e592,_0x23f5a2={};_0x23f5a2['QKQdt']=function(_0x27e7e5,_0x23b7df){return _0x27e7e5!==_0x23b7df;},_0x23f5a2[_0x2a2783(0x208)]=_0x2a2783(0x27f),_0x23f5a2[_0x2a2783(0x211)]='Unknown\x20Test';const _0x33fc82=_0x23f5a2;if(_0x33fc82['QKQdt'](_0x4453d5[_0x2a2783(0x23a)],_0x33fc82[_0x2a2783(0x208)]))return'\x22'+_0x4453d5[_0x2a2783(0x23a)]+_0x2a2783(0x237)+(_0x4453d5[_0x2a2783(0x24b)]&&_0x4453d5['parent']['name'])+'\x22';return _0x4453d5['name']||_0x33fc82[_0x2a2783(0x211)];}['getHierarchy'](_0x32245e){const _0x33f08e=a91_0x43e592,_0x2c7df9={};_0x2c7df9[_0x33f08e(0x233)]=function(_0x36ee2b,_0x105bcc){return _0x36ee2b!==_0x105bcc;},_0x2c7df9[_0x33f08e(0x25e)]=_0x33f08e(0x1d3);const _0x465533=_0x2c7df9,_0x3e2222=[];if(_0x32245e&&_0x32245e['parent']){let _0xb323c7=_0x32245e[_0x33f08e(0x24b)];while(_0xb323c7&&_0xb323c7[_0x33f08e(0x247)]&&_0x465533['tAYER'](_0xb323c7[_0x33f08e(0x247)],'')&&_0x465533['tAYER'](_0xb323c7[_0x33f08e(0x247)],_0x465533['kRuvU'])){_0x3e2222[_0x33f08e(0x204)](_0xb323c7[_0x33f08e(0x247)]),_0xb323c7=_0xb323c7[_0x33f08e(0x24b)];}}return _0x3e2222['reverse'](),_0x3e2222;}[a91_0x43e592(0x234)](_0xd62a22){const _0x41e540=a91_0x43e592;if(_0xd62a22[_0x41e540(0x1fa)])try{const _0x5f0d3e=stackTrace[_0x41e540(0x261)][_0x41e540(0x1ef)](stackTrace,_0xd62a22[_0x41e540(0x1fa)]);if(_0x5f0d3e[0x0]&&_0x5f0d3e[0x0][_0x41e540(0x252)])return _0x5f0d3e[0x0][_0x41e540(0x252)]();}catch(_0x6c01b){logger[_0x41e540(0x243)](_0x41e540(0x1e6)+util[_0x41e540(0x25f)](_0x6c01b));}if(_0xd62a22[_0x41e540(0x1f5)])return _0xd62a22[_0x41e540(0x1f5)];return null;}[a91_0x43e592(0x25a)](_0xed6a35){const _0x3ab7ae=a91_0x43e592,_0x402d49={};_0x402d49[_0x3ab7ae(0x23b)]=_0x3ab7ae(0x22c);const _0x35e67d=_0x402d49;try{const _0x1b62b4=this[_0x3ab7ae(0x234)](_0xed6a35);if(_0x1b62b4&&_0x1b62b4[_0x3ab7ae(0x22e)](_0x35e67d[_0x3ab7ae(0x23b)]))return!![];}catch(_0x152775){logger['debug']('Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20'+util[_0x3ab7ae(0x25f)](_0x152775));}return![];}['getTestIdentifier'](_0x191eb3=null){const _0xdf3a28=a91_0x43e592;try{const _0x541ac9=_0x191eb3||global['__workerDetails']||{};if(global['__jestCurrentTestIdentifier'])return global['__jestCurrentTestIdentifier'];if(_0x541ac9?.['currentTest']?.[_0xdf3a28(0x1f3)])return _0x541ac9['currentTest'][_0xdf3a28(0x1f3)];if(_0x541ac9?.[_0xdf3a28(0x242)]?.['id'])return _0x541ac9[_0xdf3a28(0x242)]['id'];return null;}catch(_0x426e16){return logger[_0xdf3a28(0x243)](_0xdf3a28(0x1ea)+util['format'](_0x426e16)),null;}}async['configureGit'](){const _0x4bccf2=a91_0x43e592,_0x51e2fb={'Nuprk':function(_0x117eaa){return _0x117eaa();}};if(this['_gitConfigured'])return this[_0x4bccf2(0x20d)];const _0x549cec=await _0x51e2fb[_0x4bccf2(0x210)](getGitMetaData);_0x549cec&&(this[_0x4bccf2(0x20d)]=_0x549cec[_0x4bccf2(0x26b)]),this[_0x4bccf2(0x250)]=!![];}[a91_0x43e592(0x220)](_0x369308){hooksMap[_0x369308]&&delete hooksMap[_0x369308];}[a91_0x43e592(0x230)](_0x2e834b){const _0x2bc0bb=a91_0x43e592,_0x5029c9={'aBwhg':_0x2bc0bb(0x22c),'JmVSY':function(_0x54d365,_0x536a05){return _0x54d365(_0x536a05);},'XvyVb':_0x2bc0bb(0x1f6)};if(_0x2e834b[_0x2bc0bb(0x1f5)])return _0x2e834b[_0x2bc0bb(0x1f5)];if(_0x2e834b[_0x2bc0bb(0x1fa)]){try{const _0x4e02c2=stackTrace[_0x2bc0bb(0x261)](_0x2e834b[_0x2bc0bb(0x1fa)]);if(_0x4e02c2[0x0]&&_0x4e02c2[0x0][_0x2bc0bb(0x252)]){const _0x5be95f=_0x4e02c2[0x0][_0x2bc0bb(0x252)]();if(_0x5be95f&&!_0x5be95f[_0x2bc0bb(0x22e)](_0x5029c9[_0x2bc0bb(0x1e4)]))return _0x5be95f;}}catch(_0x25ec66){logger[_0x2bc0bb(0x243)](_0x2bc0bb(0x1dd)+util['format'](_0x25ec66));}if(_0x2e834b[_0x2bc0bb(0x1fa)][_0x2bc0bb(0x1e7)]){const _0x1032e4=_0x2e834b['asyncError'][_0x2bc0bb(0x1e7)]['split']('\x0a');for(const _0x1c9999 of _0x1032e4){const _0x17d18e=_0x1c9999[_0x2bc0bb(0x264)](/at (.+?):\d+:\d+/);if(_0x17d18e&&_0x17d18e[0x1]&&!_0x17d18e[0x1]['includes'](_0x5029c9[_0x2bc0bb(0x1e4)]))return _0x17d18e[0x1];}}}let _0x2d2034=_0x2e834b[_0x2bc0bb(0x24b)];while(_0x2d2034){if(_0x2d2034[_0x2bc0bb(0x1f5)])return _0x2d2034[_0x2bc0bb(0x1f5)];if(_0x2d2034['asyncError'])try{const _0x40e20b=stackTrace[_0x2bc0bb(0x261)](_0x2d2034[_0x2bc0bb(0x1fa)]);if(_0x40e20b[0x0]&&_0x40e20b[0x0][_0x2bc0bb(0x252)]){const _0xda35f2=_0x40e20b[0x0][_0x2bc0bb(0x252)]();if(_0xda35f2&&!_0xda35f2[_0x2bc0bb(0x22e)](_0x5029c9['aBwhg']))return _0xda35f2;}}catch(_0x37e3eb){}_0x2d2034=_0x2d2034[_0x2bc0bb(0x24b)];}try{const _0x405f92=_0x5029c9[_0x2bc0bb(0x1e0)](require,_0x5029c9[_0x2bc0bb(0x202)]);if(_0x405f92&&_0x405f92[_0x2bc0bb(0x254)]){const _0x5efa6c=_0x405f92[_0x2bc0bb(0x254)]();if(_0x5efa6c&&_0x5efa6c['testPath'])return _0x5efa6c[_0x2bc0bb(0x1ff)];}}catch(_0x47ca94){logger[_0x2bc0bb(0x243)](_0x2bc0bb(0x205)+util['format'](_0x47ca94));}return null;}[a91_0x43e592(0x21f)](_0x2e6114){const _0x3e5477=a91_0x43e592,_0x36c510={};_0x36c510[_0x3e5477(0x219)]='[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier',_0x36c510[_0x3e5477(0x217)]=function(_0x2e74b2,_0x36ab58){return _0x2e74b2!==_0x36ab58;},_0x36c510[_0x3e5477(0x22f)]=_0x3e5477(0x1d3),_0x36c510[_0x3e5477(0x269)]='jest-circus',_0x36c510[_0x3e5477(0x25c)]=_0x3e5477(0x236),_0x36c510[_0x3e5477(0x201)]='hex';const _0xa22b42=_0x36c510;try{if(!_0x2e6114)return logger[_0x3e5477(0x23c)](_0xa22b42[_0x3e5477(0x219)]),null;const _0x15ad28=_0x2e6114['fullName']||_0x2e6114[_0x3e5477(0x247)]||_0x2e6114[_0x3e5477(0x27d)]||_0x2e6114[_0x3e5477(0x21e)];let _0x4b51b7=_0x15ad28;if(_0x2e6114[_0x3e5477(0x24b)]&&_0x2e6114[_0x3e5477(0x24b)][_0x3e5477(0x247)]&&_0xa22b42[_0x3e5477(0x217)](_0x2e6114[_0x3e5477(0x24b)][_0x3e5477(0x247)],_0xa22b42['oTBCX'])){const _0xf8d3dc=_0x2e6114[_0x3e5477(0x247)]||_0x2e6114['title'];_0xf8d3dc&&(_0x4b51b7=_0x2e6114['parent'][_0x3e5477(0x247)]+'\x20'+_0xf8d3dc);}let _0x316698=_0x2e6114[_0x3e5477(0x1ff)];if(!_0x316698&&_0x2e6114[_0x3e5477(0x1fa)]){try{const _0x6584f0=stackTrace[_0x3e5477(0x261)](_0x2e6114[_0x3e5477(0x1fa)]);if(_0x6584f0[0x0]&&_0x6584f0[0x0][_0x3e5477(0x252)]){const _0x31c058=_0x6584f0[0x0][_0x3e5477(0x252)]();_0x31c058&&!_0x31c058[_0x3e5477(0x22e)](_0xa22b42[_0x3e5477(0x269)])&&(_0x316698=_0x31c058);}}catch(_0x3bc69c){logger['debug']('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x3e5477(0x25f)](_0x3bc69c));}if(!_0x316698&&_0x2e6114[_0x3e5477(0x1fa)][_0x3e5477(0x1e7)]){const _0x5f1c6f=_0x2e6114[_0x3e5477(0x1fa)][_0x3e5477(0x1e7)][_0x3e5477(0x283)]('\x0a');for(const _0x1bf6e8 of _0x5f1c6f){const _0x582ea8=_0x1bf6e8[_0x3e5477(0x264)](/at (.+?):\d+:\d+/);if(_0x582ea8&&_0x582ea8[0x1]&&!_0x582ea8[0x1][_0x3e5477(0x22e)](_0xa22b42[_0x3e5477(0x269)])){_0x316698=_0x582ea8[0x1];break;}}}}const _0x299b38=_0x316698+'::'+_0x4b51b7,_0x548d2b=crypto[_0x3e5477(0x21d)](_0xa22b42[_0x3e5477(0x25c)])['update'](_0x299b38)[_0x3e5477(0x218)](_0xa22b42['WKUzt'])[_0x3e5477(0x227)](0x0,0x8),_0x488f94=process[_0x3e5477(0x1fe)]+_0x3e5477(0x24c)+_0x548d2b;return logger[_0x3e5477(0x243)]('[jestUtils]\x20Created\x20identifier:\x20'+_0x488f94+_0x3e5477(0x1fd)+_0x299b38),_0x488f94;}catch(_0x2b19c9){return logger[_0x3e5477(0x23c)](_0x3e5477(0x235)+util[_0x3e5477(0x25f)](_0x2b19c9)),null;}}[a91_0x43e592(0x278)](_0x1c01ed){const _0x20d41e=a91_0x43e592,_0x258df3={};_0x258df3[_0x20d41e(0x214)]='[jestUtils]\x20No\x20test\x20object\x20provided';const _0x387ccd=_0x258df3;if(!_0x1c01ed)return logger[_0x20d41e(0x243)](_0x387ccd[_0x20d41e(0x214)]),null;const _0x27658c=this[_0x20d41e(0x230)](_0x1c01ed),_0x3985e4={};_0x3985e4[_0x20d41e(0x247)]=_0x1c01ed[_0x20d41e(0x247)]||_0x1c01ed[_0x20d41e(0x27d)],_0x3985e4['parent']=_0x1c01ed[_0x20d41e(0x24b)],_0x3985e4[_0x20d41e(0x1ff)]=_0x27658c,_0x3985e4[_0x20d41e(0x1fa)]=_0x1c01ed['asyncError'];const _0x2d15d8=_0x3985e4;return this[_0x20d41e(0x21f)](_0x2d15d8);}['recreateIdentifierFromTestInfo'](_0x50bc5f){const _0xfce702=a91_0x43e592,_0x10a6e3={};_0x10a6e3[_0xfce702(0x280)]=_0xfce702(0x259);const _0x2a3953=_0x10a6e3;if(!_0x50bc5f)return logger[_0xfce702(0x243)](_0x2a3953[_0xfce702(0x280)]),null;if(_0x50bc5f['testIdentifier'])return logger['debug']('[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20'+_0x50bc5f[_0xfce702(0x245)]),_0x50bc5f[_0xfce702(0x245)];return this[_0xfce702(0x21f)](_0x50bc5f);}}module[a91_0x43e592(0x239)]=o11yClassErrorHandler(JestUtils,['configureGit',a91_0x43e592(0x27e),a91_0x43e592(0x234),'getName','isJestInternalHook',a91_0x43e592(0x20c),a91_0x43e592(0x228),a91_0x43e592(0x21a),a91_0x43e592(0x27a),a91_0x43e592(0x220),'extractTestFilePath',a91_0x43e592(0x21f),a91_0x43e592(0x278),a91_0x43e592(0x1ec)]);
|
|
1
|
+
const a91_0x2232cb=a91_0x3cd4;(function(_0xc58af2,_0xe01b02){const _0x1a7d66=a91_0x3cd4,_0x58d0bb=_0xc58af2();while(!![]){try{const _0x3ba4cd=-parseInt(_0x1a7d66(0x16a))/0x1+-parseInt(_0x1a7d66(0x1aa))/0x2*(parseInt(_0x1a7d66(0x13d))/0x3)+-parseInt(_0x1a7d66(0x179))/0x4+-parseInt(_0x1a7d66(0x183))/0x5+-parseInt(_0x1a7d66(0x17f))/0x6+parseInt(_0x1a7d66(0x186))/0x7+parseInt(_0x1a7d66(0x160))/0x8*(parseInt(_0x1a7d66(0x17b))/0x9);if(_0x3ba4cd===_0xe01b02)break;else _0x58d0bb['push'](_0x58d0bb['shift']());}catch(_0x422999){_0x58d0bb['push'](_0x58d0bb['shift']());}}}(a91_0x2d08,0x886d1));const path=require(a91_0x2232cb(0x137)),util=require('util'),crypto=require('crypto'),{getGitMetaData,isUndefined,nestedKeyValue}=require(a91_0x2232cb(0x190)),logger=require('../../../helpers/logger.js')[a91_0x2232cb(0x14b)],{o11yClassErrorHandler}=require(a91_0x2232cb(0x180)),TestInfo=require(a91_0x2232cb(0x152)),{failureData,getFailureType}=require(a91_0x2232cb(0x161)),stackTrace=require('stack-trace'),a91_0x257dd3={};function a91_0x3cd4(_0x4a8a3d,_0x534a7a){const _0x2d08cf=a91_0x2d08();return a91_0x3cd4=function(_0x3cd483,_0x23a296){_0x3cd483=_0x3cd483-0x11d;let _0x58ef0a=_0x2d08cf[_0x3cd483];return _0x58ef0a;},a91_0x3cd4(_0x4a8a3d,_0x534a7a);}a91_0x257dd3['beforeAll']=a91_0x2232cb(0x1b7),a91_0x257dd3[a91_0x2232cb(0x189)]=a91_0x2232cb(0x11f),a91_0x257dd3[a91_0x2232cb(0x1a2)]=a91_0x2232cb(0x14f),a91_0x257dd3[a91_0x2232cb(0x16e)]=a91_0x2232cb(0x134);const HOOK_TYPES_MAP=a91_0x257dd3,hooksMap={};function a91_0x2d08(){const _0x856c2a=['HookRunFinished','recreateIdentifierFromTestInfo','705553touWVa','uuid','vzVtO','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','afterEach','\x22\x20hook\x20for\x20\x22','length','errorsDetailed','pid','startedAt','ILXir','relative','expanded','fOekj','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','1174816uAEqVd','toUpperCase','667854lDJoxK','call','getState','fullName','5809998JOrkhp','../../../helpers/test-observability/error-handler.js','vmUoA','jest-circus','767155wewyPx','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','hyJkp','4395503IBKrWr','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','RiCOe','afterAll','getTestIdentifier','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','WbRpS','retryOf','qxPTt','../../../helpers/helper.js','digest','sNuun','vcfyQ','error','Creating\x20hook\x20data\x20for\x20eventType:\x20','file','passed','displayName','createHash','btMLz','LFAAI','getName','err','LKdgQ','failed','backtrace','failure_reason_expanded','beforeEach','uTpwF','stack','test','pending',':jest-','sIXWG','ZkRvk','2FMvjwX','createIdentifierFromJestTest','push','parent','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','jest','GoKvX','hook','ySsnz','getHierarchy','failure_backtrace','root','match','BEFORE_ALL','parse','ydlQq','title','[jestUtils]\x20Created\x20identifier:\x20','_gitConfigured','md5','createJestTestIdentifier','duration','xcWkW','File\x20path\x20could\x20not\x20be\x20found','testPath','configureGit','extractTestFilePath','RUggl','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','finishedAt','UuedX','toISOString','asyncError','now','exports','started_at','Exception\x20in\x20createTestFrameworkData:\x20','hylKo','failure_reason','WowGP','debug','rfyCj','FMxrA','AFTER_ALL','toString','lwMhs','[jestUtils]\x20Error\x20creating\x20identifier:\x20','getTime','LGhtn','split','zXZgG','createHookData',',\x20hookUUID:\x20','failure_data','hcPtq','update','name','FVWag','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','clearHooksMap','__jestCurrentTestIdentifier','format','vWTjM','itPek','AFTER_EACH','MaWOq','apply','path','currentTest','hooks','testIdentifier','RumNJ','includes','745479jWALeo','ZOBAS','reverse','getHookRunEventData','getRootParentFile','find','fefML','expect','WGQBd','QWsSZ','hex','type','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','VnpPm','winstonLogger','hlsAT','MTViS','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','BEFORE_EACH','TpZgK','__workerDetails','../TestInfo.js','inspect','ROEai','TestRunFinished','xsSah','wNjtb',',\x20testRunId:\x20','[jestUtils]\x20No\x20test\x20object\x20provided','testAnalyticsId','_gitConfigPath','NPUYk','createTestFrameworkData','ROOT_DESCRIBE_BLOCK','getFileName','248BuKWVS','../../../helpers/test-observability/utils','Exception\x20in\x20createHookData:\x20','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','failure','HookRunStarted','substring','TestRunSkipped'];a91_0x2d08=function(){return _0x856c2a;};return a91_0x2d08();}class JestUtils{constructor(){const _0x5354dd=a91_0x2232cb;this['_gitConfigured']=![],this[_0x5354dd(0x15b)]=null;}async[a91_0x2232cb(0x15d)](_0x191a95,_0x4209ed,_0x37687e=a91_0x2232cb(0x155),_0x568f56=undefined){const _0x213c72=a91_0x2232cb,_0x1b4c52={'VnpPm':_0x213c72(0x184),'hcPtq':_0x213c72(0x182),'GoKvX':function(_0xdaa5f7,_0x44c08b){return _0xdaa5f7||_0x44c08b;},'TpZgK':_0x213c72(0x1c1),'RiCOe':function(_0x281120,_0x24fc51){return _0x281120!==_0x24fc51;},'RumNJ':_0x213c72(0x1a5),'vzVtO':_0x213c72(0x19d),'iPhNu':function(_0x3bf640,_0x20843d){return _0x3bf640!==_0x20843d;},'ctDtB':_0x213c72(0x1a6),'fAmlT':function(_0xf61077,_0x3f4906){return _0xf61077===_0x3f4906;},'ILXir':_0x213c72(0x167),'sIXWG':'skipped','svIVA':function(_0x24e5ef,_0x2c95ac){return _0x24e5ef>_0x2c95ac;},'MaWOq':_0x213c72(0x19f),'sNuun':_0x213c72(0x197),'LGhtn':function(_0x5b45fd,_0x17ceb6){return _0x5b45fd!==_0x17ceb6;},'Hfnpv':function(_0x4fab7c,_0x37a148){return _0x4fab7c-_0x37a148;},'QJPzE':'javascript','dylrK':_0x213c72(0x1af),'hlsAT':function(_0x165069,_0x51fe02){return _0x165069(_0x51fe02);},'hyJkp':function(_0x2bf25a,_0x4f350d){return _0x2bf25a===_0x4f350d;},'uTpwF':'TestRunFinished','uegoB':function(_0x341b0e,_0x3be3d7){return _0x341b0e===_0x3be3d7;}};logger[_0x213c72(0x1d2)](_0x213c72(0x12e)+_0x37687e+',\x20testIdentifier:\x20'+_0x4209ed);try{if(!_0x191a95)return logger[_0x213c72(0x1d2)](_0x1b4c52[_0x213c72(0x14a)]),null;if(_0x191a95['fn']&&_0x191a95['fn'][_0x213c72(0x120)]()[_0x213c72(0x1b6)](/browserstack internal helper hook/))return null;await this['configureGit']();let _0x3db742;try{_0x3db742=this[_0x213c72(0x141)](_0x191a95);if(_0x3db742&&_0x3db742[_0x213c72(0x13c)](_0x1b4c52[_0x213c72(0x12a)]))return null;}catch(_0x517ce0){logger[_0x213c72(0x1d2)](_0x213c72(0x149)+util['format'](_0x517ce0)),_0x3db742=null;}const _0x173e98=this['getHierarchy'](_0x191a95),_0x468dd1=this[_0x213c72(0x19c)](_0x191a95),_0x202d12=_0x1b4c52[_0x213c72(0x1b0)](_0x3db742,_0x1b4c52[_0x213c72(0x150)]);let _0x3aa8d0=[];if(_0x1b4c52['RiCOe'](_0x191a95[_0x213c72(0x171)],undefined))_0x3aa8d0=[_0x191a95[_0x213c72(0x171)],_0x1b4c52[_0x213c72(0x13b)]];else _0x1b4c52[_0x213c72(0x188)](_0x568f56,undefined)&&(_0x3aa8d0=[_0x568f56,_0x1b4c52[_0x213c72(0x16c)]]);const _0x259be7=_0x1b4c52[_0x213c72(0x188)](_0x191a95[_0x213c72(0x171)],undefined)?util['inspect'](_0x191a95[_0x213c72(0x171)][0x0]):_0x1b4c52['iPhNu'](_0x568f56,undefined)?_0x568f56['toString']():undefined;let _0x3a775b=_0x1b4c52['ctDtB'];if(_0x1b4c52['fAmlT'](_0x37687e,_0x1b4c52[_0x213c72(0x174)]))_0x3a775b=_0x1b4c52[_0x213c72(0x1a8)];else _0x191a95[_0x213c72(0x171)]&&_0x1b4c52['svIVA'](_0x191a95[_0x213c72(0x171)][_0x213c72(0x170)],0x0)?_0x3a775b=_0x1b4c52[_0x213c72(0x135)]:_0x3a775b=_0x1b4c52[_0x213c72(0x192)];let _0xff0990=null;if(_0x1b4c52[_0x213c72(0x124)](_0x191a95[_0x213c72(0x1bf)],undefined))_0xff0990=_0x191a95[_0x213c72(0x1bf)];else(_0x37687e[_0x213c72(0x1b6)](/Finished/)||_0x37687e[_0x213c72(0x1b6)](/Skipped/))&&(_0x191a95['started_at']&&(_0xff0990=_0x1b4c52['Hfnpv'](Date[_0x213c72(0x1cb)](),new Date(_0x191a95[_0x213c72(0x1cd)])[_0x213c72(0x123)]())));const _0x5753ab=_0x191a95['fn']?_0x191a95['fn'][_0x213c72(0x120)]():null,_0x1a11a3={'id':_0x4209ed,'uuid':_0x4209ed,'startedAt':_0x191a95[_0x213c72(0x1cd)]||new Date()['toISOString'](),'finishedAt':_0x37687e[_0x213c72(0x1b6)](/Finished/)||_0x37687e['match'](/Skipped/)?new Date()['toISOString']():null,'type':_0x1b4c52[_0x213c72(0x13b)],'body':{'lang':_0x1b4c52['QJPzE'],'code':_0x5753ab},'name':_0x468dd1,'scopes':_0x173e98,'file_name':_0x202d12,'location':_0x202d12,'vc_filepath':this[_0x213c72(0x15b)]&&_0x3db742?path[_0x213c72(0x175)](this['_gitConfigPath'],_0x3db742):null,'framework':_0x1b4c52['dylrK'],'result':_0x3a775b,'failure_reason':_0x259be7,'duration_in_ms':_0xff0990,'failure':failureData['apply'](null,_0x3aa8d0),'failure_type':!_0x259be7?null:_0x1b4c52[_0x213c72(0x14c)](getFailureType,_0x259be7),'retry_of':_0x191a95[_0x213c72(0x18e)]||null,'customRerunParam':{'rerun_name':_0x468dd1}};_0x1b4c52[_0x213c72(0x185)](_0x37687e,_0x1b4c52['ILXir'])&&!_0x1a11a3['startedAt']&&(_0x1a11a3[_0x213c72(0x173)]=_0x1a11a3[_0x213c72(0x1c7)]);const _0x5f18f7=_0x1a11a3['failure']&&_0x1a11a3[_0x213c72(0x164)][0x0];return _0x5f18f7&&(_0x1a11a3[_0x213c72(0x1b4)]=_0x5f18f7[_0x213c72(0x1a0)],_0x1a11a3[_0x213c72(0x1a1)]=_0x5f18f7[_0x213c72(0x176)]),(_0x1b4c52[_0x213c72(0x185)](_0x37687e,_0x1b4c52[_0x213c72(0x1a3)])||_0x1b4c52['uegoB'](_0x37687e,_0x1b4c52['ILXir']))&&(_0x191a95[_0x213c72(0x139)]&&(_0x1a11a3[_0x213c72(0x139)]=_0x191a95['hooks'])),_0x1a11a3;}catch(_0x2de066){return logger[_0x213c72(0x1d2)](_0x213c72(0x1ce)+util['format'](_0x2de066)),null;}}async[a91_0x2232cb(0x127)](_0x1b6720,_0x47fe1b,_0x429c08,_0x20277d){const _0x2157ee=a91_0x2232cb,_0x5aa6cd={'ydlQq':_0x2157ee(0x16d),'QWsSZ':_0x2157ee(0x182),'LFAAI':'browserstack-node-agent/src/bin/jest','ySsnz':'unknown','dAUNt':_0x2157ee(0x1a6),'ROEai':function(_0x3eeb21,_0x29533d){return _0x3eeb21===_0x29533d;},'zXZgG':_0x2157ee(0x168),'DPZpk':function(_0x1868af,_0x45f5c0){return _0x1868af>_0x45f5c0;},'YJwkh':_0x2157ee(0x19f),'fefML':function(_0x3b67d6,_0x2cdd46){return _0x3b67d6(_0x2cdd46);},'RUggl':_0x2157ee(0x1a5),'FMxrA':_0x2157ee(0x197),'btMLz':_0x2157ee(0x1b1),'rfyCj':'javascript','DYDPx':_0x2157ee(0x1af),'zBbxc':function(_0x39c983,_0x227701){return _0x39c983===_0x227701;},'NPUYk':_0x2157ee(0x165)};logger['debug'](_0x2157ee(0x195)+_0x429c08+_0x2157ee(0x128)+_0x47fe1b+_0x2157ee(0x158)+_0x20277d);try{if(!_0x1b6720)return logger[_0x2157ee(0x1d2)](_0x5aa6cd[_0x2157ee(0x1b9)]),null;if(this['isJestInternalHook'](_0x1b6720))return null;await this[_0x2157ee(0x1c3)]();let _0xc6f452=null;try{_0xc6f452=this[_0x2157ee(0x141)](_0x1b6720);if(_0xc6f452&&_0xc6f452[_0x2157ee(0x13c)](_0x5aa6cd[_0x2157ee(0x146)]))return null;if(_0xc6f452&&_0xc6f452[_0x2157ee(0x13c)](_0x5aa6cd[_0x2157ee(0x19b)]))return null;}catch(_0x3f7813){logger['debug'](_0x2157ee(0x178)+util[_0x2157ee(0x131)](_0x3f7813));}const _0x39c663=this['getName'](_0x1b6720),_0x32c101=_0x1b6720['type']||_0x5aa6cd[_0x2157ee(0x1b2)],_0x4b957d=HOOK_TYPES_MAP[_0x32c101]||_0x32c101[_0x2157ee(0x17a)](),_0x21bd06=_0x1b6720[_0x2157ee(0x1ad)]&&_0x1b6720[_0x2157ee(0x1ad)][_0x2157ee(0x12c)]?_0x1b6720[_0x2157ee(0x1ad)][_0x2157ee(0x12c)]:'';let _0x23003e=_0x5aa6cd['dAUNt'],_0x11f359=null,_0x17ddb4=null,_0x42b6be=null,_0x21af4a=null;_0x5aa6cd[_0x2157ee(0x154)](_0x429c08,_0x5aa6cd[_0x2157ee(0x126)])&&(_0x21af4a=new Date()[_0x2157ee(0x1c9)](),_0x1b6720[_0x2157ee(0x171)]&&_0x5aa6cd['DPZpk'](_0x1b6720['errorsDetailed']['length'],0x0)?(_0x23003e=_0x5aa6cd['YJwkh'],_0x17ddb4=util[_0x2157ee(0x153)](_0x1b6720[_0x2157ee(0x171)][0x0]),_0x11f359=_0x5aa6cd[_0x2157ee(0x143)](getFailureType,_0x17ddb4),_0x42b6be=failureData[_0x2157ee(0x136)](null,[_0x1b6720[_0x2157ee(0x171)],_0x5aa6cd[_0x2157ee(0x1c5)]])):_0x23003e=_0x5aa6cd[_0x2157ee(0x11e)]);const _0x3cc354={'uuid':_0x47fe1b,'type':_0x5aa6cd[_0x2157ee(0x19a)],'hook_type':_0x4b957d,'name':_0x39c663,'body':{'lang':_0x5aa6cd[_0x2157ee(0x11d)],'code':_0x1b6720['fn']?_0x1b6720['fn'][_0x2157ee(0x120)]():null},'tags':[],'test_run_id':_0x20277d,'scope':_0x21bd06,'scopes':[_0x21bd06],'file_name':_0xc6f452,'location':_0xc6f452,'vc_filepath':this[_0x2157ee(0x15b)]&&_0xc6f452?path['relative'](this['_gitConfigPath'],_0xc6f452):null,'result':_0x23003e,'started_at':_0x1b6720[_0x2157ee(0x1cd)]||new Date()['toISOString'](),'finished_at':_0x21af4a,'failure_type':_0x11f359,'failure_reason':_0x17ddb4,'failure_data':_0x42b6be,'framework':_0x5aa6cd['DYDPx']};return _0x5aa6cd['zBbxc'](_0x429c08,_0x5aa6cd[_0x2157ee(0x15c)])&&(hooksMap[_0x20277d]?hooksMap[_0x20277d]['push'](_0x3cc354):hooksMap[_0x20277d]=[_0x3cc354]),_0x3cc354;}catch(_0x2098ea){return logger['debug'](_0x2157ee(0x162)+util[_0x2157ee(0x131)](_0x2098ea)),null;}}[a91_0x2232cb(0x140)](_0x487c4d,_0x5d21ff,_0x56a921){const _0x54f691=a91_0x2232cb,_0x48facf={'UuedX':function(_0x1c419f,_0x3d27be){return _0x1c419f>_0x3d27be;},'ZOBAS':_0x54f691(0x19f),'vWTjM':function(_0x14bded,_0x335d54){return _0x14bded(_0x335d54);},'SkAfj':_0x54f691(0x1a5),'ZkRvk':_0x54f691(0x197)};try{const _0x363a27=hooksMap[_0x487c4d];if(!_0x363a27)return null;const _0x51c578=_0x363a27[_0x54f691(0x142)](_0x2f935d=>_0x2f935d[_0x54f691(0x16b)]===_0x5d21ff);if(!_0x51c578)return null;return _0x51c578['finished_at']=new Date()[_0x54f691(0x1c9)](),_0x56a921[_0x54f691(0x171)]&&_0x48facf[_0x54f691(0x1c8)](_0x56a921[_0x54f691(0x171)][_0x54f691(0x170)],0x0)?(_0x51c578['result']=_0x48facf[_0x54f691(0x13e)],_0x51c578[_0x54f691(0x1d0)]=util[_0x54f691(0x153)](_0x56a921['errorsDetailed'][0x0]),_0x51c578['failure_type']=_0x48facf[_0x54f691(0x132)](getFailureType,_0x51c578[_0x54f691(0x1d0)]),_0x51c578[_0x54f691(0x129)]=failureData[_0x54f691(0x136)](null,[_0x56a921[_0x54f691(0x171)],_0x48facf['SkAfj']])):_0x51c578['result']=_0x48facf[_0x54f691(0x1a9)],_0x51c578;}catch(_0x4e9ac9){return logger[_0x54f691(0x1d2)]('Exception\x20in\x20getHookRunEventData:\x20'+util[_0x54f691(0x131)](_0x4e9ac9)),null;}}[a91_0x2232cb(0x19c)](_0x50846b){const _0x2ce690=a91_0x2232cb,_0xea0386={};_0xea0386[_0x2ce690(0x177)]=function(_0x151daa,_0x51c0b3){return _0x151daa!==_0x51c0b3;},_0xea0386[_0x2ce690(0x1d1)]='test',_0xea0386[_0x2ce690(0x121)]='Unknown\x20Test';const _0x31c8d8=_0xea0386;if(_0x31c8d8[_0x2ce690(0x177)](_0x50846b[_0x2ce690(0x148)],_0x31c8d8['WowGP']))return'\x22'+_0x50846b['type']+_0x2ce690(0x16f)+(_0x50846b[_0x2ce690(0x1ad)]&&_0x50846b['parent'][_0x2ce690(0x12c)])+'\x22';return _0x50846b[_0x2ce690(0x12c)]||_0x31c8d8[_0x2ce690(0x121)];}[a91_0x2232cb(0x1b3)](_0x416d35){const _0x59e25f=a91_0x2232cb,_0x1884fa={};_0x1884fa[_0x59e25f(0x19e)]=function(_0x47a197,_0x48b318){return _0x47a197!==_0x48b318;},_0x1884fa[_0x59e25f(0x145)]='ROOT_DESCRIBE_BLOCK';const _0x553ff1=_0x1884fa,_0x4c5dad=[];if(_0x416d35&&_0x416d35[_0x59e25f(0x1ad)]){let _0x1c775e=_0x416d35[_0x59e25f(0x1ad)];while(_0x1c775e&&_0x1c775e[_0x59e25f(0x12c)]&&_0x553ff1[_0x59e25f(0x19e)](_0x1c775e['name'],'')&&_0x553ff1[_0x59e25f(0x19e)](_0x1c775e[_0x59e25f(0x12c)],_0x553ff1[_0x59e25f(0x145)])){_0x4c5dad[_0x59e25f(0x1ac)](_0x1c775e[_0x59e25f(0x12c)]),_0x1c775e=_0x1c775e[_0x59e25f(0x1ad)];}}return _0x4c5dad[_0x59e25f(0x13f)](),_0x4c5dad;}[a91_0x2232cb(0x141)](_0x46f321){const _0x3af038=a91_0x2232cb;if(_0x46f321[_0x3af038(0x1ca)])try{const _0x535ac4=stackTrace[_0x3af038(0x1b8)][_0x3af038(0x17c)](stackTrace,_0x46f321[_0x3af038(0x1ca)]);if(_0x535ac4[0x0]&&_0x535ac4[0x0][_0x3af038(0x15f)])return _0x535ac4[0x0]['getFileName']();}catch(_0x275084){logger['debug']('Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util['format'](_0x275084));}if(_0x46f321[_0x3af038(0x196)])return _0x46f321[_0x3af038(0x196)];return null;}['isJestInternalHook'](_0x9ba5b3){const _0x4cd927=a91_0x2232cb,_0x1ed44b={};_0x1ed44b[_0x4cd927(0x193)]='jest-circus';const _0x39e1ab=_0x1ed44b;try{const _0xc57d2c=this[_0x4cd927(0x141)](_0x9ba5b3);if(_0xc57d2c&&_0xc57d2c[_0x4cd927(0x13c)](_0x39e1ab[_0x4cd927(0x193)]))return!![];}catch(_0xf0576b){logger[_0x4cd927(0x1d2)](_0x4cd927(0x1c6)+util[_0x4cd927(0x131)](_0xf0576b));}return![];}[a91_0x2232cb(0x18a)](_0x4dd1c5=null){const _0x2819c4=a91_0x2232cb;try{const _0x21cf7b=_0x4dd1c5||global[_0x2819c4(0x151)]||{};if(global[_0x2819c4(0x130)])return global[_0x2819c4(0x130)];if(_0x21cf7b?.[_0x2819c4(0x138)]?.[_0x2819c4(0x15a)])return _0x21cf7b[_0x2819c4(0x138)][_0x2819c4(0x15a)];if(_0x21cf7b?.[_0x2819c4(0x138)]?.['id'])return _0x21cf7b['currentTest']['id'];return null;}catch(_0x3c7093){return logger['debug'](_0x2819c4(0x1ae)+util[_0x2819c4(0x131)](_0x3c7093)),null;}}async[a91_0x2232cb(0x1c3)](){const _0x222652=a91_0x2232cb,_0x4a0b52={'kJdhS':function(_0x37ba60){return _0x37ba60();}};if(this[_0x222652(0x1bc)])return this[_0x222652(0x15b)];const _0x4ae9ee=await _0x4a0b52['kJdhS'](getGitMetaData);_0x4ae9ee&&(this[_0x222652(0x15b)]=_0x4ae9ee[_0x222652(0x1b5)]),this['_gitConfigured']=!![];}[a91_0x2232cb(0x12f)](_0x59ad91){hooksMap[_0x59ad91]&&delete hooksMap[_0x59ad91];}['extractTestFilePath'](_0x474acd){const _0x27648a=a91_0x2232cb,_0x442536={'wNjtb':'jest-circus','hylKo':function(_0x5190ab,_0x16d1cc){return _0x5190ab(_0x16d1cc);},'qxPTt':_0x27648a(0x144)};if(_0x474acd[_0x27648a(0x196)])return _0x474acd['file'];if(_0x474acd['asyncError']){try{const _0x182ea4=stackTrace['parse'](_0x474acd[_0x27648a(0x1ca)]);if(_0x182ea4[0x0]&&_0x182ea4[0x0][_0x27648a(0x15f)]){const _0xa07d34=_0x182ea4[0x0][_0x27648a(0x15f)]();if(_0xa07d34&&!_0xa07d34[_0x27648a(0x13c)](_0x442536[_0x27648a(0x157)]))return _0xa07d34;}}catch(_0x22447e){logger[_0x27648a(0x1d2)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x27648a(0x131)](_0x22447e));}if(_0x474acd[_0x27648a(0x1ca)][_0x27648a(0x1a4)]){const _0x53fce8=_0x474acd[_0x27648a(0x1ca)]['stack'][_0x27648a(0x125)]('\x0a');for(const _0x4f0b38 of _0x53fce8){const _0x5a2e1b=_0x4f0b38[_0x27648a(0x1b6)](/at (.+?):\d+:\d+/);if(_0x5a2e1b&&_0x5a2e1b[0x1]&&!_0x5a2e1b[0x1]['includes'](_0x442536[_0x27648a(0x157)]))return _0x5a2e1b[0x1];}}}let _0x2b3036=_0x474acd['parent'];while(_0x2b3036){if(_0x2b3036[_0x27648a(0x196)])return _0x2b3036[_0x27648a(0x196)];if(_0x2b3036[_0x27648a(0x1ca)])try{const _0x2651dc=stackTrace[_0x27648a(0x1b8)](_0x2b3036[_0x27648a(0x1ca)]);if(_0x2651dc[0x0]&&_0x2651dc[0x0]['getFileName']){const _0x556109=_0x2651dc[0x0][_0x27648a(0x15f)]();if(_0x556109&&!_0x556109[_0x27648a(0x13c)](_0x442536['wNjtb']))return _0x556109;}}catch(_0x2b4aab){}_0x2b3036=_0x2b3036[_0x27648a(0x1ad)];}try{const _0x28cab6=_0x442536[_0x27648a(0x1cf)](require,_0x442536[_0x27648a(0x18f)]);if(_0x28cab6&&_0x28cab6['getState']){const _0x7c3116=_0x28cab6[_0x27648a(0x17d)]();if(_0x7c3116&&_0x7c3116[_0x27648a(0x1c2)])return _0x7c3116[_0x27648a(0x1c2)];}}catch(_0x579549){logger[_0x27648a(0x1d2)](_0x27648a(0x163)+util[_0x27648a(0x131)](_0x579549));}return null;}[a91_0x2232cb(0x1be)](_0xe95afa){const _0x49ad5d=a91_0x2232cb,_0x55a5c6={};_0x55a5c6['AIVhQ']=_0x49ad5d(0x187),_0x55a5c6['WbRpS']=function(_0x3278c5,_0x4334d5){return _0x3278c5!==_0x4334d5;},_0x55a5c6[_0x49ad5d(0x1c0)]=_0x49ad5d(0x15e),_0x55a5c6[_0x49ad5d(0x181)]=_0x49ad5d(0x182),_0x55a5c6[_0x49ad5d(0x133)]=_0x49ad5d(0x1bd),_0x55a5c6[_0x49ad5d(0x12d)]=_0x49ad5d(0x147);const _0x1a476d=_0x55a5c6;try{if(!_0xe95afa)return logger[_0x49ad5d(0x194)](_0x1a476d['AIVhQ']),null;const _0x2f50a5=_0xe95afa[_0x49ad5d(0x17e)]||_0xe95afa[_0x49ad5d(0x12c)]||_0xe95afa[_0x49ad5d(0x1ba)]||_0xe95afa[_0x49ad5d(0x198)];let _0x55bf12=_0x2f50a5;if(_0xe95afa[_0x49ad5d(0x1ad)]&&_0xe95afa[_0x49ad5d(0x1ad)][_0x49ad5d(0x12c)]&&_0x1a476d[_0x49ad5d(0x18d)](_0xe95afa[_0x49ad5d(0x1ad)][_0x49ad5d(0x12c)],_0x1a476d['xcWkW'])){const _0x5d1809=_0xe95afa[_0x49ad5d(0x12c)]||_0xe95afa[_0x49ad5d(0x1ba)];_0x5d1809&&(_0x55bf12=_0xe95afa[_0x49ad5d(0x1ad)][_0x49ad5d(0x12c)]+'\x20'+_0x5d1809);}let _0x23f12c=_0xe95afa[_0x49ad5d(0x1c2)];if(!_0x23f12c&&_0xe95afa['asyncError']){try{const _0x599c90=stackTrace[_0x49ad5d(0x1b8)](_0xe95afa['asyncError']);if(_0x599c90[0x0]&&_0x599c90[0x0][_0x49ad5d(0x15f)]){const _0x3b08c2=_0x599c90[0x0][_0x49ad5d(0x15f)]();_0x3b08c2&&!_0x3b08c2[_0x49ad5d(0x13c)](_0x1a476d['vmUoA'])&&(_0x23f12c=_0x3b08c2);}}catch(_0x362ec6){logger[_0x49ad5d(0x1d2)](_0x49ad5d(0x18c)+util[_0x49ad5d(0x131)](_0x362ec6));}if(!_0x23f12c&&_0xe95afa[_0x49ad5d(0x1ca)][_0x49ad5d(0x1a4)]){const _0x300139=_0xe95afa['asyncError']['stack']['split']('\x0a');for(const _0x5d76c8 of _0x300139){const _0x13606c=_0x5d76c8[_0x49ad5d(0x1b6)](/at (.+?):\d+:\d+/);if(_0x13606c&&_0x13606c[0x1]&&!_0x13606c[0x1]['includes'](_0x1a476d[_0x49ad5d(0x181)])){_0x23f12c=_0x13606c[0x1];break;}}}}const _0x3c66ae=_0x23f12c+'::'+_0x55bf12,_0x22dd6d=crypto[_0x49ad5d(0x199)](_0x1a476d[_0x49ad5d(0x133)])[_0x49ad5d(0x12b)](_0x3c66ae)[_0x49ad5d(0x191)](_0x1a476d[_0x49ad5d(0x12d)])[_0x49ad5d(0x166)](0x0,0x8),_0x15dfc3=process[_0x49ad5d(0x172)]+_0x49ad5d(0x1a7)+_0x22dd6d;return logger[_0x49ad5d(0x1d2)](_0x49ad5d(0x1bb)+_0x15dfc3+'\x20from\x20compositeKey:\x20'+_0x3c66ae),_0x15dfc3;}catch(_0x4af81d){return logger[_0x49ad5d(0x194)](_0x49ad5d(0x122)+util[_0x49ad5d(0x131)](_0x4af81d)),null;}}[a91_0x2232cb(0x1ab)](_0x1f563d){const _0x35c4a7=a91_0x2232cb,_0xff7dd9={};_0xff7dd9[_0x35c4a7(0x14d)]=_0x35c4a7(0x159);const _0x134e81=_0xff7dd9;if(!_0x1f563d)return logger[_0x35c4a7(0x1d2)](_0x134e81[_0x35c4a7(0x14d)]),null;const _0x38f909=this[_0x35c4a7(0x1c4)](_0x1f563d),_0x3cbc6b={};_0x3cbc6b['name']=_0x1f563d[_0x35c4a7(0x12c)]||_0x1f563d[_0x35c4a7(0x1ba)],_0x3cbc6b[_0x35c4a7(0x1ad)]=_0x1f563d[_0x35c4a7(0x1ad)],_0x3cbc6b[_0x35c4a7(0x1c2)]=_0x38f909,_0x3cbc6b['asyncError']=_0x1f563d[_0x35c4a7(0x1ca)];const _0x4f388a=_0x3cbc6b;return this['createJestTestIdentifier'](_0x4f388a);}['recreateIdentifierFromTestInfo'](_0x49036f){const _0x145672=a91_0x2232cb,_0x589fa3={};_0x589fa3[_0x145672(0x156)]=_0x145672(0x18b);const _0x460b60=_0x589fa3;if(!_0x49036f)return logger[_0x145672(0x1d2)](_0x460b60[_0x145672(0x156)]),null;if(_0x49036f['testIdentifier'])return logger[_0x145672(0x1d2)](_0x145672(0x14e)+_0x49036f[_0x145672(0x13a)]),_0x49036f[_0x145672(0x13a)];return this[_0x145672(0x1be)](_0x49036f);}}module[a91_0x2232cb(0x1cc)]=o11yClassErrorHandler(JestUtils,[a91_0x2232cb(0x1c3),a91_0x2232cb(0x1b3),'getRootParentFile',a91_0x2232cb(0x19c),'isJestInternalHook',a91_0x2232cb(0x18a),a91_0x2232cb(0x15d),a91_0x2232cb(0x127),a91_0x2232cb(0x140),a91_0x2232cb(0x12f),a91_0x2232cb(0x1c4),a91_0x2232cb(0x1be),'createIdentifierFromJestTest',a91_0x2232cb(0x169)]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a92_0x46f5a8=a92_0x1fa9;(function(_0x510729,_0x7a601f){const _0x45ab23=a92_0x1fa9,_0x5a9ebe=_0x510729();while(!![]){try{const _0x17bea2=-parseInt(_0x45ab23(0xb7))/0x1+-parseInt(_0x45ab23(0xce))/0x2+-parseInt(_0x45ab23(0xa4))/0x3+-parseInt(_0x45ab23(0xcb))/0x4*(parseInt(_0x45ab23(0xac))/0x5)+parseInt(_0x45ab23(0xbc))/0x6+parseInt(_0x45ab23(0xc7))/0x7*(-parseInt(_0x45ab23(0xc1))/0x8)+-parseInt(_0x45ab23(0xb4))/0x9*(-parseInt(_0x45ab23(0xcc))/0xa);if(_0x17bea2===_0x7a601f)break;else _0x5a9ebe['push'](_0x5a9ebe['shift']());}catch(_0x5d2882){_0x5a9ebe['push'](_0x5a9ebe['shift']());}}}(a92_0x2f70,0x29c34));const fs=require('fs'),path=require('path'),{default:BrowserStackSetup}=require(a92_0x46f5a8(0xad)),helper=require(a92_0x46f5a8(0xa7)),PerformanceTester=require(a92_0x46f5a8(0xbd)),PerformanceEvents=require(a92_0x46f5a8(0xb3))[a92_0x46f5a8(0xb9)],utilities=require(a92_0x46f5a8(0x9f)),{parallelVanillaRun}=require(a92_0x46f5a8(0xb0)),TestHubHandler=require(a92_0x46f5a8(0xa6));async function run(_0x1b3f0e,_0x2aa5db,_0x2864e5){const _0x24d303=a92_0x46f5a8,_0x345b02={'DDCHh':_0x24d303(0xa0),'qjQWU':function(_0x3ef2df,_0x490ac0){return _0x3ef2df(_0x490ac0);},'tmkYp':'File\x20path\x20is\x20required','zWLVy':function(_0x59b0ea,_0x2c7c98){return _0x59b0ea(_0x2c7c98);},'Gunvq':_0x24d303(0xaa),'RJLHA':function(_0x383f89,_0x2258a1){return _0x383f89>_0x2258a1;},'ASvXP':function(_0x4bf12c,_0x42765a){return _0x4bf12c*_0x42765a;},'csHrZ':function(_0x1ede3e,_0x4cba36,_0x2a3281){return _0x1ede3e(_0x4cba36,_0x2a3281);}};await _0x2864e5[_0x24d303(0xc8)](_0x1b3f0e),await helper['handleApp'](_0x2864e5[_0x24d303(0xa5)]);const _0x2d65df=[];if(helper[_0x24d303(0xa3)](_0x1b3f0e['_'][0x1]))throw _0x345b02[_0x24d303(0xb6)](Error,_0x345b02['tmkYp']);const _0x47fba5=path[_0x24d303(0xaf)](process[_0x24d303(0x9c)](),_0x1b3f0e['_'][0x1]);if(!fs['existsSync'](_0x47fba5))throw _0x345b02[_0x24d303(0xb6)](Error,'File\x20'+_0x1b3f0e['_'][0x1]+_0x24d303(0xd0));if(!_0x2864e5[_0x24d303(0xa5)])throw _0x345b02[_0x24d303(0xcd)](Error,_0x345b02[_0x24d303(0xbe)]);const _0x3f7061=helper[_0x24d303(0xd3)](_0x2864e5[_0x24d303(0xa5)]);_0x2864e5[_0x24d303(0xa5)][_0x24d303(0xc6)]&&_0x345b02[_0x24d303(0xc2)](_0x2864e5[_0x24d303(0xa5)][_0x24d303(0xc6)][_0x24d303(0xc3)],0x0)&&_0x2864e5['config'][_0x24d303(0xc6)][_0x24d303(0xca)]((_0x5649b9,_0x310648)=>{const _0x5cf38f=_0x24d303;_0x3f7061?_0x2d65df[_0x5cf38f(0xcf)](helper[_0x5cf38f(0x9d)](_0x2864e5[_0x5cf38f(0xa5)],_0x345b02[_0x5cf38f(0xa8)],_0x310648)):_0x2d65df[_0x5cf38f(0xcf)](helper[_0x5cf38f(0x9e)](_0x2864e5['config'],_0x345b02['DDCHh'],_0x310648));});let _0x5ca9b6,_0x550e99;const _0x468944=[];if(_0x345b02[_0x24d303(0xc2)](_0x2d65df[_0x24d303(0xc3)],0x0))_0x2d65df[_0x24d303(0xca)]((_0xb44d98,_0x160134)=>{const _0x417bef=_0x24d303,_0x3ba3c7={};_0x3ba3c7['index']=_0x160134,_0x5ca9b6={'server':helper[_0x417bef(0xb5)](_0x2864e5['config']),'proxySettings':_0x2864e5[_0x417bef(0xa5)]['proxySettings'],'platform':helper[_0x417bef(0xb2)](_0xb44d98),'platformCaps':Object[_0x417bef(0xae)](_0x3ba3c7,_0x2864e5[_0x417bef(0xa5)][_0x417bef(0xc6)][_0x160134])};const _0x25a41b={'capability':_0xb44d98,..._0x5ca9b6};_0x25a41b[_0x417bef(0xba)]=_0x47fba5,_0x25a41b['args']=_0x2aa5db;const _0x4be192={};_0x4be192[_0x417bef(0xab)]=_0x25a41b,_0x550e99=_0x4be192,_0x468944[_0x417bef(0xcf)](_0x550e99);});else{let _0x25a76f;_0x3f7061?_0x25a76f=helper[_0x24d303(0x9d)](_0x2864e5['config'],_0x345b02[_0x24d303(0xa8)],0x0):_0x25a76f=helper['modifyBrowserStackCaps'](_0x2864e5[_0x24d303(0xa5)],_0x345b02[_0x24d303(0xa8)],0x0);_0x5ca9b6={'server':helper[_0x24d303(0xb5)](_0x2864e5[_0x24d303(0xa5)]),'proxySettings':_0x2864e5[_0x24d303(0xa5)][_0x24d303(0xbb)]};const _0x425e46={'capability':_0x25a76f,..._0x5ca9b6};_0x425e46['file']=_0x47fba5,_0x425e46['args']=_0x2aa5db;const _0x21c618={};_0x21c618['configuration']=_0x425e46,_0x550e99=_0x21c618,_0x468944[_0x24d303(0xcf)](_0x550e99);}const _0x4d5a97=await TestHubHandler[_0x24d303(0xa1)](_0x345b02[_0x24d303(0xa8)],_0x2864e5),_0x228685=_0x345b02[_0x24d303(0xd2)](_0x2864e5['config'][_0x24d303(0xc6)][_0x24d303(0xc3)]||0x1,_0x2864e5[_0x24d303(0xa5)][_0x24d303(0xb8)]||0x1);PerformanceTester[_0x24d303(0xa2)](PerformanceEvents[_0x24d303(0xc9)]),_0x345b02[_0x24d303(0xd1)](parallelVanillaRun,_0x468944,_0x228685)[_0x24d303(0xc5)](_0x589452=>{})[_0x24d303(0xc4)](async()=>{const _0x2dd8f2=_0x24d303;PerformanceTester[_0x2dd8f2(0xa9)](PerformanceEvents[_0x2dd8f2(0xc0)]),await utilities[_0x2dd8f2(0xb1)](_0x2864e5);});}module[a92_0x46f5a8(0xbf)]=run;function a92_0x1fa9(_0x150e7f,_0x32790c){const _0x2f7091=a92_0x2f70();return a92_0x1fa9=function(_0x1fa98e,_0x30a140){_0x1fa98e=_0x1fa98e-0x9c;let _0x3f505d=_0x2f7091[_0x1fa98e];return _0x3f505d;},a92_0x1fa9(_0x150e7f,_0x32790c);}function a92_0x2f70(){const _0x49b6d3=['Gunvq','exports','SDK_CLEANUP','56pmnXWc','RJLHA','length','finally','then','platforms','330897AdrRGw','initialize','SDK_SETUP','forEach','12FKoTqz','540mMwqZk','zWLVy','98912TNYhbC','push','\x20doesn\x27t\x20exist','csHrZ','ASvXP','useW3C','cwd','modifyBrowserStackW3CCaps','modifyBrowserStackCaps','../../helpers/utilities','vanilla','launchBuild','end','isUndefined','644493gkyHwO','config','../../helpers/testhub/testhubHandler','../../helpers/helper','DDCHh','start','Config\x20yml\x20is\x20required','configuration','135925mLJqUl','../../helpers/BrowserStackSetup','assign','join','../test-runner','finalExecution','getPlatformName','../../helpers/performance/constants','170397cfIKAp','getHubUrl','qjQWU','250652DtcDwI','parallelsPerPlatform','EVENTS','file','proxySettings','456414nMwDcp','../../helpers/performance/performance-tester'];a92_0x2f70=function(){return _0x49b6d3;};return a92_0x2f70();}
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x10fe72=a93_0x5145;(function(_0x478c59,_0x591e34){const _0x308f8c=a93_0x5145,_0x2081c0=_0x478c59();while(!![]){try{const _0x596ad9=-parseInt(_0x308f8c(0x1e2))/0x1*(parseInt(_0x308f8c(0x1e1))/0x2)+-parseInt(_0x308f8c(0x1e5))/0x3*(parseInt(_0x308f8c(0x1e0))/0x4)+-parseInt(_0x308f8c(0x1de))/0x5*(-parseInt(_0x308f8c(0x1c8))/0x6)+-parseInt(_0x308f8c(0x1ca))/0x7+parseInt(_0x308f8c(0x1dc))/0x8*(-parseInt(_0x308f8c(0x1eb))/0x9)+parseInt(_0x308f8c(0x1ea))/0xa+parseInt(_0x308f8c(0x1d7))/0xb;if(_0x596ad9===_0x591e34)break;else _0x2081c0['push'](_0x2081c0['shift']());}catch(_0x146617){_0x2081c0['push'](_0x2081c0['shift']());}}}(a93_0x5274,0xd2105));const TestMetadata=require(a93_0x10fe72(0x1e6));class BrowserStackSdk{static[a93_0x10fe72(0x1cb)](){const _0x330424=a93_0x10fe72,_0x37ebb0={};_0x37ebb0['FJLMK']=_0x330424(0x1c6),_0x37ebb0[_0x330424(0x1c7)]=_0x330424(0x1cc),_0x37ebb0['QmGHp']=_0x330424(0x1cf),_0x37ebb0[_0x330424(0x1d6)]=_0x330424(0x1d8),_0x37ebb0[_0x330424(0x1cd)]=_0x330424(0x1d5),_0x37ebb0['LJOIq']=_0x330424(0x1da),_0x37ebb0[_0x330424(0x1c9)]='device',_0x37ebb0[_0x330424(0x1e9)]='deviceName',_0x37ebb0['soGbY']='platform',_0x37ebb0[_0x330424(0x1e4)]='platformName',_0x37ebb0[_0x330424(0x1db)]=_0x330424(0x1e3),_0x37ebb0['YYNSI']='platformVersion',_0x37ebb0[_0x330424(0x1df)]=_0x330424(0x1e7);const _0x4ab2f3=_0x37ebb0,_0x527044={};if(global[_0x330424(0x1d9)]){const _0x53685e=global[_0x330424(0x1d9)],_0x35dc05=_0x53685e[_0x4ab2f3[_0x330424(0x1d4)]]||_0x53685e[_0x4ab2f3[_0x330424(0x1c7)]],_0x3e3e44=_0x53685e[_0x4ab2f3[_0x330424(0x1d2)]]||_0x53685e[_0x4ab2f3[_0x330424(0x1d6)]],_0x37171a=_0x53685e[_0x4ab2f3[_0x330424(0x1cd)]]||_0x53685e[_0x4ab2f3['LJOIq']],_0x42c2d8=_0x53685e[_0x4ab2f3[_0x330424(0x1c9)]]||_0x53685e[_0x4ab2f3['MbdQz']],_0xdc841b=_0x53685e[_0x4ab2f3[_0x330424(0x1ce)]]||_0x53685e[_0x4ab2f3[_0x330424(0x1e4)]],_0x15c564=_0x53685e[_0x4ab2f3['oRYsA']]||_0x53685e[_0x4ab2f3[_0x330424(0x1d1)]];_0x53685e['os']&&(_0x527044['os']=_0x53685e['os']),_0x35dc05&&(_0x527044[_0x4ab2f3[_0x330424(0x1c7)]]=_0x35dc05),_0x3e3e44&&(_0x527044[_0x4ab2f3['pgfBO']]=_0x3e3e44),_0x37171a&&(_0x527044[_0x4ab2f3[_0x330424(0x1d3)]]=_0x37171a),_0x42c2d8&&(_0x527044[_0x4ab2f3[_0x330424(0x1e9)]]=_0x42c2d8),_0xdc841b&&(_0x527044[_0x4ab2f3['kGMpj']]=_0xdc841b),_0x15c564&&(_0x527044[_0x4ab2f3[_0x330424(0x1d1)]]=_0x15c564),_0x53685e[_0x4ab2f3[_0x330424(0x1df)]]&&(_0x527044[_0x4ab2f3[_0x330424(0x1df)]]=_0x53685e[_0x4ab2f3['MEYVj']]);}return _0x527044;}static[a93_0x10fe72(0x1e8)](_0x228060={}){const _0x1f5b93=a93_0x10fe72;TestMetadata[_0x1f5b93(0x1dd)](_0x228060);}}function a93_0x5274(){const _0x4e6d88=['pgfBO','27239366AtMXdp','browserName','__platformCaps','browserVersion','oRYsA','184KQooPH','set','599475juWkub','MEYVj','4XxJGYB','688lnhVuy','2153UCGvbM','platform_version','kGMpj','4431606aywAdG','./helpers/metadata','customVariables','setTestMetadata','MbdQz','10845760tPoCbv','379881CaZLPe','os_version','KRFmA','42ZkWCkn','xzScF','2457595PMwrOP','getCurrentPlatform','osVersion','oklZy','soGbY','browser','exports','YYNSI','QmGHp','LJOIq','FJLMK','browser_version'];a93_0x5274=function(){return _0x4e6d88;};return a93_0x5274();}function a93_0x5145(_0x1c1992,_0x485e7d){const _0x527401=a93_0x5274();return a93_0x5145=function(_0x5145b1,_0x579834){_0x5145b1=_0x5145b1-0x1c6;let _0x582991=_0x527401[_0x5145b1];return _0x582991;},a93_0x5145(_0x1c1992,_0x485e7d);}module[a93_0x10fe72(0x1d0)]=BrowserStackSdk;
|