browserstack-node-sdk 1.57.1 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages_pb.d.ts +376 -36
- package/generated/sdk-messages_pb.js +2955 -279
- package/generated/sdk_grpc_pb.d.ts +5 -0
- package/generated/sdk_grpc_pb.js +51 -0
- 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/jasmine/bstack-reporter/customReporter.js +1 -0
- package/src/bin/jasmine/command.js +2 -0
- package/src/bin/jasmine/test.setup.js +1 -0
- package/src/bin/jasmine/testRunMap.js +1 -0
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -0
- package/src/bin/testcafe/command.js +2 -0
- package/src/bin/testcafe/reporter/index.js +1 -0
- package/src/bin/testcafe/reporter/tcUtils.js +1 -0
- package/src/bin/testcafe/session-registry.js +1 -0
- package/src/bin/testcafe/stdout-interceptor.js +1 -0
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -0
- package/src/bin/testcafe/w3c-driver.js +1 -0
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -0
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -0
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -0
- 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/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/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 a149_0x433bfe=a149_0x3e88;function a149_0x3e88(_0x1e0a95,_0x3008e8){const _0x120118=a149_0x1201();return a149_0x3e88=function(_0x3e888d,_0x6fe90a){_0x3e888d=_0x3e888d-0xcc;let _0x3dc629=_0x120118[_0x3e888d];return _0x3dc629;},a149_0x3e88(_0x1e0a95,_0x3008e8);}(function(_0x430e92,_0x10ff7b){const _0x3ea4f5=a149_0x3e88,_0x11f6ce=_0x430e92();while(!![]){try{const _0x1d1ae3=-parseInt(_0x3ea4f5(0x128))/0x1+parseInt(_0x3ea4f5(0x13c))/0x2+-parseInt(_0x3ea4f5(0xe6))/0x3*(-parseInt(_0x3ea4f5(0xe7))/0x4)+parseInt(_0x3ea4f5(0xfa))/0x5+-parseInt(_0x3ea4f5(0x10c))/0x6*(-parseInt(_0x3ea4f5(0xfb))/0x7)+-parseInt(_0x3ea4f5(0xdb))/0x8*(-parseInt(_0x3ea4f5(0xd3))/0x9)+-parseInt(_0x3ea4f5(0x130))/0xa;if(_0x1d1ae3===_0x10ff7b)break;else _0x11f6ce['push'](_0x11f6ce['shift']());}catch(_0x196984){_0x11f6ce['push'](_0x11f6ce['shift']());}}}(a149_0x1201,0x3206f));const os=require('os'),path=require(a149_0x433bfe(0x105)),fs=require('fs'),logger=require(a149_0x433bfe(0x12d))[a149_0x433bfe(0xe4)],helper=require('../helper'),RETRY_TESTS_ON_FAILURE='retryTestsOnFailure',ABORT_BUILD_ON_FAILURE=a149_0x433bfe(0xf6),RUN_PREVIOUSLY_FAILED_FIRST=a149_0x433bfe(0xea),RERUN_PREVIOUSLY_FAILED=a149_0x433bfe(0x142),SKIP_FLAKY_AND_FAILED='skipFlakyandFailed',RUN_SMART_SELECTION=a149_0x433bfe(0x102),a149_0x48e523={};a149_0x48e523['RELEVANT_FIRST']='relevantFirst',a149_0x48e523[a149_0x433bfe(0xee)]='relevantOnly';function a149_0x1201(){const _0x15133=['slice','name','[RunSmartSelection]\x20Error\x20parsing\x20feature\x20branch\x20mapping:\x20','[RunSmartSelection]\x20Invalid\x20source\x20identifier\x20format\x20for\x20\x27','oyump','[RunSmartSelection]\x20Unexpected\x20error\x20processing\x20smart\x20selection\x20source\x20file\x20\x27','runSmartSelection','getRerunPreviouslyFailed','smartSelectionFeatureBranchesCLI','path','testOrchestrationOptions','abort_build_on_failure','\x27\x20must\x20have\x20a\x20length\x20between\x201\x20and\x2030\x20characters.','[RunSmartSelection]\x20Invalid\x20source\x20value\x20in\x20config:\x20','HOgom','parse','21414THWlZo','retry_tests_on_failure','_loadSourceFromJson','\x27\x20is\x20not\x20a\x20.json\x20file.\x20Skipping.','getName',',\x20mode:\x20','enable','exports','[RunSmartSelection]\x20Unexpected\x20value\x20for\x20source\x20given.\x20Defaulting\x20to\x20empty\x20list.','_setRerunPreviouslyFailed','push','vELEA','OJQyn','skipFlakyAndFailed','BROWSERSTACK_TESTHUB_UUID','ZMwJf','source','getInstance','PcTnY','.\x20Defaulting\x20to\x20empty\x20list.','config','getBuildStartData','skip_failing_and_flaky','rerun_previously_failed','\x27:\x20','disable','checkAbortBuildFileExists','getSkipFlakyAndFailed','160374wltTYS','HVYat','stringify','[RunSmartSelection]\x20Failed\x20to\x20set\x20smart\x20selection\x20configuration\x20-\x20enabled:\x20','tmpdir','../logger','RdUYZ','[RunSmartSelection]\x20Error\x20parsing\x20feature\x20branch\x20JSON\x20mapping:\x20','9305210jqNkgL','featureBranch','filter','WKDyU','mode','error','getRunPreviouslyFailedFirst','toLowerCase','call','map','fOfnh','_instance','703824famysI','join','isTrue','debug','[RunSmartSelection]\x20Error\x20parsing\x20JSON\x20from\x20source\x20file\x20\x27','trim','rerunPreviouslyFailed','_setRunSmartSelection','.\x20Error:\x20','abort_build_','getRetryCount','_setRunPreviouslyFailedFirst','\x27\x20does\x20not\x20exist.\x20Skipping.','run_smart_selection','jest','readFileSync','_setSkipFlakyAndFailed','testOrdering','_setTestOrdering','vpHXL','TYESC','RELEVANT_FIRST','getEnabled','MYcom','env','string','WyQFN','appendFileSync','enabled','length','prototype','372348iufQOr','[RunSmartSelection]\x20Feature\x20branch\x20and\x20base\x20branch\x20cannot\x20be\x20the\x20same\x20for\x20source\x20\x27','isRetryEnabled',',\x20source:\x20','testOrderingEnabled','object','maxRetries','url','56cfGOrh','includes','endsWith','ITvoB','indexOf','smartSelectionSource','PHSJU','getSmartSelectionSource','VJWDS','winstonLogger','ZSHwq','6xpSXUF','250360RGexkE','maxFailures','split','runPreviouslyFailedFirst','getSmartSelectionMode','has','baseBranch','RELEVANT_ONLY','isArray','getRunSmartSelection','OKOMv','startsWith','[RunSmartSelection]\x20Setting\x20source\x20to:\x20','getFailureThreshold','warn','abortBuildOnFailure','RCUMY','existsSync','smartSelectionFeatureBranchesENV','1913905gShrqU','287rprjDq'];a149_0x1201=function(){return _0x15133;};return a149_0x1201();}const RUN_SMART_SELECTION_MODE=a149_0x48e523,ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED,RUN_SMART_SELECTION]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set([a149_0x433bfe(0x14a)]);class TestOrdering{constructor(){const _0x1b96a4=a149_0x433bfe;this[_0x1b96a4(0xd0)]=![],this[_0x1b96a4(0xfd)]=null;}[a149_0x433bfe(0x112)](_0x2eeba5){const _0x1953ef=a149_0x433bfe;this['enabled']=!![],this[_0x1953ef(0xfd)]=_0x2eeba5;}[a149_0x433bfe(0x125)](){const _0x2a4526=a149_0x433bfe;this[_0x2a4526(0xd0)]=![],this[_0x2a4526(0xfd)]=null;}['getEnabled'](){return this['enabled'];}[a149_0x433bfe(0x110)](){const _0x18f80d=a149_0x433bfe;return this[_0x18f80d(0xfd)];}}class OrchestrationUtils{static ['_instance']=null;constructor(_0xae3d68){const _0x24d591=a149_0x433bfe,_0x11bfb9={};_0x11bfb9[_0x24d591(0xf7)]=function(_0x12cd02,_0x1fd46d){return _0x12cd02||_0x1fd46d;},_0x11bfb9[_0x24d591(0x11b)]=_0x24d591(0x11c),_0x11bfb9[_0x24d591(0xe5)]=function(_0x1a53d0,_0x944e3c){return _0x1a53d0===_0x944e3c;},_0x11bfb9[_0x24d591(0x100)]=function(_0xc7e2de,_0x4f15ad){return _0xc7e2de===_0x4f15ad;},_0x11bfb9[_0x24d591(0x11e)]=_0x24d591(0xcd);const _0x21c52b=_0x11bfb9;this['runPreviouslyFailedFirst']=![],this[_0x24d591(0x142)]=![],this[_0x24d591(0x119)]=![],this[_0x24d591(0x102)]=![],this['smartSelectionMode']=null,this[_0x24d591(0xe0)]=[],this[_0x24d591(0xf9)]=_0xae3d68&&_0xae3d68[_0x24d591(0xf9)]||'',this[_0x24d591(0x104)]=_0xae3d68&&_0xae3d68[_0x24d591(0x104)]||'',this['testOrdering']=new TestOrdering(),this[_0x24d591(0x120)]=_0x21c52b[_0x24d591(0xf7)](_0xae3d68,{});const _0x1c3fd9=_0xae3d68&&_0xae3d68['testOrchestrationOptions']||{};this[_0x24d591(0x147)](_0x1c3fd9[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x24d591(0x115)](_0x1c3fd9[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x24d591(0x14c)](_0x1c3fd9[SKIP_FLAKY_AND_FAILED]||![]);const _0x4019d0=_0x1c3fd9[RUN_SMART_SELECTION]||{};let _0x36605a=null;if(Object[_0x24d591(0xd2)]['hasOwnProperty'][_0x24d591(0x138)](_0x4019d0,_0x21c52b[_0x24d591(0x11b)])){const _0x37920f=_0x4019d0['source'];if(_0x21c52b[_0x24d591(0xe5)](_0x37920f,null)||_0x21c52b[_0x24d591(0xe5)](_0x37920f,'')||Array[_0x24d591(0xef)](_0x37920f)&&_0x21c52b[_0x24d591(0x100)](_0x37920f[_0x24d591(0xd1)],0x0))_0x36605a=[];else{if(Array[_0x24d591(0xef)](_0x37920f))_0x36605a=_0x37920f;else _0x21c52b['oyump'](typeof _0x37920f,_0x21c52b['PcTnY'])&&_0x37920f[_0x24d591(0x141)]()?_0x36605a=_0x37920f:(logger[_0x24d591(0xf5)](_0x24d591(0x109)+_0x37920f+_0x24d591(0x11f)),_0x36605a=[]);}}this[_0x24d591(0x143)](helper[_0x24d591(0x13e)](_0x4019d0[_0x24d591(0xd0)]),_0x4019d0[_0x24d591(0x134)]||RUN_SMART_SELECTION_MODE[_0x24d591(0x151)],_0x36605a);}static[a149_0x433bfe(0x11d)](_0x16e17f){const _0x305162=a149_0x433bfe;return!OrchestrationUtils[_0x305162(0x13b)]&&_0x16e17f&&(OrchestrationUtils['_instance']=new OrchestrationUtils(_0x16e17f)),OrchestrationUtils[_0x305162(0x13b)];}[a149_0x433bfe(0xd5)](){const _0x473e8f=a149_0x433bfe,_0x206bef=(this[_0x473e8f(0x120)][_0x473e8f(0x106)]||{})[RETRY_TESTS_ON_FAILURE]||{};return helper[_0x473e8f(0x13e)](_0x206bef[_0x473e8f(0xd0)]);}[a149_0x433bfe(0x146)](){const _0x5879b8=a149_0x433bfe,_0x5df2a2=(this[_0x5879b8(0x120)][_0x5879b8(0x106)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0xdb697d=0x0;return this[_0x5879b8(0xd5)](this[_0x5879b8(0x120)])&&(_0xdb697d=_0x5df2a2[_0x5879b8(0xd9)]||0x1),_0xdb697d;}['getOrchestrationData'](){const _0x3ef68c=a149_0x433bfe,_0x329840=this['config'][_0x3ef68c(0x106)]||{},_0x175904={};for(const _0x204b4b in _0x329840){ALLOWED_ORCHESTRATION_KEYS[_0x3ef68c(0xec)](_0x204b4b)&&(_0x175904[_0x204b4b]=_0x329840[_0x204b4b]);}return _0x175904;}[a149_0x433bfe(0x126)](){const _0x355e22=a149_0x433bfe,_0x4fdc69=process[_0x355e22(0xcc)][_0x355e22(0x11a)],_0x3e8872=path['join'](os[_0x355e22(0x12c)](),_0x355e22(0x145)+_0x4fdc69);return fs['existsSync'](_0x3e8872);}['writeFailureToFile'](_0x2cc2db){const _0x2b3ca8=a149_0x433bfe,_0x85e88=process[_0x2b3ca8(0xcc)][_0x2b3ca8(0x11a)],_0x4c6758=path[_0x2b3ca8(0x13d)](os[_0x2b3ca8(0x12c)](),'failed_tests_'+_0x85e88+'.txt');fs[_0x2b3ca8(0xcf)](_0x4c6758,_0x2cc2db+'\x0a');}['isAbortBuildOnFailureSupported'](_0x11f094){const _0x2b2414=a149_0x433bfe,_0x51152a={};_0x51152a[_0x2b2414(0x12e)]=function(_0x30a1b3,_0x52ceea){return _0x30a1b3||_0x52ceea;};const _0x13b7f0=_0x51152a;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x2b2414(0xec)](_0x13b7f0[_0x2b2414(0x12e)](_0x11f094,'')[_0x2b2414(0x137)]());}['isAbortBuildOnFailureEnabled'](){const _0x271595=a149_0x433bfe,_0x316b79=(this[_0x271595(0x120)][_0x271595(0x106)]||{})[ABORT_BUILD_ON_FAILURE]||{};return helper[_0x271595(0x13e)](_0x316b79['enabled']);}[a149_0x433bfe(0xf4)](){const _0xc50673=a149_0x433bfe,_0x54deb1=(this[_0xc50673(0x120)][_0xc50673(0x106)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x54deb1[_0xc50673(0xe8)]||0x5;;}['getRunPreviouslyFailedFirst'](){const _0x219d6d=a149_0x433bfe;return this[_0x219d6d(0xea)];}[a149_0x433bfe(0x147)](_0x11eec7){const _0x1cc7a1=a149_0x433bfe;this[_0x1cc7a1(0xea)]=helper[_0x1cc7a1(0x13e)](_0x11eec7),this[_0x1cc7a1(0x14e)]();}[a149_0x433bfe(0x103)](){return this['rerunPreviouslyFailed'];}['_setRerunPreviouslyFailed'](_0x4a9a38){const _0x116013=a149_0x433bfe;this[_0x116013(0x142)]=helper['isTrue'](_0x4a9a38),this[_0x116013(0x14e)]();}[a149_0x433bfe(0x127)](){const _0x42a5aa=a149_0x433bfe;return this[_0x42a5aa(0x119)];}[a149_0x433bfe(0x14c)](_0x5bdb05){const _0x4f3de4=a149_0x433bfe;this[_0x4f3de4(0x119)]=helper[_0x4f3de4(0x13e)](_0x5bdb05),this[_0x4f3de4(0x14e)]();}[a149_0x433bfe(0xf0)](){const _0x1a28f0=a149_0x433bfe;return this[_0x1a28f0(0x102)];}['getSmartSelectionMode'](){return this['smartSelectionMode'];}[a149_0x433bfe(0xe2)](){const _0x4e37db=a149_0x433bfe;return this[_0x4e37db(0xe0)];}['_setRunSmartSelection'](_0x55e477,_0x3d7955,_0x3d6fae){const _0x5f189a=a149_0x433bfe,_0x2ae0bb={};_0x2ae0bb[_0x5f189a(0x10a)]='3|1|0|4|2',_0x2ae0bb[_0x5f189a(0x153)]=function(_0xcb36f2,_0x4327ad){return _0xcb36f2==_0x4327ad;},_0x2ae0bb[_0x5f189a(0x150)]=function(_0xef30a8,_0x2263e9){return _0xef30a8===_0x2263e9;},_0x2ae0bb[_0x5f189a(0x14f)]=_0x5f189a(0xcd),_0x2ae0bb[_0x5f189a(0xe3)]=_0x5f189a(0x114);const _0xb7c5fe=_0x2ae0bb;try{const _0x25caff=_0xb7c5fe[_0x5f189a(0x10a)][_0x5f189a(0xe9)]('|');let _0x1999e5=0x0;while(!![]){switch(_0x25caff[_0x1999e5++]){case'0':this['smartSelectionMode']=_0x3d7955;continue;case'1':![RUN_SMART_SELECTION_MODE[_0x5f189a(0x151)],RUN_SMART_SELECTION_MODE[_0x5f189a(0xee)]][_0x5f189a(0xdc)](_0x3d7955)&&(logger[_0x5f189a(0xf5)]('[RunSmartSelection]\x20Invalid\x20smart\x20selection\x20mode\x20\x27'+_0x3d7955+'\x27\x20provided.\x20Defaulting\x20to\x20\x27relevantFirst\x27.'),_0x3d7955=RUN_SMART_SELECTION_MODE[_0x5f189a(0x151)]);continue;case'2':this[_0x5f189a(0x14e)]();continue;case'3':this[_0x5f189a(0x102)]=helper[_0x5f189a(0x13e)](_0x55e477);continue;case'4':if(_0xb7c5fe[_0x5f189a(0x153)](_0x3d6fae,null))this[_0x5f189a(0xe0)]=null;else{if(Array[_0x5f189a(0xef)](_0x3d6fae))this[_0x5f189a(0xe0)]=_0x3d6fae,logger['debug'](_0x5f189a(0xf3)+this[_0x5f189a(0xe0)]);else _0xb7c5fe['TYESC'](typeof _0x3d6fae,_0xb7c5fe['vpHXL'])?(this[_0x5f189a(0xe0)]=this[_0x5f189a(0x10e)](_0x3d6fae),logger[_0x5f189a(0x13f)]('[RunSmartSelection]\x20Setting\x20source\x20to:\x20'+JSON[_0x5f189a(0x12a)](this['smartSelectionSource']))):(logger[_0x5f189a(0xf5)](_0xb7c5fe[_0x5f189a(0xe3)]),this[_0x5f189a(0xe0)]=[]);}continue;}break;}}catch(_0x572dfe){logger[_0x5f189a(0x135)](_0x5f189a(0x12b)+_0x55e477+_0x5f189a(0x111)+_0x3d7955+_0x5f189a(0xd6)+_0x3d6fae+_0x5f189a(0x144)+_0x572dfe);}}['_setTestOrdering'](){const _0x4c9db8=a149_0x433bfe;if(this[_0x4c9db8(0x102)])this[_0x4c9db8(0xea)]=![],this[_0x4c9db8(0x142)]=![],this[_0x4c9db8(0x119)]=![],this[_0x4c9db8(0x14d)][_0x4c9db8(0x112)](RUN_SMART_SELECTION);else{if(this['runPreviouslyFailedFirst'])this[_0x4c9db8(0x142)]=![],this[_0x4c9db8(0x119)]=![],this[_0x4c9db8(0x14d)]['enable'](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x4c9db8(0x142)])this[_0x4c9db8(0xea)]=![],this[_0x4c9db8(0x119)]=![],this['testOrdering'][_0x4c9db8(0x112)](RERUN_PREVIOUSLY_FAILED);else this[_0x4c9db8(0x119)]?(this[_0x4c9db8(0xea)]=![],this[_0x4c9db8(0x142)]=![],this['testOrdering'][_0x4c9db8(0x112)](SKIP_FLAKY_AND_FAILED)):this[_0x4c9db8(0x14d)]['disable']();}}}[a149_0x433bfe(0x10e)](_0x476892){const _0x448689=a149_0x433bfe,_0x112bee={'TowWI':function(_0x15b3ad,_0x433463){return _0x15b3ad<=_0x433463;},'WyQFN':function(_0x1ca23a,_0x25d81f){return _0x1ca23a+_0x25d81f;},'WKDyU':function(_0x5c7401,_0x197f75){return _0x5c7401||_0x197f75;},'OKOMv':function(_0x159b22,_0x2769a3){return _0x159b22(_0x2769a3);},'HVYat':function(_0x56b40a,_0x2dc324){return _0x56b40a===_0x2dc324;},'vELEA':_0x448689(0xd8),'fOfnh':'.json','DqxRF':'utf8','xQumI':function(_0x31d7ea,_0x4e3eb3){return _0x31d7ea!==_0x4e3eb3;},'OJQyn':function(_0x1e7a66,_0x1dfd6e){return _0x1e7a66<_0x1dfd6e;},'ITvoB':function(_0xe4a278,_0x1a4263){return _0xe4a278>_0x1a4263;},'PHSJU':function(_0x518383,_0x3f42b3){return _0x518383===_0x3f42b3;}},_0x37505a=[];try{const _0x557b3e=_0x476892[_0x448689(0x141)]();if(!_0x557b3e[_0x448689(0x137)]()[_0x448689(0xdd)](_0x112bee[_0x448689(0x13a)]))return logger['warn']('[RunSmartSelection]\x20Source\x20Config\x20file\x20\x27'+_0x557b3e+_0x448689(0x10f)),[];if(!fs[_0x448689(0xf8)](_0x557b3e))return logger[_0x448689(0xf5)]('[RunSmartSelection]\x20Source\x20Config\x20file\x20\x27'+_0x557b3e+_0x448689(0x148)),[];const _0x84ed45=fs[_0x448689(0x14b)](_0x557b3e,_0x112bee['DqxRF']);let _0x2da21d=[];try{_0x2da21d=JSON['parse'](_0x84ed45);}catch(_0x172a1e){return logger[_0x448689(0x135)](_0x448689(0x140)+_0x476892+_0x448689(0x124)+_0x172a1e),[];}const _0x50ba3e=_0x3800c0=>{const _0x35e82a=_0x448689;if(!_0x3800c0)return{};const _0x11d0f9=_0x112bee['OKOMv'](String,_0x3800c0)[_0x35e82a(0x141)]();if(!_0x11d0f9)return{};if(_0x11d0f9[_0x35e82a(0xf2)]('{')&&_0x11d0f9['endsWith']('}')){try{const _0xef6532=JSON[_0x35e82a(0x10b)](_0x11d0f9);if(_0xef6532&&_0x112bee['HVYat'](typeof _0xef6532,_0x112bee[_0x35e82a(0x117)])&&!Array[_0x35e82a(0xef)](_0xef6532))return _0xef6532;}catch(_0x8a1bc3){logger[_0x35e82a(0x135)](_0x35e82a(0x12f)+_0x8a1bc3['message']);}return{};}try{const _0x1da908=Object['fromEntries'](_0x11d0f9[_0x35e82a(0xe9)](',')[_0x35e82a(0x139)](_0x19cab3=>_0x19cab3[_0x35e82a(0x141)]())['filter'](Boolean)[_0x35e82a(0x139)](_0x5928c4=>{const _0x46ace1=_0x35e82a,_0x5d8706=_0x5928c4[_0x46ace1(0xdf)](':');if(_0x112bee['TowWI'](_0x5d8706,0x0))return null;const _0x351ba3=_0x5928c4[_0x46ace1(0xfc)](0x0,_0x5d8706)[_0x46ace1(0x141)](),_0x2200e9=_0x5928c4[_0x46ace1(0xfc)](_0x112bee[_0x46ace1(0xce)](_0x5d8706,0x1))[_0x46ace1(0x141)]();if(_0x112bee[_0x46ace1(0x133)](!_0x351ba3,!_0x2200e9))return null;return[_0x351ba3,_0x2200e9];})[_0x35e82a(0x132)](Boolean));return _0x1da908;}catch(_0x4ade37){logger[_0x35e82a(0x135)](_0x35e82a(0xfe)+_0x4ade37['message']);}return{};},_0x3049df=_0x112bee[_0x448689(0xf1)](_0x50ba3e,this[_0x448689(0xf9)]),_0x10257f=_0x112bee[_0x448689(0xf1)](_0x50ba3e,this[_0x448689(0x104)]),_0x5ab589=/^[A-Z0-9_]+$/;if(_0x2da21d&&_0x112bee['HVYat'](typeof _0x2da21d,_0x112bee[_0x448689(0x117)])&&!Array[_0x448689(0xef)](_0x2da21d)){for(const [_0x49baa7,_0x493ef0]of Object['entries'](_0x2da21d)){if(_0x112bee['xQumI'](typeof _0x493ef0,_0x112bee[_0x448689(0x117)])||Array[_0x448689(0xef)](_0x493ef0))continue;if(!_0x493ef0?.[_0x448689(0xda)]||_0x112bee['HVYat'](_0x493ef0['url'][_0x448689(0x141)](),'')){logger['warn']('[RunSmartSelection]\x20Repository\x20URL\x20is\x20missing\x20for\x20source\x20\x27'+_0x49baa7+_0x448689(0x124)+JSON['stringify'](_0x493ef0));continue;}if(!_0x5ab589['test'](_0x49baa7)){logger[_0x448689(0xf5)](_0x448689(0xff)+_0x49baa7+'\x27:\x20'+JSON[_0x448689(0x12a)](_0x493ef0));continue;}if(_0x112bee[_0x448689(0x118)](_0x49baa7[_0x448689(0xd1)],0x1)||_0x112bee[_0x448689(0xde)](_0x49baa7[_0x448689(0xd1)],0x1e)){logger[_0x448689(0xf5)]('[RunSmartSelection]\x20Source\x20identifier\x20\x27'+_0x49baa7+_0x448689(0x108));continue;}const _0x2d2ef0={..._0x493ef0};_0x2d2ef0[_0x448689(0xfd)]=_0x49baa7;const _0x4e166f=_0x2d2ef0,_0x1004e0=_0x10257f[_0x49baa7]||_0x3049df[_0x49baa7]||_0x4e166f?.[_0x448689(0x131)]||null;_0x4e166f[_0x448689(0x131)]=_0x1004e0;if(!_0x4e166f[_0x448689(0x131)]||_0x112bee[_0x448689(0x129)](_0x4e166f[_0x448689(0x131)][_0x448689(0x141)](),'')){logger[_0x448689(0xf5)]('[RunSmartSelection]\x20Feature\x20branch\x20not\x20specified\x20for\x20source\x20\x27'+_0x49baa7+_0x448689(0x124)+JSON[_0x448689(0x12a)](_0x4e166f));continue;}if(_0x4e166f?.[_0x448689(0xed)]&&_0x112bee[_0x448689(0xe1)](_0x4e166f[_0x448689(0xed)],_0x4e166f['featureBranch'])){logger[_0x448689(0xf5)](_0x448689(0xd4)+_0x49baa7+_0x448689(0x124)+JSON['stringify'](_0x4e166f));continue;}_0x37505a[_0x448689(0x116)](_0x4e166f);}return _0x37505a;}return _0x2da21d;}catch(_0x251f5d){return logger['error'](_0x448689(0x101)+_0x476892+_0x448689(0x124)+_0x251f5d),[];}}[a149_0x433bfe(0xd7)](){const _0x2db865=a149_0x433bfe;return this['testOrdering'][_0x2db865(0x152)]();}['getTestOrderingName'](){const _0x423a29=a149_0x433bfe;if(this['testOrdering'][_0x423a29(0x152)]())return this[_0x423a29(0x14d)][_0x423a29(0x110)]();return null;}['getTestOrchestrationMetadata'](){const _0x4d85a3=a149_0x433bfe,_0x30251c={'run_smart_selection':{'enabled':this[_0x4d85a3(0xf0)](),'mode':this[_0x4d85a3(0xeb)](),'source':this['getSmartSelectionSource']()}};return _0x30251c;}[a149_0x433bfe(0x121)](){const _0x7d6140=a149_0x433bfe,_0x8f96b0={};return _0x8f96b0[_0x7d6140(0x123)]={'enabled':this[_0x7d6140(0x103)]()},_0x8f96b0['run_previously_failed_first']={'enabled':this[_0x7d6140(0x136)]()},_0x8f96b0[_0x7d6140(0x122)]={'enabled':this['getSkipFlakyAndFailed']()},_0x8f96b0[_0x7d6140(0x149)]={'enabled':this[_0x7d6140(0xf0)](),'mode':this[_0x7d6140(0xeb)]()},this[_0x7d6140(0xd5)]()&&(_0x8f96b0[_0x7d6140(0x10d)]={'enabled':!![],'max_retries':this[_0x7d6140(0x146)]()}),this['isAbortBuildOnFailureEnabled']()&&(_0x8f96b0[_0x7d6140(0x107)]={'enabled':!![],'max_failures':this[_0x7d6140(0xf4)]()}),_0x8f96b0;}}module[a149_0x433bfe(0x113)]=OrchestrationUtils;
|
|
1
|
+
const a164_0x47c5a4=a164_0x418a;(function(_0x5a4c85,_0x11d4a1){const _0x38bdad=a164_0x418a,_0x4ef71b=_0x5a4c85();while(!![]){try{const _0x3d1ceb=-parseInt(_0x38bdad(0x209))/0x1+-parseInt(_0x38bdad(0x273))/0x2*(-parseInt(_0x38bdad(0x24b))/0x3)+parseInt(_0x38bdad(0x203))/0x4*(-parseInt(_0x38bdad(0x25d))/0x5)+-parseInt(_0x38bdad(0x1fc))/0x6+parseInt(_0x38bdad(0x255))/0x7*(-parseInt(_0x38bdad(0x20c))/0x8)+parseInt(_0x38bdad(0x227))/0x9*(parseInt(_0x38bdad(0x224))/0xa)+parseInt(_0x38bdad(0x23c))/0xb*(parseInt(_0x38bdad(0x214))/0xc);if(_0x3d1ceb===_0x11d4a1)break;else _0x4ef71b['push'](_0x4ef71b['shift']());}catch(_0x53296b){_0x4ef71b['push'](_0x4ef71b['shift']());}}}(a164_0x5ee5,0x5d7ab));function a164_0x5ee5(){const _0x17f44d=['smartSelectionMode','getRunSmartSelection','getSmartSelectionMode','2027784VWqIWP','smartSelectionSource',',\x20source:\x20','smartSelectionFeatureBranchesENV','skipFlakyAndFailed','skip_failing_and_flaky','_instance','24OVdewM','trim','string','retryTestsOnFailure','endsWith','umFcB','686231LpLHKR','getRetryCount','length','2861896oGFaJn','[RunSmartSelection]\x20Invalid\x20source\x20identifier\x20format\x20for\x20\x27','_setTestOrdering','test','fromEntries','isRetryEnabled','tmpdir','slice','69960eYgdCb','4|0|2|1|3','_setSkipFlakyAndFailed','map','getRerunPreviouslyFailed','enabled','run_smart_selection',',\x20mode:\x20','\x27:\x20','[RunSmartSelection]\x20Failed\x20to\x20set\x20smart\x20selection\x20configuration\x20-\x20enabled:\x20','isAbortBuildOnFailureEnabled','acfMQ','.\x20Defaulting\x20to\x20empty\x20list.','existsSync','getSkipFlakyAndFailed','RELEVANT_ONLY','6125310LFODkV','utf8','object','9STfHPZ','source','JMKYa','getBuildStartData','rerunPreviouslyFailed','_loadSourceFromJson','FMlXH','failed_tests_','exports','warn','appendFileSync','testOrchestrationOptions','[RunSmartSelection]\x20Unexpected\x20error\x20processing\x20smart\x20selection\x20source\x20file\x20\x27','winstonLogger','[RunSmartSelection]\x20Setting\x20source\x20to:\x20','_setRerunPreviouslyFailed','writeFailureToFile','smartSelectionFeatureBranchesCLI','message','disable','qmuuP','2442YucOpD','getTestOrchestrationMetadata','TyrMo','debug','IknNZ','[RunSmartSelection]\x20Error\x20parsing\x20feature\x20branch\x20JSON\x20mapping:\x20','QIVkV','split','push','_setRunSmartSelection','gaAAL','.txt','toLowerCase','\x27\x20must\x20have\x20a\x20length\x20between\x201\x20and\x2030\x20characters.','../helper','9NTwWvc','relevantOnly','bzCdG','.\x20Error:\x20','.json','RUaUK','testOrdering','config','BROWSERSTACK_TESTHUB_UUID','abortBuildOnFailure','14vQxHek','runPreviouslyFailedFirst','BlAvJ','stringify','isArray','../logger','maxFailures','parse','293985MEgJWy','nPaBd','baseBranch','getSmartSelectionSource','isTrue','TCpSi','getFailureThreshold','hasOwnProperty','path','[RunSmartSelection]\x20Unexpected\x20value\x20for\x20source\x20given.\x20Defaulting\x20to\x20empty\x20list.','CphlT','entries','indexOf','VfGTN','getName','raBNO','runSmartSelection','name','includes','jest','KZOWz','ozaMH','379034EjbfjH','_setRunPreviouslyFailedFirst','isAbortBuildOnFailureSupported','RELEVANT_FIRST','[RunSmartSelection]\x20Invalid\x20smart\x20selection\x20mode\x20\x27','maxRetries','getEnabled','call','ndikz','featureBranch','checkAbortBuildFileExists','getRunPreviouslyFailedFirst','enable','getOrchestrationData','error','startsWith','run_previously_failed_first','[RunSmartSelection]\x20Source\x20identifier\x20\x27','[RunSmartSelection]\x20Error\x20parsing\x20JSON\x20from\x20source\x20file\x20\x27','has','txsFX','\x27\x20provided.\x20Defaulting\x20to\x20\x27relevantFirst\x27.','abort_build_on_failure'];a164_0x5ee5=function(){return _0x17f44d;};return a164_0x5ee5();}function a164_0x418a(_0x152089,_0x36a904){const _0x5ee53a=a164_0x5ee5();return a164_0x418a=function(_0x418a63,_0x46f00c){_0x418a63=_0x418a63-0x1e3;let _0x4681e2=_0x5ee53a[_0x418a63];return _0x4681e2;},a164_0x418a(_0x152089,_0x36a904);}const os=require('os'),path=require(a164_0x47c5a4(0x265)),fs=require('fs'),logger=require(a164_0x47c5a4(0x25a))[a164_0x47c5a4(0x234)],helper=require(a164_0x47c5a4(0x24a)),RETRY_TESTS_ON_FAILURE=a164_0x47c5a4(0x206),ABORT_BUILD_ON_FAILURE=a164_0x47c5a4(0x254),RUN_PREVIOUSLY_FAILED_FIRST=a164_0x47c5a4(0x256),RERUN_PREVIOUSLY_FAILED=a164_0x47c5a4(0x22b),SKIP_FLAKY_AND_FAILED='skipFlakyandFailed',RUN_SMART_SELECTION=a164_0x47c5a4(0x26d),a164_0xd5055f={};a164_0xd5055f[a164_0x47c5a4(0x1e5)]='relevantFirst',a164_0xd5055f['RELEVANT_ONLY']=a164_0x47c5a4(0x24c);const RUN_SMART_SELECTION_MODE=a164_0xd5055f,ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED,RUN_SMART_SELECTION]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set([a164_0x47c5a4(0x270)]);class TestOrdering{constructor(){const _0x5e3228=a164_0x47c5a4;this[_0x5e3228(0x219)]=![],this[_0x5e3228(0x26e)]=null;}[a164_0x47c5a4(0x1ee)](_0x6c76b0){const _0x734d1a=a164_0x47c5a4;this[_0x734d1a(0x219)]=!![],this[_0x734d1a(0x26e)]=_0x6c76b0;}[a164_0x47c5a4(0x23a)](){const _0x7dd927=a164_0x47c5a4;this['enabled']=![],this[_0x7dd927(0x26e)]=null;}['getEnabled'](){return this['enabled'];}[a164_0x47c5a4(0x26b)](){return this['name'];}}class OrchestrationUtils{static ['_instance']=null;constructor(_0x277cb6){const _0x5c5b3b=a164_0x47c5a4,_0x56dcf4={};_0x56dcf4['ZiYzr']=function(_0x5428f7,_0x2c2665){return _0x5428f7||_0x2c2665;},_0x56dcf4[_0x5c5b3b(0x23e)]=_0x5c5b3b(0x228),_0x56dcf4[_0x5c5b3b(0x262)]=function(_0x196c72,_0x205ce9){return _0x196c72===_0x205ce9;},_0x56dcf4[_0x5c5b3b(0x240)]=function(_0x48aa4d,_0x324591){return _0x48aa4d===_0x324591;},_0x56dcf4['umFcB']=_0x5c5b3b(0x205);const _0x4c96cb=_0x56dcf4;this[_0x5c5b3b(0x256)]=![],this[_0x5c5b3b(0x22b)]=![],this[_0x5c5b3b(0x200)]=![],this['runSmartSelection']=![],this[_0x5c5b3b(0x1f9)]=null,this[_0x5c5b3b(0x1fd)]=[],this['smartSelectionFeatureBranchesENV']=_0x277cb6&&_0x277cb6['smartSelectionFeatureBranchesENV']||'',this[_0x5c5b3b(0x238)]=_0x277cb6&&_0x277cb6[_0x5c5b3b(0x238)]||'',this['testOrdering']=new TestOrdering(),this[_0x5c5b3b(0x252)]=_0x4c96cb['ZiYzr'](_0x277cb6,{});const _0x47733d=_0x277cb6&&_0x277cb6['testOrchestrationOptions']||{};this[_0x5c5b3b(0x1e3)](_0x47733d[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x5c5b3b(0x236)](_0x47733d[RERUN_PREVIOUSLY_FAILED]||![]),this['_setSkipFlakyAndFailed'](_0x47733d[SKIP_FLAKY_AND_FAILED]||![]);const _0x58930f=_0x47733d[RUN_SMART_SELECTION]||{};let _0x5b67d2=null;if(Object['prototype'][_0x5c5b3b(0x264)][_0x5c5b3b(0x1e9)](_0x58930f,_0x4c96cb[_0x5c5b3b(0x23e)])){const _0x357a23=_0x58930f[_0x5c5b3b(0x228)];if(_0x4c96cb[_0x5c5b3b(0x262)](_0x357a23,null)||_0x4c96cb[_0x5c5b3b(0x262)](_0x357a23,'')||Array['isArray'](_0x357a23)&&_0x4c96cb['TCpSi'](_0x357a23['length'],0x0))_0x5b67d2=[];else{if(Array['isArray'](_0x357a23))_0x5b67d2=_0x357a23;else _0x4c96cb[_0x5c5b3b(0x240)](typeof _0x357a23,_0x4c96cb[_0x5c5b3b(0x208)])&&_0x357a23['trim']()?_0x5b67d2=_0x357a23:(logger['warn']('[RunSmartSelection]\x20Invalid\x20source\x20value\x20in\x20config:\x20'+_0x357a23+_0x5c5b3b(0x220)),_0x5b67d2=[]);}}this[_0x5c5b3b(0x245)](helper[_0x5c5b3b(0x261)](_0x58930f[_0x5c5b3b(0x219)]),_0x58930f['mode']||RUN_SMART_SELECTION_MODE[_0x5c5b3b(0x1e5)],_0x5b67d2);}static['getInstance'](_0x5c7f81){const _0x1a66a9=a164_0x47c5a4;return!OrchestrationUtils[_0x1a66a9(0x202)]&&_0x5c7f81&&(OrchestrationUtils[_0x1a66a9(0x202)]=new OrchestrationUtils(_0x5c7f81)),OrchestrationUtils[_0x1a66a9(0x202)];}['isRetryEnabled'](){const _0x586ab9=a164_0x47c5a4,_0x49cbc4=(this[_0x586ab9(0x252)][_0x586ab9(0x232)]||{})[RETRY_TESTS_ON_FAILURE]||{};return helper[_0x586ab9(0x261)](_0x49cbc4['enabled']);}[a164_0x47c5a4(0x20a)](){const _0x6752ce=a164_0x47c5a4,_0x48fd5c=(this['config']['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x247a17=0x0;return this[_0x6752ce(0x211)](this[_0x6752ce(0x252)])&&(_0x247a17=_0x48fd5c[_0x6752ce(0x1e7)]||0x1),_0x247a17;}[a164_0x47c5a4(0x1ef)](){const _0x33992a=a164_0x47c5a4,_0x427c48=this[_0x33992a(0x252)][_0x33992a(0x232)]||{},_0x25339c={};for(const _0x349b8f in _0x427c48){ALLOWED_ORCHESTRATION_KEYS['has'](_0x349b8f)&&(_0x25339c[_0x349b8f]=_0x427c48[_0x349b8f]);}return _0x25339c;}[a164_0x47c5a4(0x1ec)](){const _0x1a1fc6=a164_0x47c5a4,_0xafac14=process['env']['BROWSERSTACK_TESTHUB_UUID'],_0x5ad000=path['join'](os[_0x1a1fc6(0x212)](),'abort_build_'+_0xafac14);return fs['existsSync'](_0x5ad000);}[a164_0x47c5a4(0x237)](_0x304f61){const _0x3e1c3a=a164_0x47c5a4,_0x1c9720=process['env'][_0x3e1c3a(0x253)],_0x398e83=path['join'](os[_0x3e1c3a(0x212)](),_0x3e1c3a(0x22e)+_0x1c9720+_0x3e1c3a(0x247));fs[_0x3e1c3a(0x231)](_0x398e83,_0x304f61+'\x0a');}[a164_0x47c5a4(0x1e4)](_0xa8cf75){const _0x2696f3=a164_0x47c5a4,_0x25368f={};_0x25368f[_0x2696f3(0x229)]=function(_0x5f3c4b,_0x10e0e6){return _0x5f3c4b||_0x10e0e6;};const _0x41e874=_0x25368f;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x2696f3(0x1f5)](_0x41e874[_0x2696f3(0x229)](_0xa8cf75,'')[_0x2696f3(0x248)]());}['isAbortBuildOnFailureEnabled'](){const _0x42517c=a164_0x47c5a4,_0x15baf3=(this[_0x42517c(0x252)]['testOrchestrationOptions']||{})[ABORT_BUILD_ON_FAILURE]||{};return helper['isTrue'](_0x15baf3[_0x42517c(0x219)]);}[a164_0x47c5a4(0x263)](){const _0x512b82=a164_0x47c5a4,_0x15e9da=(this[_0x512b82(0x252)][_0x512b82(0x232)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x15e9da[_0x512b82(0x25b)]||0x5;;}[a164_0x47c5a4(0x1ed)](){return this['runPreviouslyFailedFirst'];}['_setRunPreviouslyFailedFirst'](_0x21886c){const _0x4626c7=a164_0x47c5a4;this[_0x4626c7(0x256)]=helper[_0x4626c7(0x261)](_0x21886c),this[_0x4626c7(0x20e)]();}[a164_0x47c5a4(0x218)](){return this['rerunPreviouslyFailed'];}[a164_0x47c5a4(0x236)](_0xf91816){const _0x481426=a164_0x47c5a4;this[_0x481426(0x22b)]=helper[_0x481426(0x261)](_0xf91816),this['_setTestOrdering']();}[a164_0x47c5a4(0x222)](){const _0x47c03c=a164_0x47c5a4;return this[_0x47c03c(0x200)];}[a164_0x47c5a4(0x216)](_0x4ef47c){const _0x32013d=a164_0x47c5a4;this['skipFlakyAndFailed']=helper['isTrue'](_0x4ef47c),this[_0x32013d(0x20e)]();}['getRunSmartSelection'](){const _0x19b4cf=a164_0x47c5a4;return this[_0x19b4cf(0x26d)];}[a164_0x47c5a4(0x1fb)](){const _0x39bfc1=a164_0x47c5a4;return this[_0x39bfc1(0x1f9)];}[a164_0x47c5a4(0x260)](){const _0x379860=a164_0x47c5a4;return this[_0x379860(0x1fd)];}[a164_0x47c5a4(0x245)](_0x36f16a,_0x356e2b,_0x546467){const _0x4e17bd=a164_0x47c5a4,_0x583c28={};_0x583c28[_0x4e17bd(0x257)]=_0x4e17bd(0x215),_0x583c28['ndikz']=function(_0x5b02e8,_0x292700){return _0x5b02e8==_0x292700;},_0x583c28[_0x4e17bd(0x24d)]=function(_0x32665e,_0x1b2e64){return _0x32665e===_0x1b2e64;},_0x583c28['txsFX']=_0x4e17bd(0x205),_0x583c28[_0x4e17bd(0x21f)]=_0x4e17bd(0x266);const _0x2f19f7=_0x583c28;try{const _0x1b02b8=_0x2f19f7[_0x4e17bd(0x257)][_0x4e17bd(0x243)]('|');let _0x164378=0x0;while(!![]){switch(_0x1b02b8[_0x164378++]){case'0':![RUN_SMART_SELECTION_MODE[_0x4e17bd(0x1e5)],RUN_SMART_SELECTION_MODE[_0x4e17bd(0x223)]][_0x4e17bd(0x26f)](_0x356e2b)&&(logger[_0x4e17bd(0x230)](_0x4e17bd(0x1e6)+_0x356e2b+_0x4e17bd(0x1f7)),_0x356e2b=RUN_SMART_SELECTION_MODE[_0x4e17bd(0x1e5)]);continue;case'1':if(_0x2f19f7[_0x4e17bd(0x1ea)](_0x546467,null))this['smartSelectionSource']=null;else{if(Array[_0x4e17bd(0x259)](_0x546467))this['smartSelectionSource']=_0x546467,logger[_0x4e17bd(0x23f)](_0x4e17bd(0x235)+this[_0x4e17bd(0x1fd)]);else _0x2f19f7[_0x4e17bd(0x24d)](typeof _0x546467,_0x2f19f7[_0x4e17bd(0x1f6)])?(this[_0x4e17bd(0x1fd)]=this[_0x4e17bd(0x22c)](_0x546467),logger['debug'](_0x4e17bd(0x235)+JSON[_0x4e17bd(0x258)](this[_0x4e17bd(0x1fd)]))):(logger[_0x4e17bd(0x230)](_0x2f19f7['acfMQ']),this[_0x4e17bd(0x1fd)]=[]);}continue;case'2':this['smartSelectionMode']=_0x356e2b;continue;case'3':this['_setTestOrdering']();continue;case'4':this['runSmartSelection']=helper[_0x4e17bd(0x261)](_0x36f16a);continue;}break;}}catch(_0x2e1f9f){logger['error'](_0x4e17bd(0x21d)+_0x36f16a+_0x4e17bd(0x21b)+_0x356e2b+_0x4e17bd(0x1fe)+_0x546467+_0x4e17bd(0x24e)+_0x2e1f9f);}}['_setTestOrdering'](){const _0x2d7a84=a164_0x47c5a4;if(this[_0x2d7a84(0x26d)])this[_0x2d7a84(0x256)]=![],this[_0x2d7a84(0x22b)]=![],this[_0x2d7a84(0x200)]=![],this['testOrdering'][_0x2d7a84(0x1ee)](RUN_SMART_SELECTION);else{if(this[_0x2d7a84(0x256)])this[_0x2d7a84(0x22b)]=![],this[_0x2d7a84(0x200)]=![],this['testOrdering'][_0x2d7a84(0x1ee)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x2d7a84(0x22b)])this[_0x2d7a84(0x256)]=![],this[_0x2d7a84(0x200)]=![],this['testOrdering'][_0x2d7a84(0x1ee)](RERUN_PREVIOUSLY_FAILED);else this[_0x2d7a84(0x200)]?(this[_0x2d7a84(0x256)]=![],this['rerunPreviouslyFailed']=![],this['testOrdering']['enable'](SKIP_FLAKY_AND_FAILED)):this['testOrdering'][_0x2d7a84(0x23a)]();}}}[a164_0x47c5a4(0x22c)](_0x2ee051){const _0x4160ff=a164_0x47c5a4,_0x8ae8ee={'CphlT':function(_0x15c1fc,_0x34f4db){return _0x15c1fc<=_0x34f4db;},'RUaUK':function(_0x211a2b,_0x49efeb){return _0x211a2b+_0x49efeb;},'FMlXH':function(_0x59ab9e,_0x4cd546){return _0x59ab9e||_0x4cd546;},'qmuuP':function(_0x3de821,_0x3f409f){return _0x3de821(_0x3f409f);},'VfGTN':function(_0x51e462,_0x2954ac){return _0x51e462===_0x2954ac;},'ozaMH':_0x4160ff(0x226),'KZOWz':_0x4160ff(0x24f),'nPaBd':_0x4160ff(0x225),'GklSp':function(_0xaffd7e,_0xfcfc2d){return _0xaffd7e===_0xfcfc2d;},'gaAAL':function(_0x1ffef1,_0x4e89b2){return _0x1ffef1!==_0x4e89b2;},'raBNO':function(_0x52b557,_0x3c3bd7){return _0x52b557<_0x3c3bd7;},'WsWfL':function(_0x1f93e4,_0x1ca62b){return _0x1f93e4>_0x1ca62b;},'QIVkV':function(_0x29c6d5,_0x53cb9a){return _0x29c6d5===_0x53cb9a;},'gQWmr':function(_0x35226b,_0x2af39e){return _0x35226b===_0x2af39e;}},_0xb9d17d=[];try{const _0x3fb873=_0x2ee051[_0x4160ff(0x204)]();if(!_0x3fb873[_0x4160ff(0x248)]()['endsWith'](_0x8ae8ee[_0x4160ff(0x271)]))return logger['warn']('[RunSmartSelection]\x20Source\x20Config\x20file\x20\x27'+_0x3fb873+'\x27\x20is\x20not\x20a\x20.json\x20file.\x20Skipping.'),[];if(!fs[_0x4160ff(0x221)](_0x3fb873))return logger[_0x4160ff(0x230)]('[RunSmartSelection]\x20Source\x20Config\x20file\x20\x27'+_0x3fb873+'\x27\x20does\x20not\x20exist.\x20Skipping.'),[];const _0x3cf10b=fs['readFileSync'](_0x3fb873,_0x8ae8ee[_0x4160ff(0x25e)]);let _0x1e74e1=[];try{_0x1e74e1=JSON[_0x4160ff(0x25c)](_0x3cf10b);}catch(_0x24c7c9){return logger[_0x4160ff(0x1f0)](_0x4160ff(0x1f4)+_0x2ee051+'\x27:\x20'+_0x24c7c9),[];}const _0x486265=_0x10c558=>{const _0x1eb133=_0x4160ff;if(!_0x10c558)return{};const _0x48eeac=_0x8ae8ee[_0x1eb133(0x23b)](String,_0x10c558)[_0x1eb133(0x204)]();if(!_0x48eeac)return{};if(_0x48eeac[_0x1eb133(0x1f1)]('{')&&_0x48eeac[_0x1eb133(0x207)]('}')){try{const _0x2fe202=JSON[_0x1eb133(0x25c)](_0x48eeac);if(_0x2fe202&&_0x8ae8ee[_0x1eb133(0x26a)](typeof _0x2fe202,_0x8ae8ee[_0x1eb133(0x272)])&&!Array['isArray'](_0x2fe202))return _0x2fe202;}catch(_0x19ea0f){logger[_0x1eb133(0x1f0)](_0x1eb133(0x241)+_0x19ea0f[_0x1eb133(0x239)]);}return{};}try{const _0x37308b=Object[_0x1eb133(0x210)](_0x48eeac[_0x1eb133(0x243)](',')[_0x1eb133(0x217)](_0x4df617=>_0x4df617[_0x1eb133(0x204)]())['filter'](Boolean)[_0x1eb133(0x217)](_0x133797=>{const _0x165310=_0x1eb133,_0xb5e5dc=_0x133797[_0x165310(0x269)](':');if(_0x8ae8ee[_0x165310(0x267)](_0xb5e5dc,0x0))return null;const _0x7117b=_0x133797[_0x165310(0x213)](0x0,_0xb5e5dc)[_0x165310(0x204)](),_0x1b938c=_0x133797[_0x165310(0x213)](_0x8ae8ee[_0x165310(0x250)](_0xb5e5dc,0x1))[_0x165310(0x204)]();if(_0x8ae8ee[_0x165310(0x22d)](!_0x7117b,!_0x1b938c))return null;return[_0x7117b,_0x1b938c];})['filter'](Boolean));return _0x37308b;}catch(_0x4bc662){logger['error']('[RunSmartSelection]\x20Error\x20parsing\x20feature\x20branch\x20mapping:\x20'+_0x4bc662['message']);}return{};},_0x5da14d=_0x8ae8ee[_0x4160ff(0x23b)](_0x486265,this[_0x4160ff(0x1ff)]),_0x52da70=_0x8ae8ee[_0x4160ff(0x23b)](_0x486265,this[_0x4160ff(0x238)]),_0x3731c7=/^[A-Z0-9_]+$/;if(_0x1e74e1&&_0x8ae8ee['GklSp'](typeof _0x1e74e1,_0x8ae8ee[_0x4160ff(0x272)])&&!Array[_0x4160ff(0x259)](_0x1e74e1)){for(const [_0xa5d8af,_0x3f9c63]of Object[_0x4160ff(0x268)](_0x1e74e1)){if(_0x8ae8ee[_0x4160ff(0x246)](typeof _0x3f9c63,_0x8ae8ee['ozaMH'])||Array[_0x4160ff(0x259)](_0x3f9c63))continue;if(!_0x3f9c63?.['url']||_0x8ae8ee['VfGTN'](_0x3f9c63['url'][_0x4160ff(0x204)](),'')){logger['warn']('[RunSmartSelection]\x20Repository\x20URL\x20is\x20missing\x20for\x20source\x20\x27'+_0xa5d8af+'\x27:\x20'+JSON[_0x4160ff(0x258)](_0x3f9c63));continue;}if(!_0x3731c7[_0x4160ff(0x20f)](_0xa5d8af)){logger[_0x4160ff(0x230)](_0x4160ff(0x20d)+_0xa5d8af+_0x4160ff(0x21c)+JSON[_0x4160ff(0x258)](_0x3f9c63));continue;}if(_0x8ae8ee[_0x4160ff(0x26c)](_0xa5d8af[_0x4160ff(0x20b)],0x1)||_0x8ae8ee['WsWfL'](_0xa5d8af['length'],0x1e)){logger[_0x4160ff(0x230)](_0x4160ff(0x1f3)+_0xa5d8af+_0x4160ff(0x249));continue;}const _0x26ac82={..._0x3f9c63};_0x26ac82[_0x4160ff(0x26e)]=_0xa5d8af;const _0x199d06=_0x26ac82,_0x49d4e4=_0x52da70[_0xa5d8af]||_0x5da14d[_0xa5d8af]||_0x199d06?.[_0x4160ff(0x1eb)]||null;_0x199d06[_0x4160ff(0x1eb)]=_0x49d4e4;if(!_0x199d06[_0x4160ff(0x1eb)]||_0x8ae8ee[_0x4160ff(0x242)](_0x199d06['featureBranch'][_0x4160ff(0x204)](),'')){logger[_0x4160ff(0x230)]('[RunSmartSelection]\x20Feature\x20branch\x20not\x20specified\x20for\x20source\x20\x27'+_0xa5d8af+'\x27:\x20'+JSON[_0x4160ff(0x258)](_0x199d06));continue;}if(_0x199d06?.[_0x4160ff(0x25f)]&&_0x8ae8ee['gQWmr'](_0x199d06[_0x4160ff(0x25f)],_0x199d06[_0x4160ff(0x1eb)])){logger[_0x4160ff(0x230)]('[RunSmartSelection]\x20Feature\x20branch\x20and\x20base\x20branch\x20cannot\x20be\x20the\x20same\x20for\x20source\x20\x27'+_0xa5d8af+'\x27:\x20'+JSON[_0x4160ff(0x258)](_0x199d06));continue;}_0xb9d17d[_0x4160ff(0x244)](_0x199d06);}return _0xb9d17d;}return _0x1e74e1;}catch(_0x599248){return logger[_0x4160ff(0x1f0)](_0x4160ff(0x233)+_0x2ee051+_0x4160ff(0x21c)+_0x599248),[];}}['testOrderingEnabled'](){const _0x420e33=a164_0x47c5a4;return this[_0x420e33(0x251)][_0x420e33(0x1e8)]();}['getTestOrderingName'](){const _0xb884d5=a164_0x47c5a4;if(this[_0xb884d5(0x251)][_0xb884d5(0x1e8)]())return this[_0xb884d5(0x251)][_0xb884d5(0x26b)]();return null;}[a164_0x47c5a4(0x23d)](){const _0x2e1934=a164_0x47c5a4,_0x3f4a21={'run_smart_selection':{'enabled':this['getRunSmartSelection'](),'mode':this[_0x2e1934(0x1fb)](),'source':this[_0x2e1934(0x260)]()}};return _0x3f4a21;}[a164_0x47c5a4(0x22a)](){const _0x17493f=a164_0x47c5a4,_0x4d98ef={};return _0x4d98ef['rerun_previously_failed']={'enabled':this[_0x17493f(0x218)]()},_0x4d98ef[_0x17493f(0x1f2)]={'enabled':this['getRunPreviouslyFailedFirst']()},_0x4d98ef[_0x17493f(0x201)]={'enabled':this[_0x17493f(0x222)]()},_0x4d98ef[_0x17493f(0x21a)]={'enabled':this[_0x17493f(0x1fa)](),'mode':this[_0x17493f(0x1fb)]()},this[_0x17493f(0x211)]()&&(_0x4d98ef['retry_tests_on_failure']={'enabled':!![],'max_retries':this[_0x17493f(0x20a)]()}),this[_0x17493f(0x21e)]()&&(_0x4d98ef[_0x17493f(0x1f8)]={'enabled':!![],'max_failures':this[_0x17493f(0x263)]()}),_0x4d98ef;}}module[a164_0x47c5a4(0x22f)]=OrchestrationUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a150_0x1adc(){const _0x25902a=[']\x20Sending\x20','1oNpFkx','url','&buildRunIdentifier=','\x20request\x20to\x20','body','failedTestsCount','stack','IPvzs','Content-Type','\x20with\x20headers:\x20','4WXlnOY','7551593HXpyZQ','\x20and\x20token:\x20','POST','19626020OJHRAM','Authorization','../logger','bmGCR','./constants','end','HDzKZ','KwwWN','getFailedTestsCount','&projectName=','pIdKh','Tchtg','error','headers','https',']\x20Error\x20in\x20putFailedTests:\x20','write','1748334TshDYR',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','env','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','RequestUtils','slKPK','PUT',']\x20Error\x20in\x20getFailedTestsCount:\x20','parse','twBeL','status','?buildName=','iIeUd','VXjuY','Test\x20added','qhLkx',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','9776fnSubN','HBxPr','winstonLogger',',\x20buildRunIdentifier=','data','XlTOr','Bearer\x20','WsWcI','stringify','BROWSERSTACK_TESTHUB_JWT',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=',']\x20Sending\x20GET\x20to\x20','2300288Fqcmxd','JRfnD','9239725xbozrc',']\x20Error\x20in\x20postSplitFiles:\x20','debug','EsquG','Failed\x20to\x20parse\x20JSON\x20response:\x20','message','application/json','VqYTF','AzzkL','aqphB','4321923XPqGhN','khIzc','oYRzy','OwZnw','request','6093JawoVD','_request','HtlZX','SuzCe'];a150_0x1adc=function(){return _0x25902a;};return a150_0x1adc();}function a150_0x5a71(_0xa63dbd,_0x845d7b){const _0x1adcd7=a150_0x1adc();return a150_0x5a71=function(_0x5a71a8,_0x36c34b){_0x5a71a8=_0x5a71a8-0x152;let _0x1417ec=_0x1adcd7[_0x5a71a8];return _0x1417ec;},a150_0x5a71(_0xa63dbd,_0x845d7b);}const a150_0xc36140=a150_0x5a71;(function(_0x5a9ed5,_0x54ebb2){const _0x4508e5=a150_0x5a71,_0x1e919e=_0x5a9ed5();while(!![]){try{const _0x5a876a=parseInt(_0x4508e5(0x177))/0x1*(parseInt(_0x4508e5(0x161))/0x2)+-parseInt(_0x4508e5(0x16d))/0x3*(-parseInt(_0x4508e5(0x181))/0x4)+-parseInt(_0x4508e5(0x163))/0x5+parseInt(_0x4508e5(0x196))/0x6+parseInt(_0x4508e5(0x182))/0x7+-parseInt(_0x4508e5(0x155))/0x8*(-parseInt(_0x4508e5(0x172))/0x9)+-parseInt(_0x4508e5(0x185))/0xa;if(_0x5a876a===_0x54ebb2)break;else _0x1e919e['push'](_0x1e919e['shift']());}catch(_0x1dfad8){_0x1e919e['push'](_0x1e919e['shift']());}}}(a150_0x1adc,0xeeb38));const https=require(a150_0xc36140(0x193)),{URL}=require(a150_0xc36140(0x178)),logger=require(a150_0xc36140(0x187))[a150_0xc36140(0x157)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a150_0xc36140(0x189)),TAG=a150_0xc36140(0x19a);class RequestUtils{static async[a150_0xc36140(0x173)](_0x3c763d,_0x1222f6,_0x415c12=null){const _0x5372a4=a150_0xc36140,_0xa035e3={'HBxPr':function(_0x2d7a0f,_0x3bdf81){return _0x2d7a0f(_0x3bdf81);},'LzcJm':_0x5372a4(0x159),'qhLkx':_0x5372a4(0x18a),'KwwWN':'error','WsWcI':function(_0x5400c8,_0x1bda50){return _0x5400c8===_0x1bda50;},'GTEXE':'POST','AzzkL':_0x5372a4(0x19c),'Tchtg':_0x5372a4(0x169),'PCBgS':function(_0xd09cd3,_0x158fa0){return _0xd09cd3+_0x158fa0;}},_0x3d5031=process[_0x5372a4(0x198)][_0x5372a4(0x15e)]||'',_0x37295f={};_0x37295f[_0x5372a4(0x186)]=_0x5372a4(0x15b)+_0x3d5031,_0x37295f[_0x5372a4(0x17f)]=_0xa035e3[_0x5372a4(0x190)];const _0x3a5eff=_0x37295f,{hostname:_0x4e1163,pathname:_0x30807a,search:_0x125b92}=new URL(_0x1222f6),_0x19b104={'hostname':_0x4e1163,'path':_0xa035e3['PCBgS'](_0x30807a,_0x125b92),'method':_0x3c763d,'headers':_0x3a5eff};return logger[_0x5372a4(0x165)]('['+TAG+_0x5372a4(0x176)+_0x3c763d+_0x5372a4(0x17a)+_0x1222f6+_0x5372a4(0x180)+JSON[_0x5372a4(0x15d)](_0x3a5eff)+'\x20and\x20data:\x20'+JSON[_0x5372a4(0x15d)](_0x415c12)+_0x5372a4(0x183)+_0x3d5031),new Promise((_0x4d7f93,_0x1d4b87)=>{const _0x2c038e=_0x5372a4,_0x3563dc={'aqphB':function(_0x24c7e9,_0x3d57ff){const _0x1323bd=a150_0x5a71;return _0xa035e3[_0x1323bd(0x156)](_0x24c7e9,_0x3d57ff);},'IPvzs':_0xa035e3['LzcJm'],'QQyIJ':_0xa035e3[_0x2c038e(0x153)]},_0x21acab=https[_0x2c038e(0x171)](_0x19b104,_0x5d8e3b=>{const _0x2460eb=_0x2c038e,_0x4db5d4={'dainj':function(_0x3df26d,_0x30ba6d){const _0x3c7d75=a150_0x5a71;return _0x3563dc[_0x3c7d75(0x16c)](_0x3df26d,_0x30ba6d);},'rofrl':function(_0x2f2ac8,_0x327897){const _0x5273c0=a150_0x5a71;return _0x3563dc[_0x5273c0(0x16c)](_0x2f2ac8,_0x327897);}};let _0x51a4fa='';_0x5d8e3b['on'](_0x3563dc[_0x2460eb(0x17e)],_0x2efa5b=>{_0x51a4fa+=_0x2efa5b;}),_0x5d8e3b['on'](_0x3563dc['QQyIJ'],()=>{const _0x2ff818=_0x2460eb;try{const _0x37d7e7=_0x51a4fa?JSON[_0x2ff818(0x19e)](_0x51a4fa):{},_0x101b7e={};_0x101b7e[_0x2ff818(0x1a0)]=_0x5d8e3b['statusCode'],_0x101b7e[_0x2ff818(0x17b)]=_0x37d7e7,_0x101b7e['headers']=_0x5d8e3b[_0x2ff818(0x192)],_0x4db5d4['dainj'](_0x4d7f93,_0x101b7e);}catch(_0x37bab3){logger[_0x2ff818(0x191)]('['+TAG+_0x2ff818(0x154)+_0x51a4fa+'\x20-\x20'+_0x37bab3['message']+'\x20'+_0x37bab3[_0x2ff818(0x17d)]),_0x4db5d4['rofrl'](_0x1d4b87,new Error(_0x2ff818(0x167)+_0x37bab3[_0x2ff818(0x168)]));}});});_0x21acab['on'](_0xa035e3[_0x2c038e(0x18c)],_0x30dc55=>{const _0x83c0b4=_0x2c038e;logger[_0x83c0b4(0x191)]('['+TAG+']\x20Request\x20failed\x20for\x20'+_0x3c763d+'\x20'+_0x1222f6+':\x20'+_0x30dc55[_0x83c0b4(0x168)]+'\x20'+_0x30dc55[_0x83c0b4(0x17d)]),_0x3563dc[_0x83c0b4(0x16c)](_0x1d4b87,_0x30dc55);}),_0x415c12&&(_0xa035e3[_0x2c038e(0x15c)](_0x3c763d,_0xa035e3['GTEXE'])||_0xa035e3[_0x2c038e(0x15c)](_0x3c763d,_0xa035e3[_0x2c038e(0x16b)]))&&_0x21acab[_0x2c038e(0x195)](JSON[_0x2c038e(0x15d)](_0x415c12)),_0x21acab['end']();});}static async['postSplitFiles'](_0x12b91c){const _0x1a55dd=a150_0xc36140,_0x35b2a3={};_0x35b2a3[_0x1a55dd(0x16f)]=_0x1a55dd(0x184),_0x35b2a3[_0x1a55dd(0x162)]=function(_0x4cbe6d,_0x51944b){return _0x4cbe6d===_0x51944b;};const _0x179825=_0x35b2a3,_0x36f912=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x3d4815=await this[_0x1a55dd(0x173)](_0x179825[_0x1a55dd(0x16f)],_0x36f912,_0x12b91c);return _0x179825['JRfnD'](_0x3d4815[_0x1a55dd(0x1a0)],0xc8)?logger['debug']('['+TAG+_0x1a55dd(0x197)+_0x36f912):logger[_0x1a55dd(0x191)]('['+TAG+']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20'+_0x36f912+':\x20'+JSON[_0x1a55dd(0x15d)](_0x3d4815['body'])+',\x20status:\x20'+_0x3d4815['status']),_0x3d4815;}catch(_0x39df72){logger['error']('['+TAG+_0x1a55dd(0x164)+_0x39df72[_0x1a55dd(0x168)]+'\x20'+_0x39df72[_0x1a55dd(0x17d)]);const _0x32b8e0={};_0x32b8e0[_0x1a55dd(0x168)]=_0x39df72[_0x1a55dd(0x168)];const _0x1334b8={};return _0x1334b8[_0x1a55dd(0x1a0)]=0x1f4,_0x1334b8[_0x1a55dd(0x17b)]=_0x32b8e0,_0x1334b8;}}static async['getSplitFiles'](_0x1acdc5){const _0x2c2aac=a150_0xc36140,_0xb99e86={};_0xb99e86[_0x2c2aac(0x170)]='GET',_0xb99e86[_0x2c2aac(0x174)]=function(_0xe58f26,_0x5ac33e){return _0xe58f26===_0x5ac33e;};const _0xb03fac=_0xb99e86;try{const _0x442059=await this[_0x2c2aac(0x173)](_0xb03fac['OwZnw'],_0x1acdc5);if(_0xb03fac[_0x2c2aac(0x174)](_0x442059[_0x2c2aac(0x1a0)],0xc8))return _0x442059['body'];return{};}catch(_0x30f4c6){return logger[_0x2c2aac(0x191)]('['+TAG+_0x2c2aac(0x194)+_0x30f4c6[_0x2c2aac(0x168)]+'\x20'+_0x30f4c6[_0x2c2aac(0x17d)]),{};}}static async['putFailedTests'](_0x6e2783){const _0x2fa9b8=a150_0xc36140,_0x257dab={};_0x257dab[_0x2fa9b8(0x1a2)]=_0x2fa9b8(0x19c),_0x257dab[_0x2fa9b8(0x188)]=function(_0xaa522a,_0x531dd1){return _0xaa522a===_0x531dd1;},_0x257dab[_0x2fa9b8(0x15a)]=function(_0x52e6ac,_0x4b3428){return _0x52e6ac===_0x4b3428;},_0x257dab[_0x2fa9b8(0x18f)]=_0x2fa9b8(0x152);const _0x2f1571=_0x257dab,_0x49c05c=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x479fec=await this[_0x2fa9b8(0x173)](_0x2f1571[_0x2fa9b8(0x1a2)],_0x49c05c,_0x6e2783);if(_0x2f1571['bmGCR'](_0x479fec[_0x2fa9b8(0x1a0)],0xc8)&&_0x479fec[_0x2fa9b8(0x17b)]&&_0x2f1571[_0x2fa9b8(0x15a)](_0x479fec[_0x2fa9b8(0x17b)]['message'],_0x2f1571[_0x2fa9b8(0x18f)]))return!![];return![];}catch(_0x57a122){logger[_0x2fa9b8(0x191)]('['+TAG+_0x2fa9b8(0x194)+_0x57a122['message']+'\x20'+_0x57a122['stack']);const _0x40cc6e={};_0x40cc6e[_0x2fa9b8(0x168)]=_0x57a122[_0x2fa9b8(0x168)];const _0x2e793a={};return _0x2e793a[_0x2fa9b8(0x1a0)]=0x1f4,_0x2e793a[_0x2fa9b8(0x17b)]=_0x40cc6e,_0x2e793a;}}static async[a150_0xc36140(0x18d)](_0x349966){const _0x1c6bba=a150_0xc36140,_0xf8c7c0={'twBeL':function(_0x2bbf16,_0x1abee9){return _0x2bbf16||_0x1abee9;},'EsquG':_0x1c6bba(0x199),'HDzKZ':function(_0x5d3d34,_0x27978e){return _0x5d3d34(_0x27978e);},'VqYTF':function(_0x328280,_0x30aa78){return _0x328280(_0x30aa78);},'slKPK':'GET','SuzCe':function(_0x24f891,_0x30c36c){return _0x24f891===_0x30c36c;},'VXjuY':function(_0x5552d9,_0x4a2e9a){return _0x5552d9!==_0x4a2e9a;},'khIzc':'undefined'},{buildName:_0x3fc363,buildRunIdentifier:_0x4d7dad,projectName:_0x16fc0b}=_0x349966;if(_0xf8c7c0[_0x1c6bba(0x19f)](!_0x3fc363,!_0x4d7dad)||!_0x16fc0b){logger['error']('['+TAG+_0x1c6bba(0x15f)+_0x3fc363+_0x1c6bba(0x158)+_0x4d7dad+',\x20projectName='+_0x16fc0b);const _0x4ef216={};_0x4ef216[_0x1c6bba(0x168)]=_0xf8c7c0[_0x1c6bba(0x166)];const _0x4852c0={};return _0x4852c0[_0x1c6bba(0x1a0)]=0x190,_0x4852c0[_0x1c6bba(0x17b)]=_0x4ef216,_0x4852c0;}const _0x49c46a=_0x1c6bba(0x1a1)+_0xf8c7c0[_0x1c6bba(0x18b)](encodeURIComponent,_0x3fc363)+_0x1c6bba(0x179)+_0xf8c7c0[_0x1c6bba(0x16a)](encodeURIComponent,_0x4d7dad)+_0x1c6bba(0x18e)+_0xf8c7c0[_0x1c6bba(0x18b)](encodeURIComponent,_0x16fc0b),_0x6c4352=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x49c46a;try{logger[_0x1c6bba(0x165)]('['+TAG+_0x1c6bba(0x160)+_0x6c4352);let _0x4c2f38=0x0;const _0x868494=await this[_0x1c6bba(0x173)](_0xf8c7c0[_0x1c6bba(0x19b)],_0x6c4352);return _0xf8c7c0[_0x1c6bba(0x175)](_0x868494[_0x1c6bba(0x1a0)],0xc8)&&_0x868494[_0x1c6bba(0x17b)]&&_0xf8c7c0[_0x1c6bba(0x1a3)](typeof _0x868494[_0x1c6bba(0x17b)]['failedTestsCount'],_0xf8c7c0[_0x1c6bba(0x16e)])&&(_0x4c2f38=_0xf8c7c0[_0x1c6bba(0x16a)](Number,_0x868494[_0x1c6bba(0x17b)][_0x1c6bba(0x17c)])),_0x4c2f38;}catch(_0x1ce1ef){logger[_0x1c6bba(0x191)]('['+TAG+_0x1c6bba(0x19d)+_0x1ce1ef[_0x1c6bba(0x168)]+'\x20'+_0x1ce1ef[_0x1c6bba(0x17d)]);const _0x25f3e2={};_0x25f3e2[_0x1c6bba(0x168)]=_0x1ce1ef['message'];const _0x577fd9={};return _0x577fd9['status']=0x1f4,_0x577fd9[_0x1c6bba(0x17b)]=_0x25f3e2,_0x577fd9;}}}module['exports']=RequestUtils;
|
|
1
|
+
const a165_0x20d6cb=a165_0x37ba;function a165_0x37ba(_0x98a1de,_0x3ea6ef){const _0x5a3ef7=a165_0x5a3e();return a165_0x37ba=function(_0x37ba34,_0x8a104e){_0x37ba34=_0x37ba34-0x8d;let _0x411a4b=_0x5a3ef7[_0x37ba34];return _0x411a4b;},a165_0x37ba(_0x98a1de,_0x3ea6ef);}(function(_0x42b1f4,_0x2ae9e6){const _0x1755c8=a165_0x37ba,_0x2714cf=_0x42b1f4();while(!![]){try{const _0x39488a=-parseInt(_0x1755c8(0xa9))/0x1*(parseInt(_0x1755c8(0x98))/0x2)+-parseInt(_0x1755c8(0xbc))/0x3+-parseInt(_0x1755c8(0xb0))/0x4*(-parseInt(_0x1755c8(0xcf))/0x5)+-parseInt(_0x1755c8(0xb2))/0x6+parseInt(_0x1755c8(0x94))/0x7*(-parseInt(_0x1755c8(0xc7))/0x8)+-parseInt(_0x1755c8(0x91))/0x9+-parseInt(_0x1755c8(0x95))/0xa*(-parseInt(_0x1755c8(0xd7))/0xb);if(_0x39488a===_0x2ae9e6)break;else _0x2714cf['push'](_0x2714cf['shift']());}catch(_0x36388e){_0x2714cf['push'](_0x2714cf['shift']());}}}(a165_0x5a3e,0xa756c));function a165_0x5a3e(){const _0x7faa9a=['DzkXk','zSDin','failedTestsCount','WOAKE','lEtUh','getFailedTestsCount','exports','isrwF',',\x20status:\x20','end','cblFC','_request','3805reHvCv','YAGlP','body','status','WXNrW','ydJoZ',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','16QOiAuq',',\x20buildRunIdentifier=','1002834rMuRbH','getSplitFiles','Authorization','stack','RequestUtils','headers','debug','ybrSQ',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=',']\x20Sending\x20GET\x20to\x20','3891849LdUkVm','\x20request\x20to\x20','winstonLogger','&buildRunIdentifier=','PUT','YbRjE','xAPNg','GNFdA','message',',\x20projectName=','application/json','108504OOWGUa','undefined','MAfye','meKKy','POST',']\x20Error\x20in\x20getFailedTestsCount:\x20','oOXqw','../logger','1453095lklTDU','request','parse','Test\x20added','data','https',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','Sukyl','26938714YPnXOf','putFailedTests','ExInw','&projectName=','error','\x20and\x20data:\x20','Failed\x20to\x20parse\x20JSON\x20response:\x20',']\x20Error\x20in\x20putFailedTests:\x20','cLVkq','5358204bzZxpK','env','\x20-\x20','343DoRuUA','10aKkdsY','HpCUh','\x20with\x20headers:\x20','106zKUfDg','PwPPW','stringify','VrLGL','Content-Type'];a165_0x5a3e=function(){return _0x7faa9a;};return a165_0x5a3e();}const https=require(a165_0x20d6cb(0xd4)),{URL}=require('url'),logger=require(a165_0x20d6cb(0xce))[a165_0x20d6cb(0xbe)],{maskHeaders}=require(a165_0x20d6cb(0xce)),{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require('./constants'),TAG=a165_0x20d6cb(0xb6);class RequestUtils{static async[a165_0x20d6cb(0xa8)](_0x539411,_0x5be3e8,_0x1c8c18=null){const _0x108807=a165_0x20d6cb,_0x48a9d5={'ydJoZ':function(_0x21ba2b,_0x561ae0){return _0x21ba2b(_0x561ae0);},'fPRTf':function(_0x42a1db,_0x60c366){return _0x42a1db(_0x60c366);},'lEtUh':_0x108807(0xd3),'DzkXk':_0x108807(0xa6),'PxJJd':'error','PwPPW':function(_0x551161,_0x208763){return _0x551161===_0x208763;},'zSDin':_0x108807(0xcb),'YAGlP':'PUT','oiHuV':_0x108807(0xc6),'xAPNg':function(_0x59c146,_0x30bed5){return _0x59c146+_0x30bed5;},'zwMfx':function(_0x4be01c,_0x5e1dec){return _0x4be01c(_0x5e1dec);}},_0x4aeef0=process[_0x108807(0x92)]['BROWSERSTACK_TESTHUB_JWT']||'',_0x2ffc96={};_0x2ffc96[_0x108807(0xb4)]='Bearer\x20'+_0x4aeef0,_0x2ffc96[_0x108807(0x9c)]=_0x48a9d5['oiHuV'];const _0x489c5d=_0x2ffc96,{hostname:_0x235308,pathname:_0x3d291e,search:_0x1aea65}=new URL(_0x5be3e8),_0x277d62={'hostname':_0x235308,'path':_0x48a9d5[_0x108807(0xc2)](_0x3d291e,_0x1aea65),'method':_0x539411,'headers':_0x489c5d};return logger[_0x108807(0xb8)]('['+TAG+']\x20Sending\x20'+_0x539411+_0x108807(0xbd)+_0x5be3e8+_0x108807(0x97)+JSON['stringify'](_0x48a9d5['zwMfx'](maskHeaders,_0x489c5d))+_0x108807(0x8d)+JSON['stringify'](_0x1c8c18)),new Promise((_0x5620a4,_0x7beae4)=>{const _0x4bc466=_0x108807,_0x54acac={'ybrSQ':function(_0x3de158,_0x2729b9){return _0x48a9d5['fPRTf'](_0x3de158,_0x2729b9);},'tKcVW':_0x48a9d5[_0x4bc466(0xa1)],'YbRjE':_0x48a9d5[_0x4bc466(0x9d)]},_0x31b1d7=https[_0x4bc466(0xd0)](_0x277d62,_0x3ebcae=>{const _0x3350c4=_0x4bc466;let _0xa1978a='';_0x3ebcae['on'](_0x54acac['tKcVW'],_0x19bdb7=>{_0xa1978a+=_0x19bdb7;}),_0x3ebcae['on'](_0x54acac[_0x3350c4(0xc1)],()=>{const _0x15f05e=_0x3350c4;try{const _0x146ba9=_0xa1978a?JSON[_0x15f05e(0xd1)](_0xa1978a):{},_0xe5a45c={};_0xe5a45c[_0x15f05e(0xac)]=_0x3ebcae['statusCode'],_0xe5a45c[_0x15f05e(0xab)]=_0x146ba9,_0xe5a45c[_0x15f05e(0xb7)]=_0x3ebcae[_0x15f05e(0xb7)],_0x54acac[_0x15f05e(0xb9)](_0x5620a4,_0xe5a45c);}catch(_0x4d1f7f){logger[_0x15f05e(0xdb)]('['+TAG+_0x15f05e(0xd5)+_0xa1978a+_0x15f05e(0x93)+_0x4d1f7f['message']+'\x20'+_0x4d1f7f['stack']),_0x54acac[_0x15f05e(0xb9)](_0x7beae4,new Error(_0x15f05e(0x8e)+_0x4d1f7f[_0x15f05e(0xc4)]));}});});_0x31b1d7['on'](_0x48a9d5['PxJJd'],_0x289380=>{const _0x2a1661=_0x4bc466;logger[_0x2a1661(0xdb)]('['+TAG+']\x20Request\x20failed\x20for\x20'+_0x539411+'\x20'+_0x5be3e8+':\x20'+_0x289380[_0x2a1661(0xc4)]+'\x20'+_0x289380[_0x2a1661(0xb5)]),_0x48a9d5[_0x2a1661(0xae)](_0x7beae4,_0x289380);}),_0x1c8c18&&(_0x48a9d5[_0x4bc466(0x99)](_0x539411,_0x48a9d5[_0x4bc466(0x9e)])||_0x48a9d5[_0x4bc466(0x99)](_0x539411,_0x48a9d5[_0x4bc466(0xaa)]))&&_0x31b1d7['write'](JSON[_0x4bc466(0x9a)](_0x1c8c18)),_0x31b1d7['end']();});}static async['postSplitFiles'](_0x32c1b7){const _0x51dd90=a165_0x20d6cb,_0x1e5f04={};_0x1e5f04[_0x51dd90(0xa0)]='POST',_0x1e5f04[_0x51dd90(0x90)]=function(_0x134054,_0x54c6e7){return _0x134054===_0x54c6e7;};const _0x9fa0c4=_0x1e5f04,_0x2a2fc4=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x4b239b=await this[_0x51dd90(0xa8)](_0x9fa0c4['WOAKE'],_0x2a2fc4,_0x32c1b7);return _0x9fa0c4['cLVkq'](_0x4b239b['status'],0xc8)?logger[_0x51dd90(0xb8)]('['+TAG+']\x20Successfully\x20posted\x20split\x20files\x20to\x20'+_0x2a2fc4):logger[_0x51dd90(0xdb)]('['+TAG+_0x51dd90(0xaf)+_0x2a2fc4+':\x20'+JSON[_0x51dd90(0x9a)](_0x4b239b[_0x51dd90(0xab)])+_0x51dd90(0xa5)+_0x4b239b[_0x51dd90(0xac)]),_0x4b239b;}catch(_0x273678){logger[_0x51dd90(0xdb)]('['+TAG+']\x20Error\x20in\x20postSplitFiles:\x20'+_0x273678[_0x51dd90(0xc4)]+'\x20'+_0x273678[_0x51dd90(0xb5)]);const _0x424dab={};_0x424dab[_0x51dd90(0xc4)]=_0x273678[_0x51dd90(0xc4)];const _0x3d462a={};return _0x3d462a[_0x51dd90(0xac)]=0x1f4,_0x3d462a[_0x51dd90(0xab)]=_0x424dab,_0x3d462a;}}static async[a165_0x20d6cb(0xb3)](_0x472427){const _0x58285d=a165_0x20d6cb,_0x1da294={};_0x1da294[_0x58285d(0xc9)]='GET',_0x1da294[_0x58285d(0xa4)]=function(_0x216403,_0x453225){return _0x216403===_0x453225;};const _0x17bada=_0x1da294;try{const _0x1cd391=await this[_0x58285d(0xa8)](_0x17bada[_0x58285d(0xc9)],_0x472427);if(_0x17bada['isrwF'](_0x1cd391[_0x58285d(0xac)],0xc8))return _0x1cd391[_0x58285d(0xab)];return{};}catch(_0x452e3a){return logger[_0x58285d(0xdb)]('['+TAG+_0x58285d(0x8f)+_0x452e3a[_0x58285d(0xc4)]+'\x20'+_0x452e3a[_0x58285d(0xb5)]),{};}}static async[a165_0x20d6cb(0xd8)](_0x55619e){const _0x35e37d=a165_0x20d6cb,_0x1a7b88={};_0x1a7b88[_0x35e37d(0xca)]=_0x35e37d(0xc0),_0x1a7b88['VrLGL']=function(_0x3dea67,_0x59c947){return _0x3dea67===_0x59c947;},_0x1a7b88[_0x35e37d(0xcd)]=_0x35e37d(0xd2);const _0xf0a21e=_0x1a7b88,_0x569f14=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x244fd5=await this[_0x35e37d(0xa8)](_0xf0a21e[_0x35e37d(0xca)],_0x569f14,_0x55619e);if(_0xf0a21e['VrLGL'](_0x244fd5['status'],0xc8)&&_0x244fd5[_0x35e37d(0xab)]&&_0xf0a21e[_0x35e37d(0x9b)](_0x244fd5['body'][_0x35e37d(0xc4)],_0xf0a21e[_0x35e37d(0xcd)]))return!![];return![];}catch(_0x580208){logger[_0x35e37d(0xdb)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x580208[_0x35e37d(0xc4)]+'\x20'+_0x580208[_0x35e37d(0xb5)]);const _0x1d0cee={};_0x1d0cee[_0x35e37d(0xc4)]=_0x580208[_0x35e37d(0xc4)];const _0x572400={};return _0x572400[_0x35e37d(0xac)]=0x1f4,_0x572400[_0x35e37d(0xab)]=_0x1d0cee,_0x572400;}}static async[a165_0x20d6cb(0xa2)](_0x5eeb92){const _0x62345d=a165_0x20d6cb,_0x6850b0={'PUkOs':function(_0x5d62ce,_0x595696){return _0x5d62ce||_0x595696;},'AONsZ':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','ExInw':function(_0x37ff84,_0x1bc1f3){return _0x37ff84(_0x1bc1f3);},'cblFC':function(_0x14b566,_0x1dd8ce){return _0x14b566(_0x1dd8ce);},'HpCUh':'GET','Sukyl':function(_0x412d3a,_0x367bad){return _0x412d3a===_0x367bad;},'WXNrW':function(_0x407e98,_0x1d81c5){return _0x407e98!==_0x1d81c5;},'GNFdA':_0x62345d(0xc8)},{buildName:_0x47a1fd,buildRunIdentifier:_0x39ff26,projectName:_0x276edd}=_0x5eeb92;if(_0x6850b0['PUkOs'](!_0x47a1fd,!_0x39ff26)||!_0x276edd){logger[_0x62345d(0xdb)]('['+TAG+_0x62345d(0xba)+_0x47a1fd+_0x62345d(0xb1)+_0x39ff26+_0x62345d(0xc5)+_0x276edd);const _0x129c24={};_0x129c24['message']=_0x6850b0['AONsZ'];const _0x59f4c6={};return _0x59f4c6['status']=0x190,_0x59f4c6[_0x62345d(0xab)]=_0x129c24,_0x59f4c6;}const _0x90c676='?buildName='+_0x6850b0['ExInw'](encodeURIComponent,_0x47a1fd)+_0x62345d(0xbf)+_0x6850b0[_0x62345d(0xd9)](encodeURIComponent,_0x39ff26)+_0x62345d(0xda)+_0x6850b0[_0x62345d(0xa7)](encodeURIComponent,_0x276edd),_0x270dbc=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x90c676;try{logger['debug']('['+TAG+_0x62345d(0xbb)+_0x270dbc);let _0xec13d2=0x0;const _0x3d85b0=await this['_request'](_0x6850b0[_0x62345d(0x96)],_0x270dbc);return _0x6850b0[_0x62345d(0xd6)](_0x3d85b0[_0x62345d(0xac)],0xc8)&&_0x3d85b0[_0x62345d(0xab)]&&_0x6850b0[_0x62345d(0xad)](typeof _0x3d85b0[_0x62345d(0xab)][_0x62345d(0x9f)],_0x6850b0[_0x62345d(0xc3)])&&(_0xec13d2=_0x6850b0[_0x62345d(0xa7)](Number,_0x3d85b0[_0x62345d(0xab)][_0x62345d(0x9f)])),_0xec13d2;}catch(_0x182943){logger['error']('['+TAG+_0x62345d(0xcc)+_0x182943[_0x62345d(0xc4)]+'\x20'+_0x182943[_0x62345d(0xb5)]);const _0x350c5f={};_0x350c5f[_0x62345d(0xc4)]=_0x182943[_0x62345d(0xc4)];const _0x4c20c1={};return _0x4c20c1[_0x62345d(0xac)]=0x1f4,_0x4c20c1[_0x62345d(0xab)]=_0x350c5f,_0x4c20c1;}}}module[a165_0x20d6cb(0xa3)]=RequestUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a151_0x4012f4=a151_0xf35c;(function(_0x201e59,_0x207606){const _0xbf08ea=a151_0xf35c,_0x3b6592=_0x201e59();while(!![]){try{const _0x2a93a7=parseInt(_0xbf08ea(0x238))/0x1+parseInt(_0xbf08ea(0x231))/0x2*(-parseInt(_0xbf08ea(0x28e))/0x3)+-parseInt(_0xbf08ea(0x241))/0x4*(parseInt(_0xbf08ea(0x262))/0x5)+-parseInt(_0xbf08ea(0x224))/0x6*(-parseInt(_0xbf08ea(0x20c))/0x7)+parseInt(_0xbf08ea(0x27a))/0x8*(-parseInt(_0xbf08ea(0x1ee))/0x9)+parseInt(_0xbf08ea(0x235))/0xa*(-parseInt(_0xbf08ea(0x23d))/0xb)+parseInt(_0xbf08ea(0x27e))/0xc;if(_0x2a93a7===_0x207606)break;else _0x3b6592['push'](_0x3b6592['shift']());}catch(_0x517479){_0x3b6592['push'](_0x3b6592['shift']());}}}(a151_0x302d,0x65da2));function a151_0xf35c(_0x520852,_0x3288b4){const _0x302dcf=a151_0x302d();return a151_0xf35c=function(_0xf35cb1,_0x57f0ab){_0xf35cb1=_0xf35cb1-0x1ed;let _0x12b99c=_0x302dcf[_0xf35cb1];return _0x12b99c;},a151_0xf35c(_0x520852,_0x3288b4);}const logger=require(a151_0x4012f4(0x257))[a151_0x4012f4(0x242)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath,isYarnPnP}=require(a151_0x4012f4(0x271)),TestOrderingServerHandler=require(a151_0x4012f4(0x1fc)),OrchestrationUtils=require(a151_0x4012f4(0x276)),path=require(a151_0x4012f4(0x26c)),{spawnSync}=require(a151_0x4012f4(0x265)),BrowserstackCLI=require('../../bin/v2/browserstackCLI');class TestOrchestrationHandler{constructor(_0x2ef799){const _0x3ea54f=a151_0x4012f4,_0x181ca6={};_0x181ca6[_0x3ea54f(0x1f1)]=_0x3ea54f(0x273);const _0x5c0567=_0x181ca6,_0x4e7726=_0x5c0567[_0x3ea54f(0x1f1)]['split']('|');let _0x55074a=0x0;while(!![]){switch(_0x4e7726[_0x55074a++]){case'0':this[_0x3ea54f(0x21c)]();continue;case'1':this[_0x3ea54f(0x220)]=_0x2ef799;continue;case'2':this[_0x3ea54f(0x214)]={};continue;case'3':this[_0x3ea54f(0x256)]=![];continue;case'4':this['testOrderingServerHandler']=null;continue;case'5':this[_0x3ea54f(0x233)]=OrchestrationUtils[_0x3ea54f(0x275)](_0x2ef799);continue;}break;}}[a151_0x4012f4(0x21a)](){const _0x27b919=a151_0x4012f4,_0x1538c1={'hDMAn':function(_0xe3ca18,_0x3fc305){return _0xe3ca18(_0x3fc305);},'xqeuf':function(_0x171213,_0x4cad45){return _0x171213(_0x4cad45);},'rUWCh':function(_0x1539ae,_0x518920){return _0x1539ae(_0x518920);},'pQJSE':function(_0x33c3dc,_0x1d8e22){return _0x33c3dc(_0x1d8e22);},'YVxAT':function(_0x50b126,_0x3cb17d){return _0x50b126&&_0x3cb17d;}},_0x1dbef1=_0x1538c1[_0x27b919(0x251)](isNotUndefined,this[_0x27b919(0x220)])&&(_0x1538c1[_0x27b919(0x219)](isUndefined,this[_0x27b919(0x220)][_0x27b919(0x28d)])||_0x1538c1['rUWCh'](isTrueString,this['config'][_0x27b919(0x28d)])),_0x109b66=this[_0x27b919(0x233)][_0x27b919(0x26b)](),_0x17980a=_0x1538c1[_0x27b919(0x251)](isNotUndefined,this['config'])&&_0x1538c1['pQJSE'](isNotUndefined,this['config']['projectName']),_0x168e17=_0x1538c1[_0x27b919(0x278)](isNotUndefined,this['config'])&&_0x1538c1[_0x27b919(0x24c)](isNotUndefined,this[_0x27b919(0x220)][_0x27b919(0x28b)]);return _0x1538c1[_0x27b919(0x249)](_0x1dbef1,_0x109b66)&&_0x17980a&&_0x168e17;}[a151_0x4012f4(0x21c)](){const _0x378b8f=a151_0x4012f4,_0x5b40c0={};_0x5b40c0[_0x378b8f(0x22f)]=_0x378b8f(0x205),_0x5b40c0['bWvgS']=_0x378b8f(0x207);const _0x52296e=_0x5b40c0;this[_0x378b8f(0x21a)]()?(this[_0x378b8f(0x250)]=new TestOrderingServerHandler(this[_0x378b8f(0x220)]),logger[_0x378b8f(0x217)](_0x52296e['oyyZU'])):(logger[_0x378b8f(0x269)](_0x52296e[_0x378b8f(0x218)]),this[_0x378b8f(0x1fb)]());}[a151_0x4012f4(0x1fb)](){const _0x48a4ce=a151_0x4012f4,_0x2dbd0e={'WIuxN':function(_0x383206,_0x44110e){return _0x383206(_0x44110e);},'GNKJJ':function(_0x22e7c5,_0x4894c5){return _0x22e7c5(_0x4894c5);},'OTyZH':function(_0xf81ff8,_0x355a21){return _0xf81ff8(_0x355a21);},'siPnE':_0x48a4ce(0x22a),'nJNFG':function(_0x2bd70d,_0xaf5950){return _0x2bd70d(_0xaf5950);},'UwJzD':'Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.'};if(!this[_0x48a4ce(0x279)]())return;(!_0x2dbd0e[_0x48a4ce(0x239)](isNotUndefined,this[_0x48a4ce(0x220)])||!_0x2dbd0e[_0x48a4ce(0x24e)](isNotUndefined,this[_0x48a4ce(0x220)][_0x48a4ce(0x28b)])||!_0x2dbd0e['OTyZH'](isNotUndefined,this[_0x48a4ce(0x220)][_0x48a4ce(0x230)]))&&logger[_0x48a4ce(0x217)](_0x2dbd0e[_0x48a4ce(0x208)]),_0x2dbd0e[_0x48a4ce(0x24e)](isNotUndefined,this[_0x48a4ce(0x220)])&&_0x2dbd0e['nJNFG'](isNotUndefined,this[_0x48a4ce(0x220)]['testObservability'])&&!_0x2dbd0e[_0x48a4ce(0x1f3)](isTrueString,this[_0x48a4ce(0x220)][_0x48a4ce(0x28d)])&&logger[_0x48a4ce(0x217)](_0x2dbd0e['UwJzD']);}[a151_0x4012f4(0x279)](){const _0x2a0d93=a151_0x4012f4;return!this[_0x2a0d93(0x21a)]()&&this[_0x2a0d93(0x233)]['testOrderingEnabled']();}['isTestOrderingApplied'](){return this['testOrderingApplied'];}[a151_0x4012f4(0x23e)](_0x448d14){const _0x265199=a151_0x4012f4,_0x28f1db={};_0x28f1db['Psxdi']=_0x265199(0x200);const _0x346f35=_0x28f1db;this[_0x265199(0x256)]=_0x448d14,this['addToOrderingInstrumentationData'](_0x346f35[_0x265199(0x28a)],_0x448d14);}[a151_0x4012f4(0x21e)](_0x29d892,_0x15e0b4){const _0x3026eb=a151_0x4012f4;this[_0x3026eb(0x214)][_0x29d892]=_0x15e0b4;}['getOrderingInstrumentationData'](){const _0x4ac1a9=a151_0x4012f4;return this[_0x4ac1a9(0x214)];}['updateBuildIdentifier'](){const _0x5380f1=a151_0x4012f4,_0x4fa661={'BQrhW':function(_0x369508,_0x3a60b7){return _0x369508(_0x3a60b7);},'UFvvg':function(_0x42281a,_0x2c722e){return _0x42281a>_0x2c722e;}},_0x3f43a9=_0x4fa661['BQrhW'](parseInt,process['env'][_0x5380f1(0x1fa)]||'1'),_0x306f78=process[_0x5380f1(0x272)][_0x5380f1(0x27b)];_0x306f78&&_0x4fa661[_0x5380f1(0x254)](_0x3f43a9,0x1)&&(logger[_0x5380f1(0x269)](_0x5380f1(0x1f8)+_0x306f78),this[_0x5380f1(0x220)]['buildIdentifier']=_0x306f78);}async[a151_0x4012f4(0x27d)](_0x19a5e6){const _0x48c13e=a151_0x4012f4,_0x27250f={'JISqL':function(_0x795d26,_0x2bec4c){return _0x795d26===_0x2bec4c;},'mYFVd':_0x48c13e(0x24b),'EmkVO':_0x48c13e(0x24d),'lgbkn':_0x48c13e(0x221),'yYpLb':function(_0x22b84a,_0x3c5d31){return _0x22b84a===_0x3c5d31;},'KtFyN':function(_0x1f7911,_0x438f2e){return _0x1f7911(_0x438f2e);},'TAjun':_0x48c13e(0x25e),'jqFlq':_0x48c13e(0x226),'hjnQX':_0x48c13e(0x25b),'sfYZh':'downloadedTestFilesCount','zlAJN':_0x48c13e(0x268)};try{if(!_0x19a5e6||!Array[_0x48c13e(0x203)](_0x19a5e6)||_0x27250f[_0x48c13e(0x27f)](_0x19a5e6[_0x48c13e(0x1f9)],0x0))return null;if(_0x27250f[_0x48c13e(0x27f)](this['isTestOrchestrationEnabled'](),![]))return logger[_0x48c13e(0x269)](_0x27250f[_0x48c13e(0x259)]),null;let _0xc24719=null;const _0x54e503=this[_0x48c13e(0x233)]['getTestOrderingName']();if(BrowserstackCLI['getInstance']()[_0x48c13e(0x236)]())logger[_0x48c13e(0x269)](_0x27250f[_0x48c13e(0x20b)]),_0xc24719=await BrowserstackCLI[_0x48c13e(0x275)]()[_0x48c13e(0x244)](_0x19a5e6,_0x54e503,JSON[_0x48c13e(0x264)](this['orchestrationUtils']['getTestOrchestrationMetadata']()));else{logger[_0x48c13e(0x269)](_0x27250f[_0x48c13e(0x227)]);const _0x1e5d00=await this[_0x48c13e(0x250)][_0x48c13e(0x212)](_0x19a5e6,_0x54e503,this[_0x48c13e(0x233)]['getTestOrchestrationMetadata']());if(!_0x1e5d00)return null;_0xc24719=await this[_0x48c13e(0x250)][_0x48c13e(0x1f5)](_0x1e5d00);}if(!_0xc24719||!Array[_0x48c13e(0x203)](_0xc24719)||_0x27250f[_0x48c13e(0x26d)](_0xc24719['length'],0x0))return null;const _0x3108fe=_0x27250f[_0x48c13e(0x261)](parseInt,process[_0x48c13e(0x272)]['BROWSERSTACK_NODE_INDEX']||'0'),_0x1efb05=_0x27250f['KtFyN'](parseInt,process['env'][_0x48c13e(0x1fa)]||'1');return this['addToOrderingInstrumentationData'](_0x27250f['TAjun'],_0x19a5e6[_0x48c13e(0x1f9)]),this[_0x48c13e(0x21e)](_0x27250f[_0x48c13e(0x1f0)],_0x3108fe),this['addToOrderingInstrumentationData'](_0x27250f[_0x48c13e(0x27c)],_0x1efb05),this['addToOrderingInstrumentationData'](_0x27250f['sfYZh'],_0xc24719[_0x48c13e(0x1f9)]),this[_0x48c13e(0x21e)](_0x27250f[_0x48c13e(0x1f7)],this[_0x48c13e(0x250)]?this['testOrderingServerHandler'][_0x48c13e(0x23f)]():0x0),_0xc24719['map'](_0x4b538d=>sanitizedFilePath(_0x4b538d));}catch(_0x5d3f6d){return logger['debug'](_0x48c13e(0x26f)+(_0x5d3f6d[_0x48c13e(0x28c)]||_0x5d3f6d[_0x48c13e(0x21b)]())),null;}}async[a151_0x4012f4(0x25f)](_0x5a7939,_0x26018b,_0x37ac0e){const _0x4ac1ea=a151_0x4012f4,_0x5596b3={'LVNmL':function(_0x258652,_0x26da67,_0x56cb34,_0x5dff30){return _0x258652(_0x26da67,_0x56cb34,_0x5dff30);},'NKhGo':'npx','dXhDr':_0x4ac1ea(0x248),'htqgO':'--config','nrMHE':_0x4ac1ea(0x1fd),'kwJhm':function(_0x305ba0,_0x5bf0b6){return _0x305ba0===_0x5bf0b6;},'boXPe':_0x4ac1ea(0x1f2),'IryKt':_0x4ac1ea(0x22d)};try{const _0x63fdae=_0x5a7939[_0x4ac1ea(0x280)]||process['cwd'](),_0x1218a9=_0x5596b3[_0x4ac1ea(0x277)](spawnSync,_0x5596b3['NKhGo'],[_0x5596b3[_0x4ac1ea(0x202)],_0x5596b3['htqgO'],_0x37ac0e,..._0x26018b,_0x5596b3[_0x4ac1ea(0x229)]],{'shell':_0x5596b3[_0x4ac1ea(0x266)](process[_0x4ac1ea(0x209)],_0x5596b3[_0x4ac1ea(0x267)]),'cwd':process[_0x4ac1ea(0x289)](),'encoding':_0x5596b3[_0x4ac1ea(0x252)]});let _0x17aebb=[];!_0x1218a9[_0x4ac1ea(0x20e)]&&(_0x17aebb=_0x1218a9[_0x4ac1ea(0x20d)][_0x4ac1ea(0x216)]('\x0a')[_0x4ac1ea(0x263)](Boolean));logger['debug'](_0x4ac1ea(0x247)+JSON[_0x4ac1ea(0x264)](_0x17aebb)+_0x4ac1ea(0x282));const _0x2d0678=_0x17aebb[_0x4ac1ea(0x1ef)](_0x20c63a=>path[_0x4ac1ea(0x245)](_0x63fdae,_0x20c63a));return logger['debug']('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x4ac1ea(0x264)](_0x2d0678)+'\x20files'),_0x2d0678;}catch(_0x48b967){return logger[_0x4ac1ea(0x269)](_0x4ac1ea(0x285)+_0x48b967),[];}}async['findPlaywrightTestFiles'](_0x52df80,_0x45870f){const _0x308fcc=a151_0x4012f4,_0x2e24f7={'mdsXc':function(_0x32918f,_0x3292fc){return _0x32918f(_0x3292fc);},'fhxlp':function(_0xeed055){return _0xeed055();},'FLPET':_0x308fcc(0x21d),'ChmNp':_0x308fcc(0x1f6),'eaJSp':'playwright','nQzHx':'test','wRwQp':_0x308fcc(0x28f),'TFBWl':_0x308fcc(0x281),'huQrO':function(_0x30589e,_0xa2fdcf){return _0x30589e>_0xa2fdcf;},'PwgNz':_0x308fcc(0x23c),'poxoU':function(_0x3132d8,_0x45b6d0,_0xdaa5b,_0x1518a6){return _0x3132d8(_0x45b6d0,_0xdaa5b,_0x1518a6);},'DIyIM':function(_0x5592f0,_0x1b2103){return _0x5592f0===_0x1b2103;},'BLoun':'win32','sxbQU':_0x308fcc(0x22d)};try{const _0x40ed21=_0x2e24f7[_0x308fcc(0x243)](isYarnPnP)?_0x2e24f7[_0x308fcc(0x1ed)]:_0x2e24f7[_0x308fcc(0x223)];let _0x1a5d2e=[_0x2e24f7[_0x308fcc(0x23b)],_0x2e24f7[_0x308fcc(0x258)],_0x2e24f7['wRwQp'],_0x2e24f7[_0x308fcc(0x215)]];_0x2e24f7['mdsXc'](isNotUndefined,_0x52df80)&&_0x2e24f7[_0x308fcc(0x270)](_0x52df80[_0x308fcc(0x1f9)],0x0)&&_0x1a5d2e[_0x308fcc(0x274)](_0x2e24f7[_0x308fcc(0x225)],_0x52df80);_0x1a5d2e=_0x1a5d2e[_0x308fcc(0x201)](this[_0x308fcc(0x286)](_0x45870f));const _0x35081a=_0x2e24f7[_0x308fcc(0x1f4)](spawnSync,_0x40ed21,_0x1a5d2e,{'shell':_0x2e24f7[_0x308fcc(0x24a)](process[_0x308fcc(0x209)],_0x2e24f7[_0x308fcc(0x210)]),'cwd':process['cwd'](),'encoding':_0x2e24f7[_0x308fcc(0x287)]});if(_0x35081a['error'])return logger[_0x308fcc(0x269)]('Error\x20listing\x20Playwright\x20test\x20files:\x20'+_0x35081a['error']),[];const _0xbcd215=this['_parsePlaywrightListOutput'](_0x35081a['stdout']||'');if(!_0xbcd215)return[];const _0x3a3928=_0xbcd215[_0x308fcc(0x220)]&&_0xbcd215[_0x308fcc(0x220)][_0x308fcc(0x280)]||process[_0x308fcc(0x289)](),_0x25b537=new Set(),_0x41745c=_0x5db2be=>{const _0x499c01=_0x308fcc;if(!Array[_0x499c01(0x203)](_0x5db2be))return;_0x5db2be['forEach'](_0x5de712=>{const _0x27a298=_0x499c01;_0x5de712[_0x27a298(0x240)]&&_0x25b537[_0x27a298(0x213)](path['isAbsolute'](_0x5de712['file'])?_0x5de712[_0x27a298(0x240)]:path[_0x27a298(0x26a)](_0x3a3928,_0x5de712[_0x27a298(0x240)])),Array[_0x27a298(0x203)](_0x5de712['specs'])&&_0x5de712[_0x27a298(0x22c)][_0x27a298(0x260)](_0x4ff0d5=>{const _0x32c0c5=_0x27a298;_0x4ff0d5[_0x32c0c5(0x240)]&&_0x25b537[_0x32c0c5(0x213)](path[_0x32c0c5(0x253)](_0x4ff0d5[_0x32c0c5(0x240)])?_0x4ff0d5[_0x32c0c5(0x240)]:path[_0x32c0c5(0x26a)](_0x3a3928,_0x4ff0d5[_0x32c0c5(0x240)]));}),_0x2e24f7[_0x27a298(0x25c)](_0x41745c,_0x5de712[_0x27a298(0x237)]);});};_0x2e24f7[_0x308fcc(0x25c)](_0x41745c,_0xbcd215[_0x308fcc(0x237)]);const _0x2cfbd6=process[_0x308fcc(0x289)](),_0x269917=Array['from'](_0x25b537)[_0x308fcc(0x1ef)](_0x34793a=>path['relative'](_0x2cfbd6,_0x34793a));return logger[_0x308fcc(0x269)](_0x308fcc(0x211)+JSON[_0x308fcc(0x264)](_0x269917)),_0x269917;}catch(_0xf6b562){return logger[_0x308fcc(0x269)](_0x308fcc(0x25a)+_0xf6b562),[];}}[a151_0x4012f4(0x23a)](_0x106fcd){const _0x74a28f=a151_0x4012f4,_0x1f6617={};_0x1f6617[_0x74a28f(0x222)]=function(_0x4e459a,_0x43d83c){return _0x4e459a>=_0x43d83c;},_0x1f6617[_0x74a28f(0x1ff)]=function(_0x19996e,_0x2a38c7){return _0x19996e>_0x2a38c7;},_0x1f6617['pGqWX']=function(_0x257c95,_0x3fed39){return _0x257c95+_0x3fed39;},_0x1f6617['fbqYK']=_0x74a28f(0x25d);const _0x34a25b=_0x1f6617;try{return JSON[_0x74a28f(0x204)](_0x106fcd);}catch(_0x83a824){const _0x278700=_0x106fcd[_0x74a28f(0x26e)]('{'),_0x2e6810=_0x106fcd[_0x74a28f(0x20f)]('}');if(_0x34a25b[_0x74a28f(0x222)](_0x278700,0x0)&&_0x34a25b[_0x74a28f(0x1ff)](_0x2e6810,_0x278700))try{return JSON['parse'](_0x106fcd[_0x74a28f(0x232)](_0x278700,_0x34a25b['pGqWX'](_0x2e6810,0x1)));}catch(_0x20e874){return logger[_0x74a28f(0x269)]('Unable\x20to\x20parse\x20Playwright\x20--list\x20JSON\x20output:\x20'+_0x20e874),null;}return logger[_0x74a28f(0x269)](_0x34a25b[_0x74a28f(0x228)]),null;}}['_sanitizePlaywrightListArgs'](_0xec284f){const _0x1747b4=a151_0x4012f4,_0x4dc00d={};_0x4dc00d['sRUyu']=_0x1747b4(0x246),_0x4dc00d[_0x1747b4(0x255)]=_0x1747b4(0x21f),_0x4dc00d[_0x1747b4(0x22e)]='--list',_0x4dc00d[_0x1747b4(0x234)]='--ui',_0x4dc00d[_0x1747b4(0x22b)]=function(_0x4fe293,_0x3ad0c0){return _0x4fe293<_0x3ad0c0;},_0x4dc00d['sgzaX']=function(_0x17839b,_0x1df546){return _0x17839b!==_0x1df546;},_0x4dc00d[_0x1747b4(0x1fe)]=_0x1747b4(0x288),_0x4dc00d[_0x1747b4(0x284)]=_0x1747b4(0x283),_0x4dc00d['CMYiV']='--output=';const _0x1722b8=_0x4dc00d;if(!Array['isArray'](_0xec284f))return[];const _0x1297fb=new Set([_0x1722b8['sRUyu'],'-r',_0x1722b8['aCmmJ']]),_0x3837b5=new Set([_0x1722b8[_0x1747b4(0x22e)],_0x1722b8[_0x1747b4(0x234)]]),_0x548294=[];for(let _0x122755=0x0;_0x1722b8[_0x1747b4(0x22b)](_0x122755,_0xec284f[_0x1747b4(0x1f9)]);_0x122755++){const _0x42c73=_0xec284f[_0x122755];if(_0x1722b8['sgzaX'](typeof _0x42c73,_0x1722b8['FjFyr']))continue;if(_0x3837b5['has'](_0x42c73))continue;if(_0x1297fb[_0x1747b4(0x24f)](_0x42c73)){_0x122755+=0x1;continue;}if(_0x42c73[_0x1747b4(0x206)](_0x1722b8[_0x1747b4(0x284)])||_0x42c73[_0x1747b4(0x206)](_0x1722b8['CMYiV']))continue;_0x548294[_0x1747b4(0x274)](_0x42c73);}return _0x548294;}}module[a151_0x4012f4(0x20a)]=TestOrchestrationHandler;function a151_0x302d(){const _0x31bb59=['exports','EmkVO','50855JcwfuO','stdout','error','lastIndexOf','BLoun','Found\x20Playwright\x20test\x20files:\x20','splitTests','add','orderingInstrumentationData','TFBWl','split','info','bWvgS','xqeuf','isTestOrchestrationEnabled','toString','_initializeTestOrdering','yarn','addToOrderingInstrumentationData','--output','config','Using\x20sdk\x20flow\x20for\x20test\x20files\x20orchestration.','AJGdJ','ChmNp','390eTshaz','PwgNz','nodeIndex','lgbkn','fbqYK','nrMHE','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','yJbRV','specs','utf-8','iFtrG','oyyZU','projectName','109184ZYLMqC','slice','orchestrationUtils','FPGTh','6310fWQHZh','isRunning','suites','246452DuUenY','WIuxN','_parsePlaywrightListOutput','eaJSp','--config','14454VDlxpx','setTestOrderingApplied','getSplitTestsAPICallCount','file','53044PGivOw','winstonLogger','fhxlp','testOrchestrationSession','relative','--reporter','Found\x20test\x20files:\x20','jest','YVxAT','DIyIM','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','pQJSE','Using\x20CLI\x20flow\x20for\x20test\x20files\x20orchestration.','GNKJJ','has','testOrderingServerHandler','hDMAn','IryKt','isAbsolute','UFvvg','aCmmJ','testOrderingApplied','../logger','nQzHx','mYFVd','Error\x20finding\x20Playwright\x20test\x20files:\x20','totalNodes','mdsXc','Playwright\x20--list\x20produced\x20no\x20parseable\x20JSON\x20output','uploadedTestFilesCount','findTestFiles','forEach','KtFyN','265AgbDUi','filter','stringify','child_process','kwJhm','boXPe','splitTestsAPICallCount','debug','resolve','testOrderingEnabled','path','yYpLb','indexOf','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','huQrO','../helper','env','1|2|3|4|5|0','push','getInstance','./orchestrationUtils','LVNmL','rUWCh','_shouldLogTestOrderingChecks','16oHiSzg','BROWSERSTACK_BUILD_RUN_IDENTIFIER','hjnQX','reorderTestFiles','20936904FcHRdp','JISqL','rootDir','--reporter=json','\x20files','--reporter=','ZSoCl','Error\x20finding\x20test\x20files:\x20','_sanitizePlaywrightListArgs','sxbQU','string','cwd','Psxdi','buildName','stack','testObservability','6nmmjNl','--list','FLPET','1822869HUDYcp','map','jqFlq','edioF','win32','OTyZH','poxoU','getOrderedTestFiles','npx','zlAJN','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','length','BROWSERSTACK_TOTAL_NODE_COUNT','logTestOrderingChecks','./testOrderingServerHandler','--listTests','FjFyr','PhJob','applied','concat','dXhDr','isArray','parse','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','startsWith','Test\x20orchestration\x20without\x20test\x20ordering','siPnE','platform'];a151_0x302d=function(){return _0x31bb59;};return a151_0x302d();}
|
|
1
|
+
const a166_0x38c275=a166_0x4adb;(function(_0x32c19a,_0x3e0535){const _0x3855aa=a166_0x4adb,_0xdf25c6=_0x32c19a();while(!![]){try{const _0x507e44=parseInt(_0x3855aa(0x1e6))/0x1*(parseInt(_0x3855aa(0x20d))/0x2)+parseInt(_0x3855aa(0x1c9))/0x3*(parseInt(_0x3855aa(0x1ec))/0x4)+-parseInt(_0x3855aa(0x197))/0x5*(parseInt(_0x3855aa(0x190))/0x6)+parseInt(_0x3855aa(0x19e))/0x7+-parseInt(_0x3855aa(0x1d0))/0x8*(-parseInt(_0x3855aa(0x1d6))/0x9)+-parseInt(_0x3855aa(0x1b3))/0xa+parseInt(_0x3855aa(0x1e1))/0xb;if(_0x507e44===_0x3e0535)break;else _0xdf25c6['push'](_0xdf25c6['shift']());}catch(_0x41413){_0xdf25c6['push'](_0xdf25c6['shift']());}}}(a166_0x1841,0x1b476));function a166_0x4adb(_0x5bb955,_0x483258){const _0x1841a4=a166_0x1841();return a166_0x4adb=function(_0x4adb10,_0x373efd){_0x4adb10=_0x4adb10-0x190;let _0x541eac=_0x1841a4[_0x4adb10];return _0x541eac;},a166_0x4adb(_0x5bb955,_0x483258);}function a166_0x1841(){const _0x3b8b12=['./orchestrationUtils','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','debug','feqZb','Qqqer','DgRbQ','Found\x20Playwright\x20test\x20files:\x20','1977760zAzOex','getOrderingInstrumentationData','toString','parse','WLfsW','updateBuildIdentifier','Playwright\x20--list\x20produced\x20no\x20parseable\x20JSON\x20output','getTestOrchestrationMetadata','iLeRs','orderingInstrumentationData','test','yrfOi','platform','EjfUy','rootDir','--output=','testOrderingServerHandler','--reporter','SAPxm','../helper','splitTestsAPICallCount','PRDmc','12840bqMPDg','snfit','nkFMS','child_process','win32','filter','pTeJC','1111144kkEFgL','eTSkb','getOrderedTestFiles','resolve','Filterted\x20to\x20test\x20files:\x20','--listTests','9RbccWL','_shouldLogTestOrderingChecks','AwNfs','playwright','_initializeTestOrdering','trCqB','Unable\x20to\x20parse\x20Playwright\x20--list\x20JSON\x20output:\x20','lastIndexOf','HArmR','cwd','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','489071RgoxsV','stack','--reporter=','--list','indexOf','12472GAdnjt','isTestOrchestrationEnabled','ueOGk','sDpmC','IanRT','NDawC','48LCHjLw','from','downloadedTestFilesCount','splitTests','_sanitizePlaywrightListArgs','getTestOrderingName','UZMmg','Brgfs','slice','buildName','findTestFiles','qMRSe','boxIP','stringify','Error\x20finding\x20Playwright\x20test\x20files:\x20','logTestOrderingChecks','NpbpG','npx','Found\x20test\x20files:\x20','file','scbja','split','env','addToOrderingInstrumentationData','relative','config','jest','testOrderingApplied','--config','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','BdxKj','xoWWf','maFaZ','16YuDlKV','stdout','MEYUw','testOrderingEnabled','isArray','push','wdmOJ','utf-8','iZMzK','2|0|3|4|1|5','pgFxW','rEzhs','VJXyB','_parsePlaywrightListOutput','path','rkoLG','orchestrationUtils','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','projectName','\x20files','map','setTestOrderingApplied','add','info','yarn','Test\x20orchestration\x20without\x20test\x20ordering','isAbsolute','uploadedTestFilesCount','356046LpPzzY','nodeIndex','getInstance','mnJLt','CSXVl','has','testObservability','10clPavS','winstonLogger','findPlaywrightTestFiles','../../bin/v2/browserstackCLI','error','forEach','acNBY','655914vuOWsc','suites','dUvzi','exports','Error\x20listing\x20Playwright\x20test\x20files:\x20','AMrEH','length','isRunning','eaooO','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','BROWSERSTACK_TOTAL_NODE_COUNT','fxvUB','LnonQ'];a166_0x1841=function(){return _0x3b8b12;};return a166_0x1841();}const logger=require('../logger')[a166_0x38c275(0x198)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath,isYarnPnP}=require(a166_0x38c275(0x1c6)),TestOrderingServerHandler=require('./testOrderingServerHandler'),OrchestrationUtils=require(a166_0x38c275(0x1ac)),path=require(a166_0x38c275(0x21b)),{spawnSync}=require(a166_0x38c275(0x1cc)),BrowserstackCLI=require(a166_0x38c275(0x19a));class TestOrchestrationHandler{constructor(_0x1a350c){const _0x4d15fd=a166_0x38c275,_0x31a920={};_0x31a920[_0x4d15fd(0x1b0)]=_0x4d15fd(0x216);const _0x504001=_0x31a920,_0xcb2eac=_0x504001[_0x4d15fd(0x1b0)]['split']('|');let _0x31e22a=0x0;while(!![]){switch(_0xcb2eac[_0x31e22a++]){case'0':this['orderingInstrumentationData']={};continue;case'1':this[_0x4d15fd(0x21d)]=OrchestrationUtils['getInstance'](_0x1a350c);continue;case'2':this['config']=_0x1a350c;continue;case'3':this[_0x4d15fd(0x207)]=![];continue;case'4':this[_0x4d15fd(0x1c3)]=null;continue;case'5':this[_0x4d15fd(0x1da)]();continue;}break;}}[a166_0x38c275(0x1e7)](){const _0x2f91d1=a166_0x38c275,_0x174e13={'Brgfs':function(_0x2c7a22,_0x38acbf){return _0x2c7a22(_0x38acbf);},'HsBMw':function(_0x49df74,_0x2b60e1){return _0x49df74(_0x2b60e1);},'BdxKj':function(_0x413b19,_0x4cfdb6){return _0x413b19(_0x4cfdb6);},'mnJLt':function(_0x2badb3,_0x5c6300){return _0x2badb3(_0x5c6300);},'EjfUy':function(_0x49d7f6,_0xa5995){return _0x49d7f6(_0xa5995);},'scbja':function(_0x281441,_0x342adb){return _0x281441&&_0x342adb;}},_0x150c25=_0x174e13[_0x2f91d1(0x1f3)](isNotUndefined,this['config'])&&(_0x174e13[_0x2f91d1(0x1f3)](isUndefined,this[_0x2f91d1(0x205)]['testObservability'])||_0x174e13['HsBMw'](isTrueString,this[_0x2f91d1(0x205)][_0x2f91d1(0x196)])),_0x32f5f6=this[_0x2f91d1(0x21d)][_0x2f91d1(0x210)](),_0x2b0e44=_0x174e13[_0x2f91d1(0x20a)](isNotUndefined,this[_0x2f91d1(0x205)])&&_0x174e13[_0x2f91d1(0x193)](isNotUndefined,this[_0x2f91d1(0x205)][_0x2f91d1(0x21f)]),_0x38f0c5=_0x174e13[_0x2f91d1(0x1c0)](isNotUndefined,this['config'])&&_0x174e13[_0x2f91d1(0x1c0)](isNotUndefined,this[_0x2f91d1(0x205)][_0x2f91d1(0x1f5)]);return _0x174e13[_0x2f91d1(0x200)](_0x150c25,_0x32f5f6)&&_0x2b0e44&&_0x38f0c5;}[a166_0x38c275(0x1da)](){const _0x178a34=a166_0x38c275,_0x273cf4={};_0x273cf4[_0x178a34(0x213)]=_0x178a34(0x1e0),_0x273cf4[_0x178a34(0x1db)]=_0x178a34(0x226);const _0xd791ee=_0x273cf4;this[_0x178a34(0x1e7)]()?(this[_0x178a34(0x1c3)]=new TestOrderingServerHandler(this[_0x178a34(0x205)]),logger[_0x178a34(0x224)](_0xd791ee['wdmOJ'])):(logger[_0x178a34(0x1ae)](_0xd791ee[_0x178a34(0x1db)]),this['logTestOrderingChecks']());}[a166_0x38c275(0x1fb)](){const _0x391ebc=a166_0x38c275,_0x312be6={'nkFMS':function(_0x1e8fc0,_0x3d3da3){return _0x1e8fc0(_0x3d3da3);},'qMRSe':function(_0xdd29b,_0x381565){return _0xdd29b(_0x381565);},'iLeRs':_0x391ebc(0x1a7),'BJCYv':function(_0x2fd1c3,_0x51edbe){return _0x2fd1c3(_0x51edbe);},'rkoLG':_0x391ebc(0x1ad)};if(!this[_0x391ebc(0x1d7)]())return;(!_0x312be6[_0x391ebc(0x1cb)](isNotUndefined,this[_0x391ebc(0x205)])||!_0x312be6[_0x391ebc(0x1cb)](isNotUndefined,this[_0x391ebc(0x205)][_0x391ebc(0x1f5)])||!_0x312be6['qMRSe'](isNotUndefined,this[_0x391ebc(0x205)][_0x391ebc(0x21f)]))&&logger['info'](_0x312be6[_0x391ebc(0x1bb)]),_0x312be6['BJCYv'](isNotUndefined,this[_0x391ebc(0x205)])&&_0x312be6['qMRSe'](isNotUndefined,this[_0x391ebc(0x205)][_0x391ebc(0x196)])&&!_0x312be6[_0x391ebc(0x1f7)](isTrueString,this[_0x391ebc(0x205)]['testObservability'])&&logger[_0x391ebc(0x224)](_0x312be6[_0x391ebc(0x21c)]);}['_shouldLogTestOrderingChecks'](){const _0x1cd9ec=a166_0x38c275;return!this[_0x1cd9ec(0x1e7)]()&&this[_0x1cd9ec(0x21d)][_0x1cd9ec(0x210)]();}['isTestOrderingApplied'](){const _0x2d4d9b=a166_0x38c275;return this[_0x2d4d9b(0x207)];}[a166_0x38c275(0x222)](_0x5a862b){const _0x16f41a=a166_0x38c275,_0x589fd0={};_0x589fd0[_0x16f41a(0x1f2)]='applied';const _0x4b4da4=_0x589fd0;this[_0x16f41a(0x207)]=_0x5a862b,this[_0x16f41a(0x203)](_0x4b4da4[_0x16f41a(0x1f2)],_0x5a862b);}['addToOrderingInstrumentationData'](_0x1aab03,_0x56951e){const _0x1d9727=a166_0x38c275;this[_0x1d9727(0x1bc)][_0x1aab03]=_0x56951e;}[a166_0x38c275(0x1b4)](){const _0x160465=a166_0x38c275;return this[_0x160465(0x1bc)];}[a166_0x38c275(0x1b8)](){const _0x5d8318=a166_0x38c275,_0x3f517f={'LWGKV':function(_0x3356b7,_0x24be4e){return _0x3356b7(_0x24be4e);},'sDpmC':function(_0x2c2fa3,_0x35b0ff){return _0x2c2fa3>_0x35b0ff;}},_0x94ed63=_0x3f517f['LWGKV'](parseInt,process[_0x5d8318(0x202)]['BROWSERSTACK_TOTAL_NODE_COUNT']||'1'),_0x4f958b=process[_0x5d8318(0x202)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];_0x4f958b&&_0x3f517f[_0x5d8318(0x1e9)](_0x94ed63,0x1)&&(logger[_0x5d8318(0x1ae)](_0x5d8318(0x1a8)+_0x4f958b),this[_0x5d8318(0x205)]['buildIdentifier']=_0x4f958b);}async['reorderTestFiles'](_0x5cd4c8){const _0x1d5fe9=a166_0x38c275,_0xf64f51={'eaooO':function(_0x3b89c0,_0x41031d){return _0x3b89c0===_0x41031d;},'FpnJD':_0x1d5fe9(0x209),'SAPxm':'Using\x20CLI\x20flow\x20for\x20test\x20files\x20orchestration.','NDawC':'Using\x20sdk\x20flow\x20for\x20test\x20files\x20orchestration.','RCKPH':function(_0x303e40,_0x169a63){return _0x303e40(_0x169a63);},'GZObW':function(_0xf673fe,_0x522d5a){return _0xf673fe(_0x522d5a);},'maFaZ':_0x1d5fe9(0x228),'CSXVl':_0x1d5fe9(0x191),'iZMzK':'totalNodes','IanRT':_0x1d5fe9(0x1ee),'BTzpt':_0x1d5fe9(0x1c7)};try{if(!_0x5cd4c8||!Array[_0x1d5fe9(0x211)](_0x5cd4c8)||_0xf64f51['eaooO'](_0x5cd4c8[_0x1d5fe9(0x1a4)],0x0))return null;if(_0xf64f51['eaooO'](this[_0x1d5fe9(0x1e7)](),![]))return logger['debug'](_0xf64f51['FpnJD']),null;let _0x3607ec=null;const _0x42d925=this[_0x1d5fe9(0x21d)][_0x1d5fe9(0x1f1)]();if(BrowserstackCLI[_0x1d5fe9(0x192)]()[_0x1d5fe9(0x1a5)]())logger['debug'](_0xf64f51[_0x1d5fe9(0x1c5)]),_0x3607ec=await BrowserstackCLI['getInstance']()['testOrchestrationSession'](_0x5cd4c8,_0x42d925,JSON[_0x1d5fe9(0x1f9)](this['orchestrationUtils'][_0x1d5fe9(0x1ba)]()));else{logger[_0x1d5fe9(0x1ae)](_0xf64f51[_0x1d5fe9(0x1eb)]);const _0x292d15=await this[_0x1d5fe9(0x1c3)][_0x1d5fe9(0x1ef)](_0x5cd4c8,_0x42d925,this[_0x1d5fe9(0x21d)][_0x1d5fe9(0x1ba)]());if(!_0x292d15)return null;_0x3607ec=await this['testOrderingServerHandler'][_0x1d5fe9(0x1d2)](_0x292d15);}if(!_0x3607ec||!Array[_0x1d5fe9(0x211)](_0x3607ec)||_0xf64f51[_0x1d5fe9(0x1a6)](_0x3607ec[_0x1d5fe9(0x1a4)],0x0))return null;const _0x26386e=_0xf64f51['RCKPH'](parseInt,process[_0x1d5fe9(0x202)]['BROWSERSTACK_NODE_INDEX']||'0'),_0x3cd401=_0xf64f51['GZObW'](parseInt,process['env'][_0x1d5fe9(0x1a9)]||'1');return this[_0x1d5fe9(0x203)](_0xf64f51[_0x1d5fe9(0x20c)],_0x5cd4c8['length']),this['addToOrderingInstrumentationData'](_0xf64f51[_0x1d5fe9(0x194)],_0x26386e),this[_0x1d5fe9(0x203)](_0xf64f51[_0x1d5fe9(0x215)],_0x3cd401),this[_0x1d5fe9(0x203)](_0xf64f51[_0x1d5fe9(0x1ea)],_0x3607ec[_0x1d5fe9(0x1a4)]),this['addToOrderingInstrumentationData'](_0xf64f51['BTzpt'],this[_0x1d5fe9(0x1c3)]?this['testOrderingServerHandler']['getSplitTestsAPICallCount']():0x0),_0x3607ec[_0x1d5fe9(0x221)](_0x27e70f=>sanitizedFilePath(_0x27e70f));}catch(_0x32b7ac){return logger['debug'](_0x1d5fe9(0x21e)+(_0x32b7ac[_0x1d5fe9(0x1e2)]||_0x32b7ac[_0x1d5fe9(0x1b5)]())),null;}}async[a166_0x38c275(0x1f6)](_0x4bc8e6,_0x47363e,_0xe8684e){const _0x2d535c=a166_0x38c275,_0x43981c={'PRDmc':function(_0x136398,_0x53e7ec,_0x43eeb7,_0x4722ab){return _0x136398(_0x53e7ec,_0x43eeb7,_0x4722ab);},'fxvUB':_0x2d535c(0x1fd),'LctIQ':_0x2d535c(0x206),'pTeJC':_0x2d535c(0x208),'xqygw':_0x2d535c(0x1d5),'rEzhs':function(_0x28dd94,_0x301284){return _0x28dd94===_0x301284;},'mIAjs':_0x2d535c(0x1cd),'pgFxW':_0x2d535c(0x214)};try{const _0xbe3ee6=_0x4bc8e6[_0x2d535c(0x1c1)]||process[_0x2d535c(0x1df)](),_0x59c26c=_0x43981c[_0x2d535c(0x1c8)](spawnSync,_0x43981c[_0x2d535c(0x1aa)],[_0x43981c['LctIQ'],_0x43981c[_0x2d535c(0x1cf)],_0xe8684e,..._0x47363e,_0x43981c['xqygw']],{'shell':_0x43981c[_0x2d535c(0x218)](process[_0x2d535c(0x1bf)],_0x43981c['mIAjs']),'cwd':process['cwd'](),'encoding':_0x43981c[_0x2d535c(0x217)]});let _0x45629a=[];!_0x59c26c[_0x2d535c(0x19b)]&&(_0x45629a=_0x59c26c[_0x2d535c(0x20e)][_0x2d535c(0x201)]('\x0a')[_0x2d535c(0x1ce)](Boolean));logger[_0x2d535c(0x1ae)](_0x2d535c(0x1fe)+JSON['stringify'](_0x45629a)+_0x2d535c(0x220));const _0x30c359=_0x45629a[_0x2d535c(0x221)](_0x166fef=>path['relative'](_0xbe3ee6,_0x166fef));return logger[_0x2d535c(0x1ae)](_0x2d535c(0x1d4)+JSON['stringify'](_0x30c359)+_0x2d535c(0x220)),_0x30c359;}catch(_0x3655ac){return logger['debug']('Error\x20finding\x20test\x20files:\x20'+_0x3655ac),[];}}async[a166_0x38c275(0x199)](_0x2def55,_0xf0b252){const _0x3a7377=a166_0x38c275,_0x14b0fb={'snfit':function(_0x2635e1,_0x14b3dd){return _0x2635e1(_0x14b3dd);},'boxIP':function(_0x21a667){return _0x21a667();},'eTSkb':_0x3a7377(0x225),'JtTqd':_0x3a7377(0x1fd),'xoWWf':_0x3a7377(0x1d9),'oqVLQ':_0x3a7377(0x1bd),'AMrEH':_0x3a7377(0x1e4),'nGZvk':'--reporter=json','RCaOK':function(_0x5a3d37,_0x466607){return _0x5a3d37>_0x466607;},'zBSDN':_0x3a7377(0x208),'dUvzi':function(_0x583e9a,_0x398313,_0x2ea26,_0x1f5cec){return _0x583e9a(_0x398313,_0x2ea26,_0x1f5cec);},'NYcsh':function(_0x436466,_0x565f4e){return _0x436466===_0x565f4e;},'VJXyB':_0x3a7377(0x1cd),'HArmR':_0x3a7377(0x214)};try{const _0x59cd62=_0x14b0fb[_0x3a7377(0x1f8)](isYarnPnP)?_0x14b0fb[_0x3a7377(0x1d1)]:_0x14b0fb['JtTqd'];let _0x8910b=[_0x14b0fb[_0x3a7377(0x20b)],_0x14b0fb['oqVLQ'],_0x14b0fb[_0x3a7377(0x1a3)],_0x14b0fb['nGZvk']];_0x14b0fb[_0x3a7377(0x1ca)](isNotUndefined,_0x2def55)&&_0x14b0fb['RCaOK'](_0x2def55['length'],0x0)&&_0x8910b[_0x3a7377(0x212)](_0x14b0fb['zBSDN'],_0x2def55);_0x8910b=_0x8910b['concat'](this['_sanitizePlaywrightListArgs'](_0xf0b252));const _0x2fba1d=_0x14b0fb[_0x3a7377(0x1a0)](spawnSync,_0x59cd62,_0x8910b,{'shell':_0x14b0fb['NYcsh'](process[_0x3a7377(0x1bf)],_0x14b0fb[_0x3a7377(0x219)]),'cwd':process[_0x3a7377(0x1df)](),'encoding':_0x14b0fb[_0x3a7377(0x1de)]});if(_0x2fba1d[_0x3a7377(0x19b)])return logger['debug'](_0x3a7377(0x1a2)+_0x2fba1d['error']),[];const _0x32c22b=this[_0x3a7377(0x21a)](_0x2fba1d['stdout']||'');if(!_0x32c22b)return[];const _0x240f26=_0x32c22b[_0x3a7377(0x205)]&&_0x32c22b['config'][_0x3a7377(0x1c1)]||process[_0x3a7377(0x1df)](),_0x166073=new Set(),_0x3a2d1a=_0x2c62b7=>{const _0x3d6c0e=_0x3a7377,_0x2c06bc={'NzpLi':function(_0x4cd39c,_0x79b825){const _0x51ec76=a166_0x4adb;return _0x14b0fb[_0x51ec76(0x1ca)](_0x4cd39c,_0x79b825);}};if(!Array['isArray'](_0x2c62b7))return;_0x2c62b7[_0x3d6c0e(0x19c)](_0x49afac=>{const _0x42b0f9=_0x3d6c0e;_0x49afac['file']&&_0x166073[_0x42b0f9(0x223)](path[_0x42b0f9(0x227)](_0x49afac[_0x42b0f9(0x1ff)])?_0x49afac[_0x42b0f9(0x1ff)]:path[_0x42b0f9(0x1d3)](_0x240f26,_0x49afac['file'])),Array['isArray'](_0x49afac['specs'])&&_0x49afac['specs']['forEach'](_0x33ada9=>{const _0x244397=_0x42b0f9;_0x33ada9[_0x244397(0x1ff)]&&_0x166073[_0x244397(0x223)](path['isAbsolute'](_0x33ada9['file'])?_0x33ada9[_0x244397(0x1ff)]:path['resolve'](_0x240f26,_0x33ada9[_0x244397(0x1ff)]));}),_0x2c06bc['NzpLi'](_0x3a2d1a,_0x49afac[_0x42b0f9(0x19f)]);});};_0x14b0fb[_0x3a7377(0x1ca)](_0x3a2d1a,_0x32c22b['suites']);const _0x101f32=process[_0x3a7377(0x1df)](),_0x31ed37=Array[_0x3a7377(0x1ed)](_0x166073)[_0x3a7377(0x221)](_0x259614=>path[_0x3a7377(0x204)](_0x101f32,_0x259614));return logger[_0x3a7377(0x1ae)](_0x3a7377(0x1b2)+JSON[_0x3a7377(0x1f9)](_0x31ed37)),_0x31ed37;}catch(_0x1eb904){return logger[_0x3a7377(0x1ae)](_0x3a7377(0x1fa)+_0x1eb904),[];}}[a166_0x38c275(0x21a)](_0x27ba20){const _0x2aa077=a166_0x38c275,_0x1d3d23={};_0x1d3d23[_0x2aa077(0x1fc)]=function(_0x18d254,_0x5a6e53){return _0x18d254>=_0x5a6e53;},_0x1d3d23[_0x2aa077(0x19d)]=function(_0x73e40c,_0x35d49e){return _0x73e40c>_0x35d49e;},_0x1d3d23[_0x2aa077(0x1b1)]=function(_0x1ed46b,_0x2b7d10){return _0x1ed46b+_0x2b7d10;},_0x1d3d23[_0x2aa077(0x1b7)]=_0x2aa077(0x1b9);const _0x17d91d=_0x1d3d23;try{return JSON[_0x2aa077(0x1b6)](_0x27ba20);}catch(_0x3d91ba){const _0x44045a=_0x27ba20[_0x2aa077(0x1e5)]('{'),_0x50d695=_0x27ba20[_0x2aa077(0x1dd)]('}');if(_0x17d91d[_0x2aa077(0x1fc)](_0x44045a,0x0)&&_0x17d91d[_0x2aa077(0x19d)](_0x50d695,_0x44045a))try{return JSON[_0x2aa077(0x1b6)](_0x27ba20[_0x2aa077(0x1f4)](_0x44045a,_0x17d91d[_0x2aa077(0x1b1)](_0x50d695,0x1)));}catch(_0x4f7f39){return logger[_0x2aa077(0x1ae)](_0x2aa077(0x1dc)+_0x4f7f39),null;}return logger['debug'](_0x17d91d['WLfsW']),null;}}[a166_0x38c275(0x1f0)](_0x443386){const _0x18ffcf=a166_0x38c275,_0x58c387={};_0x58c387[_0x18ffcf(0x1d8)]=_0x18ffcf(0x1c4),_0x58c387['ErkyJ']='--output',_0x58c387[_0x18ffcf(0x1be)]=_0x18ffcf(0x1e4),_0x58c387[_0x18ffcf(0x20f)]='--ui',_0x58c387['fcleM']=function(_0x54d74e,_0x326dca){return _0x54d74e<_0x326dca;},_0x58c387[_0x18ffcf(0x1e8)]=function(_0x223d67,_0x4bcbc8){return _0x223d67!==_0x4bcbc8;},_0x58c387[_0x18ffcf(0x1ab)]='string',_0x58c387[_0x18ffcf(0x1af)]=_0x18ffcf(0x1e3),_0x58c387['IZbDt']=_0x18ffcf(0x1c2);const _0x32ac6e=_0x58c387;if(!Array[_0x18ffcf(0x211)](_0x443386))return[];const _0x26e03c=new Set([_0x32ac6e[_0x18ffcf(0x1d8)],'-r',_0x32ac6e['ErkyJ']]),_0x509738=new Set([_0x32ac6e[_0x18ffcf(0x1be)],_0x32ac6e[_0x18ffcf(0x20f)]]),_0x1e8e6b=[];for(let _0x5f0425=0x0;_0x32ac6e['fcleM'](_0x5f0425,_0x443386[_0x18ffcf(0x1a4)]);_0x5f0425++){const _0x5beb80=_0x443386[_0x5f0425];if(_0x32ac6e[_0x18ffcf(0x1e8)](typeof _0x5beb80,_0x32ac6e['LnonQ']))continue;if(_0x509738[_0x18ffcf(0x195)](_0x5beb80))continue;if(_0x26e03c[_0x18ffcf(0x195)](_0x5beb80)){_0x5f0425+=0x1;continue;}if(_0x5beb80['startsWith'](_0x32ac6e[_0x18ffcf(0x1af)])||_0x5beb80['startsWith'](_0x32ac6e['IZbDt']))continue;_0x1e8e6b[_0x18ffcf(0x212)](_0x5beb80);}return _0x1e8e6b;}}module[a166_0x38c275(0x1a1)]=TestOrchestrationHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a167_0x1bfbaf=a167_0x3187;(function(_0x22caf6,_0x4b5611){const _0xd26a1e=a167_0x3187,_0x1d2cc2=_0x22caf6();while(!![]){try{const _0x46e17b=-parseInt(_0xd26a1e(0x154))/0x1+-parseInt(_0xd26a1e(0x150))/0x2*(-parseInt(_0xd26a1e(0x156))/0x3)+parseInt(_0xd26a1e(0x195))/0x4+parseInt(_0xd26a1e(0x14f))/0x5*(parseInt(_0xd26a1e(0x179))/0x6)+-parseInt(_0xd26a1e(0x185))/0x7*(-parseInt(_0xd26a1e(0x166))/0x8)+-parseInt(_0xd26a1e(0x15d))/0x9+-parseInt(_0xd26a1e(0x197))/0xa;if(_0x46e17b===_0x4b5611)break;else _0x1d2cc2['push'](_0x1d2cc2['shift']());}catch(_0x5a8dba){_0x1d2cc2['push'](_0x1d2cc2['shift']());}}}(a167_0x40ec,0xf0baf));function a167_0x3187(_0x43004d,_0x71665a){const _0x40ec29=a167_0x40ec();return a167_0x3187=function(_0x31878a,_0x5a5a55){_0x31878a=_0x31878a-0x14e;let _0x4e4d3c=_0x40ec29[_0x31878a];return _0x4e4d3c;},a167_0x3187(_0x43004d,_0x71665a);}const logger=require('../logger')['winstonLogger'],RequestUtils=require(a167_0x1bfbaf(0x17e)),{getGitMetaDataForAISelection}=require(a167_0x1bfbaf(0x171));function a167_0x40ec(){const _0x28994b=['162841TFfrkL','arch','hostname','debug','processSplitTestsResponse','[processSplitTestsResponse]\x20Processing\x20response:\x20','getOrderedTestFiles','pptcS','source','timeoutUrl','splitTestsAPICallCount','qWnRc','stack','postSplitFiles','OCDuk','platform','971332AXqUPL','tests','20153660AfuNLr','body','QRjSG','15dYoUnf','1464258PmdicJ','timeoutInterval','totalmem','jIDJG','59181mxKTFQ','[processSplitTestsResponse]\x20timeout:\x20','3sQPZdb',',\x20timeoutInterval:\x20','map','BROWSERSTACK_NODE_INDEX','_getHostInfo','stringify','[processSplitTestsResponse]\x20Received\x20null\x20value(s)\x20for\x20some\x20attributes\x20in\x20split\x20tests\x20API\x20response','541710woAQPZ','toString','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL:\x20','defaultTimeout','MtlqC','filePath','run_smart_selection','iOSYj','[getOrderedTestFiles]\x20Exception\x20in\x20fetching\x20ordered\x20test\x20files:\x20','232PhYPoX','[getOrderedTestFiles]\x20Fetching\x20ordered\x20test\x20files','[splitTests]\x20Exception\x20in\x20sending\x20test\x20files:\x20','projectName',',\x20timeoutUrl:\x20','resultUrl','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL\x20after\x20waiting\x20for\x20','BROWSERSTACK_TOTAL_NODE_COUNT','defaultTimeoutInterval','freemem','rJQke','../../helpers/helper','config','[splitTests]\x20Response\x20from\x20split\x20tests\x20API:\x20','getSplitFiles','now','length','timeout','sTLWo','2942358rNfZDo',',\x20resultUrl:\x20','env','LxdpN','nRFoM','./requestUtils','exports','zSPJu','iohlc','aCvoR','[splitTests]\x20Request\x20Payload:\x20','\x20seconds.'];a167_0x40ec=function(){return _0x28994b;};return a167_0x40ec();}class TestOrderingServerHandler{constructor(_0x3375dd){const _0x4cf482=a167_0x1bfbaf;this[_0x4cf482(0x172)]=_0x3375dd,this[_0x4cf482(0x18f)]=0x0,this[_0x4cf482(0x160)]=0x3c,this[_0x4cf482(0x16e)]=0x5;}['getSplitTestsAPICallCount'](){const _0x258559=a167_0x1bfbaf;return this[_0x258559(0x18f)];}[a167_0x1bfbaf(0x189)](_0x19e595){const _0x13fbd6=a167_0x1bfbaf,_0x1735eb={};_0x1735eb['qQprv']=_0x13fbd6(0x15c);const _0x151a15=_0x1735eb;if(!_0x19e595)return null;const _0x3e7397={};return _0x3e7397['timeout']=_0x19e595[_0x13fbd6(0x177)]||this[_0x13fbd6(0x160)],_0x3e7397['timeoutInterval']=_0x19e595[_0x13fbd6(0x151)]||this['defaultTimeoutInterval'],_0x3e7397[_0x13fbd6(0x16b)]=_0x19e595['resultUrl'],_0x3e7397['timeoutUrl']=_0x19e595[_0x13fbd6(0x18e)],logger[_0x13fbd6(0x188)](_0x13fbd6(0x18a)+JSON['stringify'](_0x19e595)),logger[_0x13fbd6(0x188)](_0x13fbd6(0x155)+_0x19e595[_0x13fbd6(0x177)]+_0x13fbd6(0x157)+_0x19e595[_0x13fbd6(0x151)]+_0x13fbd6(0x17a)+_0x19e595[_0x13fbd6(0x16b)]+_0x13fbd6(0x16a)+_0x19e595['timeoutUrl']),(!_0x19e595[_0x13fbd6(0x177)]||!_0x19e595['timeoutInterval']||!_0x19e595[_0x13fbd6(0x18e)]||!_0x19e595[_0x13fbd6(0x16b)])&&logger[_0x13fbd6(0x188)](_0x151a15['qQprv']),_0x3e7397;}async['splitTests'](_0x367c50,_0x38230b,_0x45beef){const _0x12ff31=a167_0x1bfbaf,_0x526d88={'iOSYj':function(_0x372b50,_0x56e3b1){return _0x372b50==_0x56e3b1;},'FnJoh':function(_0x253e3c,_0x492952){return _0x253e3c>_0x492952;},'rJQke':function(_0x35fe0b,_0x25bac8){return _0x35fe0b===_0x25bac8;},'aCvoR':'string','MtlqC':function(_0x2c3e23,_0x4a8492){return _0x2c3e23(_0x4a8492);},'iohlc':function(_0x30863e,_0x298f19){return _0x30863e(_0x298f19);}};logger[_0x12ff31(0x188)]('[splitTests]\x20Initiating\x20split\x20tests\x20with\x20strategy:\x20'+_0x38230b);try{let _0x3487b2=[];if(_0x45beef?.[_0x12ff31(0x163)]?.['enabled']){const _0x4c87d5=_0x45beef?.[_0x12ff31(0x163)]?.[_0x12ff31(0x18d)];let _0x12f21d=![],_0x46c2b5=[];if(_0x526d88[_0x12ff31(0x164)](_0x4c87d5,null))_0x12f21d=!![],_0x46c2b5=[process['cwd']()];else Array['isArray'](_0x4c87d5)&&_0x526d88['FnJoh'](_0x4c87d5[_0x12ff31(0x176)],0x0)&&_0x526d88[_0x12ff31(0x170)](typeof _0x4c87d5[0x0],_0x526d88[_0x12ff31(0x182)])&&(_0x12f21d=!![],_0x46c2b5=_0x4c87d5);_0x12f21d?_0x3487b2=await _0x526d88[_0x12ff31(0x161)](getGitMetaDataForAISelection,_0x46c2b5):_0x3487b2=[];}const _0x565e00=_0x526d88['iohlc'](parseInt,process['env'][_0x12ff31(0x159)]||'0'),_0x4c8773=_0x526d88[_0x12ff31(0x181)](parseInt,process[_0x12ff31(0x17b)][_0x12ff31(0x16d)]||'1'),_0x77ea7a=process[_0x12ff31(0x17b)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],_0x1621ab={'nodeIndex':_0x565e00,'totalNodes':_0x4c8773,'projectName':this[_0x12ff31(0x172)][_0x12ff31(0x169)],'buildName':this[_0x12ff31(0x172)]['buildName'],'buildRunIdentifier':_0x77ea7a,'orchestrationStrategy':_0x38230b,'orchestrationMetadata':_0x45beef,'hostInfo':this[_0x12ff31(0x15a)](),'tests':_0x367c50['map'](_0x2a0f29=>({'filePath':_0x2a0f29})),'prDetails':_0x3487b2};logger[_0x12ff31(0x188)](_0x12ff31(0x183)+JSON['stringify'](_0x1621ab));const _0x38a9e3=await RequestUtils[_0x12ff31(0x192)](_0x1621ab);return logger[_0x12ff31(0x188)](_0x12ff31(0x173)+JSON[_0x12ff31(0x15b)](_0x38a9e3)),this['splitTestsAPICallCount']+=0x1,this[_0x12ff31(0x189)](_0x38a9e3[_0x12ff31(0x198)]||{});}catch(_0x5f11c0){return logger[_0x12ff31(0x188)](_0x12ff31(0x168)+(_0x5f11c0[_0x12ff31(0x191)]||_0x5f11c0['toString']())),null;}}async[a167_0x1bfbaf(0x18b)](_0x44dbc7){const _0x49e67a=a167_0x1bfbaf,_0x1be8b1={};_0x1be8b1[_0x49e67a(0x153)]=_0x49e67a(0x167),_0x1be8b1[_0x49e67a(0x14e)]=function(_0x315096,_0x193659){return _0x315096*_0x193659;},_0x1be8b1[_0x49e67a(0x17c)]=function(_0xc044f4,_0x2904bc){return _0xc044f4&&_0x2904bc;},_0x1be8b1['qWnRc']=function(_0x1edecf,_0x4aae3d){return _0x1edecf<_0x4aae3d;},_0x1be8b1['nRFoM']=function(_0x323e1e,_0x3af0cc){return _0x323e1e-_0x3af0cc;},_0x1be8b1[_0x49e67a(0x18c)]=function(_0x99f33,_0x1e050d){return _0x99f33===_0x1e050d;},_0x1be8b1[_0x49e67a(0x193)]='[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20timeout\x20URL',_0x1be8b1[_0x49e67a(0x178)]=function(_0x50e565,_0x18246c){return _0x50e565>_0x18246c;},_0x1be8b1['zBDkb']=function(_0x103e2b,_0xbb5509){return _0x103e2b!=_0xbb5509;};const _0x8b142=_0x1be8b1;if(!_0x44dbc7)return null;try{logger[_0x49e67a(0x188)](_0x8b142[_0x49e67a(0x153)]);const _0x599b6c=_0x44dbc7[_0x49e67a(0x151)]||this['defaultTimeoutInterval'],_0x6f9ba6=_0x8b142[_0x49e67a(0x14e)](_0x44dbc7[_0x49e67a(0x177)]||this[_0x49e67a(0x160)],0x3e8),_0x5d74a1=_0x44dbc7['timeoutUrl'],_0x5e5e3e=_0x44dbc7[_0x49e67a(0x16b)];if(_0x8b142[_0x49e67a(0x17c)](!_0x5e5e3e,!_0x5d74a1))return null;let _0x4707c3=null;const _0x5d5798=Date[_0x49e67a(0x175)]();while(_0x8b142[_0x49e67a(0x17c)](_0x599b6c,_0x6f9ba6)&&_0x5e5e3e&&_0x8b142[_0x49e67a(0x190)](_0x8b142[_0x49e67a(0x17d)](Date[_0x49e67a(0x175)](),_0x5d5798),_0x6f9ba6)){logger[_0x49e67a(0x188)](_0x49e67a(0x15f)+_0x5e5e3e);const _0x4fb97a=await RequestUtils['getSplitFiles'](_0x5e5e3e);this['splitTestsAPICallCount']+=0x1;if(_0x4fb97a&&_0x4fb97a?.[_0x49e67a(0x196)]){_0x4707c3=_0x4fb97a[_0x49e67a(0x196)];break;}logger['debug'](_0x49e67a(0x16c)+_0x599b6c+_0x49e67a(0x184)),await new Promise(_0x9e3053=>setTimeout(_0x9e3053,_0x599b6c*0x3e8));}if(_0x5d74a1&&(!_0x4707c3||_0x8b142[_0x49e67a(0x18c)](_0x4707c3[_0x49e67a(0x176)],0x0))){logger[_0x49e67a(0x188)](_0x8b142[_0x49e67a(0x193)]);const _0x293ddd=await RequestUtils[_0x49e67a(0x174)](_0x5d74a1);_0x293ddd?.[_0x49e67a(0x196)]&&_0x8b142[_0x49e67a(0x178)](_0x293ddd[_0x49e67a(0x196)][_0x49e67a(0x176)],0x0)&&(_0x4707c3=_0x293ddd[_0x49e67a(0x196)]);}const _0x25c1f0=[];if(_0x8b142['zBDkb'](_0x4707c3,null)&&_0x8b142[_0x49e67a(0x178)](_0x4707c3[_0x49e67a(0x176)],0x0))return _0x4707c3[_0x49e67a(0x158)](_0x3f6fa9=>_0x3f6fa9[_0x49e67a(0x162)]);return logger['debug']('Final\x20ordered\x20files\x20received\x20from\x20testOrchestration\x20server='+_0x25c1f0),_0x8b142['sTLWo'](_0x25c1f0[_0x49e67a(0x176)],0x0)?_0x25c1f0:null;}catch(_0x11fd37){return logger[_0x49e67a(0x188)](_0x49e67a(0x165)+(_0x11fd37[_0x49e67a(0x191)]||_0x11fd37[_0x49e67a(0x15e)]())),null;}}[a167_0x1bfbaf(0x15a)](){const _0x240151=a167_0x1bfbaf,_0x4cf4e2={'zSPJu':function(_0x28fb24,_0x3a38b7){return _0x28fb24(_0x3a38b7);}},_0x161ad8=_0x4cf4e2[_0x240151(0x180)](require,'os');try{return{'hostname':_0x161ad8[_0x240151(0x187)](),'platform':_0x161ad8[_0x240151(0x194)](),'release':_0x161ad8['release'](),'arch':_0x161ad8[_0x240151(0x186)](),'totalmem':_0x161ad8[_0x240151(0x152)](),'freemem':_0x161ad8[_0x240151(0x16f)]()};}catch(_0xb108d3){return{};}}}module[a167_0x1bfbaf(0x17f)]=TestOrderingServerHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a168_0x3bfd65=a168_0x2394;function a168_0x2394(_0x179550,_0x553bba){var _0x1f77f7=a168_0x1f77();return a168_0x2394=function(_0x2394ec,_0xb1bbbc){_0x2394ec=_0x2394ec-0x199;var _0x10782b=_0x1f77f7[_0x2394ec];return _0x10782b;},a168_0x2394(_0x179550,_0x553bba);}(function(_0x207b54,_0x12ee7d){var _0x5b5b6f=a168_0x2394,_0x42dad9=_0x207b54();while(!![]){try{var _0x3ebdc8=parseInt(_0x5b5b6f(0x1ae))/0x1+parseInt(_0x5b5b6f(0x1b7))/0x2*(parseInt(_0x5b5b6f(0x1b9))/0x3)+parseInt(_0x5b5b6f(0x19c))/0x4*(parseInt(_0x5b5b6f(0x1b3))/0x5)+-parseInt(_0x5b5b6f(0x1ab))/0x6*(parseInt(_0x5b5b6f(0x1a0))/0x7)+parseInt(_0x5b5b6f(0x1a6))/0x8+-parseInt(_0x5b5b6f(0x1b8))/0x9*(-parseInt(_0x5b5b6f(0x199))/0xa)+-parseInt(_0x5b5b6f(0x1bc))/0xb*(parseInt(_0x5b5b6f(0x1bd))/0xc);if(_0x3ebdc8===_0x12ee7d)break;else _0x42dad9['push'](_0x42dad9['shift']());}catch(_0x420ca8){_0x42dad9['push'](_0x42dad9['shift']());}}}(a168_0x1f77,0xc6fa3));var a168_0x553081={};a168_0x553081['INVALID_CREDENTIALS']=a168_0x3bfd65(0x1b5),a168_0x553081['DEPRECATED']=a168_0x3bfd65(0x1b0),a168_0x553081[a168_0x3bfd65(0x1ba)]=a168_0x3bfd65(0x1a2);var a168_0x3b1425={};function a168_0x1f77(){var _0x587a26=['ERROR','TestRunFinished','8146235PynXRI','HookFinished','ERROR_INVALID_CREDENTIALS','BROWSERSTACK_TESTHUB_JWT','290638iLoaVK','4818456truKZt','21YXowLm','ACCESS_DENIED','api/v2/builds','11LMpyGs','36281796JZSOvX','10XHISyC','TestSkipped','exports','4KLUvYE','HookRunStarted','HookStarted','TestFinished','478058PzkcwX','BROWSERSTACK_TESTHUB_UUID','ERROR_ACCESS_DENIED','HookRunFinished','OBSERVABILITY','EVENT','6982744RqzShf','TestStarted','CBTSessionCreated','TestRunSkipped','TESTHUB_BUILD_API','24cyNqhR','TestRunStarted','LogCreated','56963VwXzhz','accessibility','ERROR_SDK_DEPRECATED'];a168_0x1f77=function(){return _0x587a26;};return a168_0x1f77();}a168_0x3b1425[a168_0x3bfd65(0x1a7)]=a168_0x3bfd65(0x1ac),a168_0x3b1425[a168_0x3bfd65(0x19f)]=a168_0x3bfd65(0x1b2),a168_0x3b1425[a168_0x3bfd65(0x19a)]=a168_0x3bfd65(0x1a9),a168_0x3b1425[a168_0x3bfd65(0x1ad)]='LogCreated',a168_0x3b1425[a168_0x3bfd65(0x19e)]=a168_0x3bfd65(0x19d),a168_0x3b1425[a168_0x3bfd65(0x1b4)]=a168_0x3bfd65(0x1a3),a168_0x3b1425[a168_0x3bfd65(0x1a8)]=a168_0x3bfd65(0x1a8);var a168_0x424c84={};a168_0x424c84[a168_0x3bfd65(0x1a1)]='BROWSERSTACK_TESTHUB_UUID',a168_0x424c84[a168_0x3bfd65(0x1b6)]='BROWSERSTACK_TESTHUB_JWT';var a168_0x1f6296={};a168_0x1f6296[a168_0x3bfd65(0x1aa)]=a168_0x3bfd65(0x1bb),a168_0x1f6296['ACCESSIBILITY']=a168_0x3bfd65(0x1af),a168_0x1f6296[a168_0x3bfd65(0x1a4)]='observability',a168_0x1f6296[a168_0x3bfd65(0x1b1)]=a168_0x553081,a168_0x1f6296[a168_0x3bfd65(0x1a5)]=a168_0x3b1425,a168_0x1f6296['ENV_VAR']=a168_0x424c84,module[a168_0x3bfd65(0x19b)]=a168_0x1f6296;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a154_0x42f01f=a154_0x3309;function a154_0x3309(_0x37d48b,_0x129c5a){const _0x74b855=a154_0x74b8();return a154_0x3309=function(_0x330929,_0x3e9757){_0x330929=_0x330929-0x16c;let _0x1fc269=_0x74b855[_0x330929];return _0x1fc269;},a154_0x3309(_0x37d48b,_0x129c5a);}(function(_0x372a8e,_0x36b1f5){const _0x3e089c=a154_0x3309,_0x14cf7e=_0x372a8e();while(!![]){try{const _0x424ba6=-parseInt(_0x3e089c(0x190))/0x1+parseInt(_0x3e089c(0x1b7))/0x2+parseInt(_0x3e089c(0x1ef))/0x3+parseInt(_0x3e089c(0x1ee))/0x4*(parseInt(_0x3e089c(0x1f2))/0x5)+parseInt(_0x3e089c(0x17b))/0x6+-parseInt(_0x3e089c(0x1f6))/0x7*(parseInt(_0x3e089c(0x1f1))/0x8)+-parseInt(_0x3e089c(0x1d0))/0x9*(-parseInt(_0x3e089c(0x1f5))/0xa);if(_0x424ba6===_0x36b1f5)break;else _0x14cf7e['push'](_0x14cf7e['shift']());}catch(_0x58857f){_0x14cf7e['push'](_0x14cf7e['shift']());}}}(a154_0x74b8,0x52e01));const bsSetupHelper=require(a154_0x42f01f(0x19d)),path=require('path'),util=require('util'),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a154_0x42f01f(0x1c6)),testhubUtils=require(a154_0x42f01f(0x196)),testHubConstants=require(a154_0x42f01f(0x1ac)),constants=require(a154_0x42f01f(0x1ae)),RequestQueueHandler=require(a154_0x42f01f(0x1a1)),logger=require('../logger')[a154_0x42f01f(0x1c1)],SessionHandler=require('../test-observability/sessionHandler.js'),PerformanceTester=require(a154_0x42f01f(0x1a8)),{TESTHUB_EVENTS:PerformanceEvents}=require(a154_0x42f01f(0x178)),TestDetails=require('../../bin/playwright/reporter/test-details.js'),{uploadTraceZip}=require(a154_0x42f01f(0x177)),{isTurboScaleSession}=require('../helper.js'),BrowserstackCLI=require(a154_0x42f01f(0x1ad)),OngoingEvents=new Set();let processedTraceZips=![];const addEvent=_0x19e345=>{const _0x4e0330=a154_0x42f01f;OngoingEvents[_0x4e0330(0x1cd)](_0x19e345);},awaitAllEvents=async()=>{const _0x1328b1=a154_0x42f01f;return Promise[_0x1328b1(0x175)](OngoingEvents);};class TestHubHandler{static [a154_0x42f01f(0x182)]=![];static async[a154_0x42f01f(0x199)](_0x2c4277,_0xc11d2){const _0x5ca3eb=a154_0x42f01f,_0x16f44c={'SSwZz':function(_0x3a8305,_0x122131){return _0x3a8305||_0x122131;},'houww':function(_0x1b2482,_0x5bfc2c){return _0x1b2482||_0x5bfc2c;},'kIdls':function(_0x1dcfef,_0x543305){return _0x1dcfef===_0x543305;},'CfIUO':function(_0x8a101a){return _0x8a101a();},'qGOtu':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','IOwdr':'false','zVdBX':_0x5ca3eb(0x1ff),'FzSRa':function(_0x3525ce,_0x2fe092,_0x4ad75e,_0x41b2f7,_0x44d3a0){return _0x3525ce(_0x2fe092,_0x4ad75e,_0x41b2f7,_0x44d3a0);},'mqqDS':_0x5ca3eb(0x1a7),'LyAEx':function(_0x8993c2,_0x5cfae2){return _0x8993c2===_0x5cfae2;},'YCmAq':_0x5ca3eb(0x1cf),'DRMKp':_0x5ca3eb(0x1fa),'fOJAQ':'scannerProcessingTimeout','BjDiU':function(_0x3f7a0f,_0x272591){return _0x3f7a0f===_0x272591;}};await PerformanceTester[_0x5ca3eb(0x1ca)](PerformanceEvents[_0x5ca3eb(0x1f9)],async()=>{const _0x494ce5=_0x5ca3eb,_0x52952b=Object['assign']({},_0xc11d2['config'],{'root_dir_path':'','framework':_0xc11d2['framework']}),_0x373d49=bsSetupHelper['getUserName'](_0x52952b),_0x486b1e=bsSetupHelper[_0x494ce5(0x1c3)](_0x52952b),_0x5c1aae=_0x16f44c[_0x494ce5(0x186)](_0x373d49,'')+':'+_0x16f44c[_0x494ce5(0x1a0)](_0x486b1e,'');if(_0x16f44c['kIdls'](_0x5c1aae,':'))return _0x16f44c[_0x494ce5(0x185)](isTestObservabilitySession)&&(logger['debug'](_0x16f44c[_0x494ce5(0x198)]),process[_0x494ce5(0x1e7)][_0x494ce5(0x1a5)]=_0x16f44c['IOwdr']),testhubUtils[_0x494ce5(0x1dd)](_0x52952b)&&logger[_0x494ce5(0x1c0)](_0x16f44c[_0x494ce5(0x193)]),[null,null];try{const _0x324f06=await this[_0x494ce5(0x1b1)](_0x52952b,_0x2c4277),_0x1461c9=this[_0x494ce5(0x1b5)](_0x373d49,_0x486b1e),_0x48acad=await _0x16f44c[_0x494ce5(0x179)](nodeRequest,_0x16f44c[_0x494ce5(0x1ba)],testHubConstants[_0x494ce5(0x1a4)],_0x324f06,_0x1461c9),_0x54f3f1=this[_0x494ce5(0x1fe)](_0x52952b,_0x48acad,_0x1461c9);await this[_0x494ce5(0x187)](_0xc11d2,_0x2c4277);const _0x48d1aa=testhubUtils[_0x494ce5(0x1a9)](_0x52952b);process['env'][_0x494ce5(0x17c)]=JSON[_0x494ce5(0x1e8)](_0x48d1aa);if(_0x16f44c[_0x494ce5(0x195)](testhubUtils[_0x494ce5(0x1d9)](_0xc11d2[_0x494ce5(0x1f3)]),null)){const _0x41e7db=_0x54f3f1[_0x16f44c[_0x494ce5(0x16f)]];_0x41e7db&&_0x41e7db['authToken']&&_0x41e7db[_0x494ce5(0x18a)]&&(_0xc11d2['config'][_0x494ce5(0x1cf)]=!![],process[_0x494ce5(0x1e7)][_0x494ce5(0x1c4)]=_0x16f44c[_0x494ce5(0x1eb)]);}return _0x54f3f1&&_0x54f3f1[_0x16f44c[_0x494ce5(0x16f)]]&&_0x54f3f1[_0x16f44c[_0x494ce5(0x16f)]][_0x16f44c[_0x494ce5(0x16d)]]&&(process[_0x494ce5(0x1e7)][_0x494ce5(0x1c5)]=_0x54f3f1[_0x16f44c[_0x494ce5(0x16f)]][_0x16f44c[_0x494ce5(0x16d)]]),_0x54f3f1;}catch(_0x27662a){_0x16f44c[_0x494ce5(0x181)](_0x27662a[_0x494ce5(0x19f)],![])&&testhubUtils[_0x494ce5(0x184)](_0x27662a);throw _0x27662a;}})();}static async[a154_0x42f01f(0x192)](){const _0x1ef5a2=a154_0x42f01f,_0x3e9ccd={'MhUkt':function(_0x46475d,_0x321d20,_0x16af55){return _0x46475d(_0x321d20,_0x16af55);},'EnmlK':function(_0xd4443d,_0x4c9ab9){return _0xd4443d(_0x4c9ab9);},'Dqwsr':function(_0x78fa59){return _0x78fa59();},'NbdEP':'All\x20trace\x20zip\x20send\x20events\x20complete'};if(processedTraceZips)return;const _0x10ac9b=TestDetails['getTraceFilePaths']();_0x10ac9b[_0x1ef5a2(0x1d4)](({testUId:_0x5ac451,filePath:_0x2cff83})=>{const _0x2acc44=_0x1ef5a2;var _0x485c45=_0x3e9ccd[_0x2acc44(0x1b4)](uploadTraceZip,_0x2cff83,_0x5ac451);_0x3e9ccd['EnmlK'](addEvent,_0x485c45);});try{await _0x3e9ccd[_0x1ef5a2(0x19a)](awaitAllEvents),logger[_0x1ef5a2(0x1c0)](_0x3e9ccd[_0x1ef5a2(0x171)]),processedTraceZips=!![];}catch(_0x38f417){logger[_0x1ef5a2(0x1af)]('Error\x20while\x20waiting\x20for\x20events:\x20'+util[_0x1ef5a2(0x1ce)](_0x38f417));}}static async['checkAndSetupPercy'](_0x32ce51,_0x34f99d){const _0x3878fd=a154_0x42f01f;if(constants['PERCY_SUPPORTED_FRAMEWORKS'][_0x3878fd(0x1e5)](_0x34f99d)){await _0x32ce51[_0x3878fd(0x1b9)]();return;}_0x32ce51['config'][_0x3878fd(0x19b)]&&logger['debug'](_0x3878fd(0x18f)+_0x34f99d+'\x20framework');}static[a154_0x42f01f(0x1c8)](_0x74d84a){const _0x4cf717=a154_0x42f01f,_0x4e21fe={'eTmnG':function(_0x302f1c,_0x4897e1){return _0x302f1c(_0x4897e1);},'YFjhW':_0x4cf717(0x1fa)};let _0x1ba0d1;if(_0x74d84a[_0x4cf717(0x17e)]){const _0x4f86ce={};_0x4f86ce[_0x4cf717(0x1ea)]=_0x74d84a['accessibilityOptions'],_0x1ba0d1=_0x4f86ce;}else{const _0x3a0958={};_0x3a0958[_0x4cf717(0x1ea)]={},_0x1ba0d1=_0x3a0958;}if((!bsSetupHelper[_0x4cf717(0x1a3)]()||_0x4e21fe['eTmnG'](isTurboScaleSession,_0x74d84a))&&testhubUtils[_0x4cf717(0x1dd)](_0x74d84a)){const _0x1e2599={};_0x1e2599[_0x4cf717(0x1e9)]=_0x4e21fe[_0x4cf717(0x180)],Object[_0x4cf717(0x1d1)](_0x1ba0d1[_0x4cf717(0x1ea)],_0x1e2599);}return _0x1ba0d1;}static[a154_0x42f01f(0x1b5)](_0xdff5aa,_0x19edb3){const _0x19ff25=a154_0x42f01f,_0x15a819={'LrKps':function(_0x270a02,_0x50bdb7){return _0x270a02(_0x50bdb7);}},_0x3475ea={};return _0x3475ea[_0x19ff25(0x1d8)]=_0xdff5aa,_0x3475ea[_0x19ff25(0x1ec)]=_0x19edb3,{'auth':_0x3475ea,'headers':_0x15a819['LrKps'](getDefaultHeaders,![])};}static async[a154_0x42f01f(0x1b1)](_0x298172,_0x434921){const _0x256644=a154_0x42f01f,_0x4d62d2={'GpRZt':_0x256644(0x191),'Egbqn':function(_0x8cbec0,_0x397d8a){return _0x8cbec0(_0x397d8a);}};logger[_0x256644(0x1c0)](_0x4d62d2['GpRZt']);const _0x556fe4={'project_name':_0x298172[_0x256644(0x189)]||'','name':_0x298172[_0x256644(0x1bf)]||path['basename'](path[_0x256644(0x1e3)](process['cwd']())),'build_identifier':_0x298172['buildIdentifier'],'description':_0x298172['buildDescription']||'','started_at':new Date()[_0x256644(0x1dc)](),'tags':_0x4d62d2['Egbqn'](getCustomTags,_0x298172),'host_info':bsSetupHelper[_0x256644(0x18b)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process['env'][_0x256644(0x1a2)],'failed_tests_rerun':process['env'][_0x256644(0x1b2)]||![],'linked_build_uuid':process[_0x256644(0x1e7)][_0x256644(0x1fd)]||'','version_control':await bsSetupHelper['getGitMetaData'](),'accessibility':this[_0x256644(0x1c8)](_0x298172),'framework_details':testhubUtils['getFrameworkDetails'](_0x298172,_0x434921),'product_map':testhubUtils[_0x256644(0x17f)](_0x298172),'browserstackAutomation':bsSetupHelper[_0x256644(0x1a3)](),'grouping_identifier':process[_0x256644(0x1e7)]['BROWSERSTACK_BUILD_GROUPING_IDENTIFIER'],'test_orchestration':testhubUtils['getTestOrchestrationBuildStartData'](_0x298172)};if(bsSetupHelper[_0x256644(0x1f7)]()[_0x256644(0x188)]||bsSetupHelper[_0x256644(0x1f7)]()['lcnc']){const _0x393386={};_0x393386[_0x256644(0x1ab)]=process[_0x256644(0x1e7)][_0x256644(0x18d)],_0x393386[_0x256644(0x1b8)]=process[_0x256644(0x1e7)][_0x256644(0x1f8)],_0x556fe4[_0x256644(0x188)]=_0x393386;}return _0x556fe4;}static['extractDataFromResponse'](_0x11f612,_0x596d9b,_0x4e7281){const _0x2c85af=a154_0x42f01f,_0x4b75fa={'hJYxI':function(_0x5e5dc7){return _0x5e5dc7();},'pLqAF':function(_0x5a8db7,_0xaa9291){return _0x5a8db7&&_0xaa9291;},'dGIHB':_0x2c85af(0x1fa),'fRiiZ':_0x2c85af(0x1da)},_0x1873bc={};if(_0x4b75fa[_0x2c85af(0x18e)](isTestObservabilitySession)){const [_0x574a80,_0x3f33ac,_0x2e0bbc]=testhubUtils[_0x2c85af(0x172)](_0x596d9b['data'],_0x4e7281[_0x2c85af(0x1e1)]);if(_0x4b75fa[_0x2c85af(0x1ed)](_0x574a80,_0x3f33ac)){const _0x6009d5={};_0x6009d5[_0x2c85af(0x1cc)]=_0x574a80,_0x6009d5[_0x2c85af(0x18a)]=_0x3f33ac,_0x6009d5[_0x2c85af(0x1b3)]=_0x2e0bbc,_0x1873bc[testHubConstants[_0x2c85af(0x183)]]=_0x6009d5,process[_0x2c85af(0x1e7)][_0x2c85af(0x1e4)]=_0x4b75fa[_0x2c85af(0x1f4)];}else _0x1873bc[testHubConstants[_0x2c85af(0x183)]]={},process[_0x2c85af(0x1e7)][_0x2c85af(0x1e4)]=_0x4b75fa[_0x2c85af(0x174)];}else process[_0x2c85af(0x1e7)][_0x2c85af(0x1e4)]=_0x4b75fa['fRiiZ'];const [_0x166cb5,_0x62c502,_0x4d9a62]=testhubUtils['setAccessibilityVariables'](_0x596d9b[_0x2c85af(0x1c7)]);if(_0x4b75fa[_0x2c85af(0x1ed)](_0x166cb5,_0x62c502)){const _0x1cb495={};_0x1cb495['authToken']=_0x166cb5,_0x1cb495[_0x2c85af(0x18a)]=_0x62c502,_0x1cb495[_0x2c85af(0x18c)]=_0x4d9a62,_0x1873bc[testHubConstants[_0x2c85af(0x1fb)]]=_0x1cb495,process[_0x2c85af(0x1e7)][_0x2c85af(0x1d3)]=_0x4b75fa[_0x2c85af(0x1f4)];}else _0x1873bc[testHubConstants[_0x2c85af(0x1fb)]]={},process[_0x2c85af(0x1e7)][_0x2c85af(0x1d3)]=_0x4b75fa[_0x2c85af(0x174)];return testhubUtils['setTestHubCommonMetaInfo'](_0x596d9b['data']),logger[_0x2c85af(0x17d)](_0x2c85af(0x19c)+process[_0x2c85af(0x1e7)]['BROWSERSTACK_TESTHUB_UUID']),_0x1873bc;}static async[a154_0x42f01f(0x1cb)](_0x51d91f){const _0x52a913=a154_0x42f01f,_0x2b6688={'oWIgI':function(_0x4d69a4,_0x11d700){return _0x4d69a4===_0x11d700;},'BGfIN':_0x52a913(0x1da),'CXaHz':_0x52a913(0x1bd),'dKiBp':_0x52a913(0x1e6),'DvFJc':_0x52a913(0x1af),'nHRbd':_0x52a913(0x16e),'Fbnqf':_0x52a913(0x19e),'XVWOe':_0x52a913(0x1a6),'pWjku':function(_0x1b6838){return _0x1b6838();},'aEsFp':function(_0x5646fa,_0x20eacf,_0xa79ff0,_0x4b1ec2,_0x39f4ba,_0x2351c6){return _0x5646fa(_0x20eacf,_0xa79ff0,_0x4b1ec2,_0x39f4ba,_0x2351c6);},'oABur':_0x52a913(0x1c2),'iOCJB':'stopBuildUpstream\x20event\x20successful!','iKEdm':'success'};await PerformanceTester[_0x52a913(0x1ca)](PerformanceEvents[_0x52a913(0x1d7)],async()=>{const _0x3ebad5=_0x52a913;if(_0x2b6688['oWIgI'](process['env'][_0x3ebad5(0x1a5)],_0x2b6688['BGfIN'])||TestHubHandler[_0x3ebad5(0x182)]||bsSetupHelper['isUndefined'](process['env'][testHubConstants[_0x3ebad5(0x194)][_0x3ebad5(0x197)]]))return;TestHubHandler[_0x3ebad5(0x182)]=!![];if(BrowserstackCLI[_0x3ebad5(0x1e0)]()[_0x3ebad5(0x1fc)]())return;await this[_0x3ebad5(0x192)](),await RequestQueueHandler[_0x3ebad5(0x1e0)]()['uploadPending'](),await SessionHandler[_0x3ebad5(0x1b0)]();if(_0x2b6688[_0x3ebad5(0x1be)](process[_0x3ebad5(0x1e7)][testHubConstants[_0x3ebad5(0x194)][_0x3ebad5(0x197)]],_0x2b6688['CXaHz'])||_0x2b6688[_0x3ebad5(0x1be)](process[_0x3ebad5(0x1e7)][testHubConstants[_0x3ebad5(0x194)][_0x3ebad5(0x17a)]],_0x2b6688[_0x3ebad5(0x1aa)])){logger[_0x3ebad5(0x1c0)](_0x2b6688[_0x3ebad5(0x1db)]);const _0x2a26c6={};return _0x2a26c6[_0x3ebad5(0x176)]=_0x2b6688['DvFJc'],_0x2a26c6[_0x3ebad5(0x173)]=_0x2b6688[_0x3ebad5(0x1df)],_0x2a26c6;}const _0x24cff1={'finished_at':new Date()['toISOString'](),'finished_metadata':[]};!!_0x51d91f&&_0x24cff1[_0x2b6688[_0x3ebad5(0x1bc)]][_0x3ebad5(0x1bb)]({'reason':_0x2b6688[_0x3ebad5(0x16c)],'signal':_0x51d91f,'failure_data':''});const _0x27664f={'headers':_0x2b6688['pWjku'](getDefaultHeaders)};try{const _0x96a53f=await _0x2b6688['aEsFp'](nodeRequest,_0x2b6688[_0x3ebad5(0x1b6)],_0x3ebad5(0x170)+process[_0x3ebad5(0x1e7)][testHubConstants[_0x3ebad5(0x194)][_0x3ebad5(0x17a)]]+_0x3ebad5(0x1de),_0x24cff1,_0x27664f,![]);if(_0x96a53f[_0x3ebad5(0x1c7)]&&_0x96a53f[_0x3ebad5(0x1c7)][_0x3ebad5(0x1af)]){const _0x3653d3={};_0x3653d3['message']=_0x96a53f[_0x3ebad5(0x1c7)]['error'];throw _0x3653d3;}else{logger[_0x3ebad5(0x1c0)](_0x2b6688[_0x3ebad5(0x1f0)]);const _0x75a69f={};return _0x75a69f[_0x3ebad5(0x176)]=_0x2b6688['iKEdm'],_0x75a69f[_0x3ebad5(0x173)]='',_0x75a69f;}}catch(_0x45f2ac){_0x45f2ac[_0x3ebad5(0x1d2)]?logger[_0x3ebad5(0x1c0)](_0x3ebad5(0x1c9)+_0x45f2ac['response']['status']+'\x20'+_0x45f2ac['response'][_0x3ebad5(0x1d5)]+'\x20'+JSON[_0x3ebad5(0x1e8)](_0x45f2ac[_0x3ebad5(0x1d2)][_0x3ebad5(0x1c7)])):logger['debug'](_0x3ebad5(0x1c9)+(_0x45f2ac['message']||_0x45f2ac));const _0x284411={};return _0x284411[_0x3ebad5(0x176)]=_0x2b6688[_0x3ebad5(0x1d6)],_0x284411[_0x3ebad5(0x173)]=_0x45f2ac[_0x3ebad5(0x173)]||_0x45f2ac['response']?_0x45f2ac[_0x3ebad5(0x1d2)][_0x3ebad5(0x176)]+':'+_0x45f2ac[_0x3ebad5(0x1d2)][_0x3ebad5(0x1d5)]:_0x45f2ac,_0x284411;}})();}}module[a154_0x42f01f(0x1e2)]=TestHubHandler;function a154_0x74b8(){const _0x5ce3ff=['auth','exports','resolve','BROWSERSTACK_TEST_OBSERVABILITY','includes','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','env','stringify','includeEncodedExtension','settings','DRMKp','password','pLqAF','2508mFYINI','728994TTzQuI','iOCJB','84008kiqsOy','745wLHygV','config','dGIHB','472100jkvUTP','413SfCNqt','getCentralUser','BROWSERSTACK_CENTRAL_SCANNER_JWT','START','true','ACCESSIBILITY','isRunning','BROWSERSTACK_LINKED_BUILD_UUID','extractDataFromResponse','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','XVWOe','fOJAQ','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','YCmAq','api/v1/builds/','NbdEP','setTestObservabilityVariables','message','fRiiZ','allSettled','status','../../bin/playwright/reporter/pwUtils.js','../performance/constants','FzSRa','BROWSERSTACK_TESTHUB_UUID','3321942aaGoHe','BROWSERSTACK_PRODUCT_MAP','info','accessibilityOptions','getProductMapForBuildStartCall','YFjhW','BjDiU','buildStopSent','OBSERVABILITY','logBuildError','CfIUO','SSwZz','checkAndSetupPercy','central_scanner','projectName','buildHashedId','getHostInfo','scannerProcessingTimeout','BROWSERSTACK_CENTRAL_SCANNER_JOBID','hJYxI','Percy\x20is\x20not\x20supported\x20for\x20','598206aMdFwT','Generating\x20build\x20upstream\x20data\x20for\x20TestHub','processTraceZips','zVdBX','ENV_VAR','LyAEx','./utils.js','BROWSERSTACK_TESTHUB_JWT','qGOtu','launchBuild','Dqwsr','percy','Testhub\x20started\x20with\x20id:\x20','../helper','finished_metadata','success','houww','../test-observability/requestQueueHandler.js','BROWSERSTACK_BUILD_RUN_IDENTIFIER','isBrowserstackInfra','TESTHUB_BUILD_API','BS_TESTOPS_BUILD_COMPLETED','user_killed','POST','../performance/performance-tester.js','getProductMap','CXaHz','job_id','./constants.js','../../bin/v2/browserstackCLI','../../bin/utils/constants.js','error','waitForBuildStatus','generateBuildUpstreamData','BROWSERSTACK_RERUN','allowScreenshot','MhUkt','getConfig','oABur','673348VzNzou','token','setupPercy','mqqDS','push','Fbnqf','null','oWIgI','buildName','debug','winstonLogger','PUT','getAccessKey','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','BROWSERSTACK_TEST_ACCESSIBILITY_SCRIPT_TIMEOUT','../test-observability/utils','data','getAccessibilityOptions','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','measureWrapper','stop','jwt','add','format','accessibility','63sjiaDU','assign','response','BROWSERSTACK_ACCESSIBILITY','forEach','statusText','DvFJc','STOP','username','getAccessibilityValueFromYml','false','dKiBp','toISOString','isAccessibilityEnabled','/stop','nHRbd','getInstance'];a154_0x74b8=function(){return _0x5ce3ff;};return a154_0x74b8();}
|
|
1
|
+
function a169_0x16e9(){const _0x441606=['ENV_VAR','../helper','token','6550789vDveTQ','toISOString','util','FFGnl','../test-observability/sessionHandler.js','../helper.js','null','setupPercy','bNCfC','OBSERVABILITY','35tjOIXk','response','getAccessibilityValueFromYml','BROWSERSTACK_CENTRAL_SCANNER_JOBID','getProductMapForBuildStartCall','vZvMA','statusText','accessibilityOptions','isRunning','qpCNt','JBOio','qzAIC','getAccessibilityOptions','GVssx','\x20framework','djhxp','getProductMap','authToken','buildStopSent','BROWSERSTACK_CENTRAL_SCANNER_JWT','BROWSERSTACK_LINKED_BUILD_UUID','../../bin/utils/constants.js','getCentralUser','percy','XCCpy','VtMfR','waitForBuildStatus','dLmmM','ZGLeq','includeEncodedExtension','ZecBr','/stop','projectName','BROWSERSTACK_TEST_OBSERVABILITY','WhRYN','jwt','../../bin/playwright/reporter/pwUtils.js','status','BROWSERSTACK_TESTHUB_UUID','job_id','434081gXNeZa','BROWSERSTACK_ACCESSIBILITY','ysKLF','env','extractDataFromResponse','generateBuildUpstreamData','BROWSERSTACK_PRODUCT_MAP','getTraceFilePaths','531zLcbdt','swJKY','debug','ZsKfL','false','processTraceZips','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','BS_TESTOPS_BUILD_COMPLETED','isBrowserstackInfra','wByTQ','launchBuild','cwd','accessibility','checkAndSetupPercy','exports','YGBlQ','PUT','error','bpAaB','add','JRbUl','isUndefined','data','getHostInfo','vceNi','PERCY_SUPPORTED_FRAMEWORKS','buildIdentifier','AlHgV','setTestObservabilityVariables','format','Testhub\x20started\x20with\x20id:\x20','scannerProcessingTimeout','../test-observability/requestQueueHandler.js','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','buildDescription','pHUjd','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','LDJiD','stopBuildUpstream\x20event\x20successful!','allowScreenshot','39343238rNbqpf','../../bin/v2/browserstackCLI','lgKId','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER','success','stop','config','stringify','SPlvg','settings','getFrameworkDetails','isAccessibilityEnabled','measureWrapper','framework','STOP','Percy\x20is\x20not\x20supported\x20for\x20','BROWSERSTACK_TESTHUB_JWT','BROWSERSTACK_TEST_ACCESSIBILITY_SCRIPT_TIMEOUT','wTMcX','33104tjIFgq','Error\x20while\x20waiting\x20for\x20events:\x20','../performance/constants','All\x20trace\x20zip\x20send\x20events\x20complete','central_scanner','getConfig','info','kKncJ','true','10628bxWbtl','push','message','getAccessKey','assign','8JSgJbC','1155858HIxOks','wHKpb','ACCESSIBILITY','getGitMetaData','pofSS','buildName','finished_metadata','../../bin/playwright/reporter/test-details.js','setAccessibilityVariables','BROWSERSTACK_BUILD_RUN_IDENTIFIER','Generating\x20build\x20upstream\x20data\x20for\x20TestHub','BROWSERSTACK_RERUN','1191WsHEaV','START','path','getInstance','EQhnK','15110870vixkNU','basename','auth','uploadPending','iVVZV'];a169_0x16e9=function(){return _0x441606;};return a169_0x16e9();}const a169_0x3fedbe=a169_0xddd7;(function(_0x7b86b8,_0x33292d){const _0x244e11=a169_0xddd7,_0x1695c0=_0x7b86b8();while(!![]){try{const _0x2a8e58=parseInt(_0x244e11(0x114))/0x1*(parseInt(_0x244e11(0x165))/0x2)+parseInt(_0x244e11(0x172))/0x3*(parseInt(_0x244e11(0x160))/0x4)+parseInt(_0x244e11(0xec))/0x5*(parseInt(_0x244e11(0x166))/0x6)+-parseInt(_0x244e11(0xe2))/0x7+parseInt(_0x244e11(0x157))/0x8*(-parseInt(_0x244e11(0x11c))/0x9)+parseInt(_0x244e11(0x177))/0xa+-parseInt(_0x244e11(0x144))/0xb;if(_0x2a8e58===_0x33292d)break;else _0x1695c0['push'](_0x1695c0['shift']());}catch(_0x2a50a9){_0x1695c0['push'](_0x1695c0['shift']());}}}(a169_0x16e9,0xda4a2));const bsSetupHelper=require(a169_0x3fedbe(0xe0)),path=require(a169_0x3fedbe(0x174)),util=require(a169_0x3fedbe(0xe4)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require('../test-observability/utils'),testhubUtils=require('./utils.js'),testHubConstants=require('./constants.js'),constants=require(a169_0x3fedbe(0x101)),RequestQueueHandler=require(a169_0x3fedbe(0x13c)),logger=require('../logger')['winstonLogger'],SessionHandler=require(a169_0x3fedbe(0xe6)),PerformanceTester=require('../performance/performance-tester.js'),{TESTHUB_EVENTS:PerformanceEvents}=require(a169_0x3fedbe(0x159)),TestDetails=require(a169_0x3fedbe(0x16d)),{uploadTraceZip}=require(a169_0x3fedbe(0x110)),{isTurboScaleSession}=require(a169_0x3fedbe(0xe7)),BrowserstackCLI=require(a169_0x3fedbe(0x145)),OngoingEvents=new Set();function a169_0xddd7(_0x332d05,_0x4e3fd8){const _0x16e9d5=a169_0x16e9();return a169_0xddd7=function(_0xddd7e,_0x402d6d){_0xddd7e=_0xddd7e-0xdd;let _0x2ec6d0=_0x16e9d5[_0xddd7e];return _0x2ec6d0;},a169_0xddd7(_0x332d05,_0x4e3fd8);}let processedTraceZips=![];const addEvent=_0x287d5f=>{const _0x19905e=a169_0x3fedbe;OngoingEvents[_0x19905e(0x12f)](_0x287d5f);},awaitAllEvents=async()=>{return Promise['allSettled'](OngoingEvents);};class TestHubHandler{static [a169_0x3fedbe(0xfe)]=![];static async[a169_0x3fedbe(0x126)](_0xa5664a,_0x51f5d0){const _0x5bb32e=a169_0x3fedbe,_0x563b18={'bNCfC':function(_0x789c11,_0xd1405){return _0x789c11||_0xd1405;},'LDJiD':function(_0x471080,_0x5b71d9){return _0x471080||_0x5b71d9;},'vceNi':function(_0x242ee1,_0x53c0bd){return _0x242ee1===_0x53c0bd;},'bpAaB':function(_0x3ed9dd){return _0x3ed9dd();},'swJKY':_0x5bb32e(0x140),'JRbUl':'false','kKncJ':_0x5bb32e(0x13d),'qpCNt':function(_0x2e18f6,_0x3c05fc,_0x3c7bcc,_0x2f813e,_0x48eb97){return _0x2e18f6(_0x3c05fc,_0x3c7bcc,_0x2f813e,_0x48eb97);},'ZecBr':'POST','lgKId':function(_0xaf503a,_0x40bf34){return _0xaf503a===_0x40bf34;},'wByTQ':'accessibility','pofSS':_0x5bb32e(0x15f),'XCCpy':_0x5bb32e(0x13b),'wHKpb':function(_0x3c83e1,_0x3e9145){return _0x3c83e1===_0x3e9145;}};await PerformanceTester[_0x5bb32e(0x150)](PerformanceEvents[_0x5bb32e(0x173)],async()=>{const _0x3a8ec0=_0x5bb32e,_0x3c3b47=Object[_0x3a8ec0(0x164)]({},_0x51f5d0[_0x3a8ec0(0x14a)],{'root_dir_path':'','framework':_0x51f5d0[_0x3a8ec0(0x151)]}),_0x35d85c=bsSetupHelper['getUserName'](_0x3c3b47),_0x169017=bsSetupHelper[_0x3a8ec0(0x163)](_0x3c3b47),_0x3affe1=_0x563b18[_0x3a8ec0(0xea)](_0x35d85c,'')+':'+_0x563b18[_0x3a8ec0(0x141)](_0x169017,'');if(_0x563b18[_0x3a8ec0(0x134)](_0x3affe1,':'))return _0x563b18[_0x3a8ec0(0x12e)](isTestObservabilitySession)&&(logger[_0x3a8ec0(0x11e)](_0x563b18[_0x3a8ec0(0x11d)]),process[_0x3a8ec0(0x117)][_0x3a8ec0(0x123)]=_0x563b18[_0x3a8ec0(0x130)]),testhubUtils[_0x3a8ec0(0x14f)](_0x3c3b47)&&logger[_0x3a8ec0(0x11e)](_0x563b18[_0x3a8ec0(0x15e)]),[null,null];try{const _0x31a6be=await this[_0x3a8ec0(0x119)](_0x3c3b47,_0xa5664a),_0x56d969=this[_0x3a8ec0(0x15c)](_0x35d85c,_0x169017),_0xaae758=await _0x563b18[_0x3a8ec0(0xf5)](nodeRequest,_0x563b18[_0x3a8ec0(0x10a)],testHubConstants['TESTHUB_BUILD_API'],_0x31a6be,_0x56d969),_0x540731=this[_0x3a8ec0(0x118)](_0x3c3b47,_0xaae758,_0x56d969);await this[_0x3a8ec0(0x129)](_0x51f5d0,_0xa5664a);const _0x36262d=testhubUtils[_0x3a8ec0(0xfc)](_0x3c3b47);process[_0x3a8ec0(0x117)][_0x3a8ec0(0x11a)]=JSON[_0x3a8ec0(0x14b)](_0x36262d);if(_0x563b18[_0x3a8ec0(0x146)](testhubUtils[_0x3a8ec0(0xee)](_0x51f5d0['config']),null)){const _0x26faa6=_0x540731[_0x563b18[_0x3a8ec0(0x125)]];_0x26faa6&&_0x26faa6['authToken']&&_0x26faa6['buildHashedId']&&(_0x51f5d0[_0x3a8ec0(0x14a)][_0x3a8ec0(0x128)]=!![],process[_0x3a8ec0(0x117)][_0x3a8ec0(0x122)]=_0x563b18[_0x3a8ec0(0x16a)]);}return _0x540731&&_0x540731[_0x563b18[_0x3a8ec0(0x125)]]&&_0x540731[_0x563b18[_0x3a8ec0(0x125)]][_0x563b18[_0x3a8ec0(0x104)]]&&(process[_0x3a8ec0(0x117)][_0x3a8ec0(0x155)]=_0x540731[_0x563b18[_0x3a8ec0(0x125)]][_0x563b18[_0x3a8ec0(0x104)]]),_0x540731;}catch(_0x51701a){_0x563b18[_0x3a8ec0(0x167)](_0x51701a[_0x3a8ec0(0x148)],![])&&testhubUtils['logBuildError'](_0x51701a);throw _0x51701a;}})();}static async[a169_0x3fedbe(0x121)](){const _0x4eb945=a169_0x3fedbe,_0x51ce24={'JBOio':function(_0x11cf99,_0x3b7600,_0x437d3a){return _0x11cf99(_0x3b7600,_0x437d3a);},'WhRYN':function(_0x5795b6,_0x17a8cc){return _0x5795b6(_0x17a8cc);},'Ktlzw':function(_0x25b946){return _0x25b946();},'FFGnl':_0x4eb945(0x15a)};if(processedTraceZips)return;const _0x5acc9c=TestDetails[_0x4eb945(0x11b)]();_0x5acc9c['forEach'](({testUId:_0x454b0f,filePath:_0xef0a7f})=>{const _0xc12be7=_0x4eb945;var _0x2343a1=_0x51ce24[_0xc12be7(0xf6)](uploadTraceZip,_0xef0a7f,_0x454b0f);_0x51ce24[_0xc12be7(0x10e)](addEvent,_0x2343a1);});try{await _0x51ce24['Ktlzw'](awaitAllEvents),logger[_0x4eb945(0x11e)](_0x51ce24[_0x4eb945(0xe5)]),processedTraceZips=!![];}catch(_0x344b30){logger[_0x4eb945(0x12d)](_0x4eb945(0x158)+util[_0x4eb945(0x139)](_0x344b30));}}static async['checkAndSetupPercy'](_0x5f1b5a,_0x29da22){const _0x49eb9d=a169_0x3fedbe;if(constants[_0x49eb9d(0x135)]['includes'](_0x29da22)){await _0x5f1b5a[_0x49eb9d(0xe9)]();return;}_0x5f1b5a[_0x49eb9d(0x14a)][_0x49eb9d(0x103)]&&logger[_0x49eb9d(0x11e)](_0x49eb9d(0x153)+_0x29da22+_0x49eb9d(0xfa));}static['getAccessibilityOptions'](_0x5b5088){const _0x4c4ee3=a169_0x3fedbe,_0x205b1f={'ysKLF':function(_0x839919,_0x5ace9b){return _0x839919(_0x5ace9b);},'pHUjd':_0x4c4ee3(0x15f)};let _0x163d45;if(_0x5b5088[_0x4c4ee3(0xf3)]){const _0x4deccd={};_0x4deccd['settings']=_0x5b5088[_0x4c4ee3(0xf3)],_0x163d45=_0x4deccd;}else{const _0x493035={};_0x493035[_0x4c4ee3(0x14d)]={},_0x163d45=_0x493035;}if((!bsSetupHelper[_0x4c4ee3(0x124)]()||_0x205b1f[_0x4c4ee3(0x116)](isTurboScaleSession,_0x5b5088))&&testhubUtils[_0x4c4ee3(0x14f)](_0x5b5088)){const _0x52ae21={};_0x52ae21[_0x4c4ee3(0x109)]=_0x205b1f[_0x4c4ee3(0x13f)],Object[_0x4c4ee3(0x164)](_0x163d45['settings'],_0x52ae21);}return _0x163d45;}static[a169_0x3fedbe(0x15c)](_0x5b5d7c,_0x2bf82e){const _0xad265c={'ZtCSr':function(_0x115877,_0x4aa4b8){return _0x115877(_0x4aa4b8);}},_0x8e6ad8={};return _0x8e6ad8['username']=_0x5b5d7c,_0x8e6ad8['password']=_0x2bf82e,{'auth':_0x8e6ad8,'headers':_0xad265c['ZtCSr'](getDefaultHeaders,![])};}static async[a169_0x3fedbe(0x119)](_0xfcf063,_0x19da46){const _0x2f8eb6=a169_0x3fedbe,_0x19d0a4={'ZGLeq':_0x2f8eb6(0x170),'djhxp':function(_0x4d9629,_0x3b87bd){return _0x4d9629(_0x3b87bd);}};logger[_0x2f8eb6(0x11e)](_0x19d0a4[_0x2f8eb6(0x108)]);const _0x79811b={'project_name':_0xfcf063[_0x2f8eb6(0x10c)]||'','name':_0xfcf063[_0x2f8eb6(0x16b)]||path[_0x2f8eb6(0x178)](path['resolve'](process[_0x2f8eb6(0x127)]())),'build_identifier':_0xfcf063[_0x2f8eb6(0x136)],'description':_0xfcf063[_0x2f8eb6(0x13e)]||'','started_at':new Date()[_0x2f8eb6(0xe3)](),'tags':_0x19d0a4[_0x2f8eb6(0xfb)](getCustomTags,_0xfcf063),'host_info':bsSetupHelper[_0x2f8eb6(0x133)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process['env'][_0x2f8eb6(0x16f)],'failed_tests_rerun':process['env'][_0x2f8eb6(0x171)]||![],'linked_build_uuid':process[_0x2f8eb6(0x117)][_0x2f8eb6(0x100)]||'','version_control':await bsSetupHelper[_0x2f8eb6(0x169)](),'accessibility':this[_0x2f8eb6(0xf8)](_0xfcf063),'framework_details':testhubUtils[_0x2f8eb6(0x14e)](_0xfcf063,_0x19da46),'product_map':testhubUtils[_0x2f8eb6(0xf0)](_0xfcf063),'browserstackAutomation':bsSetupHelper['isBrowserstackInfra'](),'grouping_identifier':process[_0x2f8eb6(0x117)][_0x2f8eb6(0x147)],'test_orchestration':testhubUtils['getTestOrchestrationBuildStartData'](_0xfcf063)};if(bsSetupHelper[_0x2f8eb6(0x102)]()[_0x2f8eb6(0x15b)]||bsSetupHelper[_0x2f8eb6(0x102)]()['lcnc']){const _0x2e3bcb={};_0x2e3bcb[_0x2f8eb6(0x113)]=process[_0x2f8eb6(0x117)][_0x2f8eb6(0xef)],_0x2e3bcb[_0x2f8eb6(0xe1)]=process[_0x2f8eb6(0x117)][_0x2f8eb6(0xff)],_0x79811b[_0x2f8eb6(0x15b)]=_0x2e3bcb;}return _0x79811b;}static['extractDataFromResponse'](_0x3108e5,_0x2f8d44,_0x16fa07){const _0xd1df37=a169_0x3fedbe,_0x2acf09={'VtMfR':function(_0x24cc97){return _0x24cc97();},'yiVJh':function(_0x1a94c5,_0x5db664){return _0x1a94c5&&_0x5db664;},'dLmmM':'true','qzAIC':_0xd1df37(0x120),'mEdqy':function(_0x8baa84,_0x3d0ea5){return _0x8baa84&&_0x3d0ea5;}},_0x22e646={};if(_0x2acf09[_0xd1df37(0x105)](isTestObservabilitySession)){const [_0x5a93c3,_0x26dab2,_0x2d5df3]=testhubUtils[_0xd1df37(0x138)](_0x2f8d44[_0xd1df37(0x132)],_0x16fa07[_0xd1df37(0x179)]);if(_0x2acf09['yiVJh'](_0x5a93c3,_0x26dab2)){const _0x582654={};_0x582654[_0xd1df37(0x10f)]=_0x5a93c3,_0x582654['buildHashedId']=_0x26dab2,_0x582654[_0xd1df37(0x143)]=_0x2d5df3,_0x22e646[testHubConstants['OBSERVABILITY']]=_0x582654,process[_0xd1df37(0x117)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x2acf09['dLmmM'];}else _0x22e646[testHubConstants[_0xd1df37(0xeb)]]={},process[_0xd1df37(0x117)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x2acf09['qzAIC'];}else process['env'][_0xd1df37(0x10d)]=_0x2acf09[_0xd1df37(0xf7)];const [_0x470d7e,_0x27614e,_0xa4ece5]=testhubUtils[_0xd1df37(0x16e)](_0x2f8d44['data']);if(_0x2acf09['mEdqy'](_0x470d7e,_0x27614e)){const _0x188928={};_0x188928[_0xd1df37(0xfd)]=_0x470d7e,_0x188928['buildHashedId']=_0x27614e,_0x188928[_0xd1df37(0x13b)]=_0xa4ece5,_0x22e646[testHubConstants[_0xd1df37(0x168)]]=_0x188928,process[_0xd1df37(0x117)][_0xd1df37(0x115)]=_0x2acf09[_0xd1df37(0x107)];}else _0x22e646[testHubConstants[_0xd1df37(0x168)]]={},process[_0xd1df37(0x117)][_0xd1df37(0x115)]=_0x2acf09['qzAIC'];return testhubUtils['setTestHubCommonMetaInfo'](_0x2f8d44['data']),logger[_0xd1df37(0x15d)](_0xd1df37(0x13a)+process[_0xd1df37(0x117)]['BROWSERSTACK_TESTHUB_UUID']),_0x22e646;}static async[a169_0x3fedbe(0x149)](_0x5cbac0){const _0x458d8e=a169_0x3fedbe,_0x1fe65d={'wTMcX':function(_0x27ceb7,_0x2b6640){return _0x27ceb7===_0x2b6640;},'ZsKfL':_0x458d8e(0x120),'EQhnK':_0x458d8e(0xe8),'YGBlQ':function(_0x2cdd6a,_0x316a39){return _0x2cdd6a===_0x316a39;},'kGIOL':'EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','iVVZV':_0x458d8e(0x12d),'SPlvg':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','YyVzT':_0x458d8e(0x16c),'GVssx':'user_killed','vZvMA':function(_0x5bf4aa){return _0x5bf4aa();},'hMAdD':function(_0x397752,_0x5e7a4b,_0x41a071,_0x14d9e1,_0x2144f3,_0x39a8fc){return _0x397752(_0x5e7a4b,_0x41a071,_0x14d9e1,_0x2144f3,_0x39a8fc);},'FTsOy':_0x458d8e(0x12c),'AlHgV':_0x458d8e(0x142),'LbeTg':'success'};await PerformanceTester[_0x458d8e(0x150)](PerformanceEvents[_0x458d8e(0x152)],async()=>{const _0x326d65=_0x458d8e;if(_0x1fe65d['wTMcX'](process[_0x326d65(0x117)][_0x326d65(0x123)],_0x1fe65d[_0x326d65(0x11f)])||TestHubHandler[_0x326d65(0xfe)]||bsSetupHelper[_0x326d65(0x131)](process[_0x326d65(0x117)][testHubConstants[_0x326d65(0xdf)][_0x326d65(0x154)]]))return;TestHubHandler[_0x326d65(0xfe)]=!![];if(BrowserstackCLI[_0x326d65(0x175)]()[_0x326d65(0xf4)]())return;await this[_0x326d65(0x121)](),await RequestQueueHandler['getInstance']()[_0x326d65(0xdd)](),await SessionHandler[_0x326d65(0x106)]();if(_0x1fe65d[_0x326d65(0x156)](process[_0x326d65(0x117)][testHubConstants['ENV_VAR'][_0x326d65(0x154)]],_0x1fe65d[_0x326d65(0x176)])||_0x1fe65d[_0x326d65(0x12b)](process[_0x326d65(0x117)][testHubConstants['ENV_VAR'][_0x326d65(0x112)]],_0x1fe65d[_0x326d65(0x176)])){logger[_0x326d65(0x11e)](_0x1fe65d['kGIOL']);const _0x4be97f={};return _0x4be97f[_0x326d65(0x111)]=_0x1fe65d[_0x326d65(0xde)],_0x4be97f[_0x326d65(0x162)]=_0x1fe65d[_0x326d65(0x14c)],_0x4be97f;}const _0x563aaa={'finished_at':new Date()['toISOString'](),'finished_metadata':[]};!!_0x5cbac0&&_0x563aaa[_0x1fe65d['YyVzT']][_0x326d65(0x161)]({'reason':_0x1fe65d[_0x326d65(0xf9)],'signal':_0x5cbac0,'failure_data':''});const _0x230909={'headers':_0x1fe65d[_0x326d65(0xf1)](getDefaultHeaders)};try{const _0x5e7322=await _0x1fe65d['hMAdD'](nodeRequest,_0x1fe65d['FTsOy'],'api/v1/builds/'+process[_0x326d65(0x117)][testHubConstants['ENV_VAR'][_0x326d65(0x112)]]+_0x326d65(0x10b),_0x563aaa,_0x230909,![]);if(_0x5e7322[_0x326d65(0x132)]&&_0x5e7322[_0x326d65(0x132)][_0x326d65(0x12d)]){const _0x43bc30={};_0x43bc30['message']=_0x5e7322[_0x326d65(0x132)][_0x326d65(0x12d)];throw _0x43bc30;}else{logger[_0x326d65(0x11e)](_0x1fe65d[_0x326d65(0x137)]);const _0x1160f6={};return _0x1160f6[_0x326d65(0x111)]=_0x1fe65d['LbeTg'],_0x1160f6[_0x326d65(0x162)]='',_0x1160f6;}}catch(_0x4d5584){_0x4d5584[_0x326d65(0xed)]?logger[_0x326d65(0x11e)]('EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20'+_0x4d5584['response'][_0x326d65(0x111)]+'\x20'+_0x4d5584['response']['statusText']+'\x20'+JSON[_0x326d65(0x14b)](_0x4d5584[_0x326d65(0xed)][_0x326d65(0x132)])):logger[_0x326d65(0x11e)]('EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20'+(_0x4d5584[_0x326d65(0x162)]||_0x4d5584));const _0x4cfbe8={};return _0x4cfbe8[_0x326d65(0x111)]=_0x1fe65d[_0x326d65(0xde)],_0x4cfbe8[_0x326d65(0x162)]=_0x4d5584[_0x326d65(0x162)]||_0x4d5584[_0x326d65(0xed)]?_0x4d5584[_0x326d65(0xed)]['status']+':'+_0x4d5584[_0x326d65(0xed)][_0x326d65(0xf2)]:_0x4d5584,_0x4cfbe8;}})();}}module[a169_0x3fedbe(0x12a)]=TestHubHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a155_0x300f10=a155_0x493f;(function(_0x521d30,_0x2416c){const _0x805202=a155_0x493f,_0x48e263=_0x521d30();while(!![]){try{const _0x4eecf2=-parseInt(_0x805202(0x128))/0x1+parseInt(_0x805202(0x87))/0x2*(-parseInt(_0x805202(0xd7))/0x3)+-parseInt(_0x805202(0xc2))/0x4+parseInt(_0x805202(0x118))/0x5*(-parseInt(_0x805202(0xe4))/0x6)+parseInt(_0x805202(0xa6))/0x7*(parseInt(_0x805202(0x102))/0x8)+-parseInt(_0x805202(0x10d))/0x9*(parseInt(_0x805202(0x97))/0xa)+parseInt(_0x805202(0x141))/0xb*(parseInt(_0x805202(0x103))/0xc);if(_0x4eecf2===_0x2416c)break;else _0x48e263['push'](_0x48e263['shift']());}catch(_0x1ccc5a){_0x48e263['push'](_0x48e263['shift']());}}}(a155_0x4bb1,0xb800f));const bsSetupHelper=require(a155_0x300f10(0x111)),LoadTestModule=require(a155_0x300f10(0xb0)),{isTestObservabilitySession,getFrameworkVersion}=require('../test-observability/utils'),accessibilityHelper=require('../accessibility-automation/helper'),logger=require(a155_0x300f10(0x11a))[a155_0x300f10(0x122)],{nestedKeyValue}=require(a155_0x300f10(0xf8)),scripts=require(a155_0x300f10(0xb8)),globals=require(a155_0x300f10(0x135)),testHubConstants=require(a155_0x300f10(0xd0)),PWTestDetails=require('../../bin/playwright/reporter/test-details.js'),JestTestDetails=require('../../bin/jest/test-observability/test-details.js'),{FRAMEWORKS}=require(a155_0x300f10(0xe7)),{isTurboScaleSession}=require(a155_0x300f10(0xbf)),OrchestrationUtils=require(a155_0x300f10(0xe5)),constants=require('../../bin/utils/constants.js');let testData={};exports[a155_0x300f10(0x9f)]=_0x367090=>{const _0x35dbb1=a155_0x300f10,_0x44b01b={'xjsqK':function(_0x374ef7){return _0x374ef7();}};let _0x2650e2=![],_0x266078=![];if(bsSetupHelper['isBrowserstackInfra']()&&_0x367090[_0x35dbb1(0x138)])_0x266078=!![];else bsSetupHelper[_0x35dbb1(0x115)]()&&(_0x2650e2=!![]);return Object[_0x35dbb1(0xc1)]({'observability':_0x44b01b[_0x35dbb1(0xd9)](isTestObservabilitySession),'accessibility':exports[_0x35dbb1(0x142)](_0x367090),'percy':_0x367090[_0x35dbb1(0xb6)]||![],'automate':_0x2650e2,'app_automate':_0x266078,'turboscale':bsSetupHelper[_0x35dbb1(0x9d)](_0x367090),'lts':LoadTestModule['isLTSSession'](_0x367090)},bsSetupHelper['getCentralUser']());},exports[a155_0x300f10(0x112)]=(_0x252a8a,_0xdbfa62)=>{const _0x59f220=a155_0x300f10,_0x15a586={'pVNXQ':function(_0x49bf62,_0x451c7b){return _0x49bf62(_0x451c7b);},'LMzVJ':_0x59f220(0x127)},_0x4c3fcc={'frameworkName':_0xdbfa62,'frameworkVersion':_0x15a586[_0x59f220(0x140)](getFrameworkVersion,_0xdbfa62),'sdkVersion':bsSetupHelper['getAgentVersion'](),'language':_0x15a586['LMzVJ'],'testFramework':bsSetupHelper[_0x59f220(0x88)](_0x252a8a,_0xdbfa62)};return process[_0x59f220(0xb5)]['FRAMEWORK_DETAILS']=JSON[_0x59f220(0x12f)](_0x4c3fcc),_0x4c3fcc;},exports['setPercyFlag']=_0x1e3e82=>{const _0x123892=a155_0x300f10,_0x726cb8={};_0x726cb8['YhZtS']=_0x123892(0x108),_0x726cb8[_0x123892(0x10c)]='true';const _0x4ad4bc=_0x726cb8;process[_0x123892(0xb5)]['BROWSERSTACK_PERCY']=_0x4ad4bc[_0x123892(0x91)],bsSetupHelper['isTrue'](_0x1e3e82[_0x123892(0xc5)]['percy'])&&(!_0x1e3e82[_0x123892(0xb6)]||!_0x1e3e82[_0x123892(0xb6)]['isRunning']())&&(process[_0x123892(0xb5)][_0x123892(0x11b)]=_0x4ad4bc['Wgbjn']);},exports[a155_0x300f10(0x106)]=()=>{const _0x36b68e=a155_0x300f10;return bsSetupHelper[_0x36b68e(0xef)](process[_0x36b68e(0xb5)][_0x36b68e(0x11b)]);},exports[a155_0x300f10(0x142)]=(_0x2b9f4b={})=>{const _0x1c07f7=a155_0x300f10,_0xe81517={};_0xe81517[_0x1c07f7(0xee)]=function(_0x10804d,_0x3c45b9){return _0x10804d!==_0x3c45b9;},_0xe81517['xaJJv']=function(_0x276229,_0x2052d4){return _0x276229===_0x2052d4;},_0xe81517[_0x1c07f7(0xcb)]=_0x1c07f7(0xcc),_0xe81517[_0x1c07f7(0xa2)]=function(_0x446f73,_0x3f4e9f){return _0x446f73>_0x3f4e9f;},_0xe81517[_0x1c07f7(0xfc)]=function(_0x14f930,_0x1dce42){return _0x14f930===_0x1dce42;};const _0x56d386=_0xe81517;if(_0x56d386[_0x1c07f7(0xee)](process[_0x1c07f7(0xb5)][_0x1c07f7(0x10b)],undefined))return bsSetupHelper[_0x1c07f7(0xef)](process[_0x1c07f7(0xb5)]['BROWSERSTACK_ACCESSIBILITY']);let _0x5f5053=_0x56d386['xaJJv'](process[_0x1c07f7(0xb5)][_0x1c07f7(0x126)],_0x56d386[_0x1c07f7(0xcb)]);return _0x56d386[_0x1c07f7(0xa2)](Object[_0x1c07f7(0x99)](_0x2b9f4b)[_0x1c07f7(0xf7)],0x0)&&(process[_0x1c07f7(0xb5)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=accessibilityHelper['checkAccessibilityPlatformConfig'](_0x2b9f4b)),_0x5f5053=_0x5f5053||_0x56d386['kqZwb'](process['env'][_0x1c07f7(0x13c)],_0x56d386[_0x1c07f7(0xcb)]),_0x5f5053;},exports['setTestObservabilityVariables']=(_0x5a7331,_0x2f359e)=>{const _0x43326a=a155_0x300f10,_0x5735cd={'fnRQj':function(_0x125d84){return _0x125d84();},'AwCRQ':_0x43326a(0xff),'uAtLW':_0x43326a(0xcc),'XGusB':function(_0x3beacd,_0x1a4a5e,_0x51a846){return _0x3beacd(_0x1a4a5e,_0x51a846);},'hTOBe':_0x43326a(0x11d),'JFmPn':_0x43326a(0x119)};if(!_0x5a7331||!_0x5a7331['observability'])return exports['handleErrorForObservability'](),[null,null,null];if(!_0x5a7331[_0x43326a(0x11d)][_0x43326a(0xc3)])return exports[_0x43326a(0xa5)](_0x5a7331['observability']),[null,null,null];if(_0x5735cd['fnRQj'](isTestObservabilitySession)){const _0x2f1725=_0x5735cd[_0x43326a(0xab)][_0x43326a(0xeb)]('|');let _0x226a8a=0x0;while(!![]){switch(_0x2f1725[_0x226a8a++]){case'0':_0x5a7331[_0x43326a(0x13d)]&&(process['env'][_0x43326a(0x139)]=_0x5a7331[_0x43326a(0x13d)]);continue;case'1':return[_0x5a7331['jwt'],_0x5a7331[_0x43326a(0x13d)],process[_0x43326a(0xb5)][_0x43326a(0x133)]];case'2':process[_0x43326a(0xb5)][_0x43326a(0x92)]=_0x5735cd[_0x43326a(0x95)];continue;case'3':logger[_0x43326a(0x113)]('['+constants[_0x43326a(0x12c)]+']\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20'+_0x5a7331['build_hashed_id']);continue;case'4':if(_0x5a7331['jwt']){process[_0x43326a(0xb5)][_0x43326a(0xdd)]=_0x5a7331[_0x43326a(0xa8)];const _0x315f1e={};_0x315f1e[_0x43326a(0xd8)]=_0x2f359e[_0x43326a(0xd8)],_0x315f1e[_0x43326a(0xd1)]=_0x2f359e[_0x43326a(0xd1)],process[_0x43326a(0xb5)][_0x43326a(0x117)]=JSON[_0x43326a(0x12f)](_0x315f1e);}continue;case'5':_0x5735cd[_0x43326a(0xd5)](nestedKeyValue,_0x5a7331,[_0x5735cd[_0x43326a(0x12a)],_0x5735cd['JFmPn']])&&(process[_0x43326a(0xb5)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x5a7331[_0x43326a(0x11d)][_0x43326a(0x119)][_0x43326a(0xc7)][_0x43326a(0xb7)]());continue;}break;}}return[null,null,null];},exports[a155_0x300f10(0xf4)]=_0xa2cfb3=>{const _0x37f168=a155_0x300f10,_0x5eb1bd={'gYvPY':function(_0x1533b1,_0xf85471,_0x21e255){return _0x1533b1(_0xf85471,_0x21e255);},'qsegx':_0x37f168(0x116),'KTICi':'options','UMnDk':function(_0xb15ed2,_0x2d305c,_0x25ad8d,_0x9990a7){return _0xb15ed2(_0x2d305c,_0x25ad8d,_0x9990a7);},'TwhLj':_0x37f168(0x100),'bwDzC':_0x37f168(0x84),'zvIho':function(_0x17d2ee,_0x2a933c,_0x3446f6,_0x102d7b){return _0x17d2ee(_0x2a933c,_0x3446f6,_0x102d7b);},'qKrqf':_0x37f168(0x101),'hDvtg':_0x37f168(0x13a),'HqBLF':_0x37f168(0x10e),'iVCBZ':_0x37f168(0xd4),'dOdZM':function(_0x3bc62b,_0x76857b){return _0x3bc62b(_0x76857b);},'CAEeU':function(_0x4aebe4,_0x5e5725){return _0x4aebe4===_0x5e5725;},'cPlFe':_0x37f168(0xcc),'CkhTh':_0x37f168(0xe3)};if(!_0xa2cfb3[_0x37f168(0x116)])return exports[_0x37f168(0x8a)](),[null,null];if(!_0xa2cfb3[_0x37f168(0x116)][_0x37f168(0xc3)])return exports[_0x37f168(0x8a)](_0xa2cfb3[_0x37f168(0x116)]),[null,null];if(_0x5eb1bd['gYvPY'](nestedKeyValue,_0xa2cfb3,[_0x5eb1bd[_0x37f168(0x136)],_0x5eb1bd[_0x37f168(0xf0)]])){const {accessibilityToken:_0x2540ba,scannerVersion:_0x557f0c,scannerProcessingTimeout:_0xf8d138,isMobileScanningEnabledForGroup:_0xa499db}=_0x5eb1bd[_0x37f168(0xce)](jsonifyAccessibilityArray,_0xa2cfb3[_0x37f168(0x116)][_0x37f168(0x119)]['capabilities'],_0x5eb1bd['TwhLj'],_0x5eb1bd[_0x37f168(0xfa)]),_0x3c2bbc={'scripts':_0x5eb1bd['zvIho'](jsonifyAccessibilityArray,_0xa2cfb3[_0x37f168(0x116)][_0x37f168(0x119)]['scripts'],_0x5eb1bd[_0x37f168(0x85)],_0x5eb1bd[_0x37f168(0xca)])};_0x3c2bbc[_0x5eb1bd[_0x37f168(0x8c)]]=_0xa2cfb3[_0x37f168(0x116)]['options'][_0x37f168(0x96)][_0x37f168(0x13a)];const _0x1222b1=_0x5eb1bd[_0x37f168(0xcf)](jsonifyAccessibilityArray,_0xa2cfb3[_0x37f168(0x116)][_0x37f168(0x119)][_0x37f168(0xa9)],_0x5eb1bd['TwhLj'],_0x5eb1bd['bwDzC']);_0x3c2bbc[_0x5eb1bd[_0x37f168(0x125)]]=_0x1222b1[_0x5eb1bd[_0x37f168(0xe1)]],scripts[_0x37f168(0xd3)](_0x3c2bbc),scripts['toJson']();let _0x134e7b=process['env'][_0x37f168(0x12e)];_0x134e7b=!!_0x134e7b?JSON['parse'](_0x134e7b):{},_0x134e7b[_0x37f168(0x120)]=_0x557f0c,process[_0x37f168(0xb5)][_0x37f168(0x12e)]=JSON[_0x37f168(0x12f)](_0x134e7b),process[_0x37f168(0xb5)][_0x37f168(0xb1)]=_0x2540ba,process['env'][_0x37f168(0x10f)]=_0x5eb1bd['dOdZM'](String,_0x5eb1bd[_0x37f168(0x137)](_0xa499db,!![])||_0x5eb1bd[_0x37f168(0x137)](_0xa499db,_0x5eb1bd[_0x37f168(0x107)])),logger[_0x37f168(0x113)](_0x37f168(0x13e)+_0xa2cfb3[_0x37f168(0x13d)]);const _0x274b63=accessibilityHelper[_0x37f168(0xaa)](_0x2540ba);return _0x274b63&&bsSetupHelper[_0x37f168(0xef)](_0x274b63['skipCDPConnectOverride'])&&(process['env'][_0x37f168(0xdf)]=!![],logger[_0x37f168(0x113)](_0x5eb1bd[_0x37f168(0x82)])),[_0x2540ba,_0xa2cfb3[_0x37f168(0x13d)],_0xf8d138];}return[null,null];},exports[a155_0x300f10(0xa5)]=_0x43f9c2=>{const _0x519aa2=a155_0x300f10,_0x345004={};_0x345004[_0x519aa2(0x83)]=_0x519aa2(0x110),_0x345004[_0x519aa2(0xec)]=_0x519aa2(0x108),_0x345004[_0x519aa2(0xa7)]=_0x519aa2(0x104);const _0x3ee15b=_0x345004,_0x12416a=_0x3ee15b[_0x519aa2(0x83)][_0x519aa2(0xeb)]('|');let _0x392bf7=0x0;while(!![]){switch(_0x12416a[_0x392bf7++]){case'0':process[_0x519aa2(0xb5)][_0x519aa2(0x92)]=_0x3ee15b['NszSS'];continue;case'1':process['env'][_0x519aa2(0x139)]=_0x3ee15b['LgjOm'];continue;case'2':exports['logBuildError'](_0x43f9c2,testHubConstants['OBSERVABILITY']);continue;case'3':process[_0x519aa2(0xb5)]['BROWSERSTACK_TESTHUB_UUID']=_0x3ee15b['LgjOm'];continue;case'4':process[_0x519aa2(0xb5)][_0x519aa2(0xdd)]=_0x3ee15b[_0x519aa2(0xa7)];continue;case'5':process[_0x519aa2(0xb5)]['BROWSERSTACK_TESTHUB_JWT']=_0x3ee15b[_0x519aa2(0xa7)];continue;case'6':process[_0x519aa2(0xb5)][_0x519aa2(0x133)]=_0x3ee15b[_0x519aa2(0xa7)];continue;}break;}},exports[a155_0x300f10(0x8a)]=_0x369868=>{const _0x1dad1a=a155_0x300f10,_0x5205a9={};_0x5205a9[_0x1dad1a(0x89)]=_0x1dad1a(0xb3),_0x5205a9['PPKSS']=_0x1dad1a(0x104),_0x5205a9[_0x1dad1a(0x12d)]=_0x1dad1a(0x108);const _0x5d139a=_0x5205a9,_0x5add1a=_0x5d139a[_0x1dad1a(0x89)][_0x1dad1a(0xeb)]('|');let _0xaab97c=0x0;while(!![]){switch(_0x5add1a[_0xaab97c++]){case'0':exports[_0x1dad1a(0x123)](_0x369868,testHubConstants[_0x1dad1a(0xb4)]);continue;case'1':process[_0x1dad1a(0xb5)][_0x1dad1a(0x9b)]=_0x5d139a[_0x1dad1a(0x9e)];continue;case'2':process[_0x1dad1a(0xb5)][_0x1dad1a(0x109)]=_0x5d139a[_0x1dad1a(0x9e)];continue;case'3':process['env'][_0x1dad1a(0x126)]=_0x5d139a[_0x1dad1a(0x12d)];continue;case'4':process[_0x1dad1a(0xb5)][_0x1dad1a(0x13c)]=_0x5d139a[_0x1dad1a(0x12d)];continue;}break;}},exports[a155_0x300f10(0x123)]=(_0x569665,_0x3c6f24='')=>{const _0xd01d32=a155_0x300f10,_0x45da81={};_0x45da81[_0xd01d32(0x10a)]=function(_0x47a260,_0x4fd0d6){return _0x47a260===_0x4fd0d6;};const _0x348d27=_0x45da81;if(_0x348d27[_0xd01d32(0x10a)](_0x569665,undefined)){logger[_0xd01d32(0xe2)](_0x3c6f24['toUpperCase']()+_0xd01d32(0x13b));return;}for(const _0x2afe0a of _0x569665[_0xd01d32(0xf9)]){const _0x43b7dc=_0x2afe0a[_0xd01d32(0xad)],_0x22c857=_0x2afe0a['message'];if(_0x22c857)switch(_0x43b7dc){case testHubConstants[_0xd01d32(0xa4)][_0xd01d32(0xda)]:logger[_0xd01d32(0xe2)](_0x22c857);break;case testHubConstants['ERROR'][_0xd01d32(0x105)]:logger['info'](_0x22c857);break;case testHubConstants[_0xd01d32(0xa4)][_0xd01d32(0x93)]:logger[_0xd01d32(0xe2)](_0x22c857);break;default:logger[_0xd01d32(0xe2)](_0x22c857);}}};function a155_0x493f(_0x28dd4e,_0x25ca1a){const _0x4bb163=a155_0x4bb1();return a155_0x493f=function(_0x493ff7,_0x537f35){_0x493ff7=_0x493ff7-0x81;let _0x1e944d=_0x4bb163[_0x493ff7];return _0x1e944d;},a155_0x493f(_0x28dd4e,_0x25ca1a);}function a155_0x4bb1(){const _0x31f808=['shouldScanTestForAccessibility','GCtte','BS_TESTOPS_ALLOW_SCREENSHOTS','CETuW','../globals.js','qsegx','CAEeU','app','BS_TESTOPS_BUILD_HASHED_ID','commands','\x20Build\x20creation\x20failed','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','build_hashed_id','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','dvcej','pVNXQ','352iBOZHi','isAccessibilityEnabled','getBuildStartData','CkhTh','ZYcVf','value','TwhLj','getAccessibilityValueFromYml','6AIxSjW','getTestFrameworkDetails','lXIVw','handleErrorForAccessibility','GFQlI','hDvtg','bstackA11yShouldScan','getProductMapForBuildStartCall','accessibilityPlatform','tmQYV','YhZtS','BS_TESTOPS_BUILD_COMPLETED','DEPRECATED','uuid','uAtLW','commandsToWrap','10SKuJVP','TtwEc','keys','shouldProcessEventForTesthub','BROWSERSTACK_TESTHUB_JWT','GWMbT','isTurboScaleSession','PPKSS','getProductMap','XVMwS','setTestHubCommonMetaInfo','jbiGy','Ijwjz','ERROR','handleErrorForObservability','4417IoOLnC','LgjOm','jwt','capabilities','parseA11yJwtPayload','AwCRQ','scopes','key','isUndefined','BROWSERSTACK_TESTHUB_UUID:\x20','../../bin/v2/modules/loadTestModule','BS_A11Y_JWT','Nyijs','2|1|3|4|0','ACCESSIBILITY','env','percy','toString','../accessibility-automation/scripts.js','HSMvj','kOtZQ','pZrkv','gGVXC','tags','getGlobal','../ats/helper','titlePath','assign','3292804ZRYrUh','success','HookRunFinished','config','isAccessibilityPlatform','allow_screenshots','CODECEPT','platforms','qKrqf','Rtndq','true','MOCHA','UMnDk','zvIho','./constants.js','password','dSRwS','parseFromJson','goog:chromeOptions','XGusB','includes','1403619bZmzZU','username','xjsqK','INVALID_CREDENTIALS','isLTSSession','JEST','BS_TESTOPS_JWT','test_run','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','uploadEventData','iVCBZ','error','[ACCESSIBILITY]\x20skip_cdp_connect_override\x20is\x20true,\x20skipping\x20CDP\x20connect\x20override','9084eGoiWy','../test-orchestration/orchestrationUtils.js','PLAYWRIGHT','../test-observability/constants.js','join','HookRunStarted','appendTesthubParams','split','NszSS','yVOjp','OQApw','isTrue','KTICi','jWFrm','product_map','TestRunStarted','setAccessibilityVariables','iFXVq','aaiLT','length','../helper.js','errors','bwDzC','qWSEt','kqZwb','SzFJN','PiSyf','2|4|0|5|3|1','name','command','6192QAVfmq','2077368YHTuJf','null','ACCESS_DENIED','isPercyBuild','cPlFe','false','BROWSERSTACK_TESTHUB_UUID','COQBf','BROWSERSTACK_ACCESSIBILITY','Wgbjn','7205319zuActP','nonBStackInfraA11yChromeOptions','BROWSERSTACK_A11Y_MOBILE_SCANNING_ENABLED_FOR_GROUP','3|5|0|4|1|6|2','../helper','getFrameworkDetails','debug','DQjOJ','isBrowserstackInfra','accessibility','CREDENTIALS_FOR_CRASH_REPORTING','4915XyYuNt','options','../logger','BROWSERSTACK_PERCY','aUmCH','observability','PVnlY','getCentralUser','scannerVersion','gsmPc','winstonLogger','logBuildError','getCurrentTestData','HqBLF','BROWSERSTACK_TEST_ACCESSIBILITY_YML','javascript','758690IERycM','getTestData','hTOBe','CUCUMBER','TEST_REPORTING_ANALYTICS','ISunj','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','stringify','NpPTo'];a155_0x4bb1=function(){return _0x31f808;};return a155_0x4bb1();}const jsonifyAccessibilityArray=(_0x20e89f,_0x166597,_0x9677ea)=>{const _0x314e66={};return _0x20e89f['forEach'](_0x4a1b69=>{_0x314e66[_0x4a1b69[_0x166597]]=_0x4a1b69[_0x9677ea];}),_0x314e66;};exports[a155_0x300f10(0xa1)]=_0x48483d=>{const _0x4482cc=a155_0x300f10;_0x48483d['jwt']&&(process[_0x4482cc(0xb5)][_0x4482cc(0x9b)]=_0x48483d[_0x4482cc(0xa8)]);_0x48483d[_0x4482cc(0x13d)]&&(process['env'][_0x4482cc(0x109)]=_0x48483d[_0x4482cc(0x13d)],logger[_0x4482cc(0x113)](_0x4482cc(0xaf)+_0x48483d[_0x4482cc(0x13d)]));;},exports[a155_0x300f10(0x9a)]=(_0x570f13='',_0x12c0a8='')=>{const _0x31f9b7=a155_0x300f10,_0x296de7={'aaiLT':function(_0x4d4612){return _0x4d4612();},'PVnlY':function(_0x120703,_0x139276){return _0x120703===_0x139276;},'Ywaex':_0x31f9b7(0xe0),'kOtZQ':'LogCreated','PiSyf':'CBTSessionCreated','SzFJN':function(_0x2db9ae){return _0x2db9ae();},'CETuW':_0x31f9b7(0xe9),'GFQlI':_0x31f9b7(0xc4)};if(exports[_0x31f9b7(0x106)]()&&!exports[_0x31f9b7(0x142)]()&&!_0x296de7[_0x31f9b7(0xf6)](isTestObservabilitySession)){if(_0x296de7[_0x31f9b7(0x11e)](_0x12c0a8,_0x296de7['Ywaex']))return![];if([_0x296de7[_0x31f9b7(0xba)],_0x296de7[_0x31f9b7(0xfe)]][_0x31f9b7(0xd6)](_0x570f13))return![];return!![];}if(exports[_0x31f9b7(0x142)]()&&!_0x296de7[_0x31f9b7(0xfd)](isTestObservabilitySession)){if([_0x296de7[_0x31f9b7(0x134)],_0x296de7[_0x31f9b7(0x8b)],_0x296de7['kOtZQ']][_0x31f9b7(0xd6)](_0x570f13))return![];return!![];}return exports[_0x31f9b7(0x142)]()||_0x296de7['SzFJN'](isTestObservabilitySession)||exports[_0x31f9b7(0x106)]();},exports[a155_0x300f10(0xea)]=(_0x54cfe3,_0x98689a,_0x925f0d='',_0x2c8757)=>{const _0x35faae=a155_0x300f10,_0x2f0676={};_0x2f0676[_0x35faae(0xd2)]=_0x35faae(0xe9),_0x2f0676['Nyijs']=_0x35faae(0xc4),_0x2f0676[_0x35faae(0xbb)]=function(_0x589be6,_0x257c2e){return _0x589be6===_0x257c2e;},_0x2f0676[_0x35faae(0xf5)]=_0x35faae(0x8d),_0x2f0676['HSMvj']=_0x35faae(0xc6),_0x2f0676[_0x35faae(0xa3)]='accessibility',_0x2f0676[_0x35faae(0x13f)]=function(_0x299f0d,_0x3f6dfd){return _0x299f0d&&_0x3f6dfd;},_0x2f0676['aUmCH']=function(_0x233ded,_0x2656ff){return _0x233ded===_0x2656ff;},_0x2f0676[_0x35faae(0x98)]=function(_0x107d88,_0x3f770d){return _0x107d88+_0x3f770d;},_0x2f0676['FPtCj']=function(_0x1157e5,_0x44b95b){return _0x1157e5+_0x44b95b;},_0x2f0676[_0x35faae(0xa0)]=function(_0x5973f4,_0x5f0110){return _0x5973f4===_0x5f0110;},_0x2f0676[_0x35faae(0xf1)]=function(_0x555ea2,_0x1b337c){return _0x555ea2===_0x1b337c;},_0x2f0676[_0x35faae(0x130)]=_0x35faae(0xf3),_0x2f0676[_0x35faae(0x132)]=function(_0x25bb87,_0x373144){return _0x25bb87&&_0x373144;},_0x2f0676['yVOjp']=function(_0x5756e7,_0x2ebaa5){return _0x5756e7&&_0x2ebaa5;},_0x2f0676['qWSEt']=_0x35faae(0xf2);const _0x35f2e2=_0x2f0676;if(![_0x35f2e2[_0x35faae(0xd2)],_0x35f2e2[_0x35faae(0xb2)]]['includes'](_0x98689a)&&exports[_0x35faae(0x142)]()){const _0xaa53fc={};if(_0x35f2e2[_0x35faae(0xbb)](_0x2c8757,FRAMEWORKS[_0x35faae(0xcd)])){const _0x5d690f=globals[_0x35faae(0xbe)](_0x35f2e2['iFXVq'])||accessibilityHelper[_0x35faae(0x131)](_0x925f0d[_0x35faae(0xc0)](),!![]),_0x55a0c9=globals['getGlobal'](_0x35f2e2[_0x35faae(0xb9)]);_0xaa53fc[_0x35f2e2['Ijwjz']]=_0x35f2e2[_0x35faae(0x13f)](_0x55a0c9,_0x5d690f);}if(_0x35f2e2[_0x35faae(0x11c)](_0x2c8757,FRAMEWORKS['JEST'])){const _0x5e80bf=_0x35f2e2['TtwEc'](_0x35f2e2['FPtCj'](_0x54cfe3[_0x35faae(0xac)][_0x35faae(0xe8)]('\x20'),'\x20'),_0x925f0d['name']),_0x3cac57=globals[_0x35faae(0xbe)](_0x35f2e2[_0x35faae(0xf5)])||accessibilityHelper['shouldScanTestForAccessibility'](_0x5e80bf,![]),_0x4cfa2b=browserStackGlobals[_0x35faae(0xc6)];_0xaa53fc[_0x35f2e2[_0x35faae(0xa3)]]=_0x35f2e2[_0x35faae(0x13f)](_0x4cfa2b,_0x3cac57);}if(_0x35f2e2[_0x35faae(0xa0)](_0x2c8757,FRAMEWORKS[_0x35faae(0xe6)])){if(_0x35f2e2[_0x35faae(0xf1)](_0x98689a,_0x35f2e2[_0x35faae(0x130)]))return;_0xaa53fc[_0x35f2e2[_0x35faae(0xa3)]]=PWTestDetails['getAccessibilityPlatformValidation'](_0x54cfe3[_0x35faae(0x94)]);}if(_0x35f2e2[_0x35faae(0xbb)](_0x2c8757,FRAMEWORKS[_0x35faae(0xc8)])){const _0x5c76a6=accessibilityHelper[_0x35faae(0x131)](_0x925f0d[_0x35faae(0xc0)](),!![]),_0x42857c=global[_0x35faae(0x8f)];_0xaa53fc[_0x35f2e2[_0x35faae(0xa3)]]=_0x35f2e2[_0x35faae(0x132)](_0x42857c,_0x5c76a6);}if(_0x35f2e2[_0x35faae(0x11c)](_0x2c8757,FRAMEWORKS[_0x35faae(0x12b)])){const _0xfab3d4=accessibilityHelper[_0x35faae(0x131)](null,![],_0x54cfe3[_0x35faae(0xbd)]),_0x2c30a6=globals[_0x35faae(0xbe)](_0x35f2e2['HSMvj']);_0xaa53fc[_0x35f2e2[_0x35faae(0xa3)]]=_0x35f2e2[_0x35faae(0xed)](_0x2c30a6,_0xfab3d4);}_0x54cfe3[_0x35f2e2[_0x35faae(0xfb)]]=_0xaa53fc;}},exports[a155_0x300f10(0x124)]=_0x442907=>{const _0x1b7d1e=a155_0x300f10,_0x367b65={};_0x367b65[_0x1b7d1e(0x90)]=function(_0x11d6dd,_0x143836){return _0x11d6dd>_0x143836;};const _0x3d362a=_0x367b65;let _0x4d32de={};if(_0x3d362a['tmQYV'](Object['keys'](testData)[_0x1b7d1e(0xf7)],0x0))return testData;_0x4d32de=JestTestDetails[_0x1b7d1e(0x129)]();if(_0x3d362a[_0x1b7d1e(0x90)](Object[_0x1b7d1e(0x99)](_0x4d32de)[_0x1b7d1e(0xf7)],0x0))return _0x4d32de;return _0x4d32de;},exports['setCurrentTestData']=(_0x396ed4,_0x17718c={})=>{const _0x341f3=a155_0x300f10;if(bsSetupHelper[_0x341f3(0xae)](_0x17718c[_0x341f3(0xde)]))return;switch(_0x396ed4){case FRAMEWORKS[_0x341f3(0xcd)]:testData=_0x17718c[_0x341f3(0xde)];break;case FRAMEWORKS[_0x341f3(0xdc)]:JestTestDetails['setTestData'](_0x17718c[_0x341f3(0xde)]);break;default:break;}},exports['getAccessibilityValueFromYml']=_0x18a428=>{const _0x521d5b=a155_0x300f10,_0x454cce={};_0x454cce['gsmPc']=function(_0x32ad27,_0x2e3d76){return _0x32ad27!==_0x2e3d76;},_0x454cce[_0x521d5b(0x9c)]=function(_0x24f276,_0x5b0391){return _0x24f276!==_0x5b0391;},_0x454cce[_0x521d5b(0x114)]=function(_0x4e08bc,_0x269dd9){return _0x4e08bc!==_0x269dd9;},_0x454cce[_0x521d5b(0xbc)]=function(_0x24b205,_0x393817){return _0x24b205!==_0x393817;};const _0x177fa5=_0x454cce;if(_0x177fa5[_0x521d5b(0x121)](_0x18a428['accessibility'],null)&&_0x177fa5[_0x521d5b(0x9c)](_0x18a428['accessibility'],undefined))return _0x18a428['accessibility'];let _0x32bf36=![],_0x347326=![];if(_0x18a428[_0x521d5b(0xc9)])for(const _0x43f67d of _0x18a428[_0x521d5b(0xc9)]){_0x177fa5[_0x521d5b(0x114)](_0x43f67d[_0x521d5b(0x116)],null)&&_0x177fa5[_0x521d5b(0xbc)](_0x43f67d[_0x521d5b(0x116)],undefined)&&(_0x32bf36=_0x32bf36||bsSetupHelper[_0x521d5b(0xef)](_0x43f67d[_0x521d5b(0x116)]),_0x347326=!![]);}if(_0x347326)return _0x32bf36;return null;},exports['getTestOrchestrationBuildStartData']=_0x4b2040=>{const _0x3711a0=a155_0x300f10;if(!_0x4b2040)return{};const _0x350db0=new OrchestrationUtils(_0x4b2040);return _0x350db0[_0x3711a0(0x81)]();},exports[a155_0x300f10(0x8e)]=_0x49df2d=>{const _0x133736=a155_0x300f10,_0xd23242={'TLzWf':function(_0x2b0ea6){return _0x2b0ea6();}};let _0x218069=![],_0x3a4454=![];if(bsSetupHelper[_0x133736(0x115)]()&&_0x49df2d[_0x133736(0x138)])_0x3a4454=!![];else bsSetupHelper[_0x133736(0x115)]()&&(_0x218069=!![]);return Object[_0x133736(0xc1)]({'observability':_0xd23242['TLzWf'](isTestObservabilitySession),'accessibility':exports[_0x133736(0x86)](_0x49df2d),'percy':_0x49df2d[_0x133736(0xb6)]||![],'automate':_0x218069,'app_automate':_0x3a4454,'turboscale':bsSetupHelper[_0x133736(0x9d)](_0x49df2d),'lts':LoadTestModule[_0x133736(0xdb)](_0x49df2d)},bsSetupHelper[_0x133736(0x11f)]());};
|
|
1
|
+
function a170_0x936c(_0x5d749c,_0x30a5bd){const _0x64270d=a170_0x6427();return a170_0x936c=function(_0x936c0c,_0x20098f){_0x936c0c=_0x936c0c-0x126;let _0x3cd542=_0x64270d[_0x936c0c];return _0x3cd542;},a170_0x936c(_0x5d749c,_0x30a5bd);}const a170_0x4d6ff4=a170_0x936c;function a170_0x6427(){const _0xd4f8e=['shouldScanTestForAccessibility','ZNhNw','setTestHubCommonMetaInfo','Jpnel','isAccessibilityEnabled','getFrameworkDetails','assign','../test-observability/utils','32710hrSIwf','success','build_hashed_id','TestRunStarted','parseA11yJwtPayload','platforms',']\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','toUpperCase','tags','percy','Osbqo','../ats/helper','./constants.js','setTestObservabilityVariables','BROWSERSTACK_ACCESSIBILITY','BROWSERSTACK_PERCY','2|0|1|4|5|3','key','command','jwt','observability','qKfqK','lZZCs','658106HnVLMc','handleErrorForAccessibility','false','setPercyFlag','logBuildError','suNAr','bYBkL','INVALID_CREDENTIALS','accessibilityPlatform','KqdwJ','titlePath','HVxPQ','uwYIU','bjfVM','../../bin/jasmine/testRunMap.js','Doggf','../accessibility-automation/scripts.js','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','sbqML','lRTsr','HookRunFinished','checkAccessibilityPlatformConfig','getAccessibilityPlatformValidation','LogCreated','isTrue','message','1251VJRXBf','debug','getAccessibilityValueFromYml','HookRunStarted','scannerVersion','pcdgS','0|2|1|4|3','PLAYWRIGHT','sxkZt','test_run','error','wtvic','LBsXj','stringify','289105vthFNG','toString','kHiwh','BS_TESTOPS_BUILD_HASHED_ID','\x20Build\x20creation\x20failed','CoERR','5127728sbQneA','../globals.js','BROWSERSTACK_TESTHUB_JWT','uploadEventData','info','env','BS_TESTOPS_JWT','javascript','7427136egQckf','FZABu','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','fDwWb','../../bin/utils/constants.js','GwPvx','product_map','lkiJu','BS_TESTOPS_BUILD_COMPLETED','getProductMapForBuildStartCall','../../bin/v2/modules/loadTestModule','Lohbw','../logger','join','ovkjI','allow_screenshots','../test-observability/constants.js','ujNrw','JASMINE','isLTSSession','username','bstackA11yShouldScan','app','JzYRi','qYwPT','MOCHA','getCentralUser','BS_A11Y_JWT','WMiGB','JMRrS','3198717sChQes','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','2lRayAD','1|4|3|5|6|2|0','split','config','true','shouldProcessEventForTesthub','capabilities','appendTesthubParams','scripts','JEST','getBuildStartData','../../bin/playwright/reporter/test-details.js','QAIbr','../../bin/jest/test-observability/test-details.js','pcZBN','ldVyU','CUCUMBER','Mtvhn','isAccessibilityPlatform','AzNim','isBrowserstackInfra','GgefA','QBNTr','options','accessibility','forEach','keys','commands','password','isTurboScaleSession','errors','BROWSERSTACK_TESTHUB_UUID','getCurrentTestData','BROWSERSTACK_TESTHUB_UUID:\x20','bUpGc','pWnss','name','BS_TESTOPS_ALLOW_SCREENSHOTS','uwrSU','iTDtQ','length','5878188YBwMJh','getTestFrameworkDetails','isRunning','UBmXD','TfjtD','uaOjp','ZpPft','HDupx','hqGtG','winstonLogger','CREDENTIALS_FOR_CRASH_REPORTING','jYaqC','oqNkU','includes','mxkCP','AWdAN','handleErrorForObservability','WqxpK','uuid','getAgentVersion','toJson','ERROR','pQedC','getGlobal','ZfDbt','INczf','skipCDPConnectOverride','DEPRECATED','scopes','nonBStackInfraA11yChromeOptions','null','isPercyBuild','[ACCESSIBILITY]\x20skip_cdp_connect_override\x20is\x20true,\x20skipping\x20CDP\x20connect\x20override','7cPILxo'];a170_0x6427=function(){return _0xd4f8e;};return a170_0x6427();}(function(_0x1452a5,_0x3bbe14){const _0x5d8d19=a170_0x936c,_0x3d39d0=_0x1452a5();while(!![]){try{const _0x1eb143=parseInt(_0x5d8d19(0x1d3))/0x1+-parseInt(_0x5d8d19(0x169))/0x2*(-parseInt(_0x5d8d19(0x167))/0x3)+parseInt(_0x5d8d19(0x192))/0x4+parseInt(_0x5d8d19(0x13b))/0x5+-parseInt(_0x5d8d19(0x149))/0x6+parseInt(_0x5d8d19(0x1b3))/0x7*(-parseInt(_0x5d8d19(0x141))/0x8)+parseInt(_0x5d8d19(0x12d))/0x9*(-parseInt(_0x5d8d19(0x1bc))/0xa);if(_0x1eb143===_0x3bbe14)break;else _0x3d39d0['push'](_0x3d39d0['shift']());}catch(_0x230f74){_0x3d39d0['push'](_0x3d39d0['shift']());}}}(a170_0x6427,0xe02ce));const bsSetupHelper=require('../helper'),LoadTestModule=require(a170_0x4d6ff4(0x153)),{isTestObservabilitySession,getFrameworkVersion}=require(a170_0x4d6ff4(0x1bb)),accessibilityHelper=require('../accessibility-automation/helper'),logger=require(a170_0x4d6ff4(0x155))[a170_0x4d6ff4(0x19b)],{nestedKeyValue}=require('../helper.js'),scripts=require(a170_0x4d6ff4(0x1e3)),globals=require(a170_0x4d6ff4(0x142)),testHubConstants=require(a170_0x4d6ff4(0x1c8)),PWTestDetails=require(a170_0x4d6ff4(0x174)),JestTestDetails=require(a170_0x4d6ff4(0x176)),{FRAMEWORKS}=require(a170_0x4d6ff4(0x159)),{isTurboScaleSession}=require(a170_0x4d6ff4(0x1c7)),OrchestrationUtils=require('../test-orchestration/orchestrationUtils.js'),constants=require(a170_0x4d6ff4(0x14d));let testData={};exports['getProductMap']=_0x88b4d2=>{const _0x1489d2=a170_0x4d6ff4,_0x66d3bb={'oqNkU':function(_0x2b7a0a){return _0x2b7a0a();}};let _0x224d07=![],_0x5b3fd0=![];if(bsSetupHelper['isBrowserstackInfra']()&&_0x88b4d2[_0x1489d2(0x15f)])_0x5b3fd0=!![];else bsSetupHelper[_0x1489d2(0x17d)]()&&(_0x224d07=!![]);return Object[_0x1489d2(0x1ba)]({'observability':_0x66d3bb[_0x1489d2(0x19e)](isTestObservabilitySession),'accessibility':exports['isAccessibilityEnabled'](_0x88b4d2),'percy':_0x88b4d2['percy']||![],'automate':_0x224d07,'app_automate':_0x5b3fd0,'turboscale':bsSetupHelper[_0x1489d2(0x186)](_0x88b4d2),'lts':LoadTestModule[_0x1489d2(0x15c)](_0x88b4d2)},bsSetupHelper[_0x1489d2(0x163)]());},exports[a170_0x4d6ff4(0x1b9)]=(_0x18076c,_0x1fb2a1)=>{const _0x50d257=a170_0x4d6ff4,_0x5263ec={'QBNTr':function(_0x31274c,_0x385ee2){return _0x31274c(_0x385ee2);},'Doggf':_0x50d257(0x148)},_0x1d51e5={'frameworkName':_0x1fb2a1,'frameworkVersion':_0x5263ec[_0x50d257(0x17f)](getFrameworkVersion,_0x1fb2a1),'sdkVersion':bsSetupHelper[_0x50d257(0x1a5)](),'language':_0x5263ec[_0x50d257(0x1e2)],'testFramework':bsSetupHelper[_0x50d257(0x193)](_0x18076c,_0x1fb2a1)};return process[_0x50d257(0x146)]['FRAMEWORK_DETAILS']=JSON[_0x50d257(0x13a)](_0x1d51e5),_0x1d51e5;},exports[a170_0x4d6ff4(0x1d6)]=_0x593496=>{const _0x2f8149=a170_0x4d6ff4,_0x415583={};_0x415583[_0x2f8149(0x17a)]=_0x2f8149(0x1d5),_0x415583['pcdgS']='true';const _0x1dee96=_0x415583;process[_0x2f8149(0x146)][_0x2f8149(0x1cb)]=_0x1dee96[_0x2f8149(0x17a)],bsSetupHelper[_0x2f8149(0x12b)](_0x593496[_0x2f8149(0x16c)][_0x2f8149(0x1c5)])&&(!_0x593496['percy']||!_0x593496[_0x2f8149(0x1c5)][_0x2f8149(0x194)]())&&(process[_0x2f8149(0x146)][_0x2f8149(0x1cb)]=_0x1dee96[_0x2f8149(0x132)]);},exports[a170_0x4d6ff4(0x1b1)]=()=>{const _0x5bc82a=a170_0x4d6ff4;return bsSetupHelper[_0x5bc82a(0x12b)](process[_0x5bc82a(0x146)][_0x5bc82a(0x1cb)]);},exports[a170_0x4d6ff4(0x1b8)]=(_0x54befc={})=>{const _0x5a404f=a170_0x4d6ff4,_0x4cecee={};_0x4cecee['JMRrS']=function(_0x2c1e2d,_0x477ca0){return _0x2c1e2d!==_0x477ca0;},_0x4cecee['GwPvx']=function(_0x43ec08,_0x4c5331){return _0x43ec08===_0x4c5331;},_0x4cecee[_0x5a404f(0x160)]=_0x5a404f(0x16d),_0x4cecee[_0x5a404f(0x1a3)]=function(_0x2ff32a,_0x429f3f){return _0x2ff32a>_0x429f3f;},_0x4cecee['INczf']=function(_0xb9a670,_0x4f3a59){return _0xb9a670===_0x4f3a59;};const _0x566065=_0x4cecee;if(_0x566065[_0x5a404f(0x166)](process['env'][_0x5a404f(0x1ca)],undefined))return bsSetupHelper[_0x5a404f(0x12b)](process[_0x5a404f(0x146)][_0x5a404f(0x1ca)]);let _0x25d363=_0x566065[_0x5a404f(0x14e)](process[_0x5a404f(0x146)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x566065[_0x5a404f(0x160)]);return _0x566065[_0x5a404f(0x1a3)](Object[_0x5a404f(0x183)](_0x54befc)[_0x5a404f(0x191)],0x0)&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=accessibilityHelper[_0x5a404f(0x128)](_0x54befc)),_0x25d363=_0x25d363||_0x566065[_0x5a404f(0x1ab)](process[_0x5a404f(0x146)][_0x5a404f(0x168)],_0x566065[_0x5a404f(0x160)]),_0x25d363;},exports[a170_0x4d6ff4(0x1c9)]=(_0x29355b,_0x31a241)=>{const _0x5203f1=a170_0x4d6ff4,_0xac0f5a={'jNunr':function(_0x3e7fdd){return _0x3e7fdd();},'ldVyU':_0x5203f1(0x1cc),'YJzkU':'true','kHiwh':function(_0x186134,_0x223fab,_0x1f8e43){return _0x186134(_0x223fab,_0x1f8e43);},'HDupx':_0x5203f1(0x1d0),'suNAr':_0x5203f1(0x180)};if(!_0x29355b||!_0x29355b[_0x5203f1(0x1d0)])return exports[_0x5203f1(0x1a2)](),[null,null,null];if(!_0x29355b[_0x5203f1(0x1d0)][_0x5203f1(0x1bd)])return exports[_0x5203f1(0x1a2)](_0x29355b[_0x5203f1(0x1d0)]),[null,null,null];if(_0xac0f5a['jNunr'](isTestObservabilitySession)){const _0x343147=_0xac0f5a[_0x5203f1(0x178)][_0x5203f1(0x16b)]('|');let _0x4fb1b5=0x0;while(!![]){switch(_0x343147[_0x4fb1b5++]){case'0':if(_0x29355b['jwt']){process[_0x5203f1(0x146)]['BS_TESTOPS_JWT']=_0x29355b[_0x5203f1(0x1cf)];const _0x12224d={};_0x12224d[_0x5203f1(0x15d)]=_0x31a241['username'],_0x12224d[_0x5203f1(0x185)]=_0x31a241[_0x5203f1(0x185)],process[_0x5203f1(0x146)][_0x5203f1(0x19c)]=JSON[_0x5203f1(0x13a)](_0x12224d);}continue;case'1':_0x29355b[_0x5203f1(0x1be)]&&(process[_0x5203f1(0x146)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x29355b[_0x5203f1(0x1be)]);continue;case'2':process[_0x5203f1(0x146)][_0x5203f1(0x151)]=_0xac0f5a['YJzkU'];continue;case'3':return[_0x29355b[_0x5203f1(0x1cf)],_0x29355b[_0x5203f1(0x1be)],process[_0x5203f1(0x146)][_0x5203f1(0x18e)]];case'4':_0xac0f5a[_0x5203f1(0x13d)](nestedKeyValue,_0x29355b,[_0xac0f5a[_0x5203f1(0x199)],_0xac0f5a[_0x5203f1(0x1d8)]])&&(process['env'][_0x5203f1(0x18e)]=_0x29355b[_0x5203f1(0x1d0)]['options'][_0x5203f1(0x158)][_0x5203f1(0x13c)]());continue;case'5':logger[_0x5203f1(0x12e)]('['+constants['TEST_REPORTING_ANALYTICS']+_0x5203f1(0x1c2)+_0x29355b[_0x5203f1(0x1be)]);continue;}break;}}return[null,null,null];},exports['setAccessibilityVariables']=_0x3d016b=>{const _0x6a6e0a=a170_0x4d6ff4,_0x3c3e06={'YGdpi':function(_0x57ff62,_0x3c7bac,_0x483ba0){return _0x57ff62(_0x3c7bac,_0x483ba0);},'lZZCs':'accessibility','AptAK':_0x6a6e0a(0x180),'lkiJu':function(_0x201a3f,_0x190a42,_0x11bb1d,_0x21590f){return _0x201a3f(_0x190a42,_0x11bb1d,_0x21590f);},'ZNhNw':_0x6a6e0a(0x18d),'KqdwJ':'value','sxkZt':_0x6a6e0a(0x1ce),'TfjtD':_0x6a6e0a(0x184),'pcZBN':_0x6a6e0a(0x1af),'ujNrw':'goog:chromeOptions','JGhgt':function(_0x120f77,_0x57255b){return _0x120f77(_0x57255b);},'qYwPT':function(_0x56e6f4,_0xe3d4db){return _0x56e6f4===_0xe3d4db;},'yMnko':function(_0x1eb7f5,_0x5bc313){return _0x1eb7f5===_0x5bc313;},'LctsR':_0x6a6e0a(0x16d),'uwYIU':_0x6a6e0a(0x1b2)};if(!_0x3d016b[_0x6a6e0a(0x181)])return exports['handleErrorForAccessibility'](),[null,null];if(!_0x3d016b[_0x6a6e0a(0x181)][_0x6a6e0a(0x1bd)])return exports['handleErrorForAccessibility'](_0x3d016b[_0x6a6e0a(0x181)]),[null,null];if(_0x3c3e06['YGdpi'](nestedKeyValue,_0x3d016b,[_0x3c3e06[_0x6a6e0a(0x1d2)],_0x3c3e06['AptAK']])){const {accessibilityToken:_0x9a5e41,scannerVersion:_0x46e121,scannerProcessingTimeout:_0x2486b6,isMobileScanningEnabledForGroup:_0x53c535}=_0x3c3e06['lkiJu'](jsonifyAccessibilityArray,_0x3d016b['accessibility'][_0x6a6e0a(0x180)][_0x6a6e0a(0x16f)],_0x3c3e06[_0x6a6e0a(0x1b5)],_0x3c3e06[_0x6a6e0a(0x1dc)]),_0x5f4552={'scripts':_0x3c3e06[_0x6a6e0a(0x150)](jsonifyAccessibilityArray,_0x3d016b[_0x6a6e0a(0x181)]['options'][_0x6a6e0a(0x171)],_0x3c3e06[_0x6a6e0a(0x1b5)],_0x3c3e06[_0x6a6e0a(0x135)])};_0x5f4552[_0x3c3e06[_0x6a6e0a(0x196)]]=_0x3d016b[_0x6a6e0a(0x181)]['options']['commandsToWrap'][_0x6a6e0a(0x184)];const _0x4d9de6=_0x3c3e06[_0x6a6e0a(0x150)](jsonifyAccessibilityArray,_0x3d016b[_0x6a6e0a(0x181)][_0x6a6e0a(0x180)][_0x6a6e0a(0x16f)],_0x3c3e06[_0x6a6e0a(0x1b5)],_0x3c3e06['KqdwJ']);_0x5f4552[_0x3c3e06[_0x6a6e0a(0x177)]]=_0x4d9de6[_0x3c3e06[_0x6a6e0a(0x15a)]],scripts['parseFromJson'](_0x5f4552),scripts[_0x6a6e0a(0x1a6)]();let _0x190af7=process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'];_0x190af7=!!_0x190af7?JSON['parse'](_0x190af7):{},_0x190af7[_0x6a6e0a(0x131)]=_0x46e121,process[_0x6a6e0a(0x146)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x6a6e0a(0x13a)](_0x190af7),process['env'][_0x6a6e0a(0x164)]=_0x9a5e41,process['env']['BROWSERSTACK_A11Y_MOBILE_SCANNING_ENABLED_FOR_GROUP']=_0x3c3e06['JGhgt'](String,_0x3c3e06[_0x6a6e0a(0x161)](_0x53c535,!![])||_0x3c3e06['yMnko'](_0x53c535,_0x3c3e06['LctsR'])),logger[_0x6a6e0a(0x12e)](_0x6a6e0a(0x14b)+_0x3d016b[_0x6a6e0a(0x1be)]);const _0x37687a=accessibilityHelper[_0x6a6e0a(0x1c0)](_0x9a5e41);return _0x37687a&&bsSetupHelper['isTrue'](_0x37687a[_0x6a6e0a(0x1ac)])&&(process['env'][_0x6a6e0a(0x1e4)]=!![],logger[_0x6a6e0a(0x12e)](_0x3c3e06[_0x6a6e0a(0x1df)])),[_0x9a5e41,_0x3d016b['build_hashed_id'],_0x2486b6];}return[null,null];},exports[a170_0x4d6ff4(0x1a2)]=_0x1671f6=>{const _0x26e1f2=a170_0x4d6ff4,_0x30d3a4={};_0x30d3a4[_0x26e1f2(0x198)]=_0x26e1f2(0x16a),_0x30d3a4['ZfDbt']='null',_0x30d3a4[_0x26e1f2(0x1e0)]='false';const _0x5f2582=_0x30d3a4,_0x12da17=_0x5f2582[_0x26e1f2(0x198)][_0x26e1f2(0x16b)]('|');let _0x34d321=0x0;while(!![]){switch(_0x12da17[_0x34d321++]){case'0':exports['logBuildError'](_0x1671f6,testHubConstants['OBSERVABILITY']);continue;case'1':process['env']['BROWSERSTACK_TESTHUB_UUID']=_0x5f2582[_0x26e1f2(0x1aa)];continue;case'2':process[_0x26e1f2(0x146)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x5f2582[_0x26e1f2(0x1aa)];continue;case'3':process[_0x26e1f2(0x146)][_0x26e1f2(0x151)]=_0x5f2582[_0x26e1f2(0x1e0)];continue;case'4':process[_0x26e1f2(0x146)]['BROWSERSTACK_TESTHUB_JWT']=_0x5f2582[_0x26e1f2(0x1aa)];continue;case'5':process['env'][_0x26e1f2(0x147)]=_0x5f2582[_0x26e1f2(0x1aa)];continue;case'6':process[_0x26e1f2(0x146)][_0x26e1f2(0x13e)]=_0x5f2582[_0x26e1f2(0x1aa)];continue;}break;}},exports[a170_0x4d6ff4(0x1d4)]=_0x387ec5=>{const _0x5108ec=a170_0x4d6ff4,_0x455b0f={};_0x455b0f[_0x5108ec(0x1a0)]=_0x5108ec(0x133),_0x455b0f[_0x5108ec(0x165)]=_0x5108ec(0x1b0),_0x455b0f[_0x5108ec(0x190)]=_0x5108ec(0x1d5);const _0x19b1e4=_0x455b0f,_0x5cadd7=_0x19b1e4[_0x5108ec(0x1a0)]['split']('|');let _0x4849c6=0x0;while(!![]){switch(_0x5cadd7[_0x4849c6++]){case'0':process[_0x5108ec(0x146)][_0x5108ec(0x188)]=_0x19b1e4[_0x5108ec(0x165)];continue;case'1':process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x19b1e4[_0x5108ec(0x190)];continue;case'2':process[_0x5108ec(0x146)][_0x5108ec(0x143)]=_0x19b1e4[_0x5108ec(0x165)];continue;case'3':exports[_0x5108ec(0x1d7)](_0x387ec5,testHubConstants['ACCESSIBILITY']);continue;case'4':process['env'][_0x5108ec(0x168)]=_0x19b1e4[_0x5108ec(0x190)];continue;}break;}},exports['logBuildError']=(_0x198505,_0x2abab5='')=>{const _0x59e653=a170_0x4d6ff4,_0x509eb2={};_0x509eb2[_0x59e653(0x1c6)]=function(_0x2d591b,_0xa43af8){return _0x2d591b===_0xa43af8;};const _0x9e8ffe=_0x509eb2;if(_0x9e8ffe[_0x59e653(0x1c6)](_0x198505,undefined)){logger['error'](_0x2abab5[_0x59e653(0x1c3)]()+_0x59e653(0x13f));return;}for(const _0x312226 of _0x198505[_0x59e653(0x187)]){const _0x86b2bb=_0x312226[_0x59e653(0x1cd)],_0xf88839=_0x312226[_0x59e653(0x12c)];if(_0xf88839)switch(_0x86b2bb){case testHubConstants['ERROR'][_0x59e653(0x1da)]:logger[_0x59e653(0x137)](_0xf88839);break;case testHubConstants[_0x59e653(0x1a7)]['ACCESS_DENIED']:logger[_0x59e653(0x145)](_0xf88839);break;case testHubConstants['ERROR'][_0x59e653(0x1ad)]:logger[_0x59e653(0x137)](_0xf88839);break;default:logger[_0x59e653(0x137)](_0xf88839);}}};const jsonifyAccessibilityArray=(_0x4d665c,_0x59ed7e,_0x1cbfb3)=>{const _0x305423=a170_0x4d6ff4,_0x5eb95f={};return _0x4d665c[_0x305423(0x182)](_0x3e1cfb=>{_0x5eb95f[_0x3e1cfb[_0x59ed7e]]=_0x3e1cfb[_0x1cbfb3];}),_0x5eb95f;};exports[a170_0x4d6ff4(0x1b6)]=_0x49a052=>{const _0x2dd6ba=a170_0x4d6ff4;_0x49a052[_0x2dd6ba(0x1cf)]&&(process[_0x2dd6ba(0x146)][_0x2dd6ba(0x143)]=_0x49a052[_0x2dd6ba(0x1cf)]);_0x49a052['build_hashed_id']&&(process[_0x2dd6ba(0x146)][_0x2dd6ba(0x188)]=_0x49a052[_0x2dd6ba(0x1be)],logger['debug'](_0x2dd6ba(0x18a)+_0x49a052[_0x2dd6ba(0x1be)]));;},exports[a170_0x4d6ff4(0x16e)]=(_0x487a77='',_0x1fba9a='')=>{const _0x11b482=a170_0x4d6ff4,_0x2a51e1={'qKfqK':function(_0xc67429){return _0xc67429();},'jYaqC':function(_0x1c9900,_0x536289){return _0x1c9900===_0x536289;},'AWdAN':_0x11b482(0x144),'bUpGc':_0x11b482(0x12a),'pXvAV':'CBTSessionCreated','ovkjI':_0x11b482(0x130),'uwrSU':_0x11b482(0x127),'HVxPQ':function(_0x132149){return _0x132149();}};if(exports[_0x11b482(0x1b1)]()&&!exports[_0x11b482(0x1b8)]()&&!_0x2a51e1[_0x11b482(0x1d1)](isTestObservabilitySession)){if(_0x2a51e1[_0x11b482(0x19d)](_0x1fba9a,_0x2a51e1[_0x11b482(0x1a1)]))return![];if([_0x2a51e1[_0x11b482(0x18b)],_0x2a51e1['pXvAV']][_0x11b482(0x19f)](_0x487a77))return![];return!![];}if(exports['isAccessibilityEnabled']()&&!_0x2a51e1[_0x11b482(0x1d1)](isTestObservabilitySession)){if([_0x2a51e1[_0x11b482(0x157)],_0x2a51e1[_0x11b482(0x18f)],_0x2a51e1[_0x11b482(0x18b)]][_0x11b482(0x19f)](_0x487a77))return![];return!![];}return exports[_0x11b482(0x1b8)]()||_0x2a51e1[_0x11b482(0x1de)](isTestObservabilitySession)||exports[_0x11b482(0x1b1)]();},exports[a170_0x4d6ff4(0x170)]=(_0x366070,_0x20dfce,_0x544b15='',_0x4a4307)=>{const _0x33bcb7=a170_0x4d6ff4,_0x55f5f9={'hqGtG':_0x33bcb7(0x130),'xILjX':'HookRunFinished','wtvic':function(_0x2f83b0,_0x5333ef){return _0x2f83b0===_0x5333ef;},'Jpnel':_0x33bcb7(0x15e),'Lohbw':_0x33bcb7(0x17b),'UBmXD':_0x33bcb7(0x181),'QAIbr':function(_0x4ce0d3,_0x43ffd9){return _0x4ce0d3&&_0x43ffd9;},'bYBkL':function(_0x1eb077,_0x5e47c3){return _0x1eb077+_0x5e47c3;},'GgefA':function(_0x729d30,_0x193de6){return _0x729d30(_0x193de6);},'sbqML':_0x33bcb7(0x1e1),'FZABu':function(_0x10905d,_0x1f1dea){return _0x10905d+_0x1f1dea;},'pQedC':function(_0x117f74,_0x1e942f){return _0x117f74===_0x1e942f;},'AzNim':_0x33bcb7(0x1bf),'LBsXj':_0x33bcb7(0x14f)};if(![_0x55f5f9[_0x33bcb7(0x19a)],_0x55f5f9['xILjX']][_0x33bcb7(0x19f)](_0x20dfce)&&exports['isAccessibilityEnabled']()){const _0x52ef2e={};if(_0x55f5f9[_0x33bcb7(0x138)](_0x4a4307,FRAMEWORKS[_0x33bcb7(0x162)])){const _0x2585d2=globals[_0x33bcb7(0x1a9)](_0x55f5f9[_0x33bcb7(0x1b7)])||accessibilityHelper[_0x33bcb7(0x1b4)](_0x544b15[_0x33bcb7(0x1dd)](),!![]),_0x405173=globals[_0x33bcb7(0x1a9)](_0x55f5f9[_0x33bcb7(0x154)]);_0x52ef2e[_0x55f5f9[_0x33bcb7(0x195)]]=_0x55f5f9[_0x33bcb7(0x175)](_0x405173,_0x2585d2);}if(_0x55f5f9[_0x33bcb7(0x138)](_0x4a4307,FRAMEWORKS[_0x33bcb7(0x172)])){const _0x287641=_0x55f5f9[_0x33bcb7(0x1d9)](_0x55f5f9[_0x33bcb7(0x1d9)](_0x366070['scopes'][_0x33bcb7(0x156)]('\x20'),'\x20'),_0x544b15[_0x33bcb7(0x18d)]),_0x2591c2=globals[_0x33bcb7(0x1a9)](_0x55f5f9[_0x33bcb7(0x1b7)])||accessibilityHelper[_0x33bcb7(0x1b4)](_0x287641,![]),_0x4103dc=browserStackGlobals['isAccessibilityPlatform'];_0x52ef2e[_0x55f5f9[_0x33bcb7(0x195)]]=_0x55f5f9[_0x33bcb7(0x175)](_0x4103dc,_0x2591c2);}if(_0x55f5f9[_0x33bcb7(0x138)](_0x4a4307,FRAMEWORKS[_0x33bcb7(0x15b)])){const _0x239cee=_0x55f5f9[_0x33bcb7(0x17e)](require,_0x55f5f9[_0x33bcb7(0x1e5)]),_0x39f3c1=_0x544b15&&_0x239cee['get'](_0x544b15['id'])||_0x366070[_0x33bcb7(0x1a4)];_0x39f3c1&&(_0x366070[_0x33bcb7(0x1a4)]=_0x39f3c1);const _0x1b2142=_0x55f5f9[_0x33bcb7(0x14a)](_0x55f5f9[_0x33bcb7(0x14a)](_0x366070[_0x33bcb7(0x1ae)][_0x33bcb7(0x156)]('\x20'),'\x20'),_0x544b15['description']||_0x366070[_0x33bcb7(0x18d)]),_0x369873=globals[_0x33bcb7(0x1a9)](_0x55f5f9['Jpnel'])||accessibilityHelper[_0x33bcb7(0x1b4)](_0x1b2142,![]),_0x4aeaaa=globals[_0x33bcb7(0x1a9)](_0x55f5f9[_0x33bcb7(0x154)]);_0x52ef2e[_0x55f5f9[_0x33bcb7(0x195)]]=_0x55f5f9['QAIbr'](_0x4aeaaa,_0x369873);}if(_0x55f5f9[_0x33bcb7(0x138)](_0x4a4307,FRAMEWORKS[_0x33bcb7(0x134)])){if(_0x55f5f9['pQedC'](_0x20dfce,_0x55f5f9[_0x33bcb7(0x17c)]))return;_0x52ef2e[_0x55f5f9[_0x33bcb7(0x195)]]=PWTestDetails[_0x33bcb7(0x129)](_0x366070[_0x33bcb7(0x1a4)]);}if(_0x55f5f9[_0x33bcb7(0x1a8)](_0x4a4307,FRAMEWORKS['CODECEPT'])){const _0x38eb03=accessibilityHelper[_0x33bcb7(0x1b4)](_0x544b15[_0x33bcb7(0x1dd)](),!![]),_0x56df54=global[_0x33bcb7(0x1db)];_0x52ef2e[_0x55f5f9[_0x33bcb7(0x195)]]=_0x55f5f9[_0x33bcb7(0x175)](_0x56df54,_0x38eb03);}if(_0x55f5f9[_0x33bcb7(0x138)](_0x4a4307,FRAMEWORKS[_0x33bcb7(0x179)])){const _0x2e9daa=accessibilityHelper[_0x33bcb7(0x1b4)](null,![],_0x366070[_0x33bcb7(0x1c4)]),_0x1c1d38=globals[_0x33bcb7(0x1a9)](_0x55f5f9[_0x33bcb7(0x154)]);_0x52ef2e[_0x55f5f9[_0x33bcb7(0x195)]]=_0x55f5f9[_0x33bcb7(0x175)](_0x1c1d38,_0x2e9daa);}_0x366070[_0x55f5f9[_0x33bcb7(0x139)]]=_0x52ef2e;}},exports[a170_0x4d6ff4(0x189)]=_0x2a4ec8=>{const _0x4155eb=a170_0x4d6ff4,_0x4db2fd={};_0x4db2fd[_0x4155eb(0x140)]=function(_0x1d754a,_0x319ebd){return _0x1d754a>_0x319ebd;};const _0x29cb1d=_0x4db2fd;let _0x4a3283={};if(_0x29cb1d[_0x4155eb(0x140)](Object['keys'](testData)[_0x4155eb(0x191)],0x0))return testData;_0x4a3283=JestTestDetails['getTestData']();if(_0x29cb1d['CoERR'](Object['keys'](_0x4a3283)[_0x4155eb(0x191)],0x0))return _0x4a3283;return _0x4a3283;},exports['setCurrentTestData']=(_0x3415fa,_0x2a6c82={})=>{const _0x514b0e=a170_0x4d6ff4;if(bsSetupHelper['isUndefined'](_0x2a6c82[_0x514b0e(0x136)]))return;switch(_0x3415fa){case FRAMEWORKS[_0x514b0e(0x162)]:testData=_0x2a6c82[_0x514b0e(0x136)];break;case FRAMEWORKS[_0x514b0e(0x172)]:JestTestDetails['setTestData'](_0x2a6c82[_0x514b0e(0x136)]);break;case FRAMEWORKS[_0x514b0e(0x15b)]:testData=_0x2a6c82['test_run'];break;default:break;}},exports['getAccessibilityValueFromYml']=_0x2f1ad1=>{const _0x5e26ac=a170_0x4d6ff4,_0x4cea57={};_0x4cea57['lRTsr']=function(_0x231625,_0x487e8c){return _0x231625!==_0x487e8c;},_0x4cea57[_0x5e26ac(0x18c)]=function(_0x3a3d3f,_0x21419f){return _0x3a3d3f!==_0x21419f;},_0x4cea57['uaOjp']=function(_0x236969,_0x102f98){return _0x236969!==_0x102f98;},_0x4cea57[_0x5e26ac(0x14c)]=function(_0x28c567,_0x39e398){return _0x28c567!==_0x39e398;};const _0xcff549=_0x4cea57;if(_0xcff549[_0x5e26ac(0x126)](_0x2f1ad1[_0x5e26ac(0x181)],null)&&_0xcff549['pWnss'](_0x2f1ad1[_0x5e26ac(0x181)],undefined))return _0x2f1ad1['accessibility'];let _0x2d059e=![],_0x5906f4=![];if(_0x2f1ad1[_0x5e26ac(0x1c1)])for(const _0x4390af of _0x2f1ad1['platforms']){_0xcff549[_0x5e26ac(0x197)](_0x4390af[_0x5e26ac(0x181)],null)&&_0xcff549['fDwWb'](_0x4390af['accessibility'],undefined)&&(_0x2d059e=_0x2d059e||bsSetupHelper['isTrue'](_0x4390af[_0x5e26ac(0x181)]),_0x5906f4=!![]);}if(_0x5906f4)return _0x2d059e;return null;},exports['getTestOrchestrationBuildStartData']=_0x88436d=>{const _0x1d085a=a170_0x4d6ff4;if(!_0x88436d)return{};const _0x552665=new OrchestrationUtils(_0x88436d);return _0x552665[_0x1d085a(0x173)]();},exports[a170_0x4d6ff4(0x152)]=_0x4b5a17=>{const _0x574119=a170_0x4d6ff4,_0x2b2b80={'WEwNJ':function(_0x37462c){return _0x37462c();}};let _0x5cd412=![],_0x40296d=![];if(bsSetupHelper['isBrowserstackInfra']()&&_0x4b5a17[_0x574119(0x15f)])_0x40296d=!![];else bsSetupHelper[_0x574119(0x17d)]()&&(_0x5cd412=!![]);return Object[_0x574119(0x1ba)]({'observability':_0x2b2b80['WEwNJ'](isTestObservabilitySession),'accessibility':exports[_0x574119(0x12f)](_0x4b5a17),'percy':_0x4b5a17[_0x574119(0x1c5)]||![],'automate':_0x5cd412,'app_automate':_0x40296d,'turboscale':bsSetupHelper[_0x574119(0x186)](_0x4b5a17),'lts':LoadTestModule[_0x574119(0x15c)](_0x4b5a17)},bsSetupHelper['getCentralUser']());};
|