browserstack-node-sdk 1.63.6 → 1.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.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 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.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
|
-
function a55_0x15c5(_0x5df9ce,_0x2e7236){const _0x58c93a=a55_0x58c9();return a55_0x15c5=function(_0x15c54a,_0x258bdf){_0x15c54a=_0x15c54a-0x1ea;let _0x53fdcb=_0x58c93a[_0x15c54a];return _0x53fdcb;},a55_0x15c5(_0x5df9ce,_0x2e7236);}const a55_0x19267a=a55_0x15c5;(function(_0x46146d,_0x25aaf4){const _0x43737f=a55_0x15c5,_0x5c470a=_0x46146d();while(!![]){try{const _0x54df33=-parseInt(_0x43737f(0x219))/0x1*(parseInt(_0x43737f(0x23b))/0x2)+-parseInt(_0x43737f(0x1fe))/0x3+-parseInt(_0x43737f(0x208))/0x4+-parseInt(_0x43737f(0x233))/0x5+parseInt(_0x43737f(0x231))/0x6+-parseInt(_0x43737f(0x235))/0x7+-parseInt(_0x43737f(0x244))/0x8*(-parseInt(_0x43737f(0x234))/0x9);if(_0x54df33===_0x25aaf4)break;else _0x5c470a['push'](_0x5c470a['shift']());}catch(_0x366432){_0x5c470a['push'](_0x5c470a['shift']());}}}(a55_0x58c9,0x6f57c));const fs=require('fs'),path=require(a55_0x19267a(0x225)),{v4:uuidv4}=require(a55_0x19267a(0x1ee)),{TEMP_STORE_DIR_NAME}=require(a55_0x19267a(0x213)),{nestedKeyValue}=require(a55_0x19267a(0x240)),logger=require(a55_0x19267a(0x21c))[a55_0x19267a(0x1f4)],{getLogDir}=require('../../../helpers/logger'),util=require(a55_0x19267a(0x238)),helper=require('../../../helpers/helper');class TestDetails{static [a55_0x19267a(0x1fd)]={};static[a55_0x19267a(0x20d)](){const _0x2e69c4=a55_0x19267a;this['shutdown']();const _0x50434c={};_0x50434c[_0x2e69c4(0x224)]=!![],fs[_0x2e69c4(0x228)](this['getDirPath'](),_0x50434c);const _0x5850fe={};_0x5850fe['recursive']=!![],fs[_0x2e69c4(0x228)](this[_0x2e69c4(0x21b)](),_0x5850fe);}static[a55_0x19267a(0x23e)](){const _0x7ec86c=a55_0x19267a,_0x3b4bf6={};_0x3b4bf6['kfzdT']=function(_0x340946,_0x2f5e63){return _0x340946+_0x2f5e63;};const _0x2800fb=_0x3b4bf6;return _0x2800fb[_0x7ec86c(0x20e)](_0x2800fb['kfzdT'](TEMP_STORE_DIR_NAME,'-'),process[_0x7ec86c(0x209)]['BS_TESTOPS_BUILD_HASHED_ID']);}static['getStoreDirPath'](){const _0x3969e8=a55_0x19267a,_0x1ffafd={};_0x1ffafd[_0x3969e8(0x201)]=function(_0x2287ce,_0x246062){return _0x2287ce+_0x246062;},_0x1ffafd[_0x3969e8(0x1fc)]=function(_0x4bc1ad,_0x52ec2f){return _0x4bc1ad+_0x52ec2f;},_0x1ffafd['Psxva']='default';const _0x50bf89=_0x1ffafd;return path[_0x3969e8(0x1f2)](_0x50bf89['ODion'](_0x50bf89[_0x3969e8(0x1fc)](TEMP_STORE_DIR_NAME,'-'),process[_0x3969e8(0x209)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x50bf89[_0x3969e8(0x218)]));}static['getTraceZipDir'](){const _0xd6f1fd=a55_0x19267a,_0x5dc0e8={};_0x5dc0e8['rKIyT']=_0xd6f1fd(0x22c);const _0x23795a=_0x5dc0e8;return path[_0xd6f1fd(0x1f2)](this[_0xd6f1fd(0x229)](),_0x23795a[_0xd6f1fd(0x1f1)]);}static[a55_0x19267a(0x245)](){return TestDetails['getStoreDirName']();}static['getFilePath'](_0x39677d){const _0x5f5d2e=a55_0x19267a,_0x2dec10={};_0x2dec10[_0x5f5d2e(0x223)]=function(_0x3efec5,_0x100314){return _0x3efec5+_0x100314;},_0x2dec10[_0x5f5d2e(0x222)]='.json';const _0x12d970=_0x2dec10;return path[_0x5f5d2e(0x1f2)](this[_0x5f5d2e(0x245)](),_0x12d970[_0x5f5d2e(0x223)](_0x39677d,_0x12d970[_0x5f5d2e(0x222)]));}static[a55_0x19267a(0x239)](_0x186ac6){const _0x563b56=a55_0x19267a,_0x38a851={};_0x38a851[_0x563b56(0x1eb)]=function(_0x694f86,_0x4ed4f3){return _0x694f86+_0x4ed4f3;};const _0x5c335e=_0x38a851;return _0x5c335e[_0x563b56(0x1eb)](_0x5c335e[_0x563b56(0x1eb)](this[_0x563b56(0x1fa)](_0x186ac6),'-'),_0x186ac6['retry']);}static[a55_0x19267a(0x232)](_0x5ea19a){const _0x33b862=a55_0x19267a,_0x23a2ba={'PXaaS':function(_0x1c2acf,_0x145136,_0x56591d){return _0x1c2acf(_0x145136,_0x56591d);},'UACVz':_0x33b862(0x216),'fmBRT':_0x33b862(0x24a),'roGND':function(_0x28ff55,_0x375ba3,_0x52ba4e){return _0x28ff55(_0x375ba3,_0x52ba4e);},'xCGJl':_0x33b862(0x236),'iAUng':_0x33b862(0x1f0)};return _0x23a2ba[_0x33b862(0x206)](nestedKeyValue,_0x5ea19a,[_0x23a2ba[_0x33b862(0x20c)],_0x23a2ba[_0x33b862(0x207)]])||_0x23a2ba[_0x33b862(0x230)](nestedKeyValue,_0x5ea19a,[_0x23a2ba[_0x33b862(0x20f)],_0x23a2ba[_0x33b862(0x22a)]]);}static[a55_0x19267a(0x1fa)](_0x3230fd){const _0x2cc918=a55_0x19267a,_0x1908dd={'Gplgf':function(_0x47bc8d,_0x68ccbb,_0x218e54){return _0x47bc8d(_0x68ccbb,_0x218e54);},'OOECJ':'_test'};return _0x1908dd['Gplgf'](nestedKeyValue,_0x3230fd,[_0x1908dd[_0x2cc918(0x22f)],'id'])||_0x3230fd[_0x2cc918(0x1fb)];}static[a55_0x19267a(0x1f6)](_0x453ab9){const _0x2a86e7=a55_0x19267a,_0x3428fb={'Zgkdt':function(_0x36a2f9,_0x213709){return _0x36a2f9===_0x213709;},'Kidni':_0x2a86e7(0x215),'TLGdh':function(_0x5d7ccb){return _0x5d7ccb();}};if(this[_0x2a86e7(0x1fd)][_0x453ab9]&&_0x3428fb[_0x2a86e7(0x1ec)](typeof this[_0x2a86e7(0x1fd)][_0x453ab9][_0x2a86e7(0x1ee)],_0x3428fb[_0x2a86e7(0x202)]))return this[_0x2a86e7(0x1fd)][_0x453ab9]['uuid'];const _0x5ce11a=this[_0x2a86e7(0x1f7)](_0x453ab9);if(_0x5ce11a&&fs[_0x2a86e7(0x220)](_0x5ce11a)){const _0x349be6=JSON[_0x2a86e7(0x212)](fs[_0x2a86e7(0x242)](_0x5ce11a)['toString']());return this['tests'][_0x453ab9]=_0x349be6,this[_0x2a86e7(0x1fd)][_0x453ab9][_0x2a86e7(0x1ee)];}return this['tests'][_0x453ab9]={'uuid':_0x3428fb[_0x2a86e7(0x241)](uuidv4)},fs['writeFileSync'](_0x5ce11a,JSON[_0x2a86e7(0x237)](this['tests'][_0x453ab9])),this[_0x2a86e7(0x1fd)][_0x453ab9][_0x2a86e7(0x1ee)];}static[a55_0x19267a(0x204)](_0x1c117b){const _0x3ff74b=a55_0x19267a,_0x147da1=path[_0x3ff74b(0x1f2)](this[_0x3ff74b(0x245)](),_0x1c117b+'_platformDetails.json');if(_0x147da1&&fs['existsSync'](_0x147da1))return fs[_0x3ff74b(0x242)](_0x147da1)[_0x3ff74b(0x20a)]();}static['setAccessibilityPlatformValidation'](_0x15e9d8,_0x1fa17f){const _0x2984ab=a55_0x19267a,_0x3cc3c9=path[_0x2984ab(0x1f2)](this[_0x2984ab(0x245)](),_0x1fa17f+'_platformDetails.json');fs['writeFileSync'](_0x3cc3c9,_0x15e9d8[_0x2984ab(0x20a)]());}static['getIntegrations'](_0x58c133){const _0x3a02a9=a55_0x19267a,_0x36b427=path['join'](this[_0x3a02a9(0x245)](),_0x58c133+_0x3a02a9(0x1ef));if(_0x36b427&&fs[_0x3a02a9(0x220)](_0x36b427))try{return JSON[_0x3a02a9(0x212)](fs[_0x3a02a9(0x242)](_0x36b427)[_0x3a02a9(0x20a)]());}catch(_0x38e48d){return logger['debug'](_0x3a02a9(0x23c)+_0x58c133+':\x20'+(_0x38e48d&&_0x38e48d['message'])),null;}return null;}static[a55_0x19267a(0x21a)](_0x13ce58,_0x3f0ced){const _0x4f1253=a55_0x19267a,_0x2fe488={};_0x2fe488['neLlS']=function(_0x5e681b,_0xceb1bf){return _0x5e681b||_0xceb1bf;};const _0x503272=_0x2fe488;if(_0x503272[_0x4f1253(0x22b)](!_0x13ce58,!_0x3f0ced))return;try{const _0x3ccb21=this[_0x4f1253(0x245)](),_0x564d76={};_0x564d76[_0x4f1253(0x224)]=!![],fs['mkdirSync'](_0x3ccb21,_0x564d76);const _0x38cdb7=path[_0x4f1253(0x1f2)](_0x3ccb21,_0x13ce58+_0x4f1253(0x1ef));fs['writeFileSync'](_0x38cdb7,JSON[_0x4f1253(0x237)](_0x3f0ced));}catch(_0x5cd5bb){logger[_0x4f1253(0x203)](_0x4f1253(0x247)+_0x13ce58+':\x20'+(_0x5cd5bb&&_0x5cd5bb[_0x4f1253(0x1f3)]));}}static[a55_0x19267a(0x243)](){const _0x2ab471=a55_0x19267a,_0x32ccc0={};_0x32ccc0[_0x2ab471(0x224)]=!![],_0x32ccc0['force']=!![],fs[_0x2ab471(0x249)](this[_0x2ab471(0x245)](),_0x32ccc0);}static[a55_0x19267a(0x246)](_0x11919c){const _0x1f384b=a55_0x19267a;if(this[_0x1f384b(0x1fd)][_0x11919c])return this[_0x1f384b(0x1fd)][_0x11919c];const _0x43abbb=this[_0x1f384b(0x1f7)](_0x11919c);if(_0x43abbb&&fs[_0x1f384b(0x220)](_0x43abbb)){const _0x487a2c=JSON[_0x1f384b(0x212)](fs[_0x1f384b(0x242)](_0x43abbb)[_0x1f384b(0x20a)]());return this[_0x1f384b(0x1fd)][_0x11919c]=_0x487a2c,_0x487a2c;}return{};}static[a55_0x19267a(0x1f8)](_0x49d9dd,_0x4a7538){const _0x3bda30=a55_0x19267a,_0x240680=this[_0x3bda30(0x1f7)](_0x49d9dd);if(_0x240680&&fs[_0x3bda30(0x220)](_0x240680)){const _0xddd3ff=JSON[_0x3bda30(0x212)](fs['readFileSync'](_0x240680)[_0x3bda30(0x20a)]()),_0xd45aaf={..._0xddd3ff,..._0x4a7538};this['tests'][_0x49d9dd]=_0xd45aaf;}else this[_0x3bda30(0x1fd)][_0x49d9dd]=_0x4a7538;fs[_0x3bda30(0x205)](_0x240680,this[_0x3bda30(0x1fd)][_0x49d9dd]);}static[a55_0x19267a(0x21d)](_0x3c6d57){const _0x307d4b=a55_0x19267a,_0x54b605={};_0x54b605['yeAkN']='Error\x20handling\x20trace\x20file\x20paths:\x20';const _0x3ec19d=_0x54b605;try{const _0x154ec4=process[_0x307d4b(0x210)],_0x56eac9=path['join'](TestDetails[_0x307d4b(0x21b)](),_0x154ec4+_0x307d4b(0x214));let _0x3bc8d7=[];_0x56eac9&&fs['existsSync'](_0x56eac9)&&(_0x3bc8d7=JSON[_0x307d4b(0x212)](fs['readFileSync'](_0x56eac9)[_0x307d4b(0x20a)]())),!_0x3bc8d7['some'](_0x1a8892=>_0x1a8892[_0x307d4b(0x23a)]===_0x3c6d57['filePath'])&&(_0x3bc8d7[_0x307d4b(0x23d)](_0x3c6d57),fs[_0x307d4b(0x205)](_0x56eac9,JSON[_0x307d4b(0x237)](_0x3bc8d7)));}catch(_0x209cd5){logger[_0x307d4b(0x221)](_0x3ec19d[_0x307d4b(0x22d)],_0x209cd5);}}static[a55_0x19267a(0x217)](){const _0x9df35d=a55_0x19267a,_0x9cff6d={};_0x9cff6d[_0x9df35d(0x1f5)]=_0x9df35d(0x214),_0x9cff6d['CToAh']='Error\x20reading\x20trace\x20file\x20paths:\x20%s';const _0x3923d8=_0x9cff6d,_0x46ef2a=[];try{const _0x25c154=TestDetails[_0x9df35d(0x21b)]();if(_0x25c154&&!fs[_0x9df35d(0x220)](_0x25c154))return _0x46ef2a;const _0x1f4176=fs[_0x9df35d(0x248)](_0x25c154);_0x1f4176[_0x9df35d(0x227)](_0x497765=>{const _0x2e0492=_0x9df35d;if(_0x497765&&_0x497765['endsWith'](_0x3923d8[_0x2e0492(0x1f5)])){const _0x19310b=JSON[_0x2e0492(0x212)](fs['readFileSync'](path[_0x2e0492(0x1f2)](_0x25c154,_0x497765))[_0x2e0492(0x20a)]());_0x46ef2a[_0x2e0492(0x23d)](..._0x19310b);}});}catch(_0x1b7e80){logger[_0x9df35d(0x221)](util[_0x9df35d(0x1ed)](_0x3923d8[_0x9df35d(0x21f)],_0x1b7e80));}const _0x2057b3={};return _0x46ef2a[_0x9df35d(0x227)](_0xc7ec05=>{const _0x41169c=_0x9df35d;_0x2057b3[_0xc7ec05[_0x41169c(0x23a)]]=_0xc7ec05;}),Object[_0x9df35d(0x23f)](_0x2057b3);}static[a55_0x19267a(0x1ff)](_0x1987aa,_0x438ce5){const _0x1a4a37=a55_0x19267a,_0x3f668e={};_0x3f668e[_0x1a4a37(0x211)]=_0x1a4a37(0x21e),_0x3f668e[_0x1a4a37(0x1ea)]=_0x1a4a37(0x200);const _0x42a833=_0x3f668e;try{const _0x4d551b=path[_0x1a4a37(0x1f2)](helper[_0x1a4a37(0x226)](),_0x42a833[_0x1a4a37(0x211)]);if(!fs[_0x1a4a37(0x220)](_0x4d551b)){const _0xc40063={};_0xc40063[_0x1a4a37(0x224)]=!![],fs[_0x1a4a37(0x228)](_0x4d551b,_0xc40063);}fs[_0x1a4a37(0x1f9)](path[_0x1a4a37(0x1f2)](_0x4d551b,_0x1a4a37(0x22e)+_0x438ce5+'.txt'),_0x1987aa+'\x0a',_0x42a833[_0x1a4a37(0x1ea)]);}catch(_0x1208e8){console[_0x1a4a37(0x221)](_0x1a4a37(0x20b)+_0x1208e8[_0x1a4a37(0x1f3)]);}}}function a55_0x58c9(){const _0x39589e=['existsSync','error','nqzED','EEpeW','recursive','path','homedir','forEach','mkdirSync','getStoreDirPath','iAUng','neLlS','traceZipPaths','yeAkN','trace_','OOECJ','roGND','5139912ayFqnQ','getProjectIdFromTestInfo','2366475fxgIol','60975TPBgti','1220135douLwC','project','stringify','util','getTestRunIdFromTestInfo','filePath','2WdvdBd','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','push','getStoreDirName','values','../../../helpers/helper','TLGdh','readFileSync','shutdown','2320JhLscB','getDirPath','getTestDetails','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','readdirSync','rmSync','_projectId','LpzpX','eeKqR','Zgkdt','format','uuid','_integrations.json','__projectId','rKIyT','join','message','winstonLogger','vApuz','getTestUUID','getFilePath','setTestDetails','appendFileSync','getTestIdFromTestInfo','testId','XZkOl','tests','2132784fjVYvR','appendToTracePaths','utf8','ODion','Kidni','debug','getAccessibilityPlatformValidation','writeFileSync','PXaaS','fmBRT','3595020DqFEHq','env','toString','Error\x20writing\x20trace\x20file:\x20','UACVz','setup','kfzdT','xCGJl','pid','mOVuD','parse','../../../helpers/test-observability/constants','_traceZipPaths.json','string','_test','getTraceFilePaths','Psxva','108059tWZeUO','setIntegrations','getTraceZipDir','../../../helpers/logger','addTraceFilePath','.browserstack','CToAh'];a55_0x58c9=function(){return _0x39589e;};return a55_0x58c9();}module['exports']=TestDetails;
|
|
1
|
+
const a55_0x5f1070=a55_0x5ee0;(function(_0x1bdb96,_0x32f2f3){const _0x163984=a55_0x5ee0,_0x3182ac=_0x1bdb96();while(!![]){try{const _0x55c516=-parseInt(_0x163984(0x16d))/0x1+-parseInt(_0x163984(0x17c))/0x2+parseInt(_0x163984(0x144))/0x3+-parseInt(_0x163984(0x161))/0x4*(parseInt(_0x163984(0x180))/0x5)+parseInt(_0x163984(0x12f))/0x6+-parseInt(_0x163984(0x167))/0x7*(-parseInt(_0x163984(0x16e))/0x8)+parseInt(_0x163984(0x124))/0x9*(parseInt(_0x163984(0x132))/0xa);if(_0x55c516===_0x32f2f3)break;else _0x3182ac['push'](_0x3182ac['shift']());}catch(_0x106021){_0x3182ac['push'](_0x3182ac['shift']());}}}(a55_0xf537,0x423b2));const fs=require('fs'),path=require(a55_0x5f1070(0x138)),{v4:uuidv4}=require(a55_0x5f1070(0x13e)),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require('../../../helpers/helper'),logger=require(a55_0x5f1070(0x156))[a55_0x5f1070(0x123)],{getLogDir}=require(a55_0x5f1070(0x156)),util=require(a55_0x5f1070(0x12a)),helper=require(a55_0x5f1070(0x13b));function a55_0xf537(){const _0x166632=['setTestDetails','Error\x20handling\x20trace\x20file\x20paths:\x20','__projectId','hZMwu','winstonLogger','205137AnSWUh','filePath','project','ecqbd','rmSync','qghWq','util','MJNfE','endsWith','push','.json','3049866yZMkjo','message','IoPbH','10BVVqZj','existsSync','kIvKQ','getStoreDirPath','string','shutdown','path','XbbhI','_platformDetails.json','../../../helpers/helper','DThzI','setup','uuid','_integrations.json','getIntegrations','eHlmQ','exports','tjFje','241998kHpOAL','retry','getAccessibilityPlatformValidation','recursive','getStoreDirName','GocxL','trace_','setAccessibilityPlatformValidation','aNgcw','getTestIdFromTestInfo','rUYVA','_test','getTestUUID','env','_projectId','VAdiv','values','bjNXI','../../../helpers/logger','getTraceFilePaths','ZJoJp','uvGJb','error','writeFileSync','_traceZipPaths.json','Error\x20writing\x20trace\x20file:\x20','debug','parse','stringify','4696bPIzhJ','WHIoJ','DagFc','appendToTracePaths','dPrke','KyZSl','175Hmxijm','tests','readdirSync','mkdirSync','homedir','getProjectIdFromTestInfo','76169mfuUKC','132152SjnDtv','readFileSync','AmbDp','some','default','getFilePath','getDirPath','utf8','Error\x20reading\x20trace\x20file\x20paths:\x20%s','getTraceZipDir','toString','BS_TESTOPS_BUILD_HASHED_ID','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','testId','521048ZCbDpV','fuGrD','format','appendFileSync','1775McCIRG','forEach','join'];a55_0xf537=function(){return _0x166632;};return a55_0xf537();}class TestDetails{static [a55_0x5f1070(0x168)]={};static[a55_0x5f1070(0x13d)](){const _0x5e23a3=a55_0x5f1070;this[_0x5e23a3(0x137)]();const _0x3d3c5d={};_0x3d3c5d[_0x5e23a3(0x147)]=!![],fs[_0x5e23a3(0x16a)](this[_0x5e23a3(0x174)](),_0x3d3c5d);const _0x3b3176={};_0x3b3176[_0x5e23a3(0x147)]=!![],fs[_0x5e23a3(0x16a)](this[_0x5e23a3(0x177)](),_0x3b3176);}static[a55_0x5f1070(0x148)](){const _0x1d94d3=a55_0x5f1070,_0x129001={};_0x129001[_0x1d94d3(0x12b)]=function(_0x46fb16,_0x3fe3b5){return _0x46fb16+_0x3fe3b5;};const _0x687ce5=_0x129001;return _0x687ce5[_0x1d94d3(0x12b)](_0x687ce5['MJNfE'](TEMP_STORE_DIR_NAME,'-'),process[_0x1d94d3(0x151)][_0x1d94d3(0x179)]);}static[a55_0x5f1070(0x135)](){const _0x4c9d8d=a55_0x5f1070,_0xf3d4d5={};_0xf3d4d5[_0x4c9d8d(0x17d)]=function(_0x2020f2,_0x2b2c22){return _0x2020f2+_0x2b2c22;},_0xf3d4d5[_0x4c9d8d(0x162)]=function(_0x10486c,_0x3119c8){return _0x10486c+_0x3119c8;},_0xf3d4d5[_0x4c9d8d(0x166)]=_0x4c9d8d(0x172);const _0x45c872=_0xf3d4d5;return path[_0x4c9d8d(0x182)](_0x45c872[_0x4c9d8d(0x17d)](_0x45c872[_0x4c9d8d(0x162)](TEMP_STORE_DIR_NAME,'-'),process[_0x4c9d8d(0x151)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x45c872['KyZSl']));}static[a55_0x5f1070(0x177)](){const _0xf74cd4=a55_0x5f1070,_0x494539={};_0x494539[_0xf74cd4(0x134)]='traceZipPaths';const _0xa6ab98=_0x494539;return path[_0xf74cd4(0x182)](this[_0xf74cd4(0x135)](),_0xa6ab98['kIvKQ']);}static[a55_0x5f1070(0x174)](){const _0x5e9a94=a55_0x5f1070;return TestDetails[_0x5e9a94(0x148)]();}static[a55_0x5f1070(0x173)](_0x3d8c2d){const _0x1eca4e=a55_0x5f1070,_0x571035={};_0x571035[_0x1eca4e(0x139)]=function(_0x2c7350,_0x26024b){return _0x2c7350+_0x26024b;},_0x571035['DagFc']=_0x1eca4e(0x12e);const _0xa76bf2=_0x571035;return path[_0x1eca4e(0x182)](this[_0x1eca4e(0x174)](),_0xa76bf2[_0x1eca4e(0x139)](_0x3d8c2d,_0xa76bf2[_0x1eca4e(0x163)]));}static['getTestRunIdFromTestInfo'](_0x475d38){const _0x2d96f1=a55_0x5f1070,_0x492a63={};_0x492a63[_0x2d96f1(0x14c)]=function(_0xab6cea,_0x5ae04){return _0xab6cea+_0x5ae04;};const _0x2876fb=_0x492a63;return _0x2876fb[_0x2d96f1(0x14c)](_0x2876fb[_0x2d96f1(0x14c)](this[_0x2d96f1(0x14d)](_0x475d38),'-'),_0x475d38[_0x2d96f1(0x145)]);}static[a55_0x5f1070(0x16c)](_0x228dae){const _0x1ffcc1=a55_0x5f1070,_0x1ecd6b={'tjFje':function(_0x545273,_0x131fe9,_0x1262d7){return _0x545273(_0x131fe9,_0x1262d7);},'dPrke':'_test','AmbDp':_0x1ffcc1(0x152),'bjNXI':_0x1ffcc1(0x126),'VAdiv':_0x1ffcc1(0x185)};return _0x1ecd6b[_0x1ffcc1(0x143)](nestedKeyValue,_0x228dae,[_0x1ecd6b[_0x1ffcc1(0x165)],_0x1ecd6b[_0x1ffcc1(0x170)]])||_0x1ecd6b[_0x1ffcc1(0x143)](nestedKeyValue,_0x228dae,[_0x1ecd6b[_0x1ffcc1(0x155)],_0x1ecd6b[_0x1ffcc1(0x153)]]);}static['getTestIdFromTestInfo'](_0x4b5ed3){const _0xe1187c=a55_0x5f1070,_0x1b82ce={'gDPdI':function(_0x54f679,_0x55ab26,_0x399b08){return _0x54f679(_0x55ab26,_0x399b08);},'eHlmQ':_0xe1187c(0x14f)};return _0x1b82ce['gDPdI'](nestedKeyValue,_0x4b5ed3,[_0x1b82ce[_0xe1187c(0x141)],'id'])||_0x4b5ed3[_0xe1187c(0x17b)];}static[a55_0x5f1070(0x150)](_0x34b47b){const _0x4705dc=a55_0x5f1070,_0x39dcfb={'rUYVA':function(_0x2b7c2e,_0x2f385b){return _0x2b7c2e===_0x2f385b;},'ecqbd':_0x4705dc(0x136),'qghWq':function(_0x41b4f3){return _0x41b4f3();}};if(this[_0x4705dc(0x168)][_0x34b47b]&&_0x39dcfb[_0x4705dc(0x14e)](typeof this[_0x4705dc(0x168)][_0x34b47b][_0x4705dc(0x13e)],_0x39dcfb[_0x4705dc(0x127)]))return this[_0x4705dc(0x168)][_0x34b47b][_0x4705dc(0x13e)];const _0x2028d5=this[_0x4705dc(0x173)](_0x34b47b);if(_0x2028d5&&fs['existsSync'](_0x2028d5)){const _0x12dce9=JSON[_0x4705dc(0x15f)](fs[_0x4705dc(0x16f)](_0x2028d5)[_0x4705dc(0x178)]());return this[_0x4705dc(0x168)][_0x34b47b]=_0x12dce9,this[_0x4705dc(0x168)][_0x34b47b][_0x4705dc(0x13e)];}return this[_0x4705dc(0x168)][_0x34b47b]={'uuid':_0x39dcfb[_0x4705dc(0x129)](uuidv4)},fs['writeFileSync'](_0x2028d5,JSON[_0x4705dc(0x160)](this['tests'][_0x34b47b])),this[_0x4705dc(0x168)][_0x34b47b][_0x4705dc(0x13e)];}static[a55_0x5f1070(0x146)](_0x46f014){const _0x464b95=a55_0x5f1070,_0x408ce8=path['join'](this[_0x464b95(0x174)](),_0x46f014+_0x464b95(0x13a));if(_0x408ce8&&fs['existsSync'](_0x408ce8))return fs['readFileSync'](_0x408ce8)[_0x464b95(0x178)]();}static[a55_0x5f1070(0x14b)](_0x9cd3bb,_0x2d0115){const _0x3ea40c=a55_0x5f1070,_0x3d0f41=path[_0x3ea40c(0x182)](this[_0x3ea40c(0x174)](),_0x2d0115+'_platformDetails.json');fs[_0x3ea40c(0x15b)](_0x3d0f41,_0x9cd3bb['toString']());}static[a55_0x5f1070(0x140)](_0x30bdae){const _0x22162c=a55_0x5f1070,_0x106528=path[_0x22162c(0x182)](this[_0x22162c(0x174)](),_0x30bdae+_0x22162c(0x13f));if(_0x106528&&fs[_0x22162c(0x133)](_0x106528))try{return JSON[_0x22162c(0x15f)](fs[_0x22162c(0x16f)](_0x106528)[_0x22162c(0x178)]());}catch(_0x57543e){return logger[_0x22162c(0x15e)](_0x22162c(0x17a)+_0x30bdae+':\x20'+(_0x57543e&&_0x57543e[_0x22162c(0x130)])),null;}return null;}static['setIntegrations'](_0x1f1069,_0xc5501e){const _0x64c7dc=a55_0x5f1070,_0x5b0414={};_0x5b0414[_0x64c7dc(0x158)]=function(_0x5d5e99,_0x59d3dd){return _0x5d5e99||_0x59d3dd;};const _0x1d3016=_0x5b0414;if(_0x1d3016['ZJoJp'](!_0x1f1069,!_0xc5501e))return;try{const _0x4d1662=this[_0x64c7dc(0x174)](),_0x43bd71={};_0x43bd71[_0x64c7dc(0x147)]=!![],fs['mkdirSync'](_0x4d1662,_0x43bd71);const _0x28812a=path['join'](_0x4d1662,_0x1f1069+_0x64c7dc(0x13f));fs[_0x64c7dc(0x15b)](_0x28812a,JSON[_0x64c7dc(0x160)](_0xc5501e));}catch(_0x327d2b){logger[_0x64c7dc(0x15e)]('Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20'+_0x1f1069+':\x20'+(_0x327d2b&&_0x327d2b['message']));}}static[a55_0x5f1070(0x137)](){const _0x3fcd42=a55_0x5f1070,_0x5d981c={};_0x5d981c[_0x3fcd42(0x147)]=!![],_0x5d981c['force']=!![],fs[_0x3fcd42(0x128)](this['getDirPath'](),_0x5d981c);}static['getTestDetails'](_0x1bdb5f){const _0x729a5e=a55_0x5f1070;if(this[_0x729a5e(0x168)][_0x1bdb5f])return this['tests'][_0x1bdb5f];const _0x16630b=this[_0x729a5e(0x173)](_0x1bdb5f);if(_0x16630b&&fs[_0x729a5e(0x133)](_0x16630b)){const _0x48003a=JSON['parse'](fs['readFileSync'](_0x16630b)[_0x729a5e(0x178)]());return this['tests'][_0x1bdb5f]=_0x48003a,_0x48003a;}return{};}static[a55_0x5f1070(0x183)](_0x13d298,_0x166673){const _0x13fc15=a55_0x5f1070,_0x5560f3=this[_0x13fc15(0x173)](_0x13d298);if(_0x5560f3&&fs['existsSync'](_0x5560f3)){const _0x56fe00=JSON['parse'](fs[_0x13fc15(0x16f)](_0x5560f3)[_0x13fc15(0x178)]()),_0x2edcef={..._0x56fe00,..._0x166673};this['tests'][_0x13d298]=_0x2edcef;}else this[_0x13fc15(0x168)][_0x13d298]=_0x166673;fs['writeFileSync'](_0x5560f3,this[_0x13fc15(0x168)][_0x13d298]);}static['addTraceFilePath'](_0x5deb22){const _0x3bd8de=a55_0x5f1070,_0x1f90d4={};_0x1f90d4[_0x3bd8de(0x149)]=_0x3bd8de(0x184);const _0x183e1b=_0x1f90d4;try{const _0xeac0b6=process['pid'],_0x54d21c=path[_0x3bd8de(0x182)](TestDetails['getTraceZipDir'](),_0xeac0b6+_0x3bd8de(0x15c));let _0xb903c0=[];_0x54d21c&&fs[_0x3bd8de(0x133)](_0x54d21c)&&(_0xb903c0=JSON['parse'](fs[_0x3bd8de(0x16f)](_0x54d21c)['toString']())),!_0xb903c0[_0x3bd8de(0x171)](_0x250a25=>_0x250a25[_0x3bd8de(0x125)]===_0x5deb22['filePath'])&&(_0xb903c0[_0x3bd8de(0x12d)](_0x5deb22),fs[_0x3bd8de(0x15b)](_0x54d21c,JSON[_0x3bd8de(0x160)](_0xb903c0)));}catch(_0x2e0895){logger['error'](_0x183e1b[_0x3bd8de(0x149)],_0x2e0895);}}static[a55_0x5f1070(0x157)](){const _0x182c39=a55_0x5f1070,_0x22791b={};_0x22791b[_0x182c39(0x122)]=_0x182c39(0x15c),_0x22791b[_0x182c39(0x13c)]=_0x182c39(0x176);const _0x3e62fc=_0x22791b,_0x5c41f5=[];try{const _0x3e7343=TestDetails[_0x182c39(0x177)]();if(_0x3e7343&&!fs['existsSync'](_0x3e7343))return _0x5c41f5;const _0x2b5ea4=fs[_0x182c39(0x169)](_0x3e7343);_0x2b5ea4[_0x182c39(0x181)](_0xfade39=>{const _0x2eed98=_0x182c39;if(_0xfade39&&_0xfade39[_0x2eed98(0x12c)](_0x3e62fc[_0x2eed98(0x122)])){const _0x31f7b0=JSON[_0x2eed98(0x15f)](fs[_0x2eed98(0x16f)](path['join'](_0x3e7343,_0xfade39))[_0x2eed98(0x178)]());_0x5c41f5['push'](..._0x31f7b0);}});}catch(_0x1cd207){logger[_0x182c39(0x15a)](util[_0x182c39(0x17e)](_0x3e62fc['DThzI'],_0x1cd207));}const _0x2e5306={};return _0x5c41f5[_0x182c39(0x181)](_0x4f9dd3=>{_0x2e5306[_0x4f9dd3['filePath']]=_0x4f9dd3;}),Object[_0x182c39(0x154)](_0x2e5306);}static[a55_0x5f1070(0x164)](_0x358899,_0x4bcf78){const _0x10fdf5=a55_0x5f1070,_0x4e51c1={};_0x4e51c1[_0x10fdf5(0x131)]='.browserstack',_0x4e51c1['uvGJb']=_0x10fdf5(0x175);const _0x71a095=_0x4e51c1;try{const _0x1f2c47=path[_0x10fdf5(0x182)](helper[_0x10fdf5(0x16b)](),_0x71a095[_0x10fdf5(0x131)]);if(!fs[_0x10fdf5(0x133)](_0x1f2c47)){const _0x1c54a6={};_0x1c54a6[_0x10fdf5(0x147)]=!![],fs[_0x10fdf5(0x16a)](_0x1f2c47,_0x1c54a6);}fs[_0x10fdf5(0x17f)](path[_0x10fdf5(0x182)](_0x1f2c47,_0x10fdf5(0x14a)+_0x4bcf78+'.txt'),_0x358899+'\x0a',_0x71a095[_0x10fdf5(0x159)]);}catch(_0x5ea4f6){console[_0x10fdf5(0x15a)](_0x10fdf5(0x15d)+_0x5ea4f6[_0x10fdf5(0x130)]);}}}function a55_0x5ee0(_0x33ae5f,_0x408ac5){const _0xf537b=a55_0xf537();return a55_0x5ee0=function(_0x5ee04c,_0x1f1e32){_0x5ee04c=_0x5ee04c-0x122;let _0x1a47c6=_0xf537b[_0x5ee04c];return _0x1a47c6;},a55_0x5ee0(_0x33ae5f,_0x408ac5);}module[a55_0x5f1070(0x142)]=TestDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a56_0x10035b=a56_0x511a;(function(_0x503bdb,_0x3f3496){const _0x745327=a56_0x511a,_0x534fb1=_0x503bdb();while(!![]){try{const _0x2d056d=-parseInt(_0x745327(0x227))/0x1*(-parseInt(_0x745327(0x247))/0x2)+parseInt(_0x745327(0x23b))/0x3+parseInt(_0x745327(0x273))/0x4*(parseInt(_0x745327(0x26e))/0x5)+-parseInt(_0x745327(0x241))/0x6*(parseInt(_0x745327(0x203))/0x7)+-parseInt(_0x745327(0x19e))/0x8*(-parseInt(_0x745327(0x1a4))/0x9)+parseInt(_0x745327(0x1c2))/0xa+-parseInt(_0x745327(0x27a))/0xb*(parseInt(_0x745327(0x1e9))/0xc);if(_0x2d056d===_0x3f3496)break;else _0x534fb1['push'](_0x534fb1['shift']());}catch(_0x2008da){_0x534fb1['push'](_0x534fb1['shift']());}}}(a56_0x1f5b,0xc4600));function a56_0x1f5b(){const _0x304b49=['browser','Page\x20Scan\x20result=','PLAYWRIGHT_DISPATCH','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','sessionId','6289110fYGPig','lmWyT','message','../utils/clientTroubleshootingService.js','isRemote','bsParams','Page','jlqwv','browser_version','includes','nMFhw','patchConnection','safari','RzLzj','fPLBm','bstackPerformA11yScan','pwPage','defineProperty','lib','Not\x20able\x20to\x20resolve\x20Connection\x20class','cloudProvider','kxyNP','deviceModel','path','patchCRConnection','Connection','getInstance','../../bin/playwright/accessibility-helper','capabilities','AyZtq','3744220nvFpFC','JczIF','ZsZUB','__driver','isRunning','MiANK','server','platformName','currentSessionDetails','Error\x20in\x20finding\x20platform\x20details\x20','apply','debug','AZFOo','EzlMG','url','function','dhYEV','version','playwright','yyHSP','../../helpers/test-observability/constants','CzJRR','BROWSERSTACK_TEST_OBSERVABILITY','Viaao','trackEvent','winstonLogger','project','TwevQ','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','PLAYWRIGHT','KVzMG','ndbYQ','parse','ATS_WSS_URL_REGEX','platform_version','syBll','_browserType','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','BSTACK_URL','12850428JyrCza','vMgeR','MMaFG','_connection','env','XZNtp','sessionError','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','hMrSv','KSAiC','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','Setting\x20session\x20id\x20received\x20from\x20BS\x20','JSJCq','PCymv','OQSHA','chrome','shouldWrapCommand','NQMUe','../v2/state/hookState.js','2|6|0|3|5|7|4|1','../../helpers/test-observability/utils','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','prototype','aDftm','IFcaP','21CwwYxw','qHKIN','../v2/browserstackCLI','firefox','use','SaFVS','jYQBS','chromium','XJCOt','setupBrowserDetails:\x20browser\x20param\x20is\x20nil;\x20populating\x20playwright\x20fallback\x20so\x20TRA\x20does\x20not\x20render\x20\x22Unknown\x22','pUVxc','IjYby','wsEndpoint','currentTest','_onMessage','edge','format','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','browserName','../../helpers/logger','YStTG','Performing\x20scan\x20for\x20','compareVersions','PtIhN','iUpFJ','string','JRUnQ','Error\x20in\x20importing\x20crConnection','rWkHn','util','Driver\x20Scan\x20result=','yJdFi','QuQVi','MPxnP','LPxIx','accessibilityPlatform','536MbmaRs','CBtmo','browserstack','_type','LSqvv','CRConnection','cLrDL','MnIjM','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','../../helpers/test-observability/error-handler','product','Failed\x20to\x20perform\x20scan\x20','jzNIQ','../../helpers/accessibility-automation/accessibilityRetryHelper.js','turboscale','titlePath','AxLin','BSTACK_ATS_URL','resolveConnectionClass','dispatch','3619536XgAXaI','platform','toString','exports','split','_name','290946rNhWZL','xHRgg','bsSessionId','cUTjo','platformDetails','platformVersion','1280tklhRH','BPnGG','YSlLn','WkUzy','_bstackDispatchPatched','1.60.0','join','performScan','mGCIE','connectOptions','bIrnl','kmyXJ','sendMessageToServer','ZvKqo','model','../../helpers/helper','NViNn','query','POST','automate','getAutomationFramework','gxCCf','hUmCN','params','__workerDetails','RnkNP','testInfo','PmURu','unknown_grid','GkDCv','yiyjx','assign','ugiBc','CTrlE','QIIAe','crConnection.js','ltEdI','channel','Device\x20Model\x20is\x20not\x20available','296090UotFWn','bjFRb','info','playwright-','qOEXd','104EyOBIG','riclJ','ahVgb','smnvK','eevhi','reportSessionLinkingIssue','bStackParams','33HlAnbb','../utils/constants','npwvQ','8SFqqCm'];a56_0x1f5b=function(){return _0x304b49;};return a56_0x1f5b();}const path=require(a56_0x10035b(0x1bb)),url=require(a56_0x10035b(0x1d0)),util=require(a56_0x10035b(0x220)),helper=require(a56_0x10035b(0x256)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a56_0x10035b(0x256)),{o11yErrorHandler}=require(a56_0x10035b(0x230)),{debug,getPlatformDetails}=require(a56_0x10035b(0x1fd)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{FRAMEWORKS}=require(a56_0x10035b(0x1d6)),logger=require(a56_0x10035b(0x216))[a56_0x10035b(0x1db)],scripts=require('../../helpers/accessibility-automation/scripts'),{browserStackExecuteDriver}=require(a56_0x10035b(0x1bf)),AccessibilityHelper=require('./accessibility-helper'),constants=require(a56_0x10035b(0x27b)),BrowserstackCLI=require(a56_0x10035b(0x205)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a56_0x10035b(0x1fb)),{performScanWithRetry}=require(a56_0x10035b(0x234)),ClientTroubleShootingService=require(a56_0x10035b(0x1a7)),getBrowserNameFromChannel=_0x3573a6=>{const _0x581edc=a56_0x10035b,_0x2e7f48={};_0x2e7f48[_0x581edc(0x21b)]=_0x581edc(0x1fc),_0x2e7f48[_0x581edc(0x222)]=_0x581edc(0x1f8),_0x2e7f48['IjyzQ']=function(_0x389b86,_0x1d10b7){return _0x389b86!==_0x1d10b7;},_0x2e7f48[_0x581edc(0x249)]=_0x581edc(0x21c),_0x2e7f48['NViNn']='chromium',_0x2e7f48[_0x581edc(0x208)]=_0x581edc(0x212),_0x2e7f48[_0x581edc(0x1c1)]=function(_0x476ba0,_0x1a4bac){return _0x476ba0===_0x1a4bac;},_0x2e7f48[_0x581edc(0x22d)]='webkit',_0x2e7f48[_0x581edc(0x223)]=_0x581edc(0x206),_0x2e7f48[_0x581edc(0x20b)]=_0x581edc(0x1b0);const _0x584451=_0x2e7f48,_0x1f1187=_0x584451[_0x581edc(0x21b)][_0x581edc(0x23f)]('|');let _0x1809f6=0x0;while(!![]){switch(_0x1f1187[_0x1809f6++]){case'0':if(_0x3573a6['includes'](_0x584451['yJdFi']))return _0x584451[_0x581edc(0x222)];continue;case'1':return _0x3573a6;case'2':if(!_0x3573a6||_0x584451['IjyzQ'](typeof _0x3573a6,_0x584451[_0x581edc(0x249)]))return _0x584451[_0x581edc(0x257)];continue;case'3':if(_0x3573a6['includes'](_0x584451[_0x581edc(0x208)]))return _0x584451[_0x581edc(0x208)];continue;case'4':if(_0x584451[_0x581edc(0x1c1)](_0x3573a6,_0x584451[_0x581edc(0x22d)]))return _0x584451[_0x581edc(0x22d)];continue;case'5':if(_0x3573a6[_0x581edc(0x1ad)](_0x584451['QuQVi']))return _0x584451[_0x581edc(0x223)];continue;case'6':if(_0x3573a6[_0x581edc(0x1ad)](_0x584451['NViNn']))return _0x584451[_0x581edc(0x257)];continue;case'7':if(_0x3573a6[_0x581edc(0x1ad)](_0x584451[_0x581edc(0x20b)]))return _0x584451[_0x581edc(0x20b)];continue;}break;}},getBrowserFromWSEndpoint=_0x2a8db7=>{const _0x16de74=a56_0x10035b,_0x208914={'Viaao':_0x16de74(0x1f8),'hUmCN':function(_0x573be9,_0x6ea5f9){return _0x573be9(_0x6ea5f9);}};try{const _0x57150a=url[_0x16de74(0x1e2)](_0x2a8db7),_0xaac88f=new URLSearchParams(_0x57150a[_0x16de74(0x258)]),_0x9f321d=Object['fromEntries'](_0xaac88f['entries']()),_0x3aa637=JSON[_0x16de74(0x1e2)](_0x9f321d['caps']);if(_0x3aa637&&(_0x3aa637['browser']||_0x3aa637[_0x16de74(0x215)]))return _0x3aa637[_0x16de74(0x19f)]||_0x3aa637[_0x16de74(0x215)];return _0x208914[_0x16de74(0x1d9)];}catch(_0x46a97e){_0x208914[_0x16de74(0x25d)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x46a97e[_0x16de74(0x23d)]());}},getCloudProviderFromWsEndpoint=_0x3cc368=>{const _0x5ee4f4=a56_0x10035b,_0x110757={};_0x110757[_0x5ee4f4(0x25c)]=_0x5ee4f4(0x229),_0x110757[_0x5ee4f4(0x277)]=_0x5ee4f4(0x263);const _0x2c3e58=_0x110757;if(_0x3cc368[_0x5ee4f4(0x1ad)](constants[_0x5ee4f4(0x1e8)])||_0x3cc368[_0x5ee4f4(0x1ad)](constants[_0x5ee4f4(0x238)]))return _0x2c3e58['gxCCf'];return _0x2c3e58['eevhi'];},a56_0x4af254={};a56_0x4af254[a56_0x10035b(0x1b8)]=undefined,a56_0x4af254[a56_0x10035b(0x243)]=undefined,a56_0x4af254['browser']=undefined,a56_0x4af254[a56_0x10035b(0x1ac)]=undefined,a56_0x4af254[a56_0x10035b(0x23c)]=undefined,a56_0x4af254[a56_0x10035b(0x1e4)]=undefined,a56_0x4af254['product']=undefined,a56_0x4af254[a56_0x10035b(0x1c0)]={};function a56_0x511a(_0x1d3635,_0x1f0201){const _0x1f5bf6=a56_0x1f5b();return a56_0x511a=function(_0x511a82,_0x14eb6b){_0x511a82=_0x511a82-0x19e;let _0x1c63c3=_0x1f5bf6[_0x511a82];return _0x1c63c3;},a56_0x511a(_0x1d3635,_0x1f0201);}class PlaywrightSessionDetails{static [a56_0x10035b(0x1ca)]=a56_0x4af254;constructor(){const _0x123a85=a56_0x10035b,_0x3b04aa={};_0x3b04aa['CBtmo']=_0x123a85(0x22f);const _0x298c2f=_0x3b04aa;throw new Error(_0x298c2f[_0x123a85(0x228)]);}static [a56_0x10035b(0x1ef)]=null;static['setupBrowserDetails'](_0x40772c,_0x512eca,_0x32723=null){const _0x53d7ac=a56_0x10035b,_0x44895c={'KVzMG':_0x53d7ac(0x20c),'PtIhN':function(_0x2f3e75){return _0x2f3e75();},'IFcaP':_0x53d7ac(0x229),'qHKIN':'local_grid','lHOdZ':_0x53d7ac(0x1d4),'RzLzj':'unknown','rWkHn':function(_0x2e9e2c,_0x385057){return _0x2e9e2c===_0x385057;},'pUVxc':_0x53d7ac(0x1d1),'ahVgb':_0x53d7ac(0x214),'xHRgg':function(_0x39d0f4,_0x20c0dc){return _0x39d0f4===_0x20c0dc;},'twlaz':_0x53d7ac(0x26d),'ltEdI':function(_0x27a6a8,_0x33e952,_0x4ecdb2){return _0x27a6a8(_0x33e952,_0x4ecdb2);},'PmURu':_0x53d7ac(0x1e6),'kmyXJ':'_defaultConnectOptions','yyHSP':_0x53d7ac(0x1dc),'XZNtp':_0x53d7ac(0x207),'CTrlE':_0x53d7ac(0x250),'TwevQ':function(_0x518723,_0xf217c7){return _0x518723(_0xf217c7);},'JRUnQ':_0x53d7ac(0x235),'smnvK':_0x53d7ac(0x25a),'shYHq':function(_0x1d0b5f,_0x16880f){return _0x1d0b5f(_0x16880f);},'jlqwv':function(_0x1a4027,_0x4b36f1){return _0x1a4027&&_0x4b36f1;},'okkVr':function(_0x30aa45){return _0x30aa45();},'RnkNP':function(_0x4ca9ce,_0x5c6e56){return _0x4ca9ce+_0x5c6e56;},'jYQBS':_0x53d7ac(0x271),'BPnGG':function(_0x4c7740,_0x41e563){return _0x4c7740||_0x41e563;},'NQMUe':function(_0x2d3778){return _0x2d3778();},'lmWyT':function(_0x2a8729,_0x2162d7,_0x5e8a70){return _0x2a8729(_0x2162d7,_0x5e8a70);},'aDftm':'setupBrowserDetails'},_0x233d9a=this;return _0x44895c[_0x53d7ac(0x1a5)](o11yErrorHandler,async function _0x4640b5(_0x355fee,_0x473183,_0x2d1d08=null){const _0xe64b1c=_0x53d7ac;if(!_0x355fee){logger['debug'](_0x44895c[_0xe64b1c(0x1e0)]),_0x233d9a[_0xe64b1c(0x1ca)]=Object[_0xe64b1c(0x266)]({},_0x233d9a[_0xe64b1c(0x1ca)],{'cloudProvider':_0x44895c[_0xe64b1c(0x21a)](isBrowserstackInfra)?_0x44895c[_0xe64b1c(0x202)]:_0x44895c[_0xe64b1c(0x204)],'browser':_0x44895c['lHOdZ'],'browser_version':_0x44895c[_0xe64b1c(0x1b1)]});return;}let _0x3d755b=_0x355fee[_0xe64b1c(0x240)],_0x28b619=null;_0x355fee&&_0x44895c[_0xe64b1c(0x21f)](typeof _0x355fee[_0xe64b1c(0x1d3)],_0x44895c[_0xe64b1c(0x20d)])?_0x28b619=_0x355fee[_0xe64b1c(0x1d3)]():logger[_0xe64b1c(0x1cd)](_0x44895c[_0xe64b1c(0x275)]);let _0x1cd379=null;_0x355fee&&_0x44895c[_0xe64b1c(0x242)](typeof _0x355fee[_0xe64b1c(0x255)],_0x44895c[_0xe64b1c(0x20d)])?_0x1cd379=_0x355fee[_0xe64b1c(0x255)]():logger[_0xe64b1c(0x1cd)](_0x44895c['twlaz']);let _0x2205eb=null,_0x13a34f=null,_0x1284db=null,_0x3dbc2d=_0x44895c[_0xe64b1c(0x204)];const _0x92e39e=_0x355fee[_0xe64b1c(0x1ec)]&&_0x44895c[_0xe64b1c(0x21f)](typeof _0x355fee[_0xe64b1c(0x1ec)][_0xe64b1c(0x1a8)],_0x44895c[_0xe64b1c(0x20d)])?_0x355fee[_0xe64b1c(0x1ec)]['isRemote']():![];if(_0x92e39e||global[_0xe64b1c(0x226)]&&!process[_0xe64b1c(0x1ed)][_0xe64b1c(0x1de)]){let _0xd0cfdb=null;_0x44895c[_0xe64b1c(0x26b)](nestedKeyValue,_0x355fee,[_0x44895c[_0xe64b1c(0x262)],_0x44895c[_0xe64b1c(0x252)]])?_0xd0cfdb=_0x355fee[_0xe64b1c(0x1e6)]['_defaultConnectOptions']:_0xd0cfdb=_0x44895c['ltEdI'](nestedKeyValue,_0x473183,[_0x44895c[_0xe64b1c(0x1d5)],_0x44895c[_0xe64b1c(0x1ee)],_0x44895c[_0xe64b1c(0x268)]]);const _0x56be02=_0x2d1d08||_0xd0cfdb&&_0xd0cfdb[_0xe64b1c(0x20f)];if(_0x56be02){_0x3dbc2d=_0x44895c['TwevQ'](getCloudProviderFromWsEndpoint,_0x56be02);if(_0x44895c[_0xe64b1c(0x21f)](_0x3dbc2d,_0x44895c[_0xe64b1c(0x202)]))_0x1284db=constants[_0xe64b1c(0x1e3)]['test'](_0x56be02)?_0x44895c[_0xe64b1c(0x21d)]:_0x44895c[_0xe64b1c(0x276)],_0x3d755b=_0x44895c['shYHq'](getBrowserFromWSEndpoint,_0x56be02)||_0x3d755b,_0x2205eb=_0x233d9a[_0xe64b1c(0x1ca)][_0xe64b1c(0x23c)],_0x13a34f=_0x233d9a[_0xe64b1c(0x1ca)][_0xe64b1c(0x1e4)];else{const _0x50f5da=await _0x44895c['PtIhN'](getPlatformDetails);_0x2205eb=_0x50f5da['platformName'],_0x13a34f=_0x50f5da[_0xe64b1c(0x246)];}}if(_0x44895c[_0xe64b1c(0x1ab)](!_0x2205eb,!_0x13a34f)&&!_0x44895c['PtIhN'](isBrowserstackInfra)){const _0x37270c=await _0x44895c['okkVr'](getPlatformDetails);_0x2205eb=_0x37270c[_0xe64b1c(0x1c9)],_0x13a34f=_0x37270c[_0xe64b1c(0x246)];}}else{_0x473183&&_0x473183[_0xe64b1c(0x1dc)][_0xe64b1c(0x207)][_0xe64b1c(0x26c)]?_0x3d755b=_0x44895c[_0xe64b1c(0x1dd)](getBrowserNameFromChannel,_0x473183[_0xe64b1c(0x1dc)][_0xe64b1c(0x207)]['channel']):_0x3d755b=_0x44895c[_0xe64b1c(0x260)](_0x44895c[_0xe64b1c(0x209)],_0x44895c[_0xe64b1c(0x248)](_0x3d755b,_0x44895c[_0xe64b1c(0x1b1)])['toLowerCase']());const _0x1d57c9=await _0x44895c[_0xe64b1c(0x1fa)](getPlatformDetails);_0x2205eb=_0x1d57c9[_0xe64b1c(0x1c9)],_0x13a34f=_0x1d57c9[_0xe64b1c(0x246)];}const _0x3aa40a={};_0x3aa40a[_0xe64b1c(0x19f)]=_0x3d755b,_0x3aa40a[_0xe64b1c(0x1ac)]=_0x28b619,_0x3aa40a[_0xe64b1c(0x1c0)]={},_0x3aa40a['platform']=_0x2205eb,_0x3aa40a[_0xe64b1c(0x1e4)]=_0x13a34f,_0x3aa40a[_0xe64b1c(0x231)]=_0x1284db;const _0x1dee34=_0x3aa40a;_0x1cd379&&(_0x1dee34[_0xe64b1c(0x1c0)][_0xe64b1c(0x1ba)]=_0x1cd379);const _0x34a5fa={};_0x34a5fa['cloudProvider']=_0x3dbc2d,_0x233d9a[_0xe64b1c(0x1ca)]=Object[_0xe64b1c(0x266)]({},_0x233d9a['currentSessionDetails'],_0x34a5fa,_0x1dee34);},_0x44895c[_0x53d7ac(0x201)])(_0x40772c,_0x512eca,_0x32723);}static['patch'](){this['patchConnection'](),this['patchCRConnection']();}static[a56_0x10035b(0x1af)](){const _0x71f29a=a56_0x10035b,_0x130d84={'kkpEG':function(_0xa8a218,_0x2f94b1,_0xfdf622){return _0xa8a218(_0x2f94b1,_0xfdf622);},'QIIAe':_0x71f29a(0x210),'bjFRb':_0x71f29a(0x261),'OQSHA':_0x71f29a(0x236),'vMgeR':function(_0x540c1e,_0x59e9a3,_0x55b32b){return _0x540c1e(_0x59e9a3,_0x55b32b);},'cUTjo':_0x71f29a(0x25f),'xlUnE':_0x71f29a(0x1b4),'AxLin':function(_0x146dbd,_0x3ddf8c){return _0x146dbd===_0x3ddf8c;},'IhZik':_0x71f29a(0x1aa),'npwvQ':function(_0x2d282b,_0x5f50bd,_0x49fd49,_0x52a81e){return _0x2d282b(_0x5f50bd,_0x49fd49,_0x52a81e);},'EzlMG':function(_0x298383,_0x3b6a22){return _0x298383||_0x3b6a22;},'JSJCq':function(_0x588eab,_0x34c49c){return _0x588eab(_0x34c49c);},'GkDCv':function(_0x53c448,_0x464fe8){return _0x53c448(_0x464fe8);},'fPLBm':_0x71f29a(0x1b7),'nMFhw':function(_0x79b0e3,_0x5b033b){return _0x79b0e3!=_0x5b033b;},'syBll':function(_0x49ffa0){return _0x49ffa0();},'CzJRR':_0x71f29a(0x253),'MPxnP':function(_0x1ace06,_0x15946f){return _0x1ace06(_0x15946f);},'dhYEV':_0x71f29a(0x23a),'kxyNP':_0x71f29a(0x1e7)},_0x21919d=this;!this[_0x71f29a(0x1bd)]&&(this['Connection']=helper[_0x71f29a(0x239)](),!this[_0x71f29a(0x1bd)]&&_0x130d84[_0x71f29a(0x264)](debug,_0x130d84[_0x71f29a(0x1b2)]));const _0x1f4335=this['Connection'];if(_0x130d84[_0x71f29a(0x1ae)](_0x1f4335,null)&&_0x1f4335[_0x71f29a(0x200)][_0x71f29a(0x24b)])return;try{if(_0x130d84[_0x71f29a(0x1ae)](_0x1f4335,null)){const _0x2f5c16=_0x1f4335['prototype'][_0x71f29a(0x23a)],_0x3bbeee=_0x1f4335[_0x71f29a(0x200)][_0x71f29a(0x253)];_0x130d84[_0x71f29a(0x1e5)](isAccessibilityAutomationSession)&&Object[_0x71f29a(0x1b5)](_0x1f4335[_0x71f29a(0x200)],_0x130d84[_0x71f29a(0x1d7)],{'get':function(){const _0x34018e=_0x71f29a,_0x4d6cce={'MMaFG':function(_0x51d19c,_0x23052b,_0x29e933){return _0x130d84['kkpEG'](_0x51d19c,_0x23052b,_0x29e933);},'ZvKqo':_0x130d84[_0x34018e(0x269)],'JczIF':_0x130d84[_0x34018e(0x26f)],'BeUZz':_0x130d84[_0x34018e(0x1f7)],'PCymv':function(_0x5e4fb1,_0x10010b,_0x35e726){const _0x1371fe=_0x34018e;return _0x130d84[_0x1371fe(0x1ea)](_0x5e4fb1,_0x10010b,_0x35e726);},'jzNIQ':function(_0x2ec0fb,_0x42095b,_0x12f332){const _0xfb2516=_0x34018e;return _0x130d84[_0xfb2516(0x1ea)](_0x2ec0fb,_0x42095b,_0x12f332);},'KSAiC':_0x130d84[_0x34018e(0x244)],'MnIjM':_0x130d84['xlUnE'],'LPxIx':function(_0x38184f,_0xfede89){const _0x25a970=_0x34018e;return _0x130d84[_0x25a970(0x237)](_0x38184f,_0xfede89);},'qOEXd':_0x130d84['IhZik'],'yTsrZ':function(_0x187e38,_0x2bffc0,_0x1bcb81,_0x299833){const _0x5cb771=_0x34018e;return _0x130d84[_0x5cb771(0x27c)](_0x187e38,_0x2bffc0,_0x1bcb81,_0x299833);}};return async function(){const _0x3f8f9f=_0x34018e;try{if(!global[_0x3f8f9f(0x1b3)]&&global[_0x3f8f9f(0x226)]&&_0x4d6cce[_0x3f8f9f(0x1eb)](nestedKeyValue,global[_0x3f8f9f(0x25f)],[_0x4d6cce[_0x3f8f9f(0x254)],_0x4d6cce[_0x3f8f9f(0x1c3)],_0x4d6cce['BeUZz']])&&_0x4d6cce[_0x3f8f9f(0x1f6)](shouldScanTestForAccessibility,global[_0x3f8f9f(0x25f)]['currentTest'][_0x3f8f9f(0x261)]['titlePath'],!![])&&scripts[_0x3f8f9f(0x1f9)](arguments[0x1])){logger['debug'](_0x3f8f9f(0x218)+arguments[0x1]),global['bstackPerformA11yScan']=!![];const _0x33a314=_0x4d6cce[_0x3f8f9f(0x233)](nestedKeyValue,global,[_0x4d6cce[_0x3f8f9f(0x1f2)],_0x4d6cce[_0x3f8f9f(0x22e)]]);_0x33a314&&logger[_0x3f8f9f(0x270)](_0x3f8f9f(0x1a0)+util[_0x3f8f9f(0x213)](await _0x4d6cce['MMaFG'](performScanWithRetry,_0x33a314,arguments[0x1]))),_0x4d6cce[_0x3f8f9f(0x225)](arguments[0x0][_0x3f8f9f(0x22a)],_0x4d6cce[_0x3f8f9f(0x272)])&&global[_0x3f8f9f(0x1c5)]&&logger[_0x3f8f9f(0x270)](_0x3f8f9f(0x221)+util[_0x3f8f9f(0x213)](await _0x4d6cce['yTsrZ'](performScanWithRetry,global[_0x3f8f9f(0x1c5)],arguments[0x1],scripts[_0x3f8f9f(0x24e)])));}}catch(_0x1e6a6f){logger[_0x3f8f9f(0x1cd)](_0x3f8f9f(0x232)+util['format'](_0x1e6a6f));}return global[_0x3f8f9f(0x1b3)]=![],_0x3bbeee[_0x3f8f9f(0x1cc)](this,arguments);};}}),!_0x130d84[_0x71f29a(0x224)](isFalse,process[_0x71f29a(0x1ed)][_0x71f29a(0x1d8)])&&Object['defineProperty'](_0x1f4335['prototype'],_0x130d84[_0x71f29a(0x1d2)],{'get':function(){const _0x6cbdaa={'DuPUj':function(_0x391198,_0x3a37ee){const _0x497514=a56_0x511a;return _0x130d84[_0x497514(0x1cf)](_0x391198,_0x3a37ee);},'MiANK':function(_0x274c76,_0x49ca87){return _0x130d84['JSJCq'](_0x274c76,_0x49ca87);},'ndbYQ':function(_0x3848f6,_0x5743af){const _0x1727a8=a56_0x511a;return _0x130d84[_0x1727a8(0x1f5)](_0x3848f6,_0x5743af);}};return async function _0x159a17(_0x4492fd){const _0x25177b=a56_0x511a;if(BrowserstackCLI['getInstance']()[_0x25177b(0x1c6)]()){const _0x2b0c98={};_0x2b0c98[_0x25177b(0x1a6)]=_0x4492fd,await BrowserstackCLI[_0x25177b(0x1be)]()[_0x25177b(0x25b)]()[_0x25177b(0x1da)](AutomationFrameworkState[_0x25177b(0x1a1)],HookState[_0x25177b(0x259)],_0x2b0c98);}else{const _0x406647=_0x4492fd&&_0x4492fd[_0x25177b(0x25e)]&&_0x4492fd[_0x25177b(0x25e)][_0x25177b(0x1a9)];if(_0x406647){const _0xc96fc9=_0x406647[_0x25177b(0x1a3)],_0x4fd8b3=_0x406647[_0x25177b(0x245)];_0x6cbdaa['DuPUj'](!_0xc96fc9,!_0x4fd8b3)&&await ClientTroubleShootingService[_0x25177b(0x278)](),_0x4fd8b3&&(_0x6cbdaa[_0x25177b(0x1c7)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x4fd8b3['toString']()),_0x21919d[_0x25177b(0x1ca)][_0x25177b(0x23c)]=_0x4fd8b3[_0x25177b(0x1c9)],_0x21919d[_0x25177b(0x1ca)][_0x25177b(0x1e4)]=_0x4fd8b3['platformVersion']),_0xc96fc9&&(_0x6cbdaa[_0x25177b(0x1e1)](debug,_0x25177b(0x1f4)+_0xc96fc9),_0x21919d['currentSessionDetails'][_0x25177b(0x243)]=_0xc96fc9);}}return _0x2f5c16['apply'](this,arguments);};}}),_0x1f4335['prototype']['_bstackDispatchPatched']=!![],logger['debug'](_0x130d84[_0x71f29a(0x1b9)]);}}catch(_0x4a9408){_0x130d84[_0x71f29a(0x1f5)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x4a9408),_0x21919d[_0x71f29a(0x1ef)]=_0x4a9408['toString']();}}static[a56_0x10035b(0x1bc)](){const _0x296342=a56_0x10035b,_0x16cf5f={'ZsZUB':function(_0x2ef76c,_0x2fadd4){return _0x2ef76c(_0x2fadd4);},'AZFOo':function(_0x57538d){return _0x57538d();},'oBtGf':function(_0x442baa,_0x5319ef){return _0x442baa>=_0x5319ef;},'QqMIf':_0x296342(0x24c),'bxwuQ':function(_0x39eb88,_0x5cd109){return _0x39eb88(_0x5cd109);},'LSqvv':function(_0x22e29e,_0x51192d){return _0x22e29e(_0x51192d);},'YStTG':_0x296342(0x1a2),'WkUzy':_0x296342(0x1b6),'hMrSv':_0x296342(0x1c8),'riclJ':_0x296342(0x20a),'yiyjx':_0x296342(0x26a),'IjYby':'Not\x20able\x20to\x20import\x20crConnection','mGCIE':function(_0x2aa875,_0x5663ba){return _0x2aa875(_0x5663ba);},'vDOBS':_0x296342(0x21e),'ofvjR':function(_0x529c56,_0x45436f){return _0x529c56!=_0x45436f;},'bIrnl':_0x296342(0x211)},_0x2170ae=this;if(_0x16cf5f[_0x296342(0x1ce)](isAccessibilityAutomationSession)){let _0x1665ab=null,_0x3535dd=![];try{const _0x1c915b=helper['getFrameworkVersion'](FRAMEWORKS[_0x296342(0x1df)]);_0x3535dd=_0x16cf5f['oBtGf'](helper[_0x296342(0x219)](_0x1c915b,_0x16cf5f['QqMIf']),0x0);}catch(_0x21408a){_0x16cf5f['bxwuQ'](debug,_0x296342(0x1f0)+_0x21408a[_0x296342(0x23d)]());}if(_0x3535dd)_0x16cf5f[_0x296342(0x22b)](debug,_0x16cf5f[_0x296342(0x217)]);else try{const _0x5004a9=path[_0x296342(0x24d)](_0x16cf5f[_0x296342(0x24a)],_0x16cf5f[_0x296342(0x1f1)],_0x16cf5f[_0x296342(0x274)],_0x16cf5f[_0x296342(0x265)]),_0x2937ab=_0x16cf5f[_0x296342(0x1c4)](importFileFromPWCore,_0x5004a9);!_0x2937ab?_0x16cf5f[_0x296342(0x1c4)](debug,_0x16cf5f[_0x296342(0x20e)]):_0x1665ab=_0x2937ab[_0x296342(0x22c)];}catch(_0x4b1f50){_0x16cf5f[_0x296342(0x24f)](debug,_0x16cf5f['vDOBS']);}try{if(_0x16cf5f['ofvjR'](_0x1665ab,null)){const _0x40a841=_0x1665ab[_0x296342(0x200)]['_onMessage'];Object[_0x296342(0x1b5)](_0x1665ab['prototype'],_0x16cf5f[_0x296342(0x251)],{'get':function(){const _0xa248d7={'jgXby':function(_0x5e8165,_0xceb13b){const _0x5f0faf=a56_0x511a;return _0x16cf5f[_0x5f0faf(0x1c4)](_0x5e8165,_0xceb13b);},'ugiBc':function(_0x47cc4f,_0x1df3ad){const _0x37e97e=a56_0x511a;return _0x16cf5f[_0x37e97e(0x1c4)](_0x47cc4f,_0x1df3ad);}};return async function _0x255f1e(_0x491e65){const _0xfe3e61=a56_0x511a;try{if(BrowserstackCLI[_0xfe3e61(0x1be)]()[_0xfe3e61(0x1c6)]()){const _0x55fc37={};_0x55fc37['message']=_0x491e65,await BrowserstackCLI[_0xfe3e61(0x1be)]()[_0xfe3e61(0x25b)]()['trackEvent'](AutomationFrameworkState[_0xfe3e61(0x1a1)],HookState[_0xfe3e61(0x259)],_0x55fc37),delete _0x491e65[_0xfe3e61(0x279)];}else{const _0x327b3b=_0x491e65[_0xfe3e61(0x279)];if(_0x327b3b){delete _0x491e65[_0xfe3e61(0x279)];const _0x555d3=_0x327b3b[_0xfe3e61(0x1a3)],_0x1b5eff=_0x327b3b['platformDetails'];_0x1b5eff&&(_0xa248d7['jgXby'](debug,_0xfe3e61(0x1fe)+_0x1b5eff[_0xfe3e61(0x23d)]()),_0x2170ae[_0xfe3e61(0x1ca)]['platform']=_0x1b5eff[_0xfe3e61(0x1c9)],_0x2170ae[_0xfe3e61(0x1ca)][_0xfe3e61(0x1e4)]=_0x1b5eff[_0xfe3e61(0x246)]),_0x555d3&&(_0xa248d7['jgXby'](debug,_0xfe3e61(0x1ff)+_0x555d3),_0x2170ae[_0xfe3e61(0x1ca)][_0xfe3e61(0x243)]=_0x555d3);}}}catch(_0x111d48){_0xa248d7[_0xfe3e61(0x267)](debug,_0xfe3e61(0x1cb)+_0x111d48['toString']());}return _0x40a841[_0xfe3e61(0x1cc)](this,arguments);};}});}}catch(_0x5a2e7f){_0x16cf5f[_0x296342(0x22b)](debug,_0x296342(0x1f3)+_0x5a2e7f),_0x2170ae[_0x296342(0x1ef)]=_0x5a2e7f[_0x296342(0x23d)]();}}}static['getDetails'](){return this['currentSessionDetails'];}}module[a56_0x10035b(0x23e)]=PlaywrightSessionDetails;
|
|
1
|
+
const a56_0x44e358=a56_0x1eae;(function(_0x3ae095,_0x582f14){const _0x1c9c60=a56_0x1eae,_0x56694b=_0x3ae095();while(!![]){try{const _0x1ba851=-parseInt(_0x1c9c60(0x19a))/0x1*(parseInt(_0x1c9c60(0x125))/0x2)+parseInt(_0x1c9c60(0x112))/0x3*(-parseInt(_0x1c9c60(0x186))/0x4)+-parseInt(_0x1c9c60(0x12f))/0x5+-parseInt(_0x1c9c60(0x11f))/0x6*(-parseInt(_0x1c9c60(0x1a7))/0x7)+parseInt(_0x1c9c60(0x194))/0x8+-parseInt(_0x1c9c60(0x17c))/0x9*(-parseInt(_0x1c9c60(0x172))/0xa)+parseInt(_0x1c9c60(0x18b))/0xb*(-parseInt(_0x1c9c60(0x144))/0xc);if(_0x1ba851===_0x582f14)break;else _0x56694b['push'](_0x56694b['shift']());}catch(_0x1d2eff){_0x56694b['push'](_0x56694b['shift']());}}}(a56_0x96cf,0xf1ab3));function a56_0x1eae(_0x1879e5,_0x2178bd){const _0x96cf49=a56_0x96cf();return a56_0x1eae=function(_0x1eae48,_0x5b5844){_0x1eae48=_0x1eae48-0x101;let _0x281f77=_0x96cf49[_0x1eae48];return _0x281f77;},a56_0x1eae(_0x1879e5,_0x2178bd);}const path=require(a56_0x44e358(0x162)),url=require(a56_0x44e358(0x19f)),util=require(a56_0x44e358(0x13d)),helper=require(a56_0x44e358(0x156)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a56_0x44e358(0x156)),{o11yErrorHandler}=require(a56_0x44e358(0x161)),{debug,getPlatformDetails}=require(a56_0x44e358(0x158)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{FRAMEWORKS}=require(a56_0x44e358(0x138)),logger=require(a56_0x44e358(0x165))[a56_0x44e358(0x123)],scripts=require(a56_0x44e358(0x15f)),{browserStackExecuteDriver}=require(a56_0x44e358(0x136)),AccessibilityHelper=require('./accessibility-helper'),constants=require(a56_0x44e358(0x19e)),BrowserstackCLI=require(a56_0x44e358(0x183)),AutomationFrameworkState=require(a56_0x44e358(0x180)),HookState=require(a56_0x44e358(0x1d2)),{performScanWithRetry}=require('../../helpers/accessibility-automation/accessibilityRetryHelper.js'),ClientTroubleShootingService=require(a56_0x44e358(0x15b)),getBrowserNameFromChannel=_0x30820f=>{const _0x52923c=a56_0x44e358,_0x5580f2={};_0x5580f2['Iizix']='6|1|0|7|2|3|5|4',_0x5580f2['NyjYu']=_0x52923c(0x17f),_0x5580f2[_0x52923c(0x147)]=_0x52923c(0x11a),_0x5580f2['PLUDX']=_0x52923c(0x12a),_0x5580f2[_0x52923c(0x1a1)]=_0x52923c(0x170),_0x5580f2[_0x52923c(0x184)]=function(_0x4e91a6,_0x3f57f1){return _0x4e91a6===_0x3f57f1;},_0x5580f2[_0x52923c(0x163)]=_0x52923c(0x187),_0x5580f2[_0x52923c(0x174)]=function(_0x1877a5,_0x60f2d){return _0x1877a5!==_0x60f2d;},_0x5580f2[_0x52923c(0x1bb)]=_0x52923c(0x1c8),_0x5580f2[_0x52923c(0x1b6)]='edge';const _0x5e6398=_0x5580f2,_0x332f2d=_0x5e6398['Iizix'][_0x52923c(0x130)]('|');let _0xe0af53=0x0;while(!![]){switch(_0x332f2d[_0xe0af53++]){case'0':if(_0x30820f[_0x52923c(0x16a)](_0x5e6398[_0x52923c(0x11b)]))return _0x5e6398['NyjYu'];continue;case'1':if(_0x30820f[_0x52923c(0x16a)](_0x5e6398['vaMND']))return _0x5e6398['vaMND'];continue;case'2':if(_0x30820f[_0x52923c(0x16a)](_0x5e6398[_0x52923c(0x17a)]))return _0x5e6398[_0x52923c(0x17a)];continue;case'3':if(_0x30820f[_0x52923c(0x16a)](_0x5e6398['yJJdQ']))return _0x5e6398[_0x52923c(0x1a1)];continue;case'4':return _0x30820f;case'5':if(_0x5e6398[_0x52923c(0x184)](_0x30820f,_0x5e6398[_0x52923c(0x163)]))return _0x5e6398[_0x52923c(0x163)];continue;case'6':if(!_0x30820f||_0x5e6398[_0x52923c(0x174)](typeof _0x30820f,_0x5e6398['GJgjM']))return _0x5e6398['vaMND'];continue;case'7':if(_0x30820f[_0x52923c(0x16a)](_0x5e6398[_0x52923c(0x1b6)]))return _0x5e6398['lnECc'];continue;}break;}},getBrowserFromWSEndpoint=_0x33685b=>{const _0xb028ec=a56_0x44e358,_0x3cf2b0={'hPjcj':_0xb028ec(0x17f),'CrVkA':function(_0x15ac3c,_0x32fc52){return _0x15ac3c(_0x32fc52);}};try{const _0x2dd71f=url['parse'](_0x33685b),_0x593037=new URLSearchParams(_0x2dd71f[_0xb028ec(0x1b2)]),_0x560133=Object[_0xb028ec(0x143)](_0x593037[_0xb028ec(0x188)]()),_0x118bb9=JSON[_0xb028ec(0x133)](_0x560133[_0xb028ec(0x109)]);if(_0x118bb9&&(_0x118bb9[_0xb028ec(0x121)]||_0x118bb9[_0xb028ec(0x1bd)]))return _0x118bb9[_0xb028ec(0x121)]||_0x118bb9[_0xb028ec(0x1bd)];return _0x3cf2b0[_0xb028ec(0x175)];}catch(_0x3be942){_0x3cf2b0['CrVkA'](debug,_0xb028ec(0x108)+_0x3be942['toString']());}},getCloudProviderFromWsEndpoint=_0x873e27=>{const _0x2ac085=a56_0x44e358,_0xa89ad2={};_0xa89ad2[_0x2ac085(0x1c2)]='browserstack',_0xa89ad2[_0x2ac085(0x1ae)]=_0x2ac085(0x1d1);const _0x5a4fc6=_0xa89ad2;if(_0x873e27[_0x2ac085(0x16a)](constants[_0x2ac085(0x104)])||_0x873e27['includes'](constants[_0x2ac085(0x105)]))return _0x5a4fc6[_0x2ac085(0x1c2)];return _0x5a4fc6[_0x2ac085(0x1ae)];},a56_0x19a660={};a56_0x19a660[a56_0x44e358(0x16c)]=undefined,a56_0x19a660[a56_0x44e358(0x18a)]=undefined,a56_0x19a660[a56_0x44e358(0x121)]=undefined,a56_0x19a660['browser_version']=undefined,a56_0x19a660['platform']=undefined,a56_0x19a660[a56_0x44e358(0x1b7)]=undefined,a56_0x19a660[a56_0x44e358(0x1b8)]=undefined,a56_0x19a660[a56_0x44e358(0x1cb)]={};class PlaywrightSessionDetails{static [a56_0x44e358(0x171)]=a56_0x19a660;constructor(){const _0x283e05=a56_0x44e358,_0x5708f3={};_0x5708f3['wZvbE']='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x77b95f=_0x5708f3;throw new Error(_0x77b95f[_0x283e05(0x1a2)]);}static [a56_0x44e358(0x191)]=null;static[a56_0x44e358(0x1ad)](_0x42e327,_0x4d39dc,_0x1c3e1f=null){const _0xbba7bb=a56_0x44e358,_0x2c913e={'xbaYv':_0xbba7bb(0x1a9),'eVYDM':function(_0x2170f3){return _0x2170f3();},'hYlqz':_0xbba7bb(0x1cc),'bPnlR':_0xbba7bb(0x1cd),'Cizyz':_0xbba7bb(0x1a5),'UcynH':'unknown','LdOBL':function(_0x5e859a,_0x5feb43){return _0x5e859a===_0x5feb43;},'jfgWm':_0xbba7bb(0x160),'DhXCZ':_0xbba7bb(0x151),'caBUb':_0xbba7bb(0x1c0),'vlNwn':function(_0x5cc27e,_0x297913){return _0x5cc27e===_0x297913;},'fGOhh':function(_0x10eb55,_0x2ca76a,_0x1a474a){return _0x10eb55(_0x2ca76a,_0x1a474a);},'uRJPs':_0xbba7bb(0x149),'ANiTl':'_defaultConnectOptions','loaOn':_0xbba7bb(0x1a8),'PjKaO':_0xbba7bb(0x15c),'lfHTb':_0xbba7bb(0x1ac),'BcAGX':function(_0x1ba170,_0xf9e765){return _0x1ba170(_0xf9e765);},'GTDjh':function(_0x2456e0,_0x577e9f){return _0x2456e0===_0x577e9f;},'UtIHU':_0xbba7bb(0x1c5),'vsuKl':_0xbba7bb(0x1c4),'NxaDJ':function(_0x4f9165,_0x2e2947){return _0x4f9165&&_0x2e2947;},'TVjjX':function(_0x130349){return _0x130349();},'FrhRF':function(_0x2edf43){return _0x2edf43();},'fbFQy':function(_0x2fdd09,_0x390e26){return _0x2fdd09(_0x390e26);},'FLwtO':function(_0x5a6200,_0x36a752){return _0x5a6200+_0x36a752;},'VfOvS':_0xbba7bb(0x155),'BOiXp':function(_0xc29f77,_0x349c57){return _0xc29f77||_0x349c57;},'EHBBp':'setupBrowserDetails'},_0xc3aa62=this;return _0x2c913e[_0xbba7bb(0x16d)](o11yErrorHandler,async function _0x302e07(_0x1cc633,_0x54a11e,_0x58bea2=null){const _0x2d353c=_0xbba7bb;if(!_0x1cc633){logger[_0x2d353c(0x17b)](_0x2c913e[_0x2d353c(0x14c)]),_0xc3aa62[_0x2d353c(0x171)]=Object[_0x2d353c(0x16e)]({},_0xc3aa62['currentSessionDetails'],{'cloudProvider':_0x2c913e[_0x2d353c(0x179)](isBrowserstackInfra)?_0x2c913e[_0x2d353c(0x1c1)]:_0x2c913e['bPnlR'],'browser':_0x2c913e[_0x2d353c(0x1c9)],'browser_version':_0x2c913e[_0x2d353c(0x17d)]});return;}let _0x2acb0b=_0x1cc633[_0x2d353c(0x197)],_0x1c63a5=null;_0x1cc633&&_0x2c913e['LdOBL'](typeof _0x1cc633[_0x2d353c(0x101)],_0x2c913e[_0x2d353c(0x1c3)])?_0x1c63a5=_0x1cc633['version']():logger[_0x2d353c(0x17b)](_0x2c913e[_0x2d353c(0x1cf)]);let _0x148967=null;_0x1cc633&&_0x2c913e[_0x2d353c(0x117)](typeof _0x1cc633[_0x2d353c(0x115)],_0x2c913e[_0x2d353c(0x1c3)])?_0x148967=_0x1cc633[_0x2d353c(0x115)]():logger[_0x2d353c(0x17b)](_0x2c913e[_0x2d353c(0x14f)]);let _0x511ba9=null,_0x2c9b93=null,_0x365960=null,_0x3cb0b1=_0x2c913e[_0x2d353c(0x1ab)];const _0x36f6fa=_0x1cc633['_connection']&&_0x2c913e[_0x2d353c(0x177)](typeof _0x1cc633[_0x2d353c(0x15d)][_0x2d353c(0x178)],_0x2c913e['jfgWm'])?_0x1cc633[_0x2d353c(0x15d)][_0x2d353c(0x178)]():![];if(_0x36f6fa||global[_0x2d353c(0x111)]&&!process[_0x2d353c(0x199)]['BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE']){let _0x12a196=null;_0x2c913e['fGOhh'](nestedKeyValue,_0x1cc633,[_0x2c913e[_0x2d353c(0x1b9)],_0x2c913e['ANiTl']])?_0x12a196=_0x1cc633[_0x2d353c(0x149)][_0x2d353c(0x189)]:_0x12a196=_0x2c913e[_0x2d353c(0x16d)](nestedKeyValue,_0x54a11e,[_0x2c913e[_0x2d353c(0x1ce)],_0x2c913e['PjKaO'],_0x2c913e[_0x2d353c(0x18c)]]);const _0x42b332=_0x58bea2||_0x12a196&&_0x12a196[_0x2d353c(0x13c)];if(_0x42b332){_0x3cb0b1=_0x2c913e['BcAGX'](getCloudProviderFromWsEndpoint,_0x42b332);if(_0x2c913e[_0x2d353c(0x1d0)](_0x3cb0b1,_0x2c913e[_0x2d353c(0x1c1)]))_0x365960=constants[_0x2d353c(0x10f)][_0x2d353c(0x16f)](_0x42b332)?_0x2c913e['UtIHU']:_0x2c913e[_0x2d353c(0x166)],_0x2acb0b=_0x2c913e['BcAGX'](getBrowserFromWSEndpoint,_0x42b332)||_0x2acb0b,_0x511ba9=_0xc3aa62[_0x2d353c(0x171)]['platform'],_0x2c9b93=_0xc3aa62['currentSessionDetails'][_0x2d353c(0x1b7)];else{const _0x6e8440=await _0x2c913e[_0x2d353c(0x179)](getPlatformDetails);_0x511ba9=_0x6e8440['platformName'],_0x2c9b93=_0x6e8440['platformVersion'];}}if(_0x2c913e[_0x2d353c(0x1bf)](!_0x511ba9,!_0x2c9b93)&&!_0x2c913e[_0x2d353c(0x12e)](isBrowserstackInfra)){const _0x5ce23a=await _0x2c913e[_0x2d353c(0x110)](getPlatformDetails);_0x511ba9=_0x5ce23a['platformName'],_0x2c9b93=_0x5ce23a['platformVersion'];}}else{_0x54a11e&&_0x54a11e['project'][_0x2d353c(0x15c)][_0x2d353c(0x137)]?_0x2acb0b=_0x2c913e[_0x2d353c(0x10a)](getBrowserNameFromChannel,_0x54a11e[_0x2d353c(0x1a8)][_0x2d353c(0x15c)][_0x2d353c(0x137)]):_0x2acb0b=_0x2c913e[_0x2d353c(0x150)](_0x2c913e[_0x2d353c(0x17e)],_0x2c913e[_0x2d353c(0x142)](_0x2acb0b,_0x2c913e[_0x2d353c(0x17d)])[_0x2d353c(0x196)]());const _0x4b0413=await _0x2c913e[_0x2d353c(0x110)](getPlatformDetails);_0x511ba9=_0x4b0413['platformName'],_0x2c9b93=_0x4b0413[_0x2d353c(0x19c)];}const _0x836bcd={};_0x836bcd['browser']=_0x2acb0b,_0x836bcd['browser_version']=_0x1c63a5,_0x836bcd[_0x2d353c(0x1cb)]={},_0x836bcd['platform']=_0x511ba9,_0x836bcd['platform_version']=_0x2c9b93,_0x836bcd[_0x2d353c(0x1b8)]=_0x365960;const _0x516a2f=_0x836bcd;_0x148967&&(_0x516a2f['capabilities'][_0x2d353c(0x12d)]=_0x148967);const _0x58a4a4={};_0x58a4a4[_0x2d353c(0x16c)]=_0x3cb0b1,_0xc3aa62[_0x2d353c(0x171)]=Object['assign']({},_0xc3aa62[_0x2d353c(0x171)],_0x58a4a4,_0x516a2f);},_0x2c913e[_0xbba7bb(0x13e)])(_0x42e327,_0x4d39dc,_0x1c3e1f);}static['patch'](){const _0x5144de=a56_0x44e358;this[_0x5144de(0x126)](),this['patchCRConnection']();}static[a56_0x44e358(0x126)](){const _0x574a0d=a56_0x44e358,_0x56ac19={'czDIH':function(_0x351e5f,_0x2be1ae,_0x40f317){return _0x351e5f(_0x2be1ae,_0x40f317);},'tEhPU':'currentTest','fyohe':_0x574a0d(0x12c),'nXjVG':_0x574a0d(0x14a),'nefHg':function(_0x3e1a28,_0x1f3213,_0x30297a){return _0x3e1a28(_0x1f3213,_0x30297a);},'WUouX':_0x574a0d(0x168),'QHdNy':_0x574a0d(0x10d),'AQADl':function(_0x24c1ae,_0x4e6d9b,_0xd3c7cb){return _0x24c1ae(_0x4e6d9b,_0xd3c7cb);},'JMfij':function(_0x4c5992,_0x5ef06f){return _0x4c5992===_0x5ef06f;},'oejNj':'Page','bRkoP':function(_0x52083b,_0x3263da,_0x310d64,_0x1e4e55){return _0x52083b(_0x3263da,_0x310d64,_0x1e4e55);},'LPAyz':function(_0x1e128c,_0x27fbd6){return _0x1e128c||_0x27fbd6;},'ThrnJ':function(_0x4d84e4,_0xec2e8b){return _0x4d84e4(_0xec2e8b);},'RznWF':_0x574a0d(0x118),'OSJRm':function(_0x3d96c4,_0x219062){return _0x3d96c4!=_0x219062;},'ngbgq':function(_0xa1ea9f){return _0xa1ea9f();},'WkHPo':_0x574a0d(0x1b0),'wigcq':_0x574a0d(0x14d),'KCGGp':_0x574a0d(0x146)},_0x3ddf03=this;!this[_0x574a0d(0x127)]&&(this[_0x574a0d(0x127)]=helper[_0x574a0d(0x18d)](),!this[_0x574a0d(0x127)]&&_0x56ac19['ThrnJ'](debug,_0x56ac19['RznWF']));const _0x360625=this[_0x574a0d(0x127)];if(_0x56ac19['OSJRm'](_0x360625,null)&&_0x360625[_0x574a0d(0x131)][_0x574a0d(0x1aa)])return;try{if(_0x56ac19['OSJRm'](_0x360625,null)){const _0x2edc63=_0x360625['prototype'][_0x574a0d(0x14d)],_0xa9813c=_0x360625[_0x574a0d(0x131)]['sendMessageToServer'];_0x56ac19[_0x574a0d(0x13b)](isAccessibilityAutomationSession)&&Object[_0x574a0d(0x157)](_0x360625['prototype'],_0x56ac19[_0x574a0d(0x10b)],{'get':function(){return async function(){const _0xe6f6e6=a56_0x1eae;try{if(!global['bstackPerformA11yScan']&&global[_0xe6f6e6(0x111)]&&_0x56ac19[_0xe6f6e6(0x120)](nestedKeyValue,global['__workerDetails'],[_0x56ac19[_0xe6f6e6(0x1b1)],_0x56ac19[_0xe6f6e6(0x1b3)],_0x56ac19[_0xe6f6e6(0x1bc)]])&&_0x56ac19['czDIH'](shouldScanTestForAccessibility,global[_0xe6f6e6(0x168)]['currentTest'][_0xe6f6e6(0x12c)]['titlePath'],!![])&&scripts['shouldWrapCommand'](arguments[0x1])){logger[_0xe6f6e6(0x17b)](_0xe6f6e6(0x19d)+arguments[0x1]),global[_0xe6f6e6(0x152)]=!![];const _0x4a5b7e=_0x56ac19[_0xe6f6e6(0x1a6)](nestedKeyValue,global,[_0x56ac19[_0xe6f6e6(0x102)],_0x56ac19[_0xe6f6e6(0x1af)]]);_0x4a5b7e&&logger['info']('Page\x20Scan\x20result='+util[_0xe6f6e6(0x15a)](await _0x56ac19[_0xe6f6e6(0x14b)](performScanWithRetry,_0x4a5b7e,arguments[0x1]))),_0x56ac19[_0xe6f6e6(0x139)](arguments[0x0][_0xe6f6e6(0x140)],_0x56ac19[_0xe6f6e6(0x192)])&&global[_0xe6f6e6(0x173)]&&logger[_0xe6f6e6(0x124)](_0xe6f6e6(0x1c7)+util[_0xe6f6e6(0x15a)](await _0x56ac19[_0xe6f6e6(0x181)](performScanWithRetry,global['__driver'],arguments[0x1],scripts[_0xe6f6e6(0x167)])));}}catch(_0x3bfb71){logger['debug'](_0xe6f6e6(0x182)+util[_0xe6f6e6(0x15a)](_0x3bfb71));}return global[_0xe6f6e6(0x152)]=![],_0xa9813c[_0xe6f6e6(0x185)](this,arguments);};}}),!_0x56ac19[_0x574a0d(0x19b)](isFalse,process[_0x574a0d(0x199)][_0x574a0d(0x1a4)])&&Object['defineProperty'](_0x360625['prototype'],_0x56ac19['wigcq'],{'get':function(){const _0x23a183={'JtrvB':function(_0x15bd79,_0x56452d){const _0xaba8c0=a56_0x1eae;return _0x56ac19[_0xaba8c0(0x1ca)](_0x15bd79,_0x56452d);},'OTjqk':function(_0x3ae24e,_0x3d317c){const _0x40be6e=a56_0x1eae;return _0x56ac19[_0x40be6e(0x19b)](_0x3ae24e,_0x3d317c);}};return async function _0x5badb4(_0x58f77c){const _0x329925=a56_0x1eae,_0x5c64c9=_0x2edc63[_0x329925(0x185)](this,arguments);if(BrowserstackCLI[_0x329925(0x16b)]()[_0x329925(0x148)]()){const _0x386055={};_0x386055['message']=_0x58f77c,await BrowserstackCLI[_0x329925(0x16b)]()[_0x329925(0x10e)]()[_0x329925(0x134)](AutomationFrameworkState[_0x329925(0x1a0)],HookState[_0x329925(0x145)],_0x386055);}else{const _0x5625ee=_0x58f77c&&_0x58f77c[_0x329925(0x18f)]&&_0x58f77c['params'][_0x329925(0x15e)];if(_0x5625ee){const _0x45433e=_0x5625ee[_0x329925(0x114)],_0x2123d8=_0x5625ee[_0x329925(0x11d)];_0x23a183[_0x329925(0x10c)](!_0x45433e,!_0x2123d8)&&await ClientTroubleShootingService[_0x329925(0x12b)](),_0x2123d8&&(_0x23a183[_0x329925(0x169)](debug,_0x329925(0x1ba)+_0x2123d8[_0x329925(0x190)]()),_0x3ddf03['currentSessionDetails'][_0x329925(0x103)]=_0x2123d8[_0x329925(0x195)],_0x3ddf03['currentSessionDetails'][_0x329925(0x1b7)]=_0x2123d8['platformVersion']),_0x45433e&&(_0x23a183[_0x329925(0x169)](debug,_0x329925(0x1b5)+_0x45433e),_0x3ddf03[_0x329925(0x171)]['bsSessionId']=_0x45433e);}}return _0x5c64c9;};}}),_0x360625['prototype']['_bstackDispatchPatched']=!![],logger[_0x574a0d(0x17b)](_0x56ac19['KCGGp']);}}catch(_0x5b5c99){_0x56ac19[_0x574a0d(0x19b)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x5b5c99),_0x3ddf03[_0x574a0d(0x191)]=_0x5b5c99['toString']();}}static[a56_0x44e358(0x13a)](){const _0x104d06=a56_0x44e358,_0x4b57d2={'yuyjI':function(_0x265667,_0x382310){return _0x265667(_0x382310);},'yfimW':function(_0x3462e5){return _0x3462e5();},'cFaml':function(_0x3c32d7,_0x111a2f){return _0x3c32d7>=_0x111a2f;},'lXuRp':_0x104d06(0x198),'JcnPX':function(_0x544e96,_0x225ef9){return _0x544e96(_0x225ef9);},'lNWVY':'CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','Bzron':_0x104d06(0x11c),'mCCrG':'server','XWrsU':_0x104d06(0x11a),'LJLmY':'crConnection.js','NGYgy':function(_0x3b9d8e,_0x185bcb){return _0x3b9d8e(_0x185bcb);},'JACQU':function(_0x187be2,_0x58d526){return _0x187be2(_0x58d526);},'lbXQx':'Not\x20able\x20to\x20import\x20crConnection','kwhsT':function(_0x17d5ef,_0x4456c6){return _0x17d5ef(_0x4456c6);},'XNtJn':_0x104d06(0x159),'vkuGh':function(_0x4efa4,_0x3e8930){return _0x4efa4!=_0x3e8930;},'IGqSF':_0x104d06(0x13f)},_0x25d719=this;if(_0x4b57d2[_0x104d06(0x135)](isAccessibilityAutomationSession)){let _0x353e7a=null,_0x21a837=![];try{const _0x892be3=helper[_0x104d06(0x164)](FRAMEWORKS[_0x104d06(0x107)]);_0x21a837=_0x4b57d2[_0x104d06(0x1be)](helper[_0x104d06(0x11e)](_0x892be3,_0x4b57d2['lXuRp']),0x0);}catch(_0x193c9d){_0x4b57d2[_0x104d06(0x18e)](debug,_0x104d06(0x14e)+_0x193c9d[_0x104d06(0x190)]());}if(_0x21a837)_0x4b57d2[_0x104d06(0x18e)](debug,_0x4b57d2[_0x104d06(0x128)]);else try{const _0x577528=path[_0x104d06(0x1a3)](_0x4b57d2['Bzron'],_0x4b57d2[_0x104d06(0x106)],_0x4b57d2[_0x104d06(0x122)],_0x4b57d2[_0x104d06(0x129)]),_0x12b235=_0x4b57d2[_0x104d06(0x141)](importFileFromPWCore,_0x577528);!_0x12b235?_0x4b57d2[_0x104d06(0x119)](debug,_0x4b57d2[_0x104d06(0x193)]):_0x353e7a=_0x12b235[_0x104d06(0x153)];}catch(_0x550619){_0x4b57d2[_0x104d06(0x1b4)](debug,_0x4b57d2[_0x104d06(0x113)]);}try{if(_0x4b57d2['vkuGh'](_0x353e7a,null)){const _0x5a43df=_0x353e7a[_0x104d06(0x131)][_0x104d06(0x13f)];Object[_0x104d06(0x157)](_0x353e7a['prototype'],_0x4b57d2['IGqSF'],{'get':function(){const _0x28954d={'FODCe':function(_0x3cb30a,_0x1bb800){return _0x4b57d2['yuyjI'](_0x3cb30a,_0x1bb800);}};return async function _0x2a996c(_0x61d05){const _0x12c704=a56_0x1eae;try{if(BrowserstackCLI[_0x12c704(0x16b)]()[_0x12c704(0x148)]()){const _0x265e00={};_0x265e00['message']=_0x61d05,await BrowserstackCLI['getInstance']()['getAutomationFramework']()['trackEvent'](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x12c704(0x145)],_0x265e00),delete _0x61d05[_0x12c704(0x132)];}else{const _0x23fe89=_0x61d05[_0x12c704(0x132)];if(_0x23fe89){delete _0x61d05[_0x12c704(0x132)];const _0x245ef9=_0x23fe89[_0x12c704(0x114)],_0xd69a05=_0x23fe89[_0x12c704(0x11d)];_0xd69a05&&(_0x28954d[_0x12c704(0x176)](debug,'Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20'+_0xd69a05['toString']()),_0x25d719['currentSessionDetails'][_0x12c704(0x103)]=_0xd69a05[_0x12c704(0x195)],_0x25d719[_0x12c704(0x171)][_0x12c704(0x1b7)]=_0xd69a05[_0x12c704(0x19c)]),_0x245ef9&&(_0x28954d[_0x12c704(0x176)](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x245ef9),_0x25d719[_0x12c704(0x171)]['bsSessionId']=_0x245ef9);}}}catch(_0x1e0090){_0x28954d[_0x12c704(0x176)](debug,_0x12c704(0x154)+_0x1e0090[_0x12c704(0x190)]());}return _0x5a43df['apply'](this,arguments);};}});}}catch(_0x427f69){_0x4b57d2[_0x104d06(0x1b4)](debug,_0x104d06(0x1c6)+_0x427f69),_0x25d719[_0x104d06(0x191)]=_0x427f69[_0x104d06(0x190)]();}}}static[a56_0x44e358(0x116)](){return this['currentSessionDetails'];}}function a56_0x96cf(){const _0x2ddeb0=['Setting\x20session\x20id\x20received\x20from\x20BS\x20','lnECc','platform_version','product','uRJPs','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','GJgjM','nXjVG','browserName','cFaml','NxaDJ','Device\x20Model\x20is\x20not\x20available','hYlqz','WAmGn','jfgWm','automate','turboscale','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','Driver\x20Scan\x20result=','string','Cizyz','LPAyz','capabilities','browserstack','local_grid','loaOn','DhXCZ','GTDjh','unknown_grid','../v2/state/hookState.js','exports','version','WUouX','platform','BSTACK_URL','BSTACK_ATS_URL','mCCrG','PLAYWRIGHT','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','caps','fbFQy','WkHPo','JtrvB','pwPage','getAutomationFramework','ATS_WSS_URL_REGEX','FrhRF','accessibilityPlatform','6hfgJlV','XNtJn','sessionId','model','getDetails','LdOBL','Not\x20able\x20to\x20resolve\x20Connection\x20class','JACQU','chromium','NyjYu','lib','platformDetails','compareVersions','6RKXEMJ','czDIH','browser','XWrsU','winstonLogger','info','2drWTtm','patchConnection','Connection','lNWVY','LJLmY','firefox','reportSessionLinkingIssue','testInfo','deviceModel','TVjjX','7870745vQdjQO','split','prototype','bStackParams','parse','trackEvent','yfimW','../../bin/playwright/accessibility-helper','channel','../../helpers/test-observability/constants','JMfij','patchCRConnection','ngbgq','wsEndpoint','util','EHBBp','_onMessage','_type','NGYgy','BOiXp','fromEntries','1044ZsnIlT','POST','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','vaMND','isRunning','_browserType','titlePath','AQADl','xbaYv','dispatch','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','caBUb','FLwtO','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','bstackPerformA11yScan','CRConnection','Error\x20in\x20finding\x20platform\x20details\x20','playwright-','../../helpers/helper','defineProperty','../../helpers/test-observability/utils','Error\x20in\x20importing\x20crConnection','format','../utils/clientTroubleshootingService.js','use','_connection','bsParams','../../helpers/accessibility-automation/scripts','function','../../helpers/test-observability/error-handler','path','bIyVP','getFrameworkVersion','../../helpers/logger','vsuKl','performScan','__workerDetails','OTjqk','includes','getInstance','cloudProvider','fGOhh','assign','test','safari','currentSessionDetails','1270tEMLNn','__driver','ErNbx','hPjcj','FODCe','vlNwn','isRemote','eVYDM','PLUDX','debug','139707mXvHWS','UcynH','VfOvS','chrome','../v2/state/automationFrameworkState.js','bRkoP','Failed\x20to\x20perform\x20scan\x20','../v2/browserstackCLI','IpCcm','apply','342088AXSItY','webkit','entries','_defaultConnectOptions','bsSessionId','76010YNhzXq','lfHTb','resolveConnectionClass','JcnPX','params','toString','sessionError','oejNj','lbXQx','3075672HyZtOG','platformName','toLowerCase','_name','1.60.0','env','582353rULRuF','ThrnJ','platformVersion','Performing\x20scan\x20for\x20','../utils/constants','url','PLAYWRIGHT_DISPATCH','yJJdQ','wZvbE','join','BROWSERSTACK_TEST_OBSERVABILITY','playwright','nefHg','10938977jVxYCi','project','setupBrowserDetails:\x20browser\x20param\x20is\x20nil;\x20populating\x20playwright\x20fallback\x20so\x20TRA\x20does\x20not\x20render\x20\x22Unknown\x22','_bstackDispatchPatched','bPnlR','connectOptions','setupBrowserDetails','vZDWq','QHdNy','sendMessageToServer','tEhPU','query','fyohe','kwhsT'];a56_0x96cf=function(){return _0x2ddeb0;};return a56_0x96cf();}module[a56_0x44e358(0x1d3)]=PlaywrightSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a57_0x585a7e=a57_0x1bff;function a57_0x1bff(_0x17bf16,_0x48a558){const _0x494779=a57_0x4947();return a57_0x1bff=function(_0x1bffcc,_0x4825a8){_0x1bffcc=_0x1bffcc-0x64;let _0x226b3c=_0x494779[_0x1bffcc];return _0x226b3c;},a57_0x1bff(_0x17bf16,_0x48a558);}(function(_0x3ca9ba,_0x317bac){const _0x4c23f2=a57_0x1bff,_0x4926a4=_0x3ca9ba();while(!![]){try{const _0x66202a=-parseInt(_0x4c23f2(0x7c))/0x1+parseInt(_0x4c23f2(0x73))/0x2*(-parseInt(_0x4c23f2(0x7a))/0x3)+-parseInt(_0x4c23f2(0x75))/0x4+-parseInt(_0x4c23f2(0x81))/0x5*(parseInt(_0x4c23f2(0x64))/0x6)+-parseInt(_0x4c23f2(0x8a))/0x7*(parseInt(_0x4c23f2(0x8b))/0x8)+parseInt(_0x4c23f2(0x86))/0x9+-parseInt(_0x4c23f2(0x6e))/0xa*(-parseInt(_0x4c23f2(0x6a))/0xb);if(_0x66202a===_0x317bac)break;else _0x4926a4['push'](_0x4926a4['shift']());}catch(_0x1615d0){_0x4926a4['push'](_0x4926a4['shift']());}}}(a57_0x4947,0x8a605));const util=require(a57_0x585a7e(0x6b)),logger=require(a57_0x585a7e(0x71)),{nestedKeyValue,isFalse}=require(a57_0x585a7e(0x77)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),PerformanceTester=require('../../helpers/performance/performance-tester'),{O11y_EVENTS:PerformanceO11yEvents}=require(a57_0x585a7e(0x89)),BrowserstackCLI=require('../v2/browserstackCLI'),CustomTagManager=require(a57_0x585a7e(0x88)),uploadAttachmentsManager=require(a57_0x585a7e(0x74)),doo11ySync=PerformanceTester['measureWrapper'](PerformanceO11yEvents[a57_0x585a7e(0x70)],o11yErrorHandler(async function doo11ySync(_0x4603c8){const _0x509208=a57_0x585a7e,_0x59c842={'UZGhg':function(_0x1aefec,_0x54016a,_0x49d38c){return _0x1aefec(_0x54016a,_0x49d38c);},'IzoLB':_0x509208(0x6f),'kWPGY':_0x509208(0x67),'RJCkf':'annotate','CKkNO':'debug'};if(_0x59c842[_0x509208(0x82)](nestedKeyValue,global,[_0x59c842['IzoLB'],_0x59c842['kWPGY']]))return;await _0x4603c8[_0x509208(0x80)](_0x7e0cca=>{},_0x509208(0x66)+JSON['stringify']({'action':_0x59c842['RJCkf'],'arguments':{'data':_0x509208(0x78)+Date[_0x509208(0x79)](),'level':_0x59c842[_0x509208(0x69)]}})),global[_0x509208(0x6f)]['o11ySyncDone']=!![];},a57_0x585a7e(0x7f)));exports['patchBrowserNewPage']=_0x53ae35=>{const _0x5c7a26=a57_0x585a7e,_0x4867a3={'VriBU':function(_0x3c31b1,_0x3cdcad){return _0x3c31b1(_0x3cdcad);},'HtuuU':function(_0x330da2,_0x4232a0,_0x34be5f){return _0x330da2(_0x4232a0,_0x34be5f);},'DOCtm':_0x5c7a26(0x6f)};if(!_0x53ae35||_0x53ae35['_bstackNewPagePatched'])return;const _0x20aefa=_0x53ae35['newPage']['bind'](_0x53ae35);_0x53ae35['newPage']=async function _0x3e4048(){const _0x2eec31=_0x5c7a26,_0x3ad487=await _0x20aefa['apply'](_0x53ae35,arguments);try{!BrowserstackCLI[_0x2eec31(0x7d)]()['isRunning']()&&!_0x4867a3[_0x2eec31(0x7b)](isFalse,process[_0x2eec31(0x65)][_0x2eec31(0x85)])&&await _0x4867a3[_0x2eec31(0x7b)](doo11ySync,_0x3ad487),BrowserstackCLI[_0x2eec31(0x7d)]()[_0x2eec31(0x7e)]()&&(_0x3ad487[_0x2eec31(0x87)]=async(_0x5897f7,_0x2bbd53,_0x4f8716=![])=>{await CustomTagManager['setCustomTags'](_0x5897f7,_0x2bbd53,_0x4f8716);},_0x3ad487['uploadAttachment']=async(_0x3a1a36,_0x5c344f=![])=>{const _0x11875e=_0x2eec31;await uploadAttachmentsManager[_0x11875e(0x76)](_0x3a1a36,_0x5c344f);});}catch(_0x1f4dd0){logger[_0x2eec31(0x68)](_0x2eec31(0x8c)+util[_0x2eec31(0x83)](_0x1f4dd0));}return _0x4867a3[_0x2eec31(0x6d)](nestedKeyValue,global,[_0x4867a3[_0x2eec31(0x84)]])&&(global[_0x2eec31(0x6f)][_0x2eec31(0x6c)]=_0x3ad487),_0x3ad487;},_0x53ae35[_0x5c7a26(0x72)]=!![];};function a57_0x4947(){const _0x4ba895=['../../helpers/performance/constants','6988702wQrrxU','8KLSEMu','Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20','1356FikGow','env','browserstack_executor:\x20','o11ySyncDone','debug','CKkNO','1455201EPZRfY','util','pwPage','HtuuU','290GtHoOy','__workerDetails','SYNC','../../helpers/logger','_bstackNewPagePatched','2212730bFwEwh','../v2/uploadAttachmentsManager','1999164oYgtJQ','uploadAttachments','../../helpers/helper','ObservabilitySync:','now','3BJrsJw','VriBU','1064527LWiVjI','getInstance','isRunning','doo11ySync','evaluate','3245RmaOUC','UZGhg','format','DOCtm','BROWSERSTACK_TEST_OBSERVABILITY','4914837UMtTIf','setCustomTags','../v2/customTagManager'];a57_0x4947=function(){return _0x4ba895;};return a57_0x4947();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0x4a66e5=a58_0x44f7;(function(_0x1ec10c,_0x1ebc6c){const _0x376133=a58_0x44f7,_0x33f9bf=_0x1ec10c();while(!![]){try{const _0x214f4a=-parseInt(_0x376133(0x152))/0x1*(parseInt(_0x376133(0x11c))/0x2)+parseInt(_0x376133(0x13d))/0x3*(-parseInt(_0x376133(0x141))/0x4)+-parseInt(_0x376133(0x132))/0x5*(parseInt(_0x376133(0x14f))/0x6)+-parseInt(_0x376133(0x122))/0x7*(parseInt(_0x376133(0x14b))/0x8)+parseInt(_0x376133(0x17c))/0x9*(parseInt(_0x376133(0x167))/0xa)+parseInt(_0x376133(0x129))/0xb*(-parseInt(_0x376133(0x163))/0xc)+parseInt(_0x376133(0x150))/0xd*(parseInt(_0x376133(0x14e))/0xe);if(_0x214f4a===_0x1ebc6c)break;else _0x33f9bf['push'](_0x33f9bf['shift']());}catch(_0x62dcc3){_0x33f9bf['push'](_0x33f9bf['shift']());}}}(a58_0x5c92,0xdd909));const path=require(a58_0x4a66e5(0x16f)),url=require(a58_0x4a66e5(0x11b)),util=require(a58_0x4a66e5(0x153)),{nestedKeyValue,isFalse}=require(a58_0x4a66e5(0x168)),{debug,getPlatformDetails}=require(a58_0x4a66e5(0x124)),logger=require('../../helpers/logger')['winstonLogger'],constants=require(a58_0x4a66e5(0x17b)),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require(a58_0x4a66e5(0x146)),HookState=require(a58_0x4a66e5(0x126)),getBrowserFromWSEndpoint=_0x4c6ba7=>{const _0x4350d3=a58_0x4a66e5,_0x47b657={'AFRSS':_0x4350d3(0x16e),'ZePlw':function(_0x1b6517,_0x5ae8b0){return _0x1b6517(_0x5ae8b0);}};try{const _0x51abe7=url[_0x4350d3(0x123)](_0x4c6ba7),_0x1e5260=new URLSearchParams(_0x51abe7[_0x4350d3(0x156)]),_0x887752=Object[_0x4350d3(0x135)](_0x1e5260[_0x4350d3(0x11a)]()),_0x459e53=JSON[_0x4350d3(0x123)](_0x887752[_0x4350d3(0x144)]);if(_0x459e53&&(_0x459e53[_0x4350d3(0x12e)]||_0x459e53[_0x4350d3(0x165)]))return _0x459e53['browser']||_0x459e53[_0x4350d3(0x165)];return _0x47b657[_0x4350d3(0x15d)];}catch(_0x470978){_0x47b657[_0x4350d3(0x13c)](debug,_0x4350d3(0x175)+_0x470978[_0x4350d3(0x161)]());}},getCloudProviderFromWsEndpoint=_0x5b7c39=>{const _0x10b8f3=a58_0x4a66e5,_0x5e4bc7={};_0x5e4bc7[_0x10b8f3(0x15b)]=_0x10b8f3(0x149),_0x5e4bc7['mfQvr']='unknown_grid';const _0x3a7333=_0x5e4bc7;if(_0x5b7c39[_0x10b8f3(0x178)](constants[_0x10b8f3(0x169)])||_0x5b7c39[_0x10b8f3(0x178)](constants[_0x10b8f3(0x12b)]))return _0x3a7333[_0x10b8f3(0x15b)];return _0x3a7333[_0x10b8f3(0x166)];},a58_0x55aa4e={};function a58_0x44f7(_0x41d56f,_0x5dfe08){const _0x5c9258=a58_0x5c92();return a58_0x44f7=function(_0x44f71e,_0xf2d560){_0x44f71e=_0x44f71e-0x11a;let _0x2c36c9=_0x5c9258[_0x44f71e];return _0x2c36c9;},a58_0x44f7(_0x41d56f,_0x5dfe08);}a58_0x55aa4e[a58_0x4a66e5(0x12c)]=undefined,a58_0x55aa4e[a58_0x4a66e5(0x139)]=undefined,a58_0x55aa4e[a58_0x4a66e5(0x12e)]=undefined,a58_0x55aa4e[a58_0x4a66e5(0x120)]=undefined,a58_0x55aa4e[a58_0x4a66e5(0x13a)]=undefined,a58_0x55aa4e[a58_0x4a66e5(0x125)]=undefined,a58_0x55aa4e[a58_0x4a66e5(0x154)]=undefined,a58_0x55aa4e[a58_0x4a66e5(0x170)]={};class PuppeteerSessionDetails{static ['currentSessionDetails']=a58_0x55aa4e;constructor(){const _0x25c552=a58_0x4a66e5,_0x56fb84={};_0x56fb84[_0x25c552(0x155)]=_0x25c552(0x138);const _0x509809=_0x56fb84;throw new Error(_0x509809[_0x25c552(0x155)]);}static ['sessionError']=null;static async['setupBrowserDetails'](_0x59a458,_0x944679){const _0x2744da=a58_0x4a66e5,_0x155c10={'evgWh':_0x2744da(0x16e),'yCVMD':function(_0x30881c,_0x4345bb){return _0x30881c===_0x4345bb;},'HdxGm':_0x2744da(0x171),'RIBNr':'local_grid','AFlNv':function(_0x1df14c,_0x1a2435){return _0x1df14c(_0x1a2435);},'MGrQz':function(_0x2dace3,_0xdb463d){return _0x2dace3===_0xdb463d;},'mwCmS':_0x2744da(0x149),'DYsHS':_0x2744da(0x158),'rkJKU':_0x2744da(0x16a),'UQIbM':function(_0x2bdb1d){return _0x2bdb1d();},'eonXz':function(_0x2ef09f){return _0x2ef09f();}};try{let _0x44d2ef=_0x155c10['evgWh'],_0x4c2871=null;_0x59a458&&_0x155c10[_0x2744da(0x14d)](typeof _0x59a458[_0x2744da(0x13e)],_0x155c10[_0x2744da(0x128)])&&(_0x4c2871=await _0x59a458[_0x2744da(0x13e)]());let _0x15dc75=null,_0x39ef20=null,_0x2e4ccb=null,_0x509cdf=_0x155c10[_0x2744da(0x174)];if(_0x944679){_0x509cdf=_0x155c10[_0x2744da(0x147)](getCloudProviderFromWsEndpoint,_0x944679);if(_0x155c10[_0x2744da(0x11e)](_0x509cdf,_0x155c10[_0x2744da(0x15f)]))_0x2e4ccb=constants[_0x2744da(0x173)]?constants[_0x2744da(0x173)][_0x2744da(0x136)](_0x944679)?_0x155c10[_0x2744da(0x15c)]:_0x155c10[_0x2744da(0x137)]:_0x155c10['rkJKU'],_0x44d2ef=_0x155c10[_0x2744da(0x147)](getBrowserFromWSEndpoint,_0x944679)||_0x44d2ef,_0x15dc75=this['currentSessionDetails'][_0x2744da(0x13a)],_0x39ef20=this[_0x2744da(0x145)][_0x2744da(0x125)];else{const _0x2a359b=await _0x155c10['UQIbM'](getPlatformDetails);_0x15dc75=_0x2a359b[_0x2744da(0x121)],_0x39ef20=_0x2a359b[_0x2744da(0x140)];}}else{const _0x3d3609=await _0x155c10['eonXz'](getPlatformDetails);_0x15dc75=_0x3d3609[_0x2744da(0x121)],_0x39ef20=_0x3d3609['platformVersion'];}const _0x507dbb={};_0x507dbb[_0x2744da(0x12e)]=_0x44d2ef,_0x507dbb[_0x2744da(0x120)]=_0x4c2871,_0x507dbb['capabilities']={},_0x507dbb['platform']=_0x15dc75,_0x507dbb[_0x2744da(0x125)]=_0x39ef20,_0x507dbb[_0x2744da(0x154)]=_0x2e4ccb;const _0x52a143=_0x507dbb,_0x4639b1={};_0x4639b1[_0x2744da(0x12c)]=_0x509cdf,this[_0x2744da(0x145)]=Object[_0x2744da(0x134)]({},this['currentSessionDetails'],_0x4639b1,_0x52a143);}catch(_0x4ba163){_0x155c10[_0x2744da(0x147)](debug,_0x2744da(0x14a)+util[_0x2744da(0x17e)](_0x4ba163)),this[_0x2744da(0x177)]=_0x4ba163[_0x2744da(0x161)]();}}static[a58_0x4a66e5(0x11d)](_0x3c0557){const _0xcd8fc4=a58_0x4a66e5,_0x3fab67={'bWooU':function(_0x10d441,_0x5b9bc5){return _0x10d441===_0x5b9bc5;},'ddRpt':_0xcd8fc4(0x133),'IoGEu':function(_0x3aa9c9,_0x57d1c3){return _0x3aa9c9(_0x57d1c3);},'zuSBw':function(_0x4d1bfb,_0x126ed6){return _0x4d1bfb(_0x126ed6);},'QIVnf':function(_0x5c3a08,_0x2323c8){return _0x5c3a08(_0x2323c8);},'buBOS':_0xcd8fc4(0x11f)},_0x13deb2=this;try{const _0x41ea23=_0x3c0557[_0xcd8fc4(0x14c)]||_0x3c0557[_0xcd8fc4(0x179)];if(!_0x41ea23||_0x41ea23[_0xcd8fc4(0x130)])return;const _0x5b5d07=_0x41ea23[_0xcd8fc4(0x164)];_0x41ea23[_0xcd8fc4(0x164)]=function(_0x59ce9d){const _0x5e789c=_0xcd8fc4;try{const _0x3bed67=_0x3fab67[_0x5e789c(0x12d)](typeof _0x59ce9d,_0x3fab67[_0x5e789c(0x143)])?JSON[_0x5e789c(0x123)](_0x59ce9d):_0x59ce9d,_0x133ef9=_0x3bed67?.[_0x5e789c(0x17a)]||_0x3bed67?.['bsParams']||_0x3bed67?.[_0x5e789c(0x159)]?.[_0x5e789c(0x15e)]||_0x3bed67?.['params']?.[_0x5e789c(0x17a)]||_0x3bed67?.[_0x5e789c(0x16b)]?.[_0x5e789c(0x15e)]||_0x3bed67?.['result']?.[_0x5e789c(0x17a)];if(_0x133ef9){if(BrowserstackCLI['getInstance']()[_0x5e789c(0x12a)]()){const _0x2b969d={};_0x2b969d[_0x5e789c(0x127)]=_0x3bed67,BrowserstackCLI['getInstance']()[_0x5e789c(0x142)]()[_0x5e789c(0x13f)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState['POST'],_0x2b969d);}else{const _0x3c2185=_0x133ef9[_0x5e789c(0x157)],_0x1949f5=_0x133ef9[_0x5e789c(0x17d)];_0x1949f5&&(_0x3fab67[_0x5e789c(0x15a)](debug,_0x5e789c(0x16d)+JSON[_0x5e789c(0x12f)](_0x1949f5)),_0x13deb2['currentSessionDetails'][_0x5e789c(0x13a)]=_0x1949f5[_0x5e789c(0x121)],_0x13deb2[_0x5e789c(0x145)][_0x5e789c(0x125)]=_0x1949f5[_0x5e789c(0x140)]),_0x3c2185&&(_0x3fab67['zuSBw'](debug,_0x5e789c(0x176)+_0x3c2185),_0x13deb2[_0x5e789c(0x145)][_0x5e789c(0x139)]=_0x3c2185);}_0x3fab67['bWooU'](typeof _0x59ce9d,_0x3fab67['ddRpt'])&&(delete _0x3bed67['bStackParams'],delete _0x3bed67['bsParams'],_0x3bed67[_0x5e789c(0x159)]&&(delete _0x3bed67[_0x5e789c(0x159)][_0x5e789c(0x15e)],delete _0x3bed67[_0x5e789c(0x159)][_0x5e789c(0x17a)]),_0x3bed67[_0x5e789c(0x16b)]&&(delete _0x3bed67['result'][_0x5e789c(0x15e)],delete _0x3bed67[_0x5e789c(0x16b)][_0x5e789c(0x17a)]));}}catch(_0x28e439){_0x3fab67[_0x5e789c(0x172)](debug,_0x5e789c(0x160)+_0x28e439[_0x5e789c(0x127)]);}return _0x5b5d07?.[_0x5e789c(0x16c)](this,arguments);},_0x41ea23[_0xcd8fc4(0x130)]=!![],logger[_0xcd8fc4(0x162)](_0x3fab67[_0xcd8fc4(0x151)]);}catch(_0xc058aa){_0x3fab67[_0xcd8fc4(0x13b)](debug,'Error\x20in\x20patchConnection:\x20'+util['format'](_0xc058aa)),_0x13deb2['sessionError']=_0xc058aa[_0xcd8fc4(0x161)]();}}static[a58_0x4a66e5(0x131)](){return this['currentSessionDetails'];}}module[a58_0x4a66e5(0x148)]=PuppeteerSessionDetails;function a58_0x5c92(){const _0xf8c7a0=['bWooU','browser','stringify','_bstackPatched','getDetails','560885FlxUvR','string','assign','fromEntries','test','rkJKU','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','bsSessionId','platform','zuSBw','ZePlw','105QwBuhu','version','trackEvent','platformVersion','41008SFVUvi','getAutomationFramework','ddRpt','caps','currentSessionDetails','../v2/state/automationFrameworkState.js','AFlNv','exports','browserstack','Error\x20in\x20setupBrowserDetails:\x20','284808svxHvM','_connection','yCVMD','6986jpPeRa','42JqtzKy','128518cJXioX','buBOS','1cXAqfq','util','product','CZRqL','query','sessionId','turboscale','params','IoGEu','gjxQO','DYsHS','AFRSS','bsParams','mwCmS','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','toString','debug','9102036VVepZs','onmessage','browserName','mfQvr','53460CBMJCo','../../helpers/helper','BSTACK_URL','automate','result','apply','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','chrome','path','capabilities','function','QIVnf','ATS_WSS_URL_REGEX','RIBNr','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','Setting\x20session\x20id\x20received\x20from\x20BS\x20','sessionError','includes','connection','bStackParams','../utils/constants','612TWEMKL','platformDetails','format','entries','url','2103258UsUmqI','patchConnection','MGrQz','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','browser_version','platformName','133zaBbCO','parse','../../helpers/test-observability/utils','platform_version','../v2/state/hookState.js','message','HdxGm','22ovNrci','isRunning','BSTACK_ATS_URL','cloudProvider'];a58_0x5c92=function(){return _0xf8c7a0;};return a58_0x5c92();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a59_0x28a1(_0x320053,_0x29a470){const _0x20b3c3=a59_0x20b3();return a59_0x28a1=function(_0x28a1ed,_0x2e3b3f){_0x28a1ed=_0x28a1ed-0x78;let _0x7b70d8=_0x20b3c3[_0x28a1ed];return _0x7b70d8;},a59_0x28a1(_0x320053,_0x29a470);}const a59_0x125d32=a59_0x28a1;(function(_0x3dca0a,_0x42c414){const _0x8a2bc5=a59_0x28a1,_0x4de5d8=_0x3dca0a();while(!![]){try{const _0x33ddf8=parseInt(_0x8a2bc5(0xa5))/0x1+-parseInt(_0x8a2bc5(0x86))/0x2*(-parseInt(_0x8a2bc5(0x90))/0x3)+-parseInt(_0x8a2bc5(0x99))/0x4*(parseInt(_0x8a2bc5(0xa7))/0x5)+parseInt(_0x8a2bc5(0x98))/0x6*(parseInt(_0x8a2bc5(0x78))/0x7)+parseInt(_0x8a2bc5(0x97))/0x8*(parseInt(_0x8a2bc5(0xa1))/0x9)+-parseInt(_0x8a2bc5(0x79))/0xa*(parseInt(_0x8a2bc5(0x7c))/0xb)+-parseInt(_0x8a2bc5(0x9e))/0xc*(parseInt(_0x8a2bc5(0x7a))/0xd);if(_0x33ddf8===_0x42c414)break;else _0x4de5d8['push'](_0x4de5d8['shift']());}catch(_0x3adac2){_0x4de5d8['push'](_0x4de5d8['shift']());}}}(a59_0x20b3,0x4631d));const {isTrue,isBrowserstackInfra}=require(a59_0x125d32(0xa3)),setKeepAlive=require(a59_0x125d32(0x8f)),util=require(a59_0x125d32(0x8e)),logger=require(a59_0x125d32(0x9d))[a59_0x125d32(0x93)],{shouldProcessEventForTesthub}=require(a59_0x125d32(0x8b)),{addRequestSpy}=require(a59_0x125d32(0xa0)),a59_0x40bd04={};a59_0x40bd04[a59_0x125d32(0xa4)]=undefined,a59_0x40bd04[a59_0x125d32(0x8c)]={},a59_0x40bd04[a59_0x125d32(0x84)]=![],a59_0x40bd04['pwPage']=null,a59_0x40bd04[a59_0x125d32(0x9f)]=![],a59_0x40bd04[a59_0x125d32(0x8c)]['id']=undefined,a59_0x40bd04[a59_0x125d32(0x8c)][a59_0x125d32(0x9b)]=undefined;const workerDetails=a59_0x40bd04;global['__workerDetails']=workerDetails;let puppeteerPatcher=null;function a59_0x20b3(){const _0x274f3f=['../v2/browserstackCLI','skipSessionName','696yZFGPG','6XhJIMn','1028JUQpJN','../utils/puppeteer-patcher','testInfo','../v2/cliUtils','../../helpers/logger','24DYiMUj','isPageFixture','../../helpers/test-observability/utils','46674Znmonc','format','../../helpers/helper','workerInfo','162897bLaXEc','BROWSERSTACK_PUPPETEER','235VEFLvD','2683954BbFolP','13560VwGtKN','8047923OuwDcm','skipSessionStatus','132iuspgF','__skipSessionName','debug','getPackageVersion','bootstrap','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','o11ySyncDone','catch','618WaUPfA','__skipSessionStatus','JEST','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','initializePuppeteerPatching','../../helpers/testhub/utils','currentTest','../utils/constants','util','../../helpers/setKeepAlive','5403lCeEto','jestConfig','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','winstonLogger','puppeteer-core'];a59_0x20b3=function(){return _0x274f3f;};return a59_0x20b3();}setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a59_0x125d32(0x7d)]=isTrue(global[a59_0x125d32(0x91)]?.[a59_0x125d32(0x96)]),global[a59_0x125d32(0x87)]=isTrue(global[a59_0x125d32(0x91)]?.[a59_0x125d32(0x7b)])):(global[a59_0x125d32(0x7d)]=!![],global[a59_0x125d32(0x87)]=!![]);const helper=require(a59_0x125d32(0xa3)),puppeteerVersion=helper[a59_0x125d32(0x7f)]('puppeteer')||helper['getPackageVersion'](a59_0x125d32(0x94));if(puppeteerVersion)try{logger['debug'](a59_0x125d32(0x92)),puppeteerPatcher=require(a59_0x125d32(0x9a)),puppeteerPatcher[a59_0x125d32(0x8a)](global['jestConfig']),logger[a59_0x125d32(0x7e)]('[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized');}catch(a59_0x478ee5){logger[a59_0x125d32(0x7e)]('[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20'+util[a59_0x125d32(0xa2)](a59_0x478ee5));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a59_0x125d32(0x95)),CLIUtils=require(a59_0x125d32(0x9c)),{FRAMEWORKS}=require(a59_0x125d32(0x8d));BrowserstackCLI['getInstance']()['isCliEnabled']()&&(logger[a59_0x125d32(0x7e)](a59_0x125d32(0x81)),process['env'][a59_0x125d32(0xa6)]='true',CLIUtils['setFrameworkDetail'](FRAMEWORKS[a59_0x125d32(0x88)],FRAMEWORKS['PUPPETEER']),BrowserstackCLI['getInstance']()[a59_0x125d32(0x80)]()[a59_0x125d32(0x85)](_0x42fd3f=>{const _0x290930=a59_0x125d32;logger[_0x290930(0x7e)](_0x290930(0x82)+util['format'](_0x42fd3f));}));}catch(a59_0x12a616){logger[a59_0x125d32(0x7e)]('[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20'+util[a59_0x125d32(0xa2)](a59_0x12a616));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a59_0x46a254){logger['debug'](a59_0x125d32(0x83)+util[a59_0x125d32(0xa2)](a59_0x46a254));}logger[a59_0x125d32(0x7e)](a59_0x125d32(0x89));
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a60_0x54e128=a60_0x5a3e;function a60_0x5a3e(_0x2fdef7,_0x4ef5ca){const _0xffbfca=a60_0xffbf();return a60_0x5a3e=function(_0x5a3e22,_0x1e96a8){_0x5a3e22=_0x5a3e22-0x191;let _0x4db8aa=_0xffbfca[_0x5a3e22];return _0x4db8aa;},a60_0x5a3e(_0x2fdef7,_0x4ef5ca);}(function(_0xd8a5e3,_0x5527a9){const _0x5a2a0c=a60_0x5a3e,_0x3fc58d=_0xd8a5e3();while(!![]){try{const _0x550e3e=parseInt(_0x5a2a0c(0x1c2))/0x1+-parseInt(_0x5a2a0c(0x1e9))/0x2*(parseInt(_0x5a2a0c(0x224))/0x3)+-parseInt(_0x5a2a0c(0x1e2))/0x4+-parseInt(_0x5a2a0c(0x1a3))/0x5*(-parseInt(_0x5a2a0c(0x1cd))/0x6)+parseInt(_0x5a2a0c(0x1a8))/0x7+-parseInt(_0x5a2a0c(0x1a2))/0x8+-parseInt(_0x5a2a0c(0x196))/0x9*(-parseInt(_0x5a2a0c(0x22f))/0xa);if(_0x550e3e===_0x5527a9)break;else _0x3fc58d['push'](_0x3fc58d['shift']());}catch(_0x49345c){_0x3fc58d['push'](_0x3fc58d['shift']());}}}(a60_0xffbf,0xec1b9));function a60_0xffbf(){const _0x13b2c0=['HELP','mocha','mocha/lib/cli/commands.js','help','pw:*','describe','./codeceptjs/command','../helpers/performance/performance-tester','JASMINE','alias','end','./nightwatch/command','./cucumber-js/command','vanilla','version','join','DxUap','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','xuYZW','CODECEPTJS','./newman/command','./jest/command','existsSync','.local-not-set.json','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','iaipY','mocha/lib/cli/run.js','--no-opts','nightwatch','yiLtg','push','whAcl','jest','findAndReplace','command','getInstance','--opts','xPbYG','DEBUG','pw:channel\x20auto-capture\x20seed\x20failed:\x20','message','zQPwb','testcafe','../../ats/src/index','-pw:*','format','pw:channel','xqYaL','mocha/lib/cli/cli.js','hNwOQ','VANILLA','setTestObservabilityDisable','SDKTestSuccessful','3687141ZrFUzQ','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','handler','DUeoZ','sendLogs','wHSmb','OMQUw','NEWMAN','parserConfiguration','HST','getConfigPath','10tfERJQ','wrap','isUndefined','./load/index','JnViG','config','--package','INTEGRATIONS','util','assign','NVXwX','framework','Show\x20help','fioqq','tWANZ','../helpers/helper','CdEcd','integrations','../helpers/test-observability/constants','codeceptjs','TaecO','--require','xiqMy','Running\x20SDK\x20with\x20args\x20','strict','getPwChannelLogPath','839619LZhdrg','usage:\x20$0\x20<command>\x20[args]','homedir','start','load\x20[subcommand]','./integrations/command','cucumber-js','LhpPi','debug','eAoyv','BwHHb','EAxrf','507312iKvCYf','35iIPIKS','PLAYWRIGHT','NIGHTWATCH','argv','jasmine','12503792nAgNgE','ViHsh','-pw:channel','../helpers/utilities','PviiE','ETLYE','BROWSERSTACK_CONFIG_FILE_PATH','YJxjx','INFO','TaUOh','fireFunnelTestEvent','yFIKs','../helpers/performance/constants','bNIoA','stack','JSNaB','WxmbR','--config','slice','path','dot-notation','../helpers/logger','SDK_SETUP','CIoch','HWVen','error','1072007voRIbd','ats','--no-config','DEBUG_FILE','showHelpOnFail','MOCHA','bmABS','WUQVA','pVFAp','./mocha/command','spawn','341364agInFr','../helpers/BrowserStackSetup','Parsing\x20command\x20line\x20arguments','exitProcess','dNBjr','umViw','--no-package','./vanilla-js/command','BuBpm','env','./v2/browserstackCLI','includes','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','HLSzl','demandCommand','DNNrs','Runs\x20the\x20binary\x20with\x20load\x20command','tMtgK','CUCUMBER','setBrowserStackAutomationDisable','trim','4361016oDQzDM','disableAutoCaptureLogs','SDK_CLEANUP','zunnk','fuaFx','nZzlY','usage','2RHqSwh','VERSION','some','ncuxp','run','WeTjm'];a60_0xffbf=function(){return _0x13b2c0;};return a60_0xffbf();}const fs=require('fs'),path=require(a60_0x54e128(0x1bb)),util=require(a60_0x54e128(0x237)),spawn=require('child_process')[a60_0x54e128(0x1cc)],{requireModule}=require(a60_0x54e128(0x23e)),PerformanceTester=require(a60_0x54e128(0x1f6)),PerformanceEvents=require(a60_0x54e128(0x1b4))['EVENTS'],helper=require(a60_0x54e128(0x23e)),utilities=require(a60_0x54e128(0x1ab)),{default:BrowserStackSetup}=require(a60_0x54e128(0x1ce)),{FRAMEWORKS}=require(a60_0x54e128(0x241)),runIntegrations=require(a60_0x54e128(0x19b)),yargs=require('yargs'),Constants=require('./utils/constants'),BrowserstackCLI=require(a60_0x54e128(0x1d7)),{isNewman}=require('./newman/helper'),logger=require(a60_0x54e128(0x1bd))['winstonLogger'],origArgs=Object[a60_0x54e128(0x238)]([],process['argv']),captureError=async(_0x3f111b,_0x1d7bea,_0x376718,_0x1a3701=null,_0xe12e0a=![])=>{const _0x588dfe=a60_0x54e128,_0x17f56c={'WeTjm':function(_0x134ab2,_0x1e708e,_0x1b6ce0,_0x4507b7){return _0x134ab2(_0x1e708e,_0x1b6ce0,_0x4507b7);},'ETLYE':_0x588dfe(0x223)};try{logger['info'](_0x588dfe(0x193)+origArgs[_0x588dfe(0x1fe)]('\x20')),await _0x17f56c[_0x588dfe(0x1ee)](_0x3f111b,_0x1d7bea,_0x1a3701,_0x376718);}catch(_0x2746bc){process['exitCode']=0x1,logger[_0x588dfe(0x1c1)](util['format'](_0x2746bc));const _0x37b1c2={'globalException':util[_0x588dfe(0x21c)]('%j',_0x2746bc)};PerformanceTester[_0x588dfe(0x1f9)](PerformanceEvents[_0x588dfe(0x1be)],![],util[_0x588dfe(0x21c)](_0x2746bc));if(helper[_0x588dfe(0x231)](global['config'])&&helper[_0x588dfe(0x231)](global[_0x588dfe(0x23a)]))return;try{utilities[_0x588dfe(0x1b2)](_0x17f56c[_0x588dfe(0x1ad)],_0x37b1c2,global[_0x588dfe(0x234)],global[_0x588dfe(0x23a)]);}catch(_0x450315){logger[_0x588dfe(0x19e)](_0x588dfe(0x225)+_0x450315['stack']);}try{await helper[_0x588dfe(0x228)](global[_0x588dfe(0x234)]);}catch(_0x44ec57){logger['debug'](_0x588dfe(0x1d9)+_0x44ec57[_0x588dfe(0x1b6)]);}PerformanceTester['end'](PerformanceEvents[_0x588dfe(0x1be)],![],util[_0x588dfe(0x21c)](_0x2746bc));}finally{!_0xe12e0a&&await BrowserstackCLI[_0x588dfe(0x212)]()['stop'](),PerformanceTester[_0x588dfe(0x199)](PerformanceEvents[_0x588dfe(0x1e4)]);}};try{const browserstackFolderPath=path[a60_0x54e128(0x1fe)](helper[a60_0x54e128(0x198)](),'.browserstack');if(fs[a60_0x54e128(0x205)](browserstackFolderPath)){const filePath=path[a60_0x54e128(0x1fe)](browserstackFolderPath,a60_0x54e128(0x206));fs[a60_0x54e128(0x205)](filePath)&&fs['unlinkSync'](filePath);}}catch(a60_0x4818ba){logger['debug'](a60_0x54e128(0x200)+a60_0x4818ba[a60_0x54e128(0x217)]);}process[a60_0x54e128(0x1a6)]['includes']('mocha')&&(!process['argv'][a60_0x54e128(0x1d8)](a60_0x54e128(0x213))&&process['argv'][a60_0x54e128(0x20d)](a60_0x54e128(0x20a)),!process[a60_0x54e128(0x1a6)]['find'](_0x12cb3b=>_0x12cb3b[a60_0x54e128(0x1d8)](a60_0x54e128(0x1b9)))&&process[a60_0x54e128(0x1a6)][a60_0x54e128(0x20d)](a60_0x54e128(0x1c4)),!process[a60_0x54e128(0x1a6)]['includes'](a60_0x54e128(0x235))&&process[a60_0x54e128(0x1a6)]['push'](a60_0x54e128(0x1d3)),helper[a60_0x54e128(0x210)](process['argv'],a60_0x54e128(0x191),'--mochaRequire'));PerformanceTester[a60_0x54e128(0x199)](PerformanceEvents[a60_0x54e128(0x1be)]);const a60_0x376694={};a60_0x376694[a60_0x54e128(0x1bc)]=![];const argv=yargs[a60_0x54e128(0x22c)](a60_0x376694)[a60_0x54e128(0x1e8)](a60_0x54e128(0x197))['alias']('v',a60_0x54e128(0x1fd))[a60_0x54e128(0x1f4)]('v')[a60_0x54e128(0x1f8)]('h',a60_0x54e128(0x1f2))[a60_0x54e128(0x1f2)](a60_0x54e128(0x1f2))[a60_0x54e128(0x1c6)](!![],Constants[a60_0x54e128(0x1ea)][a60_0x54e128(0x1ef)])['command'](a60_0x54e128(0x20f),Constants['JEST'][a60_0x54e128(0x1b0)],function(_0x20cb1f){const _0x3549a3=a60_0x54e128,_0x2f9a1a={'eAoyv':'jest','WUQVA':function(_0x131232,_0x289c37,_0x3a2605,_0x4e52de,_0x207359,_0x17cd04){return _0x131232(_0x289c37,_0x3a2605,_0x4e52de,_0x207359,_0x17cd04);},'TaecO':function(_0x460a76,_0x9c5208){return _0x460a76(_0x9c5208);},'hNwOQ':_0x3549a3(0x204)},_0x4ef9a3=process[_0x3549a3(0x1a6)][_0x3549a3(0x1ba)](0x2);helper[_0x3549a3(0x222)](),helper[_0x3549a3(0x1e0)](),_0x20cb1f[_0x3549a3(0x194)](![]);const _0x9c4dbf=new BrowserStackSetup(_0x20cb1f[_0x3549a3(0x1a6)],_0x2f9a1a[_0x3549a3(0x19f)]);return _0x2f9a1a[_0x3549a3(0x1c9)](captureError,_0x2f9a1a[_0x3549a3(0x243)](require,_0x2f9a1a[_0x3549a3(0x220)]),_0x20cb1f[_0x3549a3(0x1a6)],_0x9c4dbf,_0x4ef9a3,!![]);})[a60_0x54e128(0x211)](a60_0x54e128(0x1a7),Constants[a60_0x54e128(0x1f7)][a60_0x54e128(0x1b0)],function(_0x191484){const _0x4c678a=a60_0x54e128,_0x54e686={'xPbYG':_0x4c678a(0x1a7),'wEcaa':function(_0x5376d3,_0x2aa431,_0x39ae94,_0x533ef4,_0x410615,_0x269012){return _0x5376d3(_0x2aa431,_0x39ae94,_0x533ef4,_0x410615,_0x269012);},'whAcl':function(_0x20b878,_0x14acf4){return _0x20b878(_0x14acf4);},'NVXwX':'./jasmine/command'},_0x32612b=process[_0x4c678a(0x1a6)]['slice'](0x2);helper[_0x4c678a(0x222)](),helper[_0x4c678a(0x1e0)](),_0x191484[_0x4c678a(0x194)](![]);const _0x2a872e=new BrowserStackSetup(_0x191484[_0x4c678a(0x1a6)],_0x54e686[_0x4c678a(0x214)]);return _0x54e686['wEcaa'](captureError,_0x54e686[_0x4c678a(0x20e)](require,_0x54e686[_0x4c678a(0x239)]),_0x191484[_0x4c678a(0x1a6)],_0x2a872e,_0x32612b,!![]);})[a60_0x54e128(0x211)](a60_0x54e128(0x1f0),Constants[a60_0x54e128(0x1c7)][a60_0x54e128(0x1b0)],_0x1328b0=>{const _0x2c9e66=a60_0x54e128,_0x50e230={'YJxjx':function(_0x5389cb,_0x2f3482,_0x4e642c,_0x2e78bc){return _0x5389cb(_0x2f3482,_0x4e642c,_0x2e78bc);},'aehrx':function(_0x1d1866,_0x1b0d35){return _0x1d1866(_0x1b0d35);},'PviiE':_0x2c9e66(0x1cb),'pVFAp':_0x2c9e66(0x1f0),'tlsTk':_0x2c9e66(0x1cf),'iaipY':function(_0x16408f,_0x3b7275,_0x4e135b){return _0x16408f(_0x3b7275,_0x4e135b);},'hzXZY':_0x2c9e66(0x209),'DUeoZ':_0x2c9e66(0x1f1),'ViHsh':_0x2c9e66(0x21f),'fuaFx':function(_0xfbce94){return _0xfbce94();}};process['argv']=process[_0x2c9e66(0x1a6)][_0x2c9e66(0x1ba)](0x1),helper[_0x2c9e66(0x222)](),helper['setBrowserStackAutomationDisable']();const _0x5ee251=new BrowserStackSetup(_0x1328b0['argv'],_0x50e230[_0x2c9e66(0x1ca)]);logger[_0x2c9e66(0x19e)](_0x50e230['tlsTk']);const _0x4ba233=_0x50e230[_0x2c9e66(0x208)](requireModule,_0x50e230['hzXZY'],_0x50e230[_0x2c9e66(0x1ca)]),_0x55be3f=_0x50e230[_0x2c9e66(0x208)](requireModule,_0x50e230[_0x2c9e66(0x227)],_0x50e230[_0x2c9e66(0x1ca)]);delete _0x4ba233[_0x2c9e66(0x226)],_0x4ba233[_0x2c9e66(0x226)]=function(_0x13887a){const _0x1c2d22=_0x2c9e66;return _0x50e230[_0x1c2d22(0x1af)](captureError,_0x50e230['aehrx'](require,_0x50e230[_0x1c2d22(0x1ac)]),_0x13887a,_0x5ee251);},_0x55be3f[_0x2c9e66(0x1ed)]=_0x4ba233;const {main:_0x506f95}=_0x50e230[_0x2c9e66(0x208)](requireModule,_0x50e230[_0x2c9e66(0x1a9)],_0x50e230[_0x2c9e66(0x1ca)]);_0x50e230[_0x2c9e66(0x1e6)](_0x506f95);})[a60_0x54e128(0x211)](a60_0x54e128(0x19c),Constants[a60_0x54e128(0x1df)][a60_0x54e128(0x1b0)],function(_0x2e3974){const _0x416ef3=a60_0x54e128,_0x1bf271={'HWVen':_0x416ef3(0x19c),'yiLtg':function(_0x5f7cc2,_0x247f33,_0x59bca5,_0xa5cecc,_0x5d5e03,_0x3e94c3){return _0x5f7cc2(_0x247f33,_0x59bca5,_0xa5cecc,_0x5d5e03,_0x3e94c3);},'bOGGK':function(_0x54123b,_0x565285){return _0x54123b(_0x565285);},'xiqMy':_0x416ef3(0x1fb)},_0x1e5147=process[_0x416ef3(0x1a6)][_0x416ef3(0x1ba)](0x2),_0x12e2a7=new BrowserStackSetup(_0x2e3974[_0x416ef3(0x1a6)],_0x1bf271[_0x416ef3(0x1c0)]);return _0x1bf271[_0x416ef3(0x20c)](captureError,_0x1bf271['bOGGK'](require,_0x1bf271[_0x416ef3(0x192)]),_0x2e3974['argv'],_0x12e2a7,_0x1e5147,!![]);})[a60_0x54e128(0x211)]('node',Constants[a60_0x54e128(0x221)]['INFO'],function(_0x51b00e){const _0x48d5ad=a60_0x54e128,_0x2c7e09={'zunnk':_0x48d5ad(0x1fc),'xuYZW':function(_0x313909,_0x40b528){return _0x313909(_0x40b528);},'TaUOh':'newman','bmABS':function(_0x5b9156,_0x561fc2,_0x58938a,_0xcf46e0,_0x217933){return _0x5b9156(_0x561fc2,_0x58938a,_0xcf46e0,_0x217933);},'wHSmb':_0x48d5ad(0x203),'tmrRO':function(_0x3a015,_0x37e5da,_0x41f332,_0x2524ba,_0x46c184){return _0x3a015(_0x37e5da,_0x41f332,_0x2524ba,_0x46c184);},'WxmbR':function(_0x57715e,_0x42bb01){return _0x57715e(_0x42bb01);},'CdEcd':_0x48d5ad(0x1d4)},_0xe666a7=process['argv'][_0x48d5ad(0x1ba)](0x2),_0xc2b3b=new BrowserStackSetup(_0x51b00e[_0x48d5ad(0x1a6)],_0x2c7e09[_0x48d5ad(0x1e5)]),_0x4dcdab=_0xc2b3b?_0xc2b3b[_0x48d5ad(0x234)]:null;if(_0x2c7e09[_0x48d5ad(0x201)](isNewman,_0x4dcdab))return _0xc2b3b['framework']=_0x2c7e09['TaUOh'],global[_0x48d5ad(0x23a)]=_0x2c7e09[_0x48d5ad(0x1b1)],_0x2c7e09[_0x48d5ad(0x1c8)](captureError,_0x2c7e09[_0x48d5ad(0x201)](require,_0x2c7e09[_0x48d5ad(0x229)]),_0x51b00e[_0x48d5ad(0x1a6)],_0xc2b3b,_0xe666a7);return _0x2c7e09['tmrRO'](captureError,_0x2c7e09[_0x48d5ad(0x1b8)](require,_0x2c7e09[_0x48d5ad(0x23f)]),_0x51b00e[_0x48d5ad(0x1a6)],_0xc2b3b,_0xe666a7);})[a60_0x54e128(0x211)]('nightwatch',Constants[a60_0x54e128(0x1a5)][a60_0x54e128(0x1b0)],function(_0x581561){const _0x4ba055=a60_0x54e128,_0x5074ee={'YawNA':_0x4ba055(0x20b),'yFIKs':function(_0x4225c9,_0x519058,_0x962300,_0xa6a0c0,_0x4e0d41){return _0x4225c9(_0x519058,_0x962300,_0xa6a0c0,_0x4e0d41);},'pzvbD':function(_0x28d9a2,_0x8e95e7){return _0x28d9a2(_0x8e95e7);},'umViw':_0x4ba055(0x1fa)},_0x4a3c2d=process['argv']['slice'](0x2),_0x1d3cde=new BrowserStackSetup(_0x581561[_0x4ba055(0x1a6)],_0x5074ee['YawNA']);return _0x5074ee[_0x4ba055(0x1b3)](captureError,_0x5074ee['pzvbD'](require,_0x5074ee[_0x4ba055(0x1d2)]),_0x581561['argv'],_0x1d3cde,_0x4a3c2d);})[a60_0x54e128(0x211)](a60_0x54e128(0x242),Constants[a60_0x54e128(0x202)][a60_0x54e128(0x1b0)],function(_0x491219){const _0x2e7c50=a60_0x54e128,_0xe468bf={'dNBjr':_0x2e7c50(0x242),'EAxrf':function(_0x1a9158,_0x2dfebd,_0xcdfcb3,_0x4573d6,_0x184f57){return _0x1a9158(_0x2dfebd,_0xcdfcb3,_0x4573d6,_0x184f57);},'tWANZ':function(_0x1f4a6b,_0x336cc8){return _0x1f4a6b(_0x336cc8);},'qterg':_0x2e7c50(0x1f5)},_0x53a9eb=process['argv']['slice'](0x2),_0xf9a2c5=new BrowserStackSetup(_0x491219[_0x2e7c50(0x1a6)],_0xe468bf[_0x2e7c50(0x1d1)]);return _0xe468bf[_0x2e7c50(0x1a1)](captureError,_0xe468bf[_0x2e7c50(0x23d)](require,_0xe468bf['qterg']),_0x491219[_0x2e7c50(0x1a6)],_0xf9a2c5,_0x53a9eb);})[a60_0x54e128(0x211)](a60_0x54e128(0x1c3),Constants[a60_0x54e128(0x22d)][a60_0x54e128(0x1b0)],function(_0x2968d6){const _0x5e3019=a60_0x54e128,_0x4a0377={'WCrqd':function(_0x458844,_0x29ee3a,_0x386eb8){return _0x458844(_0x29ee3a,_0x386eb8);},'xqYaL':function(_0x1fbad7,_0xc346a6){return _0x1fbad7(_0xc346a6);},'ncuxp':_0x5e3019(0x21a)},_0x5d175b=process['argv']['slice'](0x2);return _0x4a0377['WCrqd'](captureError,_0x4a0377[_0x5e3019(0x21e)](require,_0x4a0377[_0x5e3019(0x1ec)]),_0x2968d6);})[a60_0x54e128(0x211)](a60_0x54e128(0x240),Constants[a60_0x54e128(0x236)]['INFO'],function(_0x179e32){const _0x17de83=a60_0x54e128,_0x5b5c55={'HLSzl':function(_0x51f9ab,_0x47f35b){return _0x51f9ab(_0x47f35b);}};return _0x5b5c55[_0x17de83(0x1da)](runIntegrations,_0x179e32);})[a60_0x54e128(0x211)]('playwright',Constants[a60_0x54e128(0x1a4)][a60_0x54e128(0x1b0)],function(_0xa59760){const _0x2bc33c=a60_0x54e128,_0x43b0e5={'BwHHb':_0x2bc33c(0x21d),'CRzPh':function(_0x468ae6,_0xc16fa9){return _0x468ae6&&_0xc16fa9;},'FOBEX':function(_0xe01905,_0x197d7a,_0x3306e4,_0x1e6d77,_0x38fae2,_0x355a35){return _0xe01905(_0x197d7a,_0x3306e4,_0x1e6d77,_0x38fae2,_0x355a35);},'JnViG':function(_0x421dfc,_0x3c4bf8){return _0x421dfc(_0x3c4bf8);},'DNNrs':'./playwright/command'},_0x4aa24b=process[_0x2bc33c(0x1a6)]['slice'](0x2);helper['getConfigPath'](process[_0x2bc33c(0x1a6)])&&(process[_0x2bc33c(0x1d6)][_0x2bc33c(0x1ae)]=helper[_0x2bc33c(0x22e)](process[_0x2bc33c(0x1a6)]));helper[_0x2bc33c(0x222)](),helper['setBrowserStackAutomationDisable']();const _0x3f80a2=new BrowserStackSetup(_0xa59760[_0x2bc33c(0x1a6)],FRAMEWORKS[_0x2bc33c(0x1a4)]);try{if(!_0x3f80a2['config']||!_0x3f80a2['config'][_0x2bc33c(0x1e3)]){const _0x111c6b=_0x43b0e5[_0x2bc33c(0x1a0)],_0x7750da=process[_0x2bc33c(0x1d6)][_0x2bc33c(0x215)]||'',_0xf89eac=_0x7750da['split'](',')['map'](_0x53578b=>_0x53578b[_0x2bc33c(0x1e1)]())['filter'](Boolean),_0xfbd87f=_0xf89eac[_0x2bc33c(0x1eb)](_0x173bf7=>_0x173bf7===_0x2bc33c(0x1aa)||_0x173bf7===_0x2bc33c(0x21b)||_0x173bf7==='-*'),_0x63f70c=_0xf89eac[_0x2bc33c(0x1eb)](_0x23ca9c=>_0x23ca9c===_0x111c6b||_0x23ca9c===_0x2bc33c(0x1f3)||_0x23ca9c==='*');if(_0x43b0e5['CRzPh'](!_0xfbd87f,!_0x63f70c)){const _0x5d8653=helper[_0x2bc33c(0x195)]();_0x5d8653&&(process[_0x2bc33c(0x1d6)][_0x2bc33c(0x215)]=_0x7750da?_0x7750da+','+_0x111c6b:_0x111c6b,!process[_0x2bc33c(0x1d6)][_0x2bc33c(0x1c5)]&&(process[_0x2bc33c(0x1d6)][_0x2bc33c(0x1c5)]=_0x5d8653));}}}catch(_0x17a013){logger['debug'](_0x2bc33c(0x216)+util[_0x2bc33c(0x21c)](_0x17a013));}return _0x43b0e5['FOBEX'](captureError,_0x43b0e5[_0x2bc33c(0x233)](require,_0x43b0e5[_0x2bc33c(0x1dc)]),_0xa59760[_0x2bc33c(0x1a6)],_0x3f80a2,_0x4aa24b,!![]);})[a60_0x54e128(0x211)](a60_0x54e128(0x219),Constants['TESTCAFE'][a60_0x54e128(0x1b0)],function(_0x561085){const _0x28e40e=a60_0x54e128,_0x1e929b={'DxUap':_0x28e40e(0x219),'JSNaB':function(_0x4019fd,_0xbd704a,_0x11cb9a,_0x523a8e,_0x4029d5,_0x261148){return _0x4019fd(_0xbd704a,_0x11cb9a,_0x523a8e,_0x4029d5,_0x261148);},'nZzlY':function(_0x16a6ba,_0x62a447){return _0x16a6ba(_0x62a447);},'TpgHD':'./testcafe/command'},_0x53e0bb=process[_0x28e40e(0x1a6)][_0x28e40e(0x1ba)](0x2),_0x2e990b=new BrowserStackSetup(_0x561085[_0x28e40e(0x1a6)],_0x1e929b[_0x28e40e(0x1ff)]);return _0x1e929b[_0x28e40e(0x1b7)](captureError,_0x1e929b[_0x28e40e(0x1e7)](require,_0x1e929b['TpgHD']),_0x561085[_0x28e40e(0x1a6)],_0x2e990b,_0x53e0bb,!![]);})['command'](a60_0x54e128(0x19a),a60_0x54e128(0x1dd),function(_0x13b460){const _0x55319f=a60_0x54e128,_0x347fb9={};_0x347fb9[_0x55319f(0x1bf)]=_0x55319f(0x1f2),_0x347fb9[_0x55319f(0x22a)]='boolean',_0x347fb9[_0x55319f(0x1d5)]=_0x55319f(0x23b);const _0x58bbd4=_0x347fb9;return _0x13b460[_0x55319f(0x1f2)](![])['option'](_0x58bbd4[_0x55319f(0x1bf)],{'alias':'h','type':_0x58bbd4[_0x55319f(0x22a)],'describe':_0x58bbd4[_0x55319f(0x1d5)]})['strict'](![])[_0x55319f(0x1d0)](![]);},function(_0x40a340){const _0x40c8ab=a60_0x54e128,_0xee3428={'tMtgK':function(_0x391a53,_0x263c3b,_0x164e82){return _0x391a53(_0x263c3b,_0x164e82);},'fioqq':function(_0x5bde1a,_0x93a448){return _0x5bde1a(_0x93a448);},'LhpPi':_0x40c8ab(0x232)},_0x426bed={};return _0x426bed['argv']=_0x40a340,_0xee3428[_0x40c8ab(0x1de)](captureError,_0xee3428[_0x40c8ab(0x23c)](require,_0xee3428[_0x40c8ab(0x19d)]),_0x426bed);})[a60_0x54e128(0x211)]('newman',Constants[a60_0x54e128(0x22b)][a60_0x54e128(0x1b0)],function(_0x5a655e){const _0x208851=a60_0x54e128,_0x12ada8={'MymlF':'newman','BzTlH':function(_0x394a49,_0x1a7215,_0x39e1d2,_0x358f88,_0x5bdcd6){return _0x394a49(_0x1a7215,_0x39e1d2,_0x358f88,_0x5bdcd6);},'zQPwb':function(_0x1cf644,_0x2482f3){return _0x1cf644(_0x2482f3);},'bNIoA':_0x208851(0x203)},_0x34fc47=process[_0x208851(0x1a6)][_0x208851(0x1ba)](0x2);helper[_0x208851(0x222)](),helper['setBrowserStackAutomationDisable'](),_0x5a655e['strict'](![]);const _0x2666e5=new BrowserStackSetup(_0x5a655e[_0x208851(0x1a6)],_0x12ada8['MymlF']);return _0x12ada8['BzTlH'](captureError,_0x12ada8[_0x208851(0x218)](require,_0x12ada8[_0x208851(0x1b5)]),_0x5a655e[_0x208851(0x1a6)],_0x2666e5,_0x34fc47);})[a60_0x54e128(0x1db)](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a60_0x54e128(0x230)](null)['argv'];!helper[a60_0x54e128(0x231)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x54e128(0x1c3)&&console[a60_0x54e128(0x1c1)](a60_0x54e128(0x207));
|
|
2
|
+
'use strict';const a60_0x121a09=a60_0xd79c;(function(_0x27a8fe,_0xba0d90){const _0x1a34cd=a60_0xd79c,_0x2585f8=_0x27a8fe();while(!![]){try{const _0x3dbb97=parseInt(_0x1a34cd(0x14d))/0x1+parseInt(_0x1a34cd(0x13b))/0x2+-parseInt(_0x1a34cd(0x163))/0x3+-parseInt(_0x1a34cd(0x18d))/0x4+parseInt(_0x1a34cd(0x146))/0x5*(-parseInt(_0x1a34cd(0x175))/0x6)+-parseInt(_0x1a34cd(0x12d))/0x7*(-parseInt(_0x1a34cd(0x1a2))/0x8)+parseInt(_0x1a34cd(0x10e))/0x9*(-parseInt(_0x1a34cd(0x120))/0xa);if(_0x3dbb97===_0xba0d90)break;else _0x2585f8['push'](_0x2585f8['shift']());}catch(_0x2ce81c){_0x2585f8['push'](_0x2585f8['shift']());}}}(a60_0x21a9,0x5f83f));function a60_0xd79c(_0x922e8c,_0xe6fa9d){const _0x21a948=a60_0x21a9();return a60_0xd79c=function(_0xd79c99,_0x5f340c){_0xd79c99=_0xd79c99-0xf8;let _0x3e1f6a=_0x21a948[_0xd79c99];return _0x3e1f6a;},a60_0xd79c(_0x922e8c,_0xe6fa9d);}const fs=require('fs'),path=require(a60_0x121a09(0x196)),util=require(a60_0x121a09(0x159)),spawn=require(a60_0x121a09(0x115))[a60_0x121a09(0x129)],{requireModule}=require(a60_0x121a09(0x165)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a60_0x121a09(0x15a))[a60_0x121a09(0x17f)],helper=require('../helpers/helper'),utilities=require(a60_0x121a09(0x125)),{default:BrowserStackSetup}=require(a60_0x121a09(0x124)),{FRAMEWORKS}=require(a60_0x121a09(0x133)),runIntegrations=require('./integrations/command'),yargs=require(a60_0x121a09(0x10b)),Constants=require(a60_0x121a09(0x16f)),BrowserstackCLI=require(a60_0x121a09(0x1a6)),{isNewman}=require('./newman/helper'),logger=require(a60_0x121a09(0x190))[a60_0x121a09(0x171)],origArgs=Object[a60_0x121a09(0x198)]([],process[a60_0x121a09(0x10c)]),captureError=async(_0x4c6db3,_0x269fff,_0x3f5cec,_0x5d919d=null,_0x96ae2c=![])=>{const _0x4a9d06=a60_0x121a09,_0xd25668={'MiGlH':function(_0x2c9322,_0x3b130b,_0x1d6d8d,_0xf7ffe6){return _0x2c9322(_0x3b130b,_0x1d6d8d,_0xf7ffe6);},'DcYpn':_0x4a9d06(0x191)};try{logger[_0x4a9d06(0x153)](_0x4a9d06(0x101)+origArgs[_0x4a9d06(0x14c)]('\x20')),await _0xd25668[_0x4a9d06(0x19b)](_0x4c6db3,_0x269fff,_0x5d919d,_0x3f5cec);}catch(_0x1c21a0){process[_0x4a9d06(0x16a)]=0x1,logger[_0x4a9d06(0x174)](util[_0x4a9d06(0x11f)](_0x1c21a0));const _0x5217a1={'globalException':util['format']('%j',_0x1c21a0)};PerformanceTester[_0x4a9d06(0x1a3)](PerformanceEvents['SDK_SETUP'],![],util['format'](_0x1c21a0));if(helper[_0x4a9d06(0x177)](global['config'])&&helper[_0x4a9d06(0x177)](global[_0x4a9d06(0x145)]))return;try{utilities[_0x4a9d06(0x16e)](_0xd25668[_0x4a9d06(0x172)],_0x5217a1,global['config'],global[_0x4a9d06(0x145)]);}catch(_0x3da1c6){logger[_0x4a9d06(0x188)](_0x4a9d06(0x12b)+_0x3da1c6[_0x4a9d06(0xfd)]);}try{await helper[_0x4a9d06(0x15b)](global['config']);}catch(_0xa2718){logger['debug']('Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20'+_0xa2718[_0x4a9d06(0xfd)]);}PerformanceTester['end'](PerformanceEvents[_0x4a9d06(0x1ab)],![],util[_0x4a9d06(0x11f)](_0x1c21a0));}finally{!_0x96ae2c&&await BrowserstackCLI[_0x4a9d06(0x119)]()[_0x4a9d06(0x17c)](),PerformanceTester[_0x4a9d06(0x186)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path['join'](helper[a60_0x121a09(0x16d)](),a60_0x121a09(0x11e));if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a60_0x121a09(0x14c)](browserstackFolderPath,a60_0x121a09(0x10a));fs[a60_0x121a09(0x182)](filePath)&&fs[a60_0x121a09(0x108)](filePath);}}catch(a60_0x17411c){logger['debug']('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a60_0x17411c[a60_0x121a09(0x110)]);}process['argv'][a60_0x121a09(0x14b)](a60_0x121a09(0x1a4))&&(!process[a60_0x121a09(0x10c)][a60_0x121a09(0x14b)](a60_0x121a09(0x106))&&process[a60_0x121a09(0x10c)][a60_0x121a09(0x138)](a60_0x121a09(0x18e)),!process[a60_0x121a09(0x10c)]['find'](_0x3a455f=>_0x3a455f[a60_0x121a09(0x14b)]('--config'))&&process[a60_0x121a09(0x10c)]['push'](a60_0x121a09(0x176)),!process[a60_0x121a09(0x10c)]['includes'](a60_0x121a09(0x1a9))&&process[a60_0x121a09(0x10c)]['push'](a60_0x121a09(0x194)),helper[a60_0x121a09(0x197)](process[a60_0x121a09(0x10c)],a60_0x121a09(0x184),a60_0x121a09(0x109)));function a60_0x21a9(){const _0x345134=['mphYB','BROWSERSTACK_CONFIG_FILE_PATH','getPwChannelLogPath','exitProcess','EDwdS','mocha/lib/cli/cli.js','map','vIwdx','framework','26165PzTTBj','jTLkE','JASMINE','VERSION','handler','includes','join','756565hdMIXE','wZEwq','cucumber-js','Show\x20help','bQQrp','usage','info','JEST','command','pw:channel','CEGYv','setTestObservabilityDisable','util','../helpers/performance/constants','sendLogs','jest','slice','tIVbF','fMzKg','env','yCZgB','MOCHA','806112dChIMi','./codeceptjs/command','../helpers/helper','./jasmine/command','./mocha/command','ZzJKd','mZDhT','exitCode','./newman/command','vanilla','homedir','fireFunnelTestEvent','./utils/constants','pw:channel\x20auto-capture\x20seed\x20failed:\x20','winstonLogger','DcYpn','rzTvL','error','354IJLVfz','--no-config','isUndefined','JHSWW','szIjJ','run','YnnEP','stop','CODECEPTJS','DEBUG','EVENTS','load\x20[subcommand]','config','existsSync','zachy','--require','qJLLk','start','xGVhl','debug','HST','lylbH','NIGHTWATCH','Runs\x20the\x20binary\x20with\x20load\x20command','237552NsZCAQ','--no-opts','nuZdQ','../helpers/logger','SDKTestSuccessful','alias','PLAYWRIGHT','--no-package','boolean','path','findAndReplace','assign','jasmine','dot-notation','MiGlH','QkwjS','hZfRW','qGkHg','RAHcY','integrations','testcafe','168FcoSmZ','end','mocha','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','./v2/browserstackCLI','DEBUG_FILE','nightwatch','--package','nkcPY','SDK_SETUP','-pw:channel','wrap','parserConfiguration','node','RUXGD','TgYFZ','ObWIf','playwright','IHkFO','BegMl','stack','newman','help','tVEBl','Running\x20SDK\x20with\x20args\x20','INFO','mpJrl','./playwright/command','pEPEl','--opts','XyOHs','unlinkSync','--mochaRequire','.local-not-set.json','yargs','argv','LTmVU','12906IdSIhG','./testcafe/command','message','strict','getConfigPath','ats','version','child_process','usage:\x20$0\x20<command>\x20[args]','eheta','INTEGRATIONS','getInstance','disableAutoCaptureLogs','codeceptjs','pw:*','some','.browserstack','format','3540LBaHPX','../../ats/src/index','setBrowserStackAutomationDisable','describe','../helpers/BrowserStackSetup','../helpers/utilities','Rfnmh','otWaV','HELP','spawn','qRPWI','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','xGAMz','209867IhUnRC','fUkVi','sIDhb','./cucumber-js/command','trim','AlWbW','../helpers/test-observability/constants','./jest/command','mocha/lib/cli/run.js','SMVdr','split','push','VEKkU','yeCHJ','299080JaWCXk','CUCUMBER'];a60_0x21a9=function(){return _0x345134;};return a60_0x21a9();}PerformanceTester[a60_0x121a09(0x186)](PerformanceEvents[a60_0x121a09(0x1ab)]);const a60_0x13ff0e={};a60_0x13ff0e[a60_0x121a09(0x19a)]=![];const argv=yargs[a60_0x121a09(0x1ae)](a60_0x13ff0e)[a60_0x121a09(0x152)](a60_0x121a09(0x116))[a60_0x121a09(0x192)]('v',a60_0x121a09(0x114))[a60_0x121a09(0x123)]('v')[a60_0x121a09(0x192)]('h',a60_0x121a09(0xff))[a60_0x121a09(0xff)](a60_0x121a09(0xff))['showHelpOnFail'](!![],Constants[a60_0x121a09(0x149)][a60_0x121a09(0x128)])[a60_0x121a09(0x155)](a60_0x121a09(0x15c),Constants[a60_0x121a09(0x154)]['INFO'],function(_0x5c7e87){const _0x4f0cb1=a60_0x121a09,_0x2f2b22={'RAHcY':_0x4f0cb1(0x15c),'yeCHJ':function(_0x16e5d8,_0x1d0213,_0x42cbff,_0x4c031d,_0x3a6c98,_0x3054c5){return _0x16e5d8(_0x1d0213,_0x42cbff,_0x4c031d,_0x3a6c98,_0x3054c5);},'mphYB':function(_0x2ea6cf,_0x5431c7){return _0x2ea6cf(_0x5431c7);},'ZKYjm':_0x4f0cb1(0x134)},_0x495fd9=process[_0x4f0cb1(0x10c)][_0x4f0cb1(0x15d)](0x2);helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable'](),_0x5c7e87[_0x4f0cb1(0x111)](![]);const _0x5686b5=new BrowserStackSetup(_0x5c7e87['argv'],_0x2f2b22[_0x4f0cb1(0x19f)]);return _0x2f2b22[_0x4f0cb1(0x13a)](captureError,_0x2f2b22[_0x4f0cb1(0x13d)](require,_0x2f2b22['ZKYjm']),_0x5c7e87[_0x4f0cb1(0x10c)],_0x5686b5,_0x495fd9,!![]);})[a60_0x121a09(0x155)](a60_0x121a09(0x199),Constants[a60_0x121a09(0x148)][a60_0x121a09(0x102)],function(_0x4bf18b){const _0x250e91=a60_0x121a09,_0x364f92={'Rfnmh':_0x250e91(0x199),'SMVdr':function(_0x5d1d68,_0x1ec80c,_0x342a38,_0x236fec,_0x3c4c59,_0x154e0b){return _0x5d1d68(_0x1ec80c,_0x342a38,_0x236fec,_0x3c4c59,_0x154e0b);},'otWaV':function(_0x3fd6e7,_0x2839e2){return _0x3fd6e7(_0x2839e2);},'fUkVi':_0x250e91(0x166)},_0x2fe468=process['argv'][_0x250e91(0x15d)](0x2);helper[_0x250e91(0x158)](),helper[_0x250e91(0x122)](),_0x4bf18b['strict'](![]);const _0x3e40f2=new BrowserStackSetup(_0x4bf18b[_0x250e91(0x10c)],_0x364f92[_0x250e91(0x126)]);return _0x364f92[_0x250e91(0x136)](captureError,_0x364f92[_0x250e91(0x127)](require,_0x364f92[_0x250e91(0x12e)]),_0x4bf18b[_0x250e91(0x10c)],_0x3e40f2,_0x2fe468,!![]);})['command'](a60_0x121a09(0x1a4),Constants[a60_0x121a09(0x162)][a60_0x121a09(0x102)],_0x112611=>{const _0x2b6af5=a60_0x121a09,_0x1d9e7c={'mZDhT':function(_0x12191b,_0x5241b0,_0x7f48db,_0x25553e){return _0x12191b(_0x5241b0,_0x7f48db,_0x25553e);},'yCZgB':function(_0x149051,_0x4d6413){return _0x149051(_0x4d6413);},'wZEwq':_0x2b6af5(0x167),'szIjJ':_0x2b6af5(0x1a4),'XyOHs':'Parsing\x20command\x20line\x20arguments','qJLLk':function(_0x59a411,_0x2887b2,_0x5720af){return _0x59a411(_0x2887b2,_0x5720af);},'VEKkU':_0x2b6af5(0x135),'hZfRW':'mocha/lib/cli/commands.js','ZkjzV':function(_0x1c65b1,_0x9c427d,_0x17390e){return _0x1c65b1(_0x9c427d,_0x17390e);},'BegMl':_0x2b6af5(0x142),'ZzJKd':function(_0x369aa2){return _0x369aa2();}};process[_0x2b6af5(0x10c)]=process[_0x2b6af5(0x10c)][_0x2b6af5(0x15d)](0x1),helper[_0x2b6af5(0x158)](),helper['setBrowserStackAutomationDisable']();const _0x48a1f1=new BrowserStackSetup(_0x112611[_0x2b6af5(0x10c)],_0x1d9e7c[_0x2b6af5(0x179)]);logger['debug'](_0x1d9e7c[_0x2b6af5(0x107)]);const _0x4b1ca8=_0x1d9e7c['qJLLk'](requireModule,_0x1d9e7c[_0x2b6af5(0x139)],_0x1d9e7c[_0x2b6af5(0x179)]),_0x5d5c9d=_0x1d9e7c[_0x2b6af5(0x185)](requireModule,_0x1d9e7c[_0x2b6af5(0x19d)],_0x1d9e7c[_0x2b6af5(0x179)]);delete _0x4b1ca8['handler'],_0x4b1ca8[_0x2b6af5(0x14a)]=function(_0x133465){const _0x152d47=_0x2b6af5;return _0x1d9e7c[_0x152d47(0x169)](captureError,_0x1d9e7c[_0x152d47(0x161)](require,_0x1d9e7c[_0x152d47(0x14e)]),_0x133465,_0x48a1f1);},_0x5d5c9d[_0x2b6af5(0x17a)]=_0x4b1ca8;const {main:_0x1e1892}=_0x1d9e7c['ZkjzV'](requireModule,_0x1d9e7c[_0x2b6af5(0xfc)],_0x1d9e7c[_0x2b6af5(0x179)]);_0x1d9e7c[_0x2b6af5(0x168)](_0x1e1892);})[a60_0x121a09(0x155)](a60_0x121a09(0x14f),Constants[a60_0x121a09(0x13c)]['INFO'],function(_0x481ba2){const _0x4561b5=a60_0x121a09,_0x2c07c7={'mpJrl':_0x4561b5(0x14f),'qGkHg':function(_0x2db7dd,_0x3b3ccb,_0x2eaec6,_0x5e37a3,_0x3fb6fe,_0x5255d5){return _0x2db7dd(_0x3b3ccb,_0x2eaec6,_0x5e37a3,_0x3fb6fe,_0x5255d5);},'wyPKI':function(_0x3c8e3b,_0x365280){return _0x3c8e3b(_0x365280);},'JHSWW':_0x4561b5(0x130)},_0x225411=process['argv'][_0x4561b5(0x15d)](0x2),_0x464d31=new BrowserStackSetup(_0x481ba2[_0x4561b5(0x10c)],_0x2c07c7[_0x4561b5(0x103)]);return _0x2c07c7[_0x4561b5(0x19e)](captureError,_0x2c07c7['wyPKI'](require,_0x2c07c7[_0x4561b5(0x178)]),_0x481ba2['argv'],_0x464d31,_0x225411,!![]);})['command'](a60_0x121a09(0x1af),Constants['VANILLA'][a60_0x121a09(0x102)],function(_0x35c44a){const _0x25bfe8=a60_0x121a09,_0x23a2bf={'MTeJM':_0x25bfe8(0x16c),'bQQrp':function(_0x1d8937,_0x48a400){return _0x1d8937(_0x48a400);},'VvHjS':_0x25bfe8(0xfe),'VHjKr':function(_0x2fa75b,_0x30c3d4,_0x34d25f,_0x5d2f54,_0x4808d9){return _0x2fa75b(_0x30c3d4,_0x34d25f,_0x5d2f54,_0x4808d9);},'fMzKg':_0x25bfe8(0x16b),'nuZdQ':function(_0x508e8c,_0x47f443){return _0x508e8c(_0x47f443);},'yTTix':'./vanilla-js/command'},_0x1829fc=process[_0x25bfe8(0x10c)][_0x25bfe8(0x15d)](0x2),_0x1e4e21=new BrowserStackSetup(_0x35c44a[_0x25bfe8(0x10c)],_0x23a2bf['MTeJM']),_0xdfb9ad=_0x1e4e21?_0x1e4e21[_0x25bfe8(0x181)]:null;if(_0x23a2bf[_0x25bfe8(0x151)](isNewman,_0xdfb9ad))return _0x1e4e21['framework']=_0x23a2bf['VvHjS'],global[_0x25bfe8(0x145)]=_0x23a2bf['VvHjS'],_0x23a2bf['VHjKr'](captureError,_0x23a2bf[_0x25bfe8(0x151)](require,_0x23a2bf[_0x25bfe8(0x15f)]),_0x35c44a[_0x25bfe8(0x10c)],_0x1e4e21,_0x1829fc);return _0x23a2bf['VHjKr'](captureError,_0x23a2bf[_0x25bfe8(0x18f)](require,_0x23a2bf['yTTix']),_0x35c44a[_0x25bfe8(0x10c)],_0x1e4e21,_0x1829fc);})[a60_0x121a09(0x155)](a60_0x121a09(0x1a8),Constants[a60_0x121a09(0x18b)][a60_0x121a09(0x102)],function(_0x135166){const _0x5b271a=a60_0x121a09,_0x23c7c7={'lylbH':'nightwatch','AlWbW':function(_0x35e877,_0x1e4288,_0x5f4cb5,_0x488d16,_0x44534e){return _0x35e877(_0x1e4288,_0x5f4cb5,_0x488d16,_0x44534e);},'tIVbF':function(_0x38e99a,_0x1f42c9){return _0x38e99a(_0x1f42c9);},'LTmVU':'./nightwatch/command'},_0x8de792=process[_0x5b271a(0x10c)][_0x5b271a(0x15d)](0x2),_0xeb2adc=new BrowserStackSetup(_0x135166[_0x5b271a(0x10c)],_0x23c7c7[_0x5b271a(0x18a)]);return _0x23c7c7[_0x5b271a(0x132)](captureError,_0x23c7c7[_0x5b271a(0x15e)](require,_0x23c7c7[_0x5b271a(0x10d)]),_0x135166[_0x5b271a(0x10c)],_0xeb2adc,_0x8de792);})[a60_0x121a09(0x155)](a60_0x121a09(0x11b),Constants[a60_0x121a09(0x17d)][a60_0x121a09(0x102)],function(_0x1a7788){const _0x4ca2e1=a60_0x121a09,_0x4c4e28={'kNWFy':_0x4ca2e1(0x11b),'eItKo':function(_0x3014ce,_0x314cfb,_0x3934fc,_0x184214,_0x1e0336){return _0x3014ce(_0x314cfb,_0x3934fc,_0x184214,_0x1e0336);},'sIDhb':function(_0x3489ef,_0xab45d9){return _0x3489ef(_0xab45d9);},'TgYFZ':_0x4ca2e1(0x164)},_0x4f936c=process[_0x4ca2e1(0x10c)]['slice'](0x2),_0x573494=new BrowserStackSetup(_0x1a7788[_0x4ca2e1(0x10c)],_0x4c4e28['kNWFy']);return _0x4c4e28['eItKo'](captureError,_0x4c4e28[_0x4ca2e1(0x12f)](require,_0x4c4e28[_0x4ca2e1(0xf8)]),_0x1a7788[_0x4ca2e1(0x10c)],_0x573494,_0x4f936c);})[a60_0x121a09(0x155)](a60_0x121a09(0x113),Constants[a60_0x121a09(0x189)]['INFO'],function(_0x559ea3){const _0x1f4356=a60_0x121a09,_0x23f281={'eheta':function(_0x5559c6,_0x4e92cf,_0x3bd2fc){return _0x5559c6(_0x4e92cf,_0x3bd2fc);},'xGVhl':function(_0x19f9af,_0x26c698){return _0x19f9af(_0x26c698);},'jTLkE':_0x1f4356(0x121)},_0x4db977=process[_0x1f4356(0x10c)][_0x1f4356(0x15d)](0x2);return _0x23f281[_0x1f4356(0x117)](captureError,_0x23f281[_0x1f4356(0x187)](require,_0x23f281[_0x1f4356(0x147)]),_0x559ea3);})[a60_0x121a09(0x155)](a60_0x121a09(0x1a0),Constants[a60_0x121a09(0x118)][a60_0x121a09(0x102)],function(_0x24b15d){const _0x47165c=a60_0x121a09,_0x246c43={'ObWIf':function(_0x484980,_0x3bc92f){return _0x484980(_0x3bc92f);}};return _0x246c43[_0x47165c(0xf9)](runIntegrations,_0x24b15d);})[a60_0x121a09(0x155)](a60_0x121a09(0xfa),Constants[a60_0x121a09(0x193)][a60_0x121a09(0x102)],function(_0x210d76){const _0x59e8e8=a60_0x121a09,_0x551d80={'EDwdS':_0x59e8e8(0x156),'hvRac':function(_0x2c46f7,_0x58c47b){return _0x2c46f7&&_0x58c47b;},'rzTvL':function(_0x14c6aa,_0xd768ba,_0x339981,_0x53e997,_0xe6c4d6,_0x583337){return _0x14c6aa(_0xd768ba,_0x339981,_0x53e997,_0xe6c4d6,_0x583337);},'zachy':function(_0x52a6b7,_0x2c379a){return _0x52a6b7(_0x2c379a);},'LqzRi':_0x59e8e8(0x104)},_0x3fb15f=process[_0x59e8e8(0x10c)]['slice'](0x2);helper[_0x59e8e8(0x112)](process['argv'])&&(process['env'][_0x59e8e8(0x13e)]=helper[_0x59e8e8(0x112)](process[_0x59e8e8(0x10c)]));helper[_0x59e8e8(0x158)](),helper[_0x59e8e8(0x122)]();const _0x31be55=new BrowserStackSetup(_0x210d76['argv'],FRAMEWORKS[_0x59e8e8(0x193)]);try{if(!_0x31be55['config']||!_0x31be55[_0x59e8e8(0x181)][_0x59e8e8(0x11a)]){const _0x243056=_0x551d80[_0x59e8e8(0x141)],_0x336143=process['env']['DEBUG']||'',_0x41361a=_0x336143[_0x59e8e8(0x137)](',')[_0x59e8e8(0x143)](_0xa9c26e=>_0xa9c26e[_0x59e8e8(0x131)]())['filter'](Boolean),_0x1473d5=_0x41361a[_0x59e8e8(0x11d)](_0x5f57b2=>_0x5f57b2===_0x59e8e8(0x1ac)||_0x5f57b2==='-pw:*'||_0x5f57b2==='-*'),_0xe0293e=_0x41361a[_0x59e8e8(0x11d)](_0x3cf70c=>_0x3cf70c===_0x243056||_0x3cf70c===_0x59e8e8(0x11c)||_0x3cf70c==='*');if(_0x551d80['hvRac'](!_0x1473d5,!_0xe0293e)){const _0x65b28b=helper[_0x59e8e8(0x13f)]();_0x65b28b&&(process[_0x59e8e8(0x160)][_0x59e8e8(0x17e)]=_0x336143?_0x336143+','+_0x243056:_0x243056,!process[_0x59e8e8(0x160)][_0x59e8e8(0x1a7)]&&(process['env'][_0x59e8e8(0x1a7)]=_0x65b28b));}}}catch(_0x1c32ad){logger[_0x59e8e8(0x188)](_0x59e8e8(0x170)+util[_0x59e8e8(0x11f)](_0x1c32ad));}return _0x551d80[_0x59e8e8(0x173)](captureError,_0x551d80[_0x59e8e8(0x183)](require,_0x551d80['LqzRi']),_0x210d76[_0x59e8e8(0x10c)],_0x31be55,_0x3fb15f,!![]);})['command'](a60_0x121a09(0x1a1),Constants['TESTCAFE'][a60_0x121a09(0x102)],function(_0x19af1b){const _0x36afb1=a60_0x121a09,_0x97fdf5={'YnnEP':_0x36afb1(0x1a1),'qRPWI':function(_0x2dbd88,_0x215b79,_0x544501,_0x1a8db7,_0x1ca297,_0x1b4970){return _0x2dbd88(_0x215b79,_0x544501,_0x1a8db7,_0x1ca297,_0x1b4970);},'EUYtf':function(_0x2e2b4c,_0x1a2a25){return _0x2e2b4c(_0x1a2a25);},'xGAMz':_0x36afb1(0x10f)},_0x1d8765=process['argv'][_0x36afb1(0x15d)](0x2),_0x337f18=new BrowserStackSetup(_0x19af1b[_0x36afb1(0x10c)],_0x97fdf5[_0x36afb1(0x17b)]);return _0x97fdf5[_0x36afb1(0x12a)](captureError,_0x97fdf5['EUYtf'](require,_0x97fdf5[_0x36afb1(0x12c)]),_0x19af1b[_0x36afb1(0x10c)],_0x337f18,_0x1d8765,!![]);})[a60_0x121a09(0x155)](a60_0x121a09(0x180),a60_0x121a09(0x18c),function(_0x3259ac){const _0x3b7e14=a60_0x121a09,_0x55bdc9={};_0x55bdc9[_0x3b7e14(0x1aa)]='help',_0x55bdc9[_0x3b7e14(0xfb)]=_0x3b7e14(0x195),_0x55bdc9[_0x3b7e14(0x157)]=_0x3b7e14(0x150);const _0x3f7a66=_0x55bdc9;return _0x3259ac[_0x3b7e14(0xff)](![])['option'](_0x3f7a66['nkcPY'],{'alias':'h','type':_0x3f7a66[_0x3b7e14(0xfb)],'describe':_0x3f7a66[_0x3b7e14(0x157)]})[_0x3b7e14(0x111)](![])[_0x3b7e14(0x140)](![]);},function(_0x4fd557){const _0x311fff=a60_0x121a09,_0x1d6376={'QkwjS':function(_0x5744cc,_0x215d58,_0x209e70){return _0x5744cc(_0x215d58,_0x209e70);},'tVEBl':function(_0x62bbf6,_0x3ce30d){return _0x62bbf6(_0x3ce30d);},'pEPEl':'./load/index'},_0x709bb0={};return _0x709bb0[_0x311fff(0x10c)]=_0x4fd557,_0x1d6376[_0x311fff(0x19c)](captureError,_0x1d6376[_0x311fff(0x100)](require,_0x1d6376[_0x311fff(0x105)]),_0x709bb0);})[a60_0x121a09(0x155)](a60_0x121a09(0xfe),Constants['NEWMAN'][a60_0x121a09(0x102)],function(_0x5eccb4){const _0x11b872=a60_0x121a09,_0x4fd541={'kwiMy':_0x11b872(0xfe),'vIwdx':function(_0x2e6efb,_0x43c6d1,_0x50e778,_0x597ced,_0x2f10b9){return _0x2e6efb(_0x43c6d1,_0x50e778,_0x597ced,_0x2f10b9);},'hsFpG':function(_0x4a3f9b,_0x523da9){return _0x4a3f9b(_0x523da9);},'RUXGD':_0x11b872(0x16b)},_0x532ac9=process[_0x11b872(0x10c)]['slice'](0x2);helper['setTestObservabilityDisable'](),helper[_0x11b872(0x122)](),_0x5eccb4['strict'](![]);const _0x337510=new BrowserStackSetup(_0x5eccb4[_0x11b872(0x10c)],_0x4fd541['kwiMy']);return _0x4fd541[_0x11b872(0x144)](captureError,_0x4fd541['hsFpG'](require,_0x4fd541[_0x11b872(0x1b0)]),_0x5eccb4[_0x11b872(0x10c)],_0x337510,_0x532ac9);})['demandCommand'](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a60_0x121a09(0x1ad)](null)['argv'];!helper[a60_0x121a09(0x177)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x121a09(0x113)&&console[a60_0x121a09(0x174)](a60_0x121a09(0x1a5));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a61_0x1f0a9a=a61_0x191e;(function(_0x3a4393,_0x31533e){const _0x38e820=a61_0x191e,_0x15adc7=_0x3a4393();while(!![]){try{const _0x3a9da2=parseInt(_0x38e820(0x1b6))/0x1+-parseInt(_0x38e820(0x183))/0x2+parseInt(_0x38e820(0x189))/0x3+-parseInt(_0x38e820(0x18e))/0x4*(parseInt(_0x38e820(0x1bb))/0x5)+-parseInt(_0x38e820(0x1bc))/0x6*(parseInt(_0x38e820(0x1a7))/0x7)+-parseInt(_0x38e820(0x1a2))/0x8+parseInt(_0x38e820(0x1c3))/0x9*(parseInt(_0x38e820(0x1a9))/0xa);if(_0x3a9da2===_0x31533e)break;else _0x15adc7['push'](_0x15adc7['shift']());}catch(_0x3330d0){_0x15adc7['push'](_0x15adc7['shift']());}}}(a61_0x2aec,0xe0305));const fs=require('fs'),helper=require(a61_0x1f0a9a(0x196)),utilities=require(a61_0x1f0a9a(0x187)),yaml=require('js-yaml'),yargs=require('yargs'),logger=require('../helpers/logger')[a61_0x1f0a9a(0x1c0)],configFileTemplate=__dirname+a61_0x1f0a9a(0x1c6),configFileTemplatePW=__dirname+a61_0x1f0a9a(0x18d),configFile=process[a61_0x1f0a9a(0x1a8)]()+'/browserstack.yml',packageFile=process[a61_0x1f0a9a(0x1a8)]()+'/package.json',frameworks=['mocha',a61_0x1f0a9a(0x19c),a61_0x1f0a9a(0x1b1),a61_0x1f0a9a(0x1ba),a61_0x1f0a9a(0x1a3),a61_0x1f0a9a(0x182),a61_0x1f0a9a(0x181)];let config;function a61_0x2aec(){const _0x28b75b=['\x20&&\x20npm\x20update\x20browserstack-node-sdk','split','jrsTf','splice','stringify','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','GSMeE','cucumber-js','YOUR_USERNAME','utf8','push','readFileSync','712989jfApZl','argv','wRHzZ','error','node','13225XIMItt','268290VLtsXP','ZTZVy','TwHaO','info','winstonLogger','entries','xGYzo','207CgAnmt','key','scripts','/../../browserstack.yml.sample','vFGuH','source','playwright','codeceptjs','2242700mjplPx','postinstall','isUndefined','fireFunnelTestEvent','../helpers/utilities','-browserstack','3094080AhQNdM','vMTsS','sbYDs','oINVx','/../../browserstack.pw.yml.sample','300LQwttA','Adding\x20new\x20script(s)\x20in\x20package.json...','debug','node-setup','npm\x20update\x20browserstack-node-sdk','SDKSetup','Setup\x20completed','AiwLd','../helpers/helper','LcafW','indexOf','YbOZO','includes','replace','jest','length','username','browserstack-node-sdk','ZLbPg','XHmhR','12215048nivprm','nightwatch','writeFileSync','pnLRk','join','91KJOxWK','cwd','1131230UszYOH'];a61_0x2aec=function(){return _0x28b75b;};return a61_0x2aec();}logger[a61_0x1f0a9a(0x1bf)]('Creating\x20configuration\x20file...'),createConfigurationFile(yargs[a61_0x1f0a9a(0x1b7)][a61_0x1f0a9a(0x19e)],yargs[a61_0x1f0a9a(0x1b7)][a61_0x1f0a9a(0x1c4)],yargs[a61_0x1f0a9a(0x1b7)][a61_0x1f0a9a(0x181)]);function a61_0x191e(_0x3c09af,_0xbd9773){const _0x2aec08=a61_0x2aec();return a61_0x191e=function(_0x191eb9,_0x57ee11){_0x191eb9=_0x191eb9-0x180;let _0x109082=_0x2aec08[_0x191eb9];return _0x109082;},a61_0x191e(_0x3c09af,_0xbd9773);}try{sdkSetup();}catch(a61_0x3458dc){logger['debug'](a61_0x1f0a9a(0x1af)+a61_0x3458dc);}addScriptInPackageJson();function createConfigurationFile(_0x1ad3cc,_0x59882f,_0x3f8987=![]){const _0x1f6b7a=a61_0x1f0a9a,_0x3e7d07={};_0x3e7d07['sbYDs']=_0x1f6b7a(0x1b3),_0x3e7d07[_0x1f6b7a(0x1b8)]=_0x1f6b7a(0x1b2),_0x3e7d07[_0x1f6b7a(0x1c2)]='YOUR_ACCESS_KEY';const _0xd43e7e=_0x3e7d07;try{let _0x36369f=fs[_0x1f6b7a(0x1b5)](_0x3f8987?configFileTemplatePW:configFileTemplate,_0xd43e7e[_0x1f6b7a(0x18b)]);_0x1ad3cc&&(_0x36369f=_0x36369f['replace'](_0xd43e7e['wRHzZ'],_0x1ad3cc)),_0x59882f&&(_0x36369f=_0x36369f[_0x1f6b7a(0x19b)](_0xd43e7e[_0x1f6b7a(0x1c2)],_0x59882f)),config=yaml['load'](_0x36369f),fs[_0x1f6b7a(0x1a4)](configFile,_0x36369f,_0x3af204=>{const _0x101c8c=_0x1f6b7a;_0x3af204&&logger[_0x101c8c(0x1b9)](_0x3af204);});}catch(_0x2c8604){logger[_0x1f6b7a(0x1b9)](_0x2c8604);}}function addPostInstallScript(_0x5798e8,_0x1a3541){const _0x116399=a61_0x1f0a9a,_0x405cc6={};_0x405cc6['pnLRk']=_0x116399(0x184),_0x405cc6['XHmhR']=_0x116399(0x192),_0x405cc6[_0x116399(0x1bd)]=_0x116399(0x1aa);const _0x3e3a23=_0x405cc6;let _0x3686aa=_0x5798e8[_0x3e3a23[_0x116399(0x1a5)]];if(_0x3686aa&&_0x3686aa[_0x116399(0x19a)](_0x3e3a23['XHmhR']))return;!_0x3686aa?_0x3686aa=_0x3e3a23[_0x116399(0x1a1)]:_0x3686aa+=_0x3e3a23['ZTZVy'],_0x1a3541[_0x116399(0x1b4)]([_0x3e3a23[_0x116399(0x1a5)],_0x3686aa]);}function addScriptInPackageJson(){const _0x3a76dd=a61_0x1f0a9a,_0x1f6a14={'jrsTf':'utf8','vFGuH':function(_0x2ca8fe,_0x50dcd7){return _0x2ca8fe<_0x50dcd7;},'YbOZO':function(_0x19d34a,_0x3cde9e,_0x2d8db8){return _0x19d34a(_0x3cde9e,_0x2d8db8);},'LcafW':function(_0x1739dc,_0x41b2cc){return _0x1739dc<_0x41b2cc;},'lSiNA':function(_0x119b1b,_0x1e8411){return _0x119b1b!==_0x1e8411;},'TwHaO':_0x3a76dd(0x18f)},_0x52dfd6=JSON['parse'](fs[_0x3a76dd(0x1b5)](packageFile,_0x1f6a14[_0x3a76dd(0x1ac)])),_0x1f885a=[];for(let _0x11c43d=0x0;_0x1f6a14[_0x3a76dd(0x1c7)](_0x11c43d,frameworks[_0x3a76dd(0x19d)]);_0x11c43d+=0x1){const _0x20cc66=_0x1f6a14[_0x3a76dd(0x199)](findScriptsWithFramework,_0x52dfd6[_0x3a76dd(0x1c5)],frameworks[_0x11c43d]);for(let _0x102887=0x0;_0x1f6a14['vFGuH'](_0x102887,_0x20cc66['length']);_0x102887+=0x1){_0x1f885a[_0x3a76dd(0x1b4)](_0x1f6a14[_0x3a76dd(0x199)](getUpdatedCommand,_0x52dfd6[_0x3a76dd(0x1c5)],_0x20cc66[_0x102887]));}_0x1f6a14[_0x3a76dd(0x199)](addPostInstallScript,_0x52dfd6[_0x3a76dd(0x1c5)],_0x1f885a);}const _0x438711={..._0x52dfd6[_0x3a76dd(0x1c5)]},_0x55ebc1=_0x438711;for(let _0xf93bb7=0x0;_0x1f6a14[_0x3a76dd(0x197)](_0xf93bb7,_0x1f885a['length']);_0xf93bb7+=0x1){_0x55ebc1[_0x1f885a[_0xf93bb7][0x0]]=_0x1f885a[_0xf93bb7][0x1];}_0x1f6a14['lSiNA'](JSON[_0x3a76dd(0x1ae)](_0x52dfd6[_0x3a76dd(0x1c5)]),JSON[_0x3a76dd(0x1ae)](_0x55ebc1))&&(logger[_0x3a76dd(0x1bf)](_0x1f6a14[_0x3a76dd(0x1be)]),_0x52dfd6[_0x3a76dd(0x1c5)]=_0x55ebc1,fs[_0x3a76dd(0x1a4)](packageFile,JSON[_0x3a76dd(0x1ae)](_0x52dfd6,null,0x2),_0x558a9d=>{const _0x55e4ee=_0x3a76dd;_0x558a9d&&logger[_0x55e4ee(0x1b9)](_0x558a9d);}));};function findScriptsWithFramework(_0x1af057,_0x11333c){const _0x101b3c=a61_0x1f0a9a,_0x19b101={};_0x19b101['oINVx']=function(_0x379e64,_0x3c24ba){return _0x379e64<_0x3c24ba;},_0x19b101[_0x101b3c(0x1a0)]=_0x101b3c(0x19f);const _0x220be8=_0x19b101,_0x5bd8e6=[],_0x14d94d=Object[_0x101b3c(0x1c1)](_0x1af057);for(let _0x26df74=0x0;_0x220be8[_0x101b3c(0x18c)](_0x26df74,_0x14d94d[_0x101b3c(0x19d)]);_0x26df74+=0x1){_0x14d94d[_0x26df74][0x1][_0x101b3c(0x19a)](_0x11333c)&&!_0x14d94d[_0x26df74][0x1]['includes'](_0x220be8['ZLbPg'])&&_0x5bd8e6[_0x101b3c(0x1b4)](_0x14d94d[_0x26df74][0x0]);}return _0x5bd8e6;}function getUpdatedCommand(_0x3d25e0,_0x4b8326){const _0x321053=a61_0x1f0a9a,_0x282d73={};_0x282d73['Qsjdx']=function(_0x1f538e,_0x5b5f8a){return _0x1f538e!==_0x5b5f8a;},_0x282d73[_0x321053(0x1b0)]=_0x321053(0x19f),_0x282d73[_0x321053(0x195)]=function(_0x52f30e,_0x14e2e9){return _0x52f30e===_0x14e2e9;};const _0x4097e1=_0x282d73,_0x5d4b42=_0x4b8326+_0x321053(0x188),_0x1e18ff=_0x3d25e0[_0x4b8326],_0x28ceb8=_0x1e18ff[_0x321053(0x1ab)]('\x20');for(const _0x17000f of frameworks){if(_0x4097e1['Qsjdx'](_0x28ceb8[_0x321053(0x198)](_0x17000f),-0x1)){_0x28ceb8[_0x321053(0x1ad)](_0x28ceb8[_0x321053(0x198)](_0x17000f),0x0,_0x4097e1[_0x321053(0x1b0)]);break;}}let _0x3537dd=_0x28ceb8[_0x321053(0x1a6)]('\x20');return _0x4097e1[_0x321053(0x195)](_0x3537dd,_0x1e18ff)&&(_0x3537dd='browserstack-node-sdk\x20'+_0x1e18ff),[_0x5d4b42,_0x3537dd];}function sdkSetup(){const _0x4ee5f5=a61_0x1f0a9a,_0x4efd16={};_0x4efd16[_0x4ee5f5(0x18a)]=_0x4ee5f5(0x191),_0x4efd16['rhllX']=_0x4ee5f5(0x193);const _0x3a324a=_0x4efd16;if(helper[_0x4ee5f5(0x185)](config))return;config[_0x4ee5f5(0x180)]=_0x3a324a[_0x4ee5f5(0x18a)];try{utilities[_0x4ee5f5(0x186)](_0x3a324a['rhllX'],{},config,'');}catch(_0x1d1250){logger[_0x4ee5f5(0x190)](_0x4ee5f5(0x1af)+_0x1d1250);}}logger[a61_0x1f0a9a(0x1bf)](a61_0x1f0a9a(0x194));
|