browserstack-node-sdk 1.42.6 → 1.42.8
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/cucumber-sessionDetails.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/playwright-patcher.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a60_0x2eb2(){const _0x24ccd8=['Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file\x20%s','checkAndUpdateCli','VLWoV','test','.sock','DGgPP','OqQeS','close','../../helpers/performance/constants','end','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request\x20','shouldSkipSessionStatus','runShellCommand','Cxflr','testContextOptions','RvGbL','IPUED','getSdkVersion','KqmjP','9VnRhqk','isDevelopmentEnv','getCLIParamsForDevEnv','CLIUtils','.browserstack','BROWSERSTACK_CLI_ENV','get','QjRYB','url','BJByK','BROWSERSTACK_BINARY_URL','gJvEK','isFile','SHELL_EXECUTE_ERROR','path','EQdDM','JMEAk','Failed\x20to\x20delete\x20zip\x20file:\x20','getCurrentInstanceName','join','info','getExistingCliPath','ZQeeW','ojsmf','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','CaetP','skipSessionName','./framework/constants/testFrameworkConstants.js','kuIfu','DeSQM','../../helpers/helper','NQVkg','hZeBG','OvMRo','parse','AdJbU','THUgx','getHookRegistryKey','getAutomationFrameworkDetail','bNtlN','rOipm','Development\x20Cli\x20Path:\x20',',\x20automationFramework=','653451qPzFeO','stringify','jzHVj','SkNRQ','entry','unix:/tmp/sdk-platform-','data','Resolved\x20binary\x20path:\x20','homedir','./instances/testFrameworkInstance.js','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','setFrameworkDetail','./state/testFrameworkState.js','Current\x20CLI\x20Path\x20Found:\x20','format','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','MoMLc','existsSync','bNWui','env','shouldSkipSessionName','downloaded_file.zip','0755','LZtpT','216012TZATfq','split','reduce','version','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','HBkEg','Folder\x20','SDK_CLI_CHECK_UPDATE','NFDRW','exports','arch','0|3|4|1|2','basename','filePath','ZtOei','fIRmN','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','development','trim','platform','Folder\x20does\x20not\x20exist:\x20','yUypI','xDWHe','chmod','lazyEntries','mzsri','cli_version','tmpdir','openReadStream','../../../package.json','huons','startsWith','../utils/constants','automationFrameworkDetail','./state/automationFrameworkState.js','binary-','downloadLatestBinary','ABJyD','statSync','xHGhL','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','requestToUpdateCLI','open','error','getTestFrameworkDetail','fileName','testFrameworkDetail','5479810escczo','readEntry','KhxMr','alOks','SDK_CLI_DOWNLOAD','cwd','readdirSync','../../helpers/performance/performance-tester.js','Setting\x20required\x20permissions\x20to\x20','../../helpers/utilities','createWriteStream','bqEoD','SDK_CLI_BIN_PATH','crNYm','yHXOQ','ujIrH','14765PvfmVp','filter','hKjUw','QGdQb','pipe','getSdkLanguage','warn','rPAXA','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','setupCliPath','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','downloadFileStream','UXgJq','292PiCOkj','../../helpers/test-observability/utils.js','\x20already\x20exists','MYNSt','mtime','isDirectory','ccvbV','map','\x20version','../../helpers/classLogger.js','GET','yauzl','480652ElJQsB','getCliDir','lMAhM','node','worker_threads','rJrXi','33173ysvdNy','168066ZbzIvk','qoOpj','Jqdxj','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','MLThn','Failed\x20to\x20download\x20binary,\x20Exception:\x20','response\x20','start','listen','length','648xNpFpo','debug','UFxnF','cli','follow-redirects'];a60_0x2eb2=function(){return _0x24ccd8;};return a60_0x2eb2();}const a60_0x132a5f=a60_0x34d6;function a60_0x34d6(_0x1fffe5,_0x25e3da){const _0x2eb297=a60_0x2eb2();return a60_0x34d6=function(_0x34d60c,_0x959e4c){_0x34d60c=_0x34d60c-0x121;let _0x432c6a=_0x2eb297[_0x34d60c];return _0x432c6a;},a60_0x34d6(_0x1fffe5,_0x25e3da);}(function(_0x2828a7,_0x46884a){const _0x45e2ef=a60_0x34d6,_0x2c9317=_0x2828a7();while(!![]){try{const _0x58cced=parseInt(_0x45e2ef(0x1c7))/0x1+parseInt(_0x45e2ef(0x1c0))/0x2+-parseInt(_0x45e2ef(0x150))/0x3+parseInt(_0x45e2ef(0x1b4))/0x4*(parseInt(_0x45e2ef(0x1a7))/0x5)+-parseInt(_0x45e2ef(0x168))/0x6+-parseInt(_0x45e2ef(0x1c6))/0x7*(-parseInt(_0x45e2ef(0x1d1))/0x8)+parseInt(_0x45e2ef(0x125))/0x9*(-parseInt(_0x45e2ef(0x197))/0xa);if(_0x58cced===_0x46884a)break;else _0x2c9317['push'](_0x2c9317['shift']());}catch(_0x2891ca){_0x2c9317['push'](_0x2c9317['shift']());}}}(a60_0x2eb2,0x324c4));const fs=require('fs'),os=require('os'),url=require(a60_0x132a5f(0x12d)),path=require(a60_0x132a5f(0x133)),{exec}=require('child_process'),{https}=require(a60_0x132a5f(0x1d5)),yauzl=require(a60_0x132a5f(0x1bf)),util=require('util'),{getFrameworkVersion}=require(a60_0x132a5f(0x1b5)),{threadId}=require(a60_0x132a5f(0x1c4)),PerformanceTester=require(a60_0x132a5f(0x19e)),{EVENTS:PerformanceEvents}=require(a60_0x132a5f(0x1de)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a60_0x132a5f(0x1a0)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a60_0x132a5f(0x143)),{BROWSERSTACK_API_URL,UPDATED_CLI_ENDPOINT}=require(a60_0x132a5f(0x188)),{createClassLogger}=require(a60_0x132a5f(0x1bd)),TestFrameworkInstance=require(a60_0x132a5f(0x159)),HookState=require('./state/hookState.js'),TestFrameworkState=require(a60_0x132a5f(0x15c)),AutomationFrameworkState=require(a60_0x132a5f(0x18a)),TestFrameworkConstants=require(a60_0x132a5f(0x140)),logger=createClassLogger(a60_0x132a5f(0x128));class CLIUtils{[a60_0x132a5f(0x189)]={};[a60_0x132a5f(0x196)]={};static[a60_0x132a5f(0x126)](){const _0x12cafc=a60_0x132a5f,_0x117ef3={};_0x117ef3['rOipm']=function(_0x227310,_0x310fe1){return _0x227310===_0x310fe1;},_0x117ef3[_0x12cafc(0x134)]=_0x12cafc(0x179);const _0x18f301=_0x117ef3;return _0x18f301[_0x12cafc(0x14d)](process[_0x12cafc(0x163)]['BROWSERSTACK_CLI_ENV'],_0x18f301[_0x12cafc(0x134)]);}static[a60_0x132a5f(0x127)](){const _0x1c5ba1=a60_0x132a5f,_0x13c865={};return _0x13c865['id']=process[_0x1c5ba1(0x163)][_0x1c5ba1(0x12a)],_0x13c865[_0x1c5ba1(0x1cf)]=_0x1c5ba1(0x155)+process[_0x1c5ba1(0x163)][_0x1c5ba1(0x12a)]+_0x1c5ba1(0x1da),_0x13c865;}static[a60_0x132a5f(0x123)](){const _0x156a4d=a60_0x132a5f,_0x88822f={'xhxkU':function(_0x4c2f58,_0x370f2a){return _0x4c2f58(_0x370f2a);},'fIRmN':_0x156a4d(0x185)};return _0x88822f['xhxkU'](require,_0x88822f[_0x156a4d(0x177)])[_0x156a4d(0x16b)];}static[a60_0x132a5f(0x1ac)](){const _0x51403e=a60_0x132a5f,_0x21149c={};_0x21149c[_0x51403e(0x17e)]=_0x51403e(0x1c3);const _0x497f01=_0x21149c;return _0x497f01[_0x51403e(0x17e)];}static async[a60_0x132a5f(0x1b0)](_0x5d9559){const _0x2bcabb=a60_0x132a5f,_0x27a510={'NFDRW':'Configuring\x20Cli\x20path.','kuIfu':function(_0x4cc5ee,_0x51093a){return _0x4cc5ee(_0x51093a);},'KqmjP':_0x2bcabb(0x1b1)};logger[_0x2bcabb(0x1d2)](_0x27a510[_0x2bcabb(0x170)]);const _0x1c71f4=process['env'][_0x2bcabb(0x1a3)];if(!_0x27a510['kuIfu'](isNullOrEmpty,_0x1c71f4))return logger[_0x2bcabb(0x1d2)](_0x2bcabb(0x14e)+_0x1c71f4),_0x1c71f4;try{const _0x537b1c=this[_0x2bcabb(0x1c1)]();if(_0x27a510[_0x2bcabb(0x141)](isNullOrEmpty,_0x537b1c))throw new Error(_0x27a510[_0x2bcabb(0x124)]);const _0x2bff04=this[_0x2bcabb(0x13a)](_0x537b1c),_0x3cb877=await this[_0x2bcabb(0x1d7)](_0x2bff04,_0x537b1c,_0x5d9559);return logger['debug'](_0x2bcabb(0x157)+_0x3cb877),_0x3cb877;}catch(_0xb431c1){logger['debug'](_0x2bcabb(0x16c)+util[_0x2bcabb(0x15e)](_0xb431c1));}return null;}static async['checkAndUpdateCli'](_0x299f58,_0xa94ed5,_0x18b15e){const _0x1a8f60=a60_0x132a5f,_0x536b34={'mzsri':function(_0x25cec3){return _0x25cec3();},'UgRkC':function(_0x22c7fc,_0x4fd2d6){return _0x22c7fc(_0x4fd2d6);},'ojsmf':function(_0x9e5fa7,_0x77d986,_0x376c79){return _0x9e5fa7(_0x77d986,_0x376c79);},'IRjyk':_0x1a8f60(0x156),'hZeBG':_0x1a8f60(0x12d),'MLThn':function(_0x4c54cc,_0x4bc3b3,_0x2aee9f){return _0x4c54cc(_0x4bc3b3,_0x2aee9f);}};PerformanceTester[_0x1a8f60(0x1ce)](PerformanceEvents[_0x1a8f60(0x16f)]),logger[_0x1a8f60(0x139)](_0x1a8f60(0x15d)+_0x299f58);const _0x4334b3=_0x536b34[_0x1a8f60(0x181)](getHostInfo),_0x1a2517={'sdk_version':CLIUtils[_0x1a8f60(0x123)](),'os':_0x4334b3[_0x1a8f60(0x17b)],'os_arch':_0x4334b3[_0x1a8f60(0x172)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x536b34['UgRkC'](isNullOrEmpty,_0x299f58)&&(_0x1a2517[_0x1a8f60(0x182)]=await this[_0x1a8f60(0x1e2)](_0x299f58+_0x1a8f60(0x1bc)));const _0x258ded=await this[_0x1a8f60(0x191)](_0x1a2517,_0x18b15e);process[_0x1a8f60(0x163)]['BROWSERSTACK_BINARY_URL']&&(logger[_0x1a8f60(0x139)](_0x1a8f60(0x15f)+process[_0x1a8f60(0x163)][_0x1a8f60(0x12f)]),_0x258ded[_0x1a8f60(0x156)][_0x1a8f60(0x12d)]=process['env'][_0x1a8f60(0x12f)]);if(_0x536b34[_0x1a8f60(0x13c)](nestedKeyValue,_0x258ded,[_0x536b34['IRjyk'],_0x536b34[_0x1a8f60(0x145)]])){logger[_0x1a8f60(0x1d2)](_0x1a8f60(0x15a)+_0x1a2517[_0x1a8f60(0x182)]);const _0x4c728e=await this[_0x1a8f60(0x18c)](_0x536b34[_0x1a8f60(0x1cb)](nestedKeyValue,_0x258ded,[_0x536b34['IRjyk'],_0x536b34[_0x1a8f60(0x145)]]),_0xa94ed5);return PerformanceTester[_0x1a8f60(0x1df)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x4c728e;}return PerformanceTester[_0x1a8f60(0x1df)](PerformanceEvents[_0x1a8f60(0x16f)]),_0x299f58;}static['getCliDir'](){const _0xea0543=a60_0x132a5f,_0x456ed1={'ujIrH':function(_0x86eadc,_0x5d4baf){return _0x86eadc(_0x5d4baf);},'ccvbV':_0xea0543(0x1b1),'QjRYB':_0xea0543(0x1d4),'ljwgD':function(_0x46ddca,_0x26f082){return _0x46ddca(_0x26f082);}},_0x39d094=this['getWritableDir']();try{if(_0x456ed1[_0xea0543(0x1a6)](isNullOrEmpty,_0x39d094))throw new Error(_0x456ed1[_0xea0543(0x1ba)]);const _0x469331=path[_0xea0543(0x138)](_0x39d094,_0x456ed1[_0xea0543(0x12c)]);return!fs['existsSync'](_0x469331)&&_0x456ed1['ljwgD'](createDir,_0x469331),_0x469331;}catch(_0x19a3d4){logger[_0xea0543(0x1d2)](_0xea0543(0x13d)+util[_0xea0543(0x15e)](_0x19a3d4));}}static['getWritableDir'](){const _0x274359=a60_0x132a5f,_0x30d9b0={'DGgPP':_0x274359(0x129),'yoKWK':function(_0x3f4602,_0x5338ff){return _0x3f4602(_0x5338ff);},'rJrXi':function(_0x1e72c6,_0x5710df){return _0x1e72c6(_0x5710df);},'RvGbL':function(_0x1790bf,_0x4c021b){return _0x1790bf(_0x4c021b);}},_0x2d607d=[process[_0x274359(0x163)]['BROWSERSTACK_FILES_DIR'],path[_0x274359(0x138)](os[_0x274359(0x158)](),_0x30d9b0[_0x274359(0x1db)]),path[_0x274359(0x138)](os[_0x274359(0x183)](),_0x30d9b0[_0x274359(0x1db)])];for(const _0x4dc7ff of _0x2d607d){if(_0x30d9b0['yoKWK'](isNullOrEmpty,_0x4dc7ff))continue;try{if(fs['existsSync'](_0x4dc7ff)){logger[_0x274359(0x1d2)](_0x274359(0x16e)+_0x4dc7ff+_0x274359(0x1b6));if(!_0x30d9b0[_0x274359(0x1c5)](isModifiable,_0x4dc7ff)){logger['debug']('Setting\x20required\x20permissions\x20to\x20'+_0x4dc7ff);const _0x34b60c=_0x30d9b0[_0x274359(0x121)](setReadWriteExecuteAccess,_0x4dc7ff);if(!_0x30d9b0['yoKWK'](isTrue,_0x34b60c)){logger[_0x274359(0x1ad)](_0x274359(0x1ca)+_0x4dc7ff);continue;}}}else{logger[_0x274359(0x1d2)](_0x274359(0x17c)+_0x4dc7ff),_0x30d9b0[_0x274359(0x121)](createDir,_0x4dc7ff),logger[_0x274359(0x1d2)](_0x274359(0x19f)+_0x4dc7ff);const _0x4930af=_0x30d9b0['yoKWK'](setReadWriteExecuteAccess,_0x4dc7ff);!_0x30d9b0[_0x274359(0x1c5)](isTrue,_0x4930af)&&logger[_0x274359(0x1ad)](_0x274359(0x1ca)+_0x4dc7ff);}return _0x4dc7ff;}catch(_0x1ad458){logger[_0x274359(0x193)](_0x274359(0x178)+util[_0x274359(0x15e)](_0x1ad458));}}return null;}static['getExistingCliPath'](_0xaf23a2){const _0x279e7f=a60_0x132a5f,_0x121ae1={};_0x121ae1['CaetP']=function(_0x5cdf7e,_0x15cf9b){return _0x5cdf7e>_0x15cf9b;};const _0x701cfd=_0x121ae1;try{if(!fs[_0x279e7f(0x161)](_0xaf23a2)||!fs['statSync'](_0xaf23a2)[_0x279e7f(0x1b9)]())return'';const _0x23bc23=fs[_0x279e7f(0x19d)](_0xaf23a2)[_0x279e7f(0x1bb)](_0x1ade8a=>path[_0x279e7f(0x138)](_0xaf23a2,_0x1ade8a))[_0x279e7f(0x1a8)](_0x572d5b=>fs['statSync'](_0x572d5b)[_0x279e7f(0x131)]()&&path[_0x279e7f(0x174)](_0x572d5b)[_0x279e7f(0x187)](_0x279e7f(0x18b)));if(_0x701cfd[_0x279e7f(0x13e)](_0x23bc23[_0x279e7f(0x1d0)],0x0)){const _0x3f9d33=_0x23bc23[_0x279e7f(0x1bb)](_0x19db5a=>({'filePath':_0x19db5a,'mtime':fs[_0x279e7f(0x18e)](_0x19db5a)[_0x279e7f(0x1b8)]}))[_0x279e7f(0x16a)]((_0x49076b,_0x7b5b71)=>{const _0x417ca5=_0x279e7f;if(!_0x49076b||!_0x49076b[_0x417ca5(0x1b8)])return _0x7b5b71;if(_0x701cfd['CaetP'](_0x7b5b71['mtime'],_0x49076b[_0x417ca5(0x1b8)]))return _0x7b5b71;return _0x49076b;},{});return _0x3f9d33?_0x3f9d33[_0x279e7f(0x175)]:'';}return'';}catch(_0x4b717a){return logger[_0x279e7f(0x193)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x279e7f(0x15e)](_0x4b717a)),'';}}static [a60_0x132a5f(0x191)]=async(_0x3754e1,_0x45e158)=>{const _0xd17d60=a60_0x132a5f,_0x198372={'bNtlN':function(_0x3d9798,_0x3d3d26,_0x4cabbc,_0x5aefd4,_0x309b98,_0x4c5447){return _0x3d9798(_0x3d3d26,_0x4cabbc,_0x5aefd4,_0x309b98,_0x4c5447);},'LZtpT':_0xd17d60(0x1be)},_0x4c0a0e={};_0x4c0a0e['qs']=_0x3754e1;const _0x29e35a=await _0x198372[_0xd17d60(0x14c)](nodeRequest,_0x198372[_0xd17d60(0x167)],UPDATED_CLI_ENDPOINT,_0x4c0a0e,_0x45e158,BROWSERSTACK_API_URL);return logger[_0xd17d60(0x1d2)](_0xd17d60(0x1cd)+JSON['stringify'](_0x29e35a)),_0x29e35a;};static[a60_0x132a5f(0x1e2)](_0xdde31e,_0x2bb811=''){const _0x2a4238=a60_0x132a5f,_0x2beca7={'HBkEg':function(_0x1922b7,_0x43f227){return _0x1922b7(_0x43f227);},'huons':_0x2a4238(0x132),'ZtOei':function(_0x495098,_0x167a4f){return _0x495098(_0x167a4f);},'MYNSt':function(_0x18b84d,_0xf9c12f,_0x1069e7,_0x5b2349){return _0x18b84d(_0xf9c12f,_0x1069e7,_0x5b2349);},'EhLHU':_0x2a4238(0x193)};return new Promise((_0x4108b6,_0x2df745)=>{const _0x18db72=_0x2a4238,_0x36d413={'UFxnF':function(_0x373310,_0x562129){const _0x1921e8=a60_0x34d6;return _0x2beca7[_0x1921e8(0x176)](_0x373310,_0x562129);},'lMAhM':_0x2beca7[_0x18db72(0x186)]},_0x1887ab={};_0x1887ab[_0x18db72(0x19c)]=_0x2bb811,_0x1887ab['timeout']=0x1388;const _0x8ca9d=_0x2beca7[_0x18db72(0x1b7)](exec,_0xdde31e,_0x1887ab,(_0x2f2fd3,_0x523075,_0x341c4c)=>{const _0x101d24=_0x18db72;_0x2f2fd3?_0x36d413[_0x101d24(0x1d3)](_0x4108b6,_0x341c4c[_0x101d24(0x17a)]()||_0x36d413[_0x101d24(0x1c2)]):_0x36d413[_0x101d24(0x1d3)](_0x4108b6,_0x523075['trim']());});_0x8ca9d['on'](_0x2beca7['EhLHU'],()=>{const _0x358cee=_0x18db72;_0x2beca7[_0x358cee(0x16d)](_0x4108b6,_0x2beca7['huons']);});});}static ['downloadLatestBinary']=async(_0x1b7a80,_0x1ae48a)=>{const _0x2dd038=a60_0x132a5f,_0x609a9a={'JMEAk':_0x2dd038(0x1d6),'QGdQb':function(_0x19f60b,_0x213abe){return _0x19f60b(_0x213abe);},'Jqdxj':'error','jzLHx':function(_0x459950,_0x16320f){return _0x459950(_0x16320f);},'OqQeS':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response\x20%s','BJByK':_0x2dd038(0x165)};PerformanceTester[_0x2dd038(0x1ce)](PerformanceEvents[_0x2dd038(0x19b)]),logger[_0x2dd038(0x1d2)]('Downloading\x20SDK\x20binary\x20from:\x20'+_0x1b7a80);try{const _0x14b3de=url['parse'](_0x1b7a80),_0x8446e2=path[_0x2dd038(0x138)](_0x1ae48a,_0x609a9a[_0x2dd038(0x12e)]),_0x31e350=fs[_0x2dd038(0x1a1)](_0x8446e2);return new Promise((_0x1de731,_0x3513b3)=>{const _0x23cedc=_0x2dd038,_0x1455c2={'IPUED':_0x609a9a[_0x23cedc(0x1dc)],'AdJbU':function(_0xac0551,_0x3b164b){const _0x59c87a=_0x23cedc;return _0x609a9a[_0x59c87a(0x1aa)](_0xac0551,_0x3b164b);}};https[_0x23cedc(0x12b)](_0x14b3de,function(_0x199143){const _0x3f3d44=_0x23cedc,_0x4776d8={'bNWui':_0x609a9a[_0x3f3d44(0x135)],'NQVkg':function(_0x5eed06,_0x5d9a73){const _0x4b20f4=_0x3f3d44;return _0x609a9a[_0x4b20f4(0x1aa)](_0x5eed06,_0x5d9a73);}},_0x17607c=null;_0x199143['pipe'](_0x31e350),_0x199143['on'](_0x609a9a[_0x3f3d44(0x1c9)],function(_0x3270de){const _0x2ad67e=_0x3f3d44;logger['error'](util[_0x2ad67e(0x15e)](_0x1455c2[_0x2ad67e(0x122)],_0x3270de)),PerformanceTester['end'](PerformanceEvents[_0x2ad67e(0x19b)],![],util[_0x2ad67e(0x15e)](_0x3270de)),_0x1455c2[_0x2ad67e(0x148)](_0x3513b3,_0x3270de);}),_0x31e350['on'](_0x609a9a[_0x3f3d44(0x1c9)],function(_0x5096f9){const _0x1d1376=_0x3f3d44;logger[_0x1d1376(0x193)](util[_0x1d1376(0x15e)](_0x4776d8[_0x1d1376(0x162)],_0x5096f9)),PerformanceTester[_0x1d1376(0x1df)](PerformanceEvents[_0x1d1376(0x19b)],![],util[_0x1d1376(0x15e)](_0x5096f9)),_0x4776d8[_0x1d1376(0x144)](_0x3513b3,_0x5096f9);}),CLIUtils[_0x3f3d44(0x1b2)](_0x31e350,_0x17607c,_0x8446e2,_0x1ae48a,_0x1de731,_0x3513b3),PerformanceTester['end'](PerformanceEvents[_0x3f3d44(0x19b)]);})['on'](_0x609a9a[_0x23cedc(0x1c9)],function(_0x5e677c){const _0x499e8c=_0x23cedc;logger[_0x499e8c(0x193)](_0x499e8c(0x1e0)+util['format'](_0x5e677c)),PerformanceTester[_0x499e8c(0x1df)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x499e8c(0x15e)](_0x5e677c)),_0x609a9a['jzLHx'](_0x3513b3,_0x5e677c);});});}catch(_0x46025){PerformanceTester[_0x2dd038(0x1df)](PerformanceEvents[_0x2dd038(0x19b)],![],util[_0x2dd038(0x15e)](_0x46025)),logger[_0x2dd038(0x1d2)](_0x2dd038(0x1cc)+util[_0x2dd038(0x15e)](_0x46025));}};static[a60_0x132a5f(0x1b2)](_0x43c79b,_0x53bdbc,_0x3f8b4c,_0x5ee252,_0x182678,_0x47fe81){const _0x17b079=a60_0x132a5f,_0x511a48={'UXgJq':function(_0x549e0d,_0x56b7d9){return _0x549e0d(_0x56b7d9);},'THUgx':_0x17b079(0x166),'yHXOQ':_0x17b079(0x1df),'gJvEK':function(_0xfa721,_0x260ccf){return _0xfa721===_0x260ccf;},'ZQeeW':function(_0x2b2e2e,_0x53c146){return _0x2b2e2e(_0x53c146);},'qoOpj':_0x17b079(0x154),'VLWoV':_0x17b079(0x193),'wejLW':'close'};_0x43c79b['on'](_0x511a48['wejLW'],function(){const _0x138a23=_0x17b079,_0x4277c6={'MoMLc':function(_0x5f3f25,_0x168b31){const _0x3c259c=a60_0x34d6;return _0x511a48[_0x3c259c(0x1b3)](_0x5f3f25,_0x168b31);},'crNYm':_0x511a48[_0x138a23(0x149)],'Cxflr':_0x511a48[_0x138a23(0x1a5)],'XJyas':function(_0x4b795b,_0x3f54f6){const _0x25d197=_0x138a23;return _0x511a48[_0x25d197(0x130)](_0x4b795b,_0x3f54f6);},'jzHVj':function(_0x3ad1d9,_0x4cab3c){return _0x511a48['UXgJq'](_0x3ad1d9,_0x4cab3c);},'lzJLQ':function(_0x376b7e,_0x20e269){return _0x511a48['UXgJq'](_0x376b7e,_0x20e269);},'alOks':function(_0x4203d4,_0x4ed725){const _0x52ffe0=_0x138a23;return _0x511a48[_0x52ffe0(0x13b)](_0x4203d4,_0x4ed725);},'bqEoD':_0x511a48[_0x138a23(0x1c8)],'rPAXA':_0x511a48[_0x138a23(0x1d8)]},_0x282350={};_0x282350[_0x138a23(0x180)]=!![],yauzl[_0x138a23(0x192)](_0x3f8b4c,_0x282350,function(_0x1a34e5,_0x1b082c){const _0x9c2f8d=_0x138a23,_0x2233cb={'KhxMr':function(_0x302bff,_0x17539a){const _0x214950=a60_0x34d6;return _0x4277c6[_0x214950(0x160)](_0x302bff,_0x17539a);},'ABJyD':_0x4277c6[_0x9c2f8d(0x1e3)],'xHGhL':function(_0x145c77,_0x3ee337){return _0x4277c6['XJyas'](_0x145c77,_0x3ee337);},'hKjUw':function(_0x40fcac,_0x228a2e){const _0x25ea88=_0x9c2f8d;return _0x4277c6[_0x25ea88(0x152)](_0x40fcac,_0x228a2e);},'DeSQM':function(_0x2d2edb,_0x4218c0){return _0x4277c6['lzJLQ'](_0x2d2edb,_0x4218c0);}};_0x1a34e5&&_0x4277c6[_0x9c2f8d(0x19a)](_0x47fe81,_0x1a34e5),_0x1b082c[_0x9c2f8d(0x198)](),_0x1b082c['on'](_0x4277c6[_0x9c2f8d(0x1a2)],_0x50e4f0=>{const _0xa49b66=_0x9c2f8d;!_0x53bdbc&&(_0x53bdbc=_0x50e4f0['fileName']);if(/\/$/[_0xa49b66(0x1d9)](_0x50e4f0['fileName']))_0x1b082c[_0xa49b66(0x198)]();else{const _0x1cf884=fs[_0xa49b66(0x1a1)](path[_0xa49b66(0x138)](_0x5ee252,_0x50e4f0[_0xa49b66(0x195)]));_0x1b082c[_0xa49b66(0x184)](_0x50e4f0,function(_0x22a87a,_0x268b64){const _0x5ce991=_0xa49b66;_0x22a87a&&_0x2233cb[_0x5ce991(0x199)](_0x47fe81,_0x1a34e5),_0x268b64['on'](_0x2233cb[_0x5ce991(0x18d)],function(){const _0x1116f7=_0x5ce991;_0x1cf884[_0x1116f7(0x1dd)](),_0x1b082c[_0x1116f7(0x198)]();}),_0x268b64[_0x5ce991(0x1ab)](_0x1cf884);}),_0x2233cb[_0xa49b66(0x18f)](_0x50e4f0[_0xa49b66(0x195)],_0x53bdbc)&&_0x1b082c[_0xa49b66(0x1dd)]();}}),_0x1b082c['on'](_0x4277c6[_0x9c2f8d(0x1ae)],_0x1d8ea7=>{const _0x1c160a=_0x9c2f8d;_0x4277c6[_0x1c160a(0x160)](_0x47fe81,_0x1d8ea7);}),_0x1b082c['once'](_0x4277c6[_0x9c2f8d(0x1e3)],()=>{const _0x3fb134=_0x9c2f8d;fs['unlink'](_0x3f8b4c,_0x1810d1=>{const _0x53b27c=a60_0x34d6;_0x1810d1&&logger[_0x53b27c(0x1ad)](_0x53b27c(0x136)+_0x3f8b4c);}),fs[_0x3fb134(0x17f)](_0x5ee252+'/'+_0x53bdbc,_0x4277c6[_0x3fb134(0x1a4)],function(_0x8d0e21){const _0x2f53c5=_0x3fb134;_0x8d0e21&&_0x2233cb[_0x2f53c5(0x1a9)](_0x47fe81,_0x8d0e21),_0x2233cb[_0x2f53c5(0x142)](_0x182678,_0x5ee252+'/'+_0x53bdbc);}),_0x1b082c[_0x3fb134(0x1dd)]();});});});}static[a60_0x132a5f(0x194)](){const _0x3ec68c=a60_0x132a5f;if(process['env'][_0x3ec68c(0x190)])return JSON['parse'](process['env'][_0x3ec68c(0x190)]);return this['testFrameworkDetail'];}static[a60_0x132a5f(0x14b)](){const _0x9425b=a60_0x132a5f;if(process[_0x9425b(0x163)][_0x9425b(0x1af)])return JSON[_0x9425b(0x147)](process['env'][_0x9425b(0x1af)]);return this['automationFrameworkDetail'];}static[a60_0x132a5f(0x15b)](_0x333374,_0x2ec5fd){const _0x21a739=a60_0x132a5f,_0x2cc86d={'yUypI':_0x21a739(0x173),'bAHiy':function(_0x228989,_0x5b9b00){return _0x228989||_0x5b9b00;},'SkNRQ':function(_0x391605,_0x524303){return _0x391605(_0x524303);},'OvMRo':function(_0x2181cb,_0xd8ef77){return _0x2181cb(_0xd8ef77);}},_0x18f9dd=_0x2cc86d[_0x21a739(0x17d)][_0x21a739(0x169)]('|');let _0x129869=0x0;while(!![]){switch(_0x18f9dd[_0x129869++]){case'0':_0x2cc86d['bAHiy'](!_0x333374,!_0x2ec5fd)&&logger[_0x21a739(0x1d2)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x333374+_0x21a739(0x14f)+_0x2ec5fd);continue;case'1':process[_0x21a739(0x163)][_0x21a739(0x1af)]=JSON[_0x21a739(0x151)](this[_0x21a739(0x189)]);continue;case'2':process[_0x21a739(0x163)][_0x21a739(0x190)]=JSON[_0x21a739(0x151)](this[_0x21a739(0x196)]);continue;case'3':this[_0x21a739(0x196)]={'name':_0x333374,'version':{[_0x333374]:_0x2cc86d[_0x21a739(0x153)](getFrameworkVersion,_0x333374)}};continue;case'4':this[_0x21a739(0x189)]={'name':_0x2ec5fd,'version':_0x2cc86d[_0x21a739(0x146)](getFrameworkVersion,_0x2ec5fd)};continue;}break;}}static[a60_0x132a5f(0x14a)](_0x117d86,_0x2bc0f9){return _0x117d86+':'+_0x2bc0f9;}static[a60_0x132a5f(0x137)](){return process['pid']+':'+threadId;}static[a60_0x132a5f(0x164)](_0x458b83){const _0x2d0be3=a60_0x132a5f;if(_0x458b83['testContextOptions']&&_0x458b83[_0x2d0be3(0x1e4)][_0x2d0be3(0x13f)])return!![];return![];}static[a60_0x132a5f(0x1e1)](_0x31146d){const _0x2078d3=a60_0x132a5f;if(_0x31146d['testContextOptions']&&_0x31146d[_0x2078d3(0x1e4)]['skipSessionStatus'])return!![];return![];}static['matchHookRegex'](_0x50d453){const _0x5af436=a60_0x132a5f,_0x3a74e6=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x3a74e6[_0x5af436(0x1d9)](_0x50d453);}}module[a60_0x132a5f(0x171)]=CLIUtils;
|
|
1
|
+
const a60_0x4a900f=a60_0x4ee6;(function(_0x19ae4b,_0x22174e){const _0x447804=a60_0x4ee6,_0x3f1a9c=_0x19ae4b();while(!![]){try{const _0x37306d=parseInt(_0x447804(0x1f8))/0x1+-parseInt(_0x447804(0x1ff))/0x2*(parseInt(_0x447804(0x1c0))/0x3)+parseInt(_0x447804(0x192))/0x4*(parseInt(_0x447804(0x221))/0x5)+parseInt(_0x447804(0x21a))/0x6*(parseInt(_0x447804(0x181))/0x7)+parseInt(_0x447804(0x1cc))/0x8+parseInt(_0x447804(0x172))/0x9*(parseInt(_0x447804(0x217))/0xa)+-parseInt(_0x447804(0x1dc))/0xb;if(_0x37306d===_0x22174e)break;else _0x3f1a9c['push'](_0x3f1a9c['shift']());}catch(_0x2c543b){_0x3f1a9c['push'](_0x3f1a9c['shift']());}}}(a60_0x4f81,0xc0cb1));const fs=require('fs'),os=require('os'),url=require(a60_0x4a900f(0x193)),path=require('path'),{exec}=require(a60_0x4a900f(0x1ab)),{https}=require(a60_0x4a900f(0x1e7)),yauzl=require(a60_0x4a900f(0x1b3)),util=require(a60_0x4a900f(0x1a8)),{getFrameworkVersion}=require(a60_0x4a900f(0x21e)),{threadId}=require(a60_0x4a900f(0x229)),PerformanceTester=require(a60_0x4a900f(0x17d)),{EVENTS:PerformanceEvents}=require(a60_0x4a900f(0x21c)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require('../../helpers/helper'),{BROWSERSTACK_API_URL,UPDATED_CLI_ENDPOINT}=require(a60_0x4a900f(0x206)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a60_0x4a900f(0x1cf)),HookState=require('./state/hookState.js'),TestFrameworkState=require(a60_0x4a900f(0x1f1)),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a60_0x4a900f(0x1bb)),logger=createClassLogger(a60_0x4a900f(0x182));class CLIUtils{[a60_0x4a900f(0x18c)]={};[a60_0x4a900f(0x1ef)]={};static[a60_0x4a900f(0x187)](){const _0x3bd014=a60_0x4a900f,_0x564615={};_0x564615['yvHHr']=function(_0xd6b72b,_0xa4ff3e){return _0xd6b72b===_0xa4ff3e;},_0x564615[_0x3bd014(0x1e9)]=_0x3bd014(0x1bd);const _0x6f7eeb=_0x564615;return _0x6f7eeb['yvHHr'](process[_0x3bd014(0x1b9)][_0x3bd014(0x1f0)],_0x6f7eeb[_0x3bd014(0x1e9)]);}static[a60_0x4a900f(0x212)](){const _0x2e3264=a60_0x4a900f,_0x4cfa3c={};return _0x4cfa3c['id']=process[_0x2e3264(0x1b9)]['BROWSERSTACK_CLI_ENV'],_0x4cfa3c['listen']='unix:/tmp/sdk-platform-'+process['env'][_0x2e3264(0x1f0)]+_0x2e3264(0x20e),_0x4cfa3c;}static[a60_0x4a900f(0x1ae)](){const _0x3490e1=a60_0x4a900f,_0x455f42={'hjiVl':function(_0x2642cf,_0x2332d0){return _0x2642cf(_0x2332d0);},'pyGZN':_0x3490e1(0x20b)};return _0x455f42[_0x3490e1(0x17e)](require,_0x455f42['pyGZN'])[_0x3490e1(0x1fe)];}static[a60_0x4a900f(0x1c9)](){const _0x4c679d=a60_0x4a900f,_0x8cd36e={};_0x8cd36e[_0x4c679d(0x191)]=_0x4c679d(0x1b2);const _0x5203bc=_0x8cd36e;return _0x5203bc[_0x4c679d(0x191)];}static async[a60_0x4a900f(0x1c2)](_0x54e45e){const _0x201e92=a60_0x4a900f,_0x4244c4={'gCnoK':'Configuring\x20Cli\x20path.','iNBIj':function(_0xd6995,_0x4a991e){return _0xd6995(_0x4a991e);},'PDLUB':function(_0x5731ba,_0x3c424b){return _0x5731ba(_0x3c424b);},'vXiUt':_0x201e92(0x199)};logger[_0x201e92(0x1d8)](_0x4244c4[_0x201e92(0x20d)]);const _0x3137c5=process[_0x201e92(0x1b9)][_0x201e92(0x1db)];if(!_0x4244c4[_0x201e92(0x186)](isNullOrEmpty,_0x3137c5))return logger[_0x201e92(0x1d8)](_0x201e92(0x178)+_0x3137c5),_0x3137c5;try{const _0x9b314b=this[_0x201e92(0x198)]();if(_0x4244c4[_0x201e92(0x1ea)](isNullOrEmpty,_0x9b314b))throw new Error(_0x4244c4[_0x201e92(0x22a)]);const _0x4db070=this[_0x201e92(0x18f)](_0x9b314b),_0x2573eb=await this[_0x201e92(0x1c6)](_0x4db070,_0x9b314b,_0x54e45e);return logger['debug'](_0x201e92(0x177)+_0x2573eb),_0x2573eb;}catch(_0x8ee530){logger['debug'](_0x201e92(0x183)+util[_0x201e92(0x227)](_0x8ee530));}return null;}static async[a60_0x4a900f(0x1c6)](_0xe2d9af,_0x4158b4,_0x1fb5a1){const _0x457f1a=a60_0x4a900f,_0x2641fb={'oyMxk':function(_0x51c104){return _0x51c104();},'kenNu':function(_0x36a8d4,_0x20def8){return _0x36a8d4(_0x20def8);},'QaXSD':function(_0x11bf26,_0x417caf,_0xde7df4){return _0x11bf26(_0x417caf,_0xde7df4);},'ucLvD':_0x457f1a(0x1b5),'dNmdJ':_0x457f1a(0x193),'IqCHt':function(_0x2afe2e,_0x2e64af,_0x239368){return _0x2afe2e(_0x2e64af,_0x239368);}};PerformanceTester[_0x457f1a(0x1a3)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),logger['info'](_0x457f1a(0x1e2)+_0xe2d9af);const _0x67cb56=_0x2641fb[_0x457f1a(0x1aa)](getHostInfo),_0x211311={'sdk_version':CLIUtils[_0x457f1a(0x1ae)](),'os':_0x67cb56[_0x457f1a(0x1da)],'os_arch':_0x67cb56[_0x457f1a(0x19d)],'cli_version':'0','sdk_language':this[_0x457f1a(0x1c9)]()};!_0x2641fb[_0x457f1a(0x21d)](isNullOrEmpty,_0xe2d9af)&&(_0x211311[_0x457f1a(0x226)]=await this[_0x457f1a(0x1d9)](_0xe2d9af+_0x457f1a(0x19a)));const _0x43d6b2=await this[_0x457f1a(0x18a)](_0x211311,_0x1fb5a1);process['env']['BROWSERSTACK_BINARY_URL']&&(logger['info'](_0x457f1a(0x1ee)+process[_0x457f1a(0x1b9)][_0x457f1a(0x1d2)]),_0x43d6b2[_0x457f1a(0x1b5)][_0x457f1a(0x193)]=process[_0x457f1a(0x1b9)][_0x457f1a(0x1d2)]);if(_0x2641fb[_0x457f1a(0x1a0)](nestedKeyValue,_0x43d6b2,[_0x2641fb[_0x457f1a(0x1d1)],_0x2641fb[_0x457f1a(0x216)]])){logger[_0x457f1a(0x1d8)](_0x457f1a(0x215)+_0x211311[_0x457f1a(0x226)]);const _0x18f88f=await this['downloadLatestBinary'](_0x2641fb[_0x457f1a(0x1d4)](nestedKeyValue,_0x43d6b2,[_0x2641fb[_0x457f1a(0x1d1)],_0x2641fb[_0x457f1a(0x216)]]),_0x4158b4);return PerformanceTester[_0x457f1a(0x17b)](PerformanceEvents[_0x457f1a(0x204)]),_0x18f88f;}return PerformanceTester[_0x457f1a(0x17b)](PerformanceEvents[_0x457f1a(0x204)]),_0xe2d9af;}static['getCliDir'](){const _0x206ebd=a60_0x4a900f,_0x1614e3={'bZnoT':function(_0x57971d,_0x3ebb6c){return _0x57971d(_0x3ebb6c);},'matIA':_0x206ebd(0x199),'YDzpE':_0x206ebd(0x1bc),'SUCXK':function(_0x3acb85,_0x1edbcb){return _0x3acb85(_0x1edbcb);}},_0x215749=this[_0x206ebd(0x195)]();try{if(_0x1614e3[_0x206ebd(0x18e)](isNullOrEmpty,_0x215749))throw new Error(_0x1614e3[_0x206ebd(0x222)]);const _0x519c37=path[_0x206ebd(0x1fd)](_0x215749,_0x1614e3[_0x206ebd(0x214)]);return!fs[_0x206ebd(0x201)](_0x519c37)&&_0x1614e3[_0x206ebd(0x179)](createDir,_0x519c37),_0x519c37;}catch(_0x5a20ce){logger[_0x206ebd(0x1d8)](_0x206ebd(0x176)+util[_0x206ebd(0x227)](_0x5a20ce));}}static[a60_0x4a900f(0x195)](){const _0x5e6d18=a60_0x4a900f,_0x2631eb={'aCLTL':'.browserstack','KtYNU':function(_0x2cd05f,_0x32f423){return _0x2cd05f(_0x32f423);},'XTlzR':function(_0x34c97e,_0x560891){return _0x34c97e(_0x560891);},'wwwtS':function(_0x34b6a0,_0x53b6ff){return _0x34b6a0(_0x53b6ff);},'aPIvc':function(_0x4b6c44,_0x2646f7){return _0x4b6c44(_0x2646f7);}},_0x54e4ae=[process[_0x5e6d18(0x1b9)][_0x5e6d18(0x1b8)],path[_0x5e6d18(0x1fd)](os[_0x5e6d18(0x220)](),_0x2631eb[_0x5e6d18(0x1af)]),path[_0x5e6d18(0x1fd)](os['tmpdir'](),_0x2631eb[_0x5e6d18(0x1af)])];for(const _0x3a1abb of _0x54e4ae){if(_0x2631eb[_0x5e6d18(0x1e4)](isNullOrEmpty,_0x3a1abb))continue;try{if(fs[_0x5e6d18(0x201)](_0x3a1abb)){logger[_0x5e6d18(0x1d8)](_0x5e6d18(0x1c8)+_0x3a1abb+_0x5e6d18(0x18b));if(!_0x2631eb['XTlzR'](isModifiable,_0x3a1abb)){logger[_0x5e6d18(0x1d8)]('Setting\x20required\x20permissions\x20to\x20'+_0x3a1abb);const _0x32bb7c=_0x2631eb[_0x5e6d18(0x1eb)](setReadWriteExecuteAccess,_0x3a1abb);if(!_0x2631eb[_0x5e6d18(0x1e4)](isTrue,_0x32bb7c)){logger[_0x5e6d18(0x20c)](_0x5e6d18(0x20f)+_0x3a1abb);continue;}}}else{logger[_0x5e6d18(0x1d8)](_0x5e6d18(0x21b)+_0x3a1abb),_0x2631eb[_0x5e6d18(0x1fc)](createDir,_0x3a1abb),logger['debug'](_0x5e6d18(0x200)+_0x3a1abb);const _0x424850=_0x2631eb[_0x5e6d18(0x228)](setReadWriteExecuteAccess,_0x3a1abb);!_0x2631eb[_0x5e6d18(0x1eb)](isTrue,_0x424850)&&logger[_0x5e6d18(0x20c)](_0x5e6d18(0x20f)+_0x3a1abb);}return _0x3a1abb;}catch(_0x1b7ab5){logger['error'](_0x5e6d18(0x1f2)+util[_0x5e6d18(0x227)](_0x1b7ab5));}}return null;}static['getExistingCliPath'](_0x4879f4){const _0x9d7fb1=a60_0x4a900f,_0x45c9b5={};_0x45c9b5['XGpyS']=function(_0x415e01,_0x2b86e5){return _0x415e01>_0x2b86e5;},_0x45c9b5[_0x9d7fb1(0x1d7)]=function(_0x406f2a,_0x470c88){return _0x406f2a>_0x470c88;};const _0x5381b6=_0x45c9b5;try{if(!fs[_0x9d7fb1(0x201)](_0x4879f4)||!fs[_0x9d7fb1(0x1f6)](_0x4879f4)['isDirectory']())return'';const _0x4dd7c9=fs['readdirSync'](_0x4879f4)[_0x9d7fb1(0x17c)](_0x1dee04=>path[_0x9d7fb1(0x1fd)](_0x4879f4,_0x1dee04))[_0x9d7fb1(0x1c7)](_0x1bf746=>fs[_0x9d7fb1(0x1f6)](_0x1bf746)[_0x9d7fb1(0x194)]()&&path['basename'](_0x1bf746)[_0x9d7fb1(0x208)]('binary-'));if(_0x5381b6['uGmbQ'](_0x4dd7c9[_0x9d7fb1(0x1b6)],0x0)){const _0x4543e0=_0x4dd7c9['map'](_0x487a13=>({'filePath':_0x487a13,'mtime':fs[_0x9d7fb1(0x1f6)](_0x487a13)[_0x9d7fb1(0x1c5)]}))['reduce']((_0x8dcbdf,_0x394b5c)=>{const _0x2d6f8d=_0x9d7fb1;if(!_0x8dcbdf||!_0x8dcbdf[_0x2d6f8d(0x1c5)])return _0x394b5c;if(_0x5381b6[_0x2d6f8d(0x19e)](_0x394b5c[_0x2d6f8d(0x1c5)],_0x8dcbdf[_0x2d6f8d(0x1c5)]))return _0x394b5c;return _0x8dcbdf;},{});return _0x4543e0?_0x4543e0['filePath']:'';}return'';}catch(_0x5d30f0){return logger[_0x9d7fb1(0x1e6)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util['format'](_0x5d30f0)),'';}}static ['requestToUpdateCLI']=async(_0x4074e7,_0x1d48f5)=>{const _0x254559=a60_0x4a900f,_0xcf1fb5={'SyMkL':function(_0x1b27a6,_0x7ed138,_0x530f0c,_0x37fe14,_0x441c3e,_0x4952be){return _0x1b27a6(_0x7ed138,_0x530f0c,_0x37fe14,_0x441c3e,_0x4952be);},'nXGbD':_0x254559(0x1ce)},_0x3b7f6b={};_0x3b7f6b['qs']=_0x4074e7;const _0x2b3ef5=await _0xcf1fb5[_0x254559(0x1f3)](nodeRequest,_0xcf1fb5[_0x254559(0x180)],UPDATED_CLI_ENDPOINT,_0x3b7f6b,_0x1d48f5,BROWSERSTACK_API_URL);return logger['debug'](_0x254559(0x210)+JSON[_0x254559(0x190)](_0x2b3ef5)),_0x2b3ef5;};static['runShellCommand'](_0x344870,_0x3f1384=''){const _0x4372f3=a60_0x4a900f,_0x46e6d9={'fAvig':function(_0x6883e9,_0x50ef2c){return _0x6883e9(_0x50ef2c);},'WaAmx':_0x4372f3(0x1a4),'sutqx':function(_0x24d6c3,_0x31e2cd){return _0x24d6c3(_0x31e2cd);},'BwVkV':function(_0x3ca05b,_0x3ac1a9,_0x4f1e4c,_0x2e773f){return _0x3ca05b(_0x3ac1a9,_0x4f1e4c,_0x2e773f);},'aUvmr':_0x4372f3(0x1e6)};return new Promise((_0x4f6feb,_0x297f9f)=>{const _0x3b8b67=_0x4372f3,_0x4ccea8={};_0x4ccea8[_0x3b8b67(0x1a1)]=_0x3f1384,_0x4ccea8[_0x3b8b67(0x1c1)]=0x1388;const _0x108b06=_0x46e6d9[_0x3b8b67(0x223)](exec,_0x344870,_0x4ccea8,(_0x38d063,_0x55fc3d,_0x2626d9)=>{const _0x393b25=_0x3b8b67;_0x38d063?_0x46e6d9[_0x393b25(0x197)](_0x4f6feb,_0x2626d9['trim']()||_0x46e6d9[_0x393b25(0x20a)]):_0x46e6d9[_0x393b25(0x197)](_0x4f6feb,_0x55fc3d[_0x393b25(0x1a6)]());});_0x108b06['on'](_0x46e6d9[_0x3b8b67(0x1a5)],()=>{const _0x47732d=_0x3b8b67;_0x46e6d9[_0x47732d(0x1fa)](_0x4f6feb,_0x46e6d9[_0x47732d(0x20a)]);});});}static ['downloadLatestBinary']=async(_0x40c027,_0x5e3194)=>{const _0x427463=a60_0x4a900f,_0x1569b0={'ioUDM':_0x427463(0x1bf),'bRMrq':function(_0x5d6115,_0x6e3078){return _0x5d6115(_0x6e3078);},'nqTRs':_0x427463(0x173),'PGySw':function(_0x308744,_0x252419){return _0x308744(_0x252419);},'eiIbd':_0x427463(0x1e6),'GHfoz':_0x427463(0x19c)};PerformanceTester[_0x427463(0x1a3)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x427463(0x1d8)]('Downloading\x20SDK\x20binary\x20from:\x20'+_0x40c027);try{const _0x4092fb=url[_0x427463(0x1ca)](_0x40c027),_0x15254d=path[_0x427463(0x1fd)](_0x5e3194,_0x1569b0[_0x427463(0x1a2)]),_0x1774bb=fs[_0x427463(0x1d0)](_0x15254d);return new Promise((_0x747a53,_0x65fdff)=>{const _0x40d328=_0x427463,_0x358a1a={'GKmtW':function(_0x469378,_0x1f5591){const _0x1a3ab8=a60_0x4ee6;return _0x1569b0[_0x1a3ab8(0x1a7)](_0x469378,_0x1f5591);}};https[_0x40d328(0x1f9)](_0x4092fb,function(_0x6cabec){const _0xb4c28f=_0x40d328,_0x2d4340={'GMnWU':_0x1569b0[_0xb4c28f(0x17f)],'mjzco':function(_0x100bf2,_0x2254e4){const _0x25c8f6=_0xb4c28f;return _0x1569b0[_0x25c8f6(0x1a7)](_0x100bf2,_0x2254e4);},'IuNDX':_0x1569b0[_0xb4c28f(0x1de)],'iLYlP':function(_0x32f79c,_0x5d55cb){const _0x103e35=_0xb4c28f;return _0x1569b0[_0x103e35(0x211)](_0x32f79c,_0x5d55cb);}},_0x54d2bb=null;_0x6cabec[_0xb4c28f(0x1be)](_0x1774bb),_0x6cabec['on'](_0x1569b0[_0xb4c28f(0x203)],function(_0x42a301){const _0x46ab2e=_0xb4c28f;logger[_0x46ab2e(0x1e6)](util['format'](_0x2d4340[_0x46ab2e(0x1e0)],_0x42a301)),PerformanceTester[_0x46ab2e(0x17b)](PerformanceEvents[_0x46ab2e(0x1e5)],![],util[_0x46ab2e(0x227)](_0x42a301)),_0x2d4340[_0x46ab2e(0x1e3)](_0x65fdff,_0x42a301);}),_0x1774bb['on'](_0x1569b0[_0xb4c28f(0x203)],function(_0x5a1648){const _0x299ad5=_0xb4c28f;logger[_0x299ad5(0x1e6)](util[_0x299ad5(0x227)](_0x2d4340[_0x299ad5(0x205)],_0x5a1648)),PerformanceTester['end'](PerformanceEvents[_0x299ad5(0x1e5)],![],util[_0x299ad5(0x227)](_0x5a1648)),_0x2d4340[_0x299ad5(0x1e1)](_0x65fdff,_0x5a1648);}),CLIUtils[_0xb4c28f(0x218)](_0x1774bb,_0x54d2bb,_0x15254d,_0x5e3194,_0x747a53,_0x65fdff),PerformanceTester[_0xb4c28f(0x17b)](PerformanceEvents[_0xb4c28f(0x1e5)]);})['on'](_0x1569b0[_0x40d328(0x203)],function(_0x5bb317){const _0x22d9a5=_0x40d328;logger['error'](_0x22d9a5(0x1cb)+util[_0x22d9a5(0x227)](_0x5bb317)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x22d9a5(0x227)](_0x5bb317)),_0x358a1a[_0x22d9a5(0x1b4)](_0x65fdff,_0x5bb317);});});}catch(_0x1cdfd1){PerformanceTester[_0x427463(0x17b)](PerformanceEvents[_0x427463(0x1e5)],![],util[_0x427463(0x227)](_0x1cdfd1)),logger[_0x427463(0x1d8)](_0x427463(0x1ac)+util[_0x427463(0x227)](_0x1cdfd1));}};static[a60_0x4a900f(0x218)](_0x347868,_0x4d43fa,_0x64b4a8,_0xa53b05,_0x520e79,_0x329021){const _0x49cfbc=a60_0x4a900f,_0x167b9e={'UwYMN':function(_0x185db9,_0x33dcba){return _0x185db9(_0x33dcba);},'VYuHm':_0x49cfbc(0x17b),'EeFJK':function(_0x3b229d,_0x307fac){return _0x3b229d===_0x307fac;},'mwgLN':_0x49cfbc(0x1dd),'OIbDF':_0x49cfbc(0x219),'gOlsm':_0x49cfbc(0x1e6),'gsdJU':_0x49cfbc(0x188)};_0x347868['on'](_0x167b9e[_0x49cfbc(0x213)],function(){const _0x4183dd=_0x49cfbc,_0x1f2e38={'IJikP':function(_0x5df603,_0xff656f){const _0x55cb7f=a60_0x4ee6;return _0x167b9e[_0x55cb7f(0x196)](_0x5df603,_0xff656f);}},_0x190a85={};_0x190a85['lazyEntries']=!![],yauzl[_0x4183dd(0x1ed)](_0x64b4a8,_0x190a85,function(_0x5eaeae,_0x2fd261){const _0x245431=_0x4183dd,_0x1564b9={'xoDUN':function(_0x198201,_0x3b04b0){const _0x41baf1=a60_0x4ee6;return _0x167b9e[_0x41baf1(0x196)](_0x198201,_0x3b04b0);},'mvlff':_0x167b9e['VYuHm'],'xUmdH':function(_0xb96cfb,_0xc02e84){const _0x54a3ac=a60_0x4ee6;return _0x167b9e[_0x54a3ac(0x174)](_0xb96cfb,_0xc02e84);},'MjhOp':_0x167b9e[_0x245431(0x209)]};_0x5eaeae&&_0x167b9e[_0x245431(0x196)](_0x329021,_0x5eaeae),_0x2fd261[_0x245431(0x202)](),_0x2fd261['on'](_0x167b9e[_0x245431(0x1ec)],_0x5ca810=>{const _0xc1ab0=_0x245431;!_0x4d43fa&&(_0x4d43fa=_0x5ca810[_0xc1ab0(0x184)]);if(/\/$/[_0xc1ab0(0x225)](_0x5ca810['fileName']))_0x2fd261[_0xc1ab0(0x202)]();else{const _0x3292da=fs[_0xc1ab0(0x1d0)](path[_0xc1ab0(0x1fd)](_0xa53b05,_0x5ca810[_0xc1ab0(0x184)]));_0x2fd261[_0xc1ab0(0x1cd)](_0x5ca810,function(_0x3b7943,_0x55036c){const _0x4ba132=_0xc1ab0;_0x3b7943&&_0x1564b9[_0x4ba132(0x175)](_0x329021,_0x5eaeae),_0x55036c['on'](_0x1564b9[_0x4ba132(0x19b)],function(){const _0x5860a8=_0x4ba132;_0x3292da[_0x5860a8(0x188)](),_0x2fd261['readEntry']();}),_0x55036c[_0x4ba132(0x1be)](_0x3292da);}),_0x1564b9[_0xc1ab0(0x1c3)](_0x5ca810['fileName'],_0x4d43fa)&&_0x2fd261[_0xc1ab0(0x188)]();}}),_0x2fd261['on'](_0x167b9e[_0x245431(0x18d)],_0x57a9fc=>{const _0x33e321=_0x245431;_0x1f2e38[_0x33e321(0x224)](_0x329021,_0x57a9fc);}),_0x2fd261['once'](_0x167b9e['VYuHm'],()=>{const _0x357dc2=_0x245431;fs[_0x357dc2(0x1df)](_0x64b4a8,_0x3dc450=>{const _0x191acf=_0x357dc2;_0x3dc450&&logger[_0x191acf(0x20c)](_0x191acf(0x1d3)+_0x64b4a8);}),fs['chmod'](_0xa53b05+'/'+_0x4d43fa,_0x1564b9[_0x357dc2(0x21f)],function(_0x45d0a5){const _0x997633=_0x357dc2;_0x45d0a5&&_0x1564b9[_0x997633(0x175)](_0x329021,_0x45d0a5),_0x1564b9[_0x997633(0x175)](_0x520e79,_0xa53b05+'/'+_0x4d43fa);}),_0x2fd261[_0x357dc2(0x188)]();});});});}static[a60_0x4a900f(0x185)](){const _0x196b30=a60_0x4a900f;if(process[_0x196b30(0x1b9)][_0x196b30(0x1d6)])return JSON[_0x196b30(0x1ca)](process[_0x196b30(0x1b9)][_0x196b30(0x1d6)]);return this['testFrameworkDetail'];}static[a60_0x4a900f(0x1f4)](){const _0x1eaf76=a60_0x4a900f;if(process[_0x1eaf76(0x1b9)][_0x1eaf76(0x1b7)])return JSON[_0x1eaf76(0x1ca)](process['env'][_0x1eaf76(0x1b7)]);return this[_0x1eaf76(0x18c)];}static[a60_0x4a900f(0x1ba)](_0xbc2090,_0x2007c5){const _0x56ea47=a60_0x4a900f,_0x49a8fe={'fKhnl':'2|0|4|1|3','SHWsk':function(_0xde9678,_0x350429){return _0xde9678(_0x350429);},'cinSO':function(_0x7a435d,_0x123d10){return _0x7a435d||_0x123d10;}},_0x4617c0=_0x49a8fe[_0x56ea47(0x1c4)]['split']('|');let _0x22c1ca=0x0;while(!![]){switch(_0x4617c0[_0x22c1ca++]){case'0':this['testFrameworkDetail']={'name':_0xbc2090,'version':{[_0xbc2090]:_0x49a8fe['SHWsk'](getFrameworkVersion,_0xbc2090)}};continue;case'1':process[_0x56ea47(0x1b9)][_0x56ea47(0x1b7)]=JSON[_0x56ea47(0x190)](this['automationFrameworkDetail']);continue;case'2':_0x49a8fe[_0x56ea47(0x1f5)](!_0xbc2090,!_0x2007c5)&&logger[_0x56ea47(0x1d8)](_0x56ea47(0x17a)+_0xbc2090+_0x56ea47(0x1a9)+_0x2007c5);continue;case'3':process[_0x56ea47(0x1b9)][_0x56ea47(0x1d6)]=JSON['stringify'](this[_0x56ea47(0x1ef)]);continue;case'4':this[_0x56ea47(0x18c)]={'name':_0x2007c5,'version':_0x49a8fe['SHWsk'](getFrameworkVersion,_0x2007c5)};continue;}break;}}static[a60_0x4a900f(0x1ad)](_0x35cfd0,_0x322372){return _0x35cfd0+':'+_0x322372;}static[a60_0x4a900f(0x189)](){const _0x3477a1=a60_0x4a900f;return process[_0x3477a1(0x1fb)]+':'+threadId;}static[a60_0x4a900f(0x1f7)](_0x391049){const _0x5d5a6b=a60_0x4a900f;if(_0x391049[_0x5d5a6b(0x19f)]&&_0x391049['testContextOptions']['skipSessionName'])return!![];return![];}static[a60_0x4a900f(0x1b0)](_0x258acf){const _0x34e078=a60_0x4a900f;if(_0x258acf[_0x34e078(0x19f)]&&_0x258acf[_0x34e078(0x19f)][_0x34e078(0x1b1)])return!![];return![];}static[a60_0x4a900f(0x207)](_0x15c2c3){const _0x140af0=a60_0x4a900f,_0x3c7037=new RegExp(TestFrameworkConstants[_0x140af0(0x1e8)]);return _0x3c7037[_0x140af0(0x225)](_0x15c2c3);}}function a60_0x4ee6(_0x3e5fd6,_0x38b51c){const _0x4f8127=a60_0x4f81();return a60_0x4ee6=function(_0x4ee61d,_0x518f9e){_0x4ee61d=_0x4ee61d-0x172;let _0x2872a0=_0x4f8127[_0x4ee61d];return _0x2872a0;},a60_0x4ee6(_0x3e5fd6,_0x38b51c);}function a60_0x4f81(){const _0x2d9008=['./framework/constants/testFrameworkConstants.js','cli','development','pipe','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response\x20%s','15iaUBRa','timeout','setupCliPath','xUmdH','fKhnl','mtime','checkAndUpdateCli','filter','Folder\x20','getSdkLanguage','parse','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request\x20','3569592FoVoXd','openReadStream','GET','./instances/testFrameworkInstance.js','createWriteStream','ucLvD','BROWSERSTACK_BINARY_URL','Failed\x20to\x20delete\x20zip\x20file:\x20','IqCHt','exports','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','uGmbQ','debug','runShellCommand','platform','SDK_CLI_BIN_PATH','26409977ZaEnXV','0755','nqTRs','unlink','GMnWU','iLYlP','Current\x20CLI\x20Path\x20Found:\x20','mjzco','KtYNU','SDK_CLI_DOWNLOAD','error','follow-redirects','HOOK_REGEX','lzmLZ','PDLUB','wwwtS','OIbDF','open','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','testFrameworkDetail','BROWSERSTACK_CLI_ENV','./state/testFrameworkState.js','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','SyMkL','getAutomationFrameworkDetail','cinSO','statSync','shouldSkipSessionName','1279706QIAmWC','get','sutqx','pid','aPIvc','join','version','314994vNQymb','Setting\x20required\x20permissions\x20to\x20','existsSync','readEntry','eiIbd','SDK_CLI_CHECK_UPDATE','IuNDX','../utils/constants','matchHookRegex','startsWith','mwgLN','WaAmx','../../../package.json','warn','gCnoK','.sock','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','response\x20','PGySw','getCLIParamsForDevEnv','gsdJU','YDzpE','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','dNmdJ','12831040WLmFRd','downloadFileStream','entry','62052JnvUYB','Folder\x20does\x20not\x20exist:\x20','../../helpers/performance/constants','kenNu','../../helpers/test-observability/utils.js','MjhOp','homedir','1905560FHLVMo','matIA','BwVkV','IJikP','test','cli_version','format','XTlzR','worker_threads','vXiUt','9AUbWxF','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file\x20%s','EeFJK','xoDUN','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','Resolved\x20binary\x20path:\x20','Development\x20Cli\x20Path:\x20','SUCXK','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','end','map','../../helpers/performance/performance-tester.js','hjiVl','ioUDM','nXGbD','140uRuIZM','CLIUtils','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','fileName','getTestFrameworkDetail','iNBIj','isDevelopmentEnv','close','getCurrentInstanceName','requestToUpdateCLI','\x20already\x20exists','automationFrameworkDetail','gOlsm','bZnoT','getExistingCliPath','stringify','jyArQ','8qvphnH','url','isFile','getWritableDir','UwYMN','fAvig','getCliDir','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','\x20version','mvlff','downloaded_file.zip','arch','XGpyS','testContextOptions','QaXSD','cwd','GHfoz','start','SHELL_EXECUTE_ERROR','aUvmr','trim','bRMrq','util',',\x20automationFramework=','oyMxk','child_process','Failed\x20to\x20download\x20binary,\x20Exception:\x20','getHookRegistryKey','getSdkVersion','aCLTL','shouldSkipSessionStatus','skipSessionStatus','node','yauzl','GKmtW','data','length','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','BROWSERSTACK_FILES_DIR','env','setFrameworkDetail'];a60_0x4f81=function(){return _0x2d9008;};return a60_0x4f81();}module[a60_0x4a900f(0x1d5)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a61_0x1599ca=a61_0x505a;(function(_0x22b84e,_0x5ece54){const _0xe28e0a=a61_0x505a,_0x18e202=_0x22b84e();while(!![]){try{const _0x3d402e=-parseInt(_0xe28e0a(0xe9))/0x1+parseInt(_0xe28e0a(0xe6))/0x2+parseInt(_0xe28e0a(0xe5))/0x3*(parseInt(_0xe28e0a(0xd6))/0x4)+parseInt(_0xe28e0a(0xc4))/0x5+-parseInt(_0xe28e0a(0xc6))/0x6+-parseInt(_0xe28e0a(0xe7))/0x7+parseInt(_0xe28e0a(0xde))/0x8*(parseInt(_0xe28e0a(0xea))/0x9);if(_0x3d402e===_0x5ece54)break;else _0x18e202['push'](_0x18e202['shift']());}catch(_0x24d133){_0x18e202['push'](_0x18e202['shift']());}}}(a61_0x1ddd,0x6c67f));function a61_0x505a(_0x1e5f9a,_0x18cb7a){const _0x1dddc1=a61_0x1ddd();return a61_0x505a=function(_0x505a81,_0x20d1f1){_0x505a81=_0x505a81-0xc2;let _0x2f5706=_0x1dddc1[_0x505a81];return _0x2f5706;},a61_0x505a(_0x1e5f9a,_0x18cb7a);}const BrowserstackCLI=require(a61_0x1599ca(0xd4)),helper=require('../../helpers/helper'),AutomationFramework=require(a61_0x1599ca(0xd9)),TestFrameworkConstants=require(a61_0x1599ca(0xc2)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a61_0x1599ca(0xd1)),TestHubModule=require('./modules/testhubModule');class CustomTagManager{static [a61_0x1599ca(0xdb)]={};static [a61_0x1599ca(0xd0)]={};static[a61_0x1599ca(0xcf)](_0x40b528,_0x25d8cc,_0x36a934=![]){const _0x312a84=a61_0x1599ca,_0x4467fc={};_0x4467fc[_0x312a84(0xeb)]=function(_0x2f8d9d,_0x1dbc44){return _0x2f8d9d!==_0x1dbc44;},_0x4467fc[_0x312a84(0xef)]=_0x312a84(0xe1),_0x4467fc[_0x312a84(0xec)]='Custom\x20tag\x20key\x20must\x20be\x20a\x20string',_0x4467fc['anrJQ']=function(_0x3570a5,_0x23a25d){return _0x3570a5!==_0x23a25d;},_0x4467fc[_0x312a84(0xdc)]='Custom\x20tag\x20value\x20must\x20be\x20a\x20string',_0x4467fc[_0x312a84(0xe8)]=function(_0x108118,_0x2002c9){return _0x108118===_0x2002c9;},_0x4467fc[_0x312a84(0xe0)]='Custom\x20tag\x20key\x20cannot\x20be\x20empty',_0x4467fc[_0x312a84(0xc3)]=function(_0x583ed2,_0x255204){return _0x583ed2===_0x255204;},_0x4467fc[_0x312a84(0xc8)]=_0x312a84(0xd5),_0x4467fc[_0x312a84(0xf1)]=_0x312a84(0xe2);const _0x336263=_0x4467fc;if(_0x336263[_0x312a84(0xeb)](typeof _0x40b528,_0x336263[_0x312a84(0xef)]))throw new Error(_0x336263['tkUHM']);if(_0x336263[_0x312a84(0xda)](typeof _0x25d8cc,_0x336263['JDqCa']))throw new Error(_0x336263[_0x312a84(0xdc)]);if(_0x336263[_0x312a84(0xe8)](_0x40b528[_0x312a84(0xed)](),''))throw new Error(_0x336263[_0x312a84(0xe0)]);if(_0x336263['ySYcK'](_0x25d8cc[_0x312a84(0xed)](),''))throw new Error(_0x336263['DqgxK']);const _0xa9b5b3=helper[_0x312a84(0xdd)](_0x25d8cc);if(_0x36a934){const _0x8ea431=BrowserstackCLI[_0x312a84(0xcb)]()[_0x312a84(0xcc)][TestHubModule[_0x312a84(0xdf)]];if(_0x8ea431){const _0x2af8ca=_0x8ea431?.[_0x312a84(0xd2)]?.[_0x312a84(0xc5)]()?.['buildHashedId'];TestInfo['getTestUUID'](_0x2af8ca);const _0x4b94e4=TestInfo['getTestDetails'](_0x2af8ca),_0x2ef212=_0x4b94e4[TestFrameworkConstants[_0x312a84(0xcd)]]||{};if(!_0x2ef212[_0x40b528]){const _0x208aea={};_0x208aea[_0x312a84(0xd8)]=_0x336263['rvWLC'],_0x208aea['values']=[..._0xa9b5b3],_0x2ef212[_0x40b528]=_0x208aea;}else _0x2ef212[_0x40b528][_0x312a84(0xe4)]=[..._0xa9b5b3];_0x4b94e4[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x2ef212,TestInfo[_0x312a84(0xd3)](_0x2af8ca,_0x4b94e4),!this[_0x312a84(0xdb)][_0x2af8ca]&&(this[_0x312a84(0xdb)][_0x2af8ca]={}),this[_0x312a84(0xdb)][_0x2af8ca][_0x40b528]=[..._0xa9b5b3];}}else{const _0xef9a94=global['__workerDetails']?.[_0x312a84(0xee)]?.[_0x312a84(0xce)],_0x102557=TestInfo[_0x312a84(0xd7)](_0xef9a94,_0xef9a94?.[_0x312a84(0xe3)]),_0x2c77c1=TestInfo['getTestDetails'](_0x102557),_0x5a50a9=_0x2c77c1[TestFrameworkConstants[_0x312a84(0xcd)]]||{};if(!_0x5a50a9[_0x40b528]){const _0x5666c7={};_0x5666c7['field_type']=_0x336263[_0x312a84(0xf1)],_0x5666c7[_0x312a84(0xe4)]=[..._0xa9b5b3],_0x5a50a9[_0x40b528]=_0x5666c7;}else _0x5a50a9[_0x40b528][_0x312a84(0xe4)]=[..._0xa9b5b3];_0x2c77c1[TestFrameworkConstants[_0x312a84(0xcd)]]=_0x5a50a9,TestInfo['setTestDetails'](_0x102557,_0x2c77c1),!this[_0x312a84(0xd0)][_0x102557]&&(this['testLevelTags'][_0x102557]={}),this[_0x312a84(0xd0)][_0x102557][_0x40b528]=[..._0xa9b5b3];}}static[a61_0x1599ca(0xc7)](){const _0x5b1dbc=a61_0x1599ca,_0x420116={...this[_0x5b1dbc(0xdb)]};return _0x420116;}static[a61_0x1599ca(0xca)](){const _0x113ede=a61_0x1599ca,_0x20d372={...this[_0x113ede(0xd0)]};return _0x20d372;}static[a61_0x1599ca(0xc9)](){const _0x2b5842=a61_0x1599ca;this['buildLevelTags']={},this[_0x2b5842(0xd0)]={};}}module[a61_0x1599ca(0xf0)]=CustomTagManager;function a61_0x1ddd(){const _0x1e7dd3=['632WstfIi','getTestIdentifierFromTestInfo','field_type','./framework/automationFramework','anrJQ','buildLevelTags','UTTJo','parseCommaSeparatedValues','16FpwcGr','MODULE_NAME','ysiqr','string','multi_dropdown','retry','values','14127XmSFHG','10176bInjNX','3171854zZzVYX','lFHPZ','749974QHXDCF','2019726BeJMsm','Lyauy','tkUHM','trim','currentTest','JDqCa','exports','rvWLC','./framework/constants/testFrameworkConstants','ySYcK','4013845tClWyB','toObject','2121480pNLpkU','getBuildLevelTags','DqgxK','clearTags','getTestLevelTags','getInstance','modules','KEY_CUSTOM_TAGS','testInfo','setCustomTags','testLevelTags','./TestInfo','testhubConfig','setTestDetails','./browserstackCLI','Custom\x20tag\x20value\x20cannot\x20be\x20empty'];a61_0x1ddd=function(){return _0x1e7dd3;};return a61_0x1ddd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a62_0x4a05ee=a62_0x2d02;(function(_0x26c288,_0x53963c){const _0x212cd0=a62_0x2d02,_0x100ec7=_0x26c288();while(!![]){try{const _0x3dc21d=parseInt(_0x212cd0(0xf3))/0x1*(parseInt(_0x212cd0(0xf8))/0x2)+parseInt(_0x212cd0(0xf2))/0x3+parseInt(_0x212cd0(0xee))/0x4+parseInt(_0x212cd0(0xf4))/0x5+parseInt(_0x212cd0(0xf0))/0x6*(-parseInt(_0x212cd0(0xfa))/0x7)+-parseInt(_0x212cd0(0xf6))/0x8+parseInt(_0x212cd0(0xeb))/0x9*(-parseInt(_0x212cd0(0xf5))/0xa);if(_0x3dc21d===_0x53963c)break;else _0x100ec7['push'](_0x100ec7['shift']());}catch(_0x514212){_0x100ec7['push'](_0x100ec7['shift']());}}}(a62_0x56cd,0xd1431));const {createClassLogger}=require('../../helpers/classLogger.js');function a62_0x56cd(){const _0x563699=['1504719xxlylq','1ywdhHX','6053645HlmFJo','493720UBnwAY','12847984HfEsRe','wNEpX','2047302PMWITH','observers','126ISzehY','9wUDIlc','registerObserver','push','191184tQgeNk','exports','90414MdHDQr','getInstance'];a62_0x56cd=function(){return _0x563699;};return a62_0x56cd();}function a62_0x2d02(_0x12f9f0,_0x9be6c0){const _0x56cd1e=a62_0x56cd();return a62_0x2d02=function(_0x2d02f9,_0xe365f1){_0x2d02f9=_0x2d02f9-0xeb;let _0x3ade14=_0x56cd1e[_0x2d02f9];return _0x3ade14;},a62_0x2d02(_0x12f9f0,_0x9be6c0);}class EventDispatcher{static #instance=null;constructor(){const _0xa91ed3=a62_0x2d02;this[_0xa91ed3(0xf9)]={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a62_0x4a05ee(0xec)](_0x506d09,_0x3e6e86){const _0x23ce32=a62_0x4a05ee;!this[_0x23ce32(0xf9)][_0x506d09]&&(this[_0x23ce32(0xf9)][_0x506d09]=[]),this[_0x23ce32(0xf9)][_0x506d09][_0x23ce32(0xed)](_0x3e6e86);}async['notifyObserver'](_0x19d1de,_0x5bf8e7){const _0x317ee1=a62_0x4a05ee,_0x1c55ee={'wNEpX':function(_0x257908,_0x3b89a2){return _0x257908(_0x3b89a2);}};if(this[_0x317ee1(0xf9)][_0x19d1de]){for(const _0x1ca190 of this['observers'][_0x19d1de]){await _0x1c55ee[_0x317ee1(0xf7)](_0x1ca190,_0x5bf8e7);}return;}}}const eventDispatcher=EventDispatcher[a62_0x4a05ee(0xf1)]();Object['freeze'](eventDispatcher),module[a62_0x4a05ee(0xef)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a63_0x1c6d15=a63_0x1a93;(function(_0x2de403,_0x1782e6){const _0x1f7b40=a63_0x1a93,_0x4c9137=_0x2de403();while(!![]){try{const _0x569b18=parseInt(_0x1f7b40(0x1ab))/0x1+parseInt(_0x1f7b40(0x198))/0x2*(-parseInt(_0x1f7b40(0x1ad))/0x3)+-parseInt(_0x1f7b40(0x19b))/0x4+-parseInt(_0x1f7b40(0x1b1))/0x5*(-parseInt(_0x1f7b40(0x1aa))/0x6)+parseInt(_0x1f7b40(0x196))/0x7+parseInt(_0x1f7b40(0x193))/0x8+-parseInt(_0x1f7b40(0x18f))/0x9;if(_0x569b18===_0x1782e6)break;else _0x4c9137['push'](_0x4c9137['shift']());}catch(_0x4a7bc9){_0x4c9137['push'](_0x4c9137['shift']());}}}(a63_0x548b,0x331fa));const {createClassLogger}=require(a63_0x1c6d15(0x1a2)),util=require(a63_0x1c6d15(0x1b0)),eventDispatcher=require(a63_0x1c6d15(0x1a7)),CLIUtils=require(a63_0x1c6d15(0x1a9)),TrackedInstance=require(a63_0x1c6d15(0x1a4)),logger=createClassLogger(a63_0x1c6d15(0x1a5));function a63_0x1a93(_0x28846a,_0x59af41){const _0x548bbd=a63_0x548b();return a63_0x1a93=function(_0x1a93e4,_0x32d66f){_0x1a93e4=_0x1a93e4-0x18d;let _0x4705ea=_0x548bbd[_0x1a93e4];return _0x4705ea;},a63_0x1a93(_0x28846a,_0x59af41);}function a63_0x548b(){const _0x3491ab=['getAutomationFrameworkVersion','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getAutomationFrameworkName','automationFrameworkVersion','2824623IYJMjA','get','createContext','\x20hookState=','1565632KCqbiZ','getCurrentInstanceName','getAllData','1737484CFmhdd','registerObserver','2QGFQbg','notifyObserver','setState','991164fUjVFN','debug','automationFrameworkName','getTrackedInstance','trackEvent:\x20automationFrameworkState=','runHooks','KEY_AUTOMATION_SESSIONS','../../../helpers/classLogger.js','instances','../instances/trackedInstance.js','AutomationFramework','set','../eventDispatcher.js','getId','../cliUtils.js','290484fcnfso','141809KHRjEB','exports','460749zdQjGo','automation_sessions','getHookRegistryKey','util','35kSMYTu','trackEvent'];a63_0x548b=function(){return _0x3491ab;};return a63_0x548b();}class AutomationFramework{static ['instances']=new Map();static [a63_0x1c6d15(0x1a1)]=a63_0x1c6d15(0x1ae);static [a63_0x1c6d15(0x1b4)]='non_browserstack_automation_sessions';constructor(_0x280a5b,_0x2290ed){const _0x38c45c=a63_0x1c6d15;this[_0x38c45c(0x19d)]=_0x280a5b,this['automationFrameworkVersion']=_0x2290ed;}[a63_0x1c6d15(0x18d)](){return this['automationFrameworkName'];}[a63_0x1c6d15(0x1b3)](){const _0x2ed8b8=a63_0x1c6d15;return this[_0x2ed8b8(0x18e)];}async[a63_0x1c6d15(0x1b2)](_0x40c1ca,_0x363732,_0x2c9d9d={}){const _0x2dde51=a63_0x1c6d15;logger[_0x2dde51(0x19c)](_0x2dde51(0x19f)+_0x40c1ca+_0x2dde51(0x192)+_0x363732);}async[a63_0x1c6d15(0x1a0)](_0x530d52,_0x1a759a,_0x13ca22,_0x548117={}){const _0x41f41a=a63_0x1c6d15,_0xb55c3d=CLIUtils[_0x41f41a(0x1af)](_0x1a759a,_0x13ca22);_0x530d52&&_0x530d52[_0x41f41a(0x19a)](_0x1a759a),await eventDispatcher[_0x41f41a(0x199)](_0xb55c3d,_0x548117);}static[a63_0x1c6d15(0x197)](_0x12f2a9,_0x4dfe57,_0x5618ae){const _0x36e97c=a63_0x1c6d15;eventDispatcher[_0x36e97c(0x197)](CLIUtils[_0x36e97c(0x1af)](_0x12f2a9,_0x4dfe57),_0x5618ae);}static['setTrackedInstance'](_0x271c7a,_0x3a2d8a){const _0x4973b4=a63_0x1c6d15;AutomationFramework['instances']['set'](_0x271c7a[_0x4973b4(0x1a8)](),_0x3a2d8a);}static[a63_0x1c6d15(0x19e)](){const _0x16c17d=a63_0x1c6d15,_0x4b0d80=TrackedInstance[_0x16c17d(0x191)](CLIUtils[_0x16c17d(0x194)]());return AutomationFramework[_0x16c17d(0x1a3)][_0x16c17d(0x190)](_0x4b0d80['getId']());}static['setState'](_0x2e041e,_0x1cd882,_0x2508e5){const _0xa9d27f=a63_0x1c6d15;_0x2e041e[_0xa9d27f(0x195)]()[_0xa9d27f(0x1a6)](_0x1cd882,_0x2508e5);}static['getState'](_0xc11e5,_0x5992df){const _0x4c8a61=a63_0x1c6d15;return _0xc11e5['getAllData']()[_0x4c8a61(0x190)](_0x5992df);}}module[a63_0x1c6d15(0x1ac)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a64_0x561338=a64_0x35a5;(function(_0x44b1a4,_0x469985){const _0x55f7c0=a64_0x35a5,_0x2f3b1e=_0x44b1a4();while(!![]){try{const _0x564225=parseInt(_0x55f7c0(0x13d))/0x1+-parseInt(_0x55f7c0(0x137))/0x2+parseInt(_0x55f7c0(0x143))/0x3*(-parseInt(_0x55f7c0(0x14a))/0x4)+-parseInt(_0x55f7c0(0x147))/0x5*(-parseInt(_0x55f7c0(0x132))/0x6)+-parseInt(_0x55f7c0(0x13b))/0x7+-parseInt(_0x55f7c0(0x146))/0x8+parseInt(_0x55f7c0(0x138))/0x9;if(_0x564225===_0x469985)break;else _0x2f3b1e['push'](_0x2f3b1e['shift']());}catch(_0x5de512){_0x2f3b1e['push'](_0x2f3b1e['shift']());}}}(a64_0x3864,0x22a28));function a64_0x3864(){const _0x28216f=['5CRRZsy','started_at','exports','184wLIrGp','framework_session_id','KEY_PLATFORM_INDEX','KEY_CAPABILITIES','is_browserstack_hub','1075890smOteI','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','BROWSERSTACK_PLATFORM_INDEX','KEY_HUB_URL','input_capabilities','230242bWairm','2747790JETVct','w3cexecutescriptasync','KEY_STARTED_AT','722666GCQGVX','KEY_FRAMEWORK_SESSION_ID','283029juqrAt','platform_index','COMMAND_SCREENSHOT','COMMAND_GET','hub_url','ENV_BROWSERSTACK_PLATFORM_INDEX','9198huJcxk','KEY_ENDED_AT','KEY_INPUT_CAPABILITIES','2131160qBkYsl'];a64_0x3864=function(){return _0x28216f;};return a64_0x3864();}function a64_0x35a5(_0x20a9d0,_0x3eb5ad){const _0x3864b6=a64_0x3864();return a64_0x35a5=function(_0x35a5ba,_0x3b5b1c){_0x35a5ba=_0x35a5ba-0x12e;let _0x37224b=_0x3864b6[_0x35a5ba];return _0x37224b;},a64_0x35a5(_0x20a9d0,_0x3eb5ad);}const a64_0x1facb6={};a64_0x1facb6[a64_0x561338(0x142)]=a64_0x561338(0x134),a64_0x1facb6[a64_0x561338(0x135)]=a64_0x561338(0x141),a64_0x1facb6[a64_0x561338(0x13c)]=a64_0x561338(0x12e),a64_0x1facb6[a64_0x561338(0x145)]=a64_0x561338(0x136),a64_0x1facb6[a64_0x561338(0x130)]='capabilities',a64_0x1facb6['KEY_IS_BROWSERSTACK_HUB']=a64_0x561338(0x131),a64_0x1facb6[a64_0x561338(0x13a)]=a64_0x561338(0x148),a64_0x1facb6[a64_0x561338(0x144)]='ended_at',a64_0x1facb6[a64_0x561338(0x12f)]=a64_0x561338(0x13e),a64_0x1facb6['COMMAND_NEW_SESSION']='newsession',a64_0x1facb6[a64_0x561338(0x140)]='get',a64_0x1facb6[a64_0x561338(0x13f)]='screenshot',a64_0x1facb6['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a64_0x1facb6[a64_0x561338(0x133)]=a64_0x561338(0x139),a64_0x1facb6['COMMAND_QUIT']='quit';const AutomationFrameworkConstants=a64_0x1facb6;module[a64_0x561338(0x149)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a65_0x5347(_0x490b05,_0x47b04e){const _0x2164e0=a65_0x2164();return a65_0x5347=function(_0x53473b,_0x51d1d1){_0x53473b=_0x53473b-0x178;let _0x40cf6d=_0x2164e0[_0x53473b];return _0x40cf6d;},a65_0x5347(_0x490b05,_0x47b04e);}const a65_0x4bf3aa=a65_0x5347;function a65_0x2164(){const _0x263d6d=['KEY_TEST_UUID','348222SAMuqN','test_logs','KEY_TEST_LOGS','test_hook_last_finished','KEY_HOOK_LAST_STARTED','KEY_TEST_FAILURE_TYPE','KEY_TEST_RESULT_AT','KEY_PLATFORM_INDEX','file_path','KEY_SESSION_NAME','file_name','KEY_TEST_LOCATION','276oPsKLP','27270KxCFQf','test_meta','1260gjxvpg','KEY_AUTOMATE_SESSION_STATUS','test_hooks_started','test_file_path','KEY_HOOK_LAST_FINISHED','DEFAULT_TEST_RESULT','test_failure_reason','2320cIPqnC','KEY_TEST_ATTACHMENTS','KEY_TEST_FRAMEWORK_VERSION','KIND_SCREENSHOT','file_size','KEY_AUTOMATE_SESSION_REASON','pending','KEY_EVENT_ENDED_AT','KEY_TEST_META','automate_session_reason','7opIWfI','test_scopes','test_ended_at','954708JJFWlA','KEY_LOGS','KEY_TEST_SCOPE','hook_result','2447871xvatdH','KIND_LOG','55WockbG','automate_session_name','KEY_FILE_LEVEL','test_uuid','KEY_HOOKS_FINISHED','HOOK_REGEX','KEY_HOOKS_STARTED','109885UuvSjk','53683zBWkzh','custom_metadata','platform_index','test_result_at','KEY_EVENT_STARTED_AT','KEY_TEST_STARTED_AT','KEY_HOOK_ID','KEY_TEST_SCOPES','KEY_TEST_RETRY_OF','KEY_HOOK_FAILURE','KEY_HOOK_FAILURE_REASON','^(BEFORE_|AFTER_)','hook_failure_type','test_location','hook_logs','1166008gazfWP','test_code','event_ended_at','retry_of','test_tags','KEY_TEST_ENDED_AT','test_hooks_finished','KEY_CUSTOM_TAGS','test_attachments','KEY_FILE_NAME','KEY_TEST_ID','event_started_at','test_failure_type','KEY_FILE_PATH','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_FAILURE','test_result','automate_session_status','KEY_TEST_FAILURE_REASON','test_scope','test_session_name'];a65_0x2164=function(){return _0x263d6d;};return a65_0x2164();}(function(_0xd0c1f9,_0x527e5c){const _0x459e6a=a65_0x5347,_0x3855b1=_0xd0c1f9();while(!![]){try{const _0x2c236d=parseInt(_0x459e6a(0x1a6))/0x1*(parseInt(_0x459e6a(0x186))/0x2)+-parseInt(_0x459e6a(0x1ad))/0x3+-parseInt(_0x459e6a(0x192))/0x4*(parseInt(_0x459e6a(0x1b6))/0x5)+parseInt(_0x459e6a(0x195))/0x6*(parseInt(_0x459e6a(0x1b7))/0x7)+parseInt(_0x459e6a(0x1c6))/0x8+parseInt(_0x459e6a(0x193))/0x9*(parseInt(_0x459e6a(0x19c))/0xa)+parseInt(_0x459e6a(0x1af))/0xb*(-parseInt(_0x459e6a(0x1a9))/0xc);if(_0x2c236d===_0x527e5c)break;else _0x3855b1['push'](_0x3855b1['shift']());}catch(_0x4dbb98){_0x3855b1['push'](_0x3855b1['shift']());}}}(a65_0x2164,0xe7665));const a65_0x4a9311={};a65_0x4a9311[a65_0x4bf3aa(0x185)]=a65_0x4bf3aa(0x1b2),a65_0x4a9311[a65_0x4bf3aa(0x17a)]='test_id',a65_0x4a9311['KEY_TEST_NAME']='test_name',a65_0x4a9311['KEY_TEST_FILE_PATH']=a65_0x4bf3aa(0x198),a65_0x4a9311['KEY_TEST_TAGS']=a65_0x4bf3aa(0x1ca),a65_0x4a9311['KEY_TEST_RESULT']=a65_0x4bf3aa(0x180),a65_0x4a9311[a65_0x4bf3aa(0x18c)]=a65_0x4bf3aa(0x1ba),a65_0x4a9311[a65_0x4bf3aa(0x1bc)]='test_started_at',a65_0x4a9311[a65_0x4bf3aa(0x1cb)]=a65_0x4bf3aa(0x1a8),a65_0x4a9311[a65_0x4bf3aa(0x191)]=a65_0x4bf3aa(0x1c4),a65_0x4a9311[a65_0x4bf3aa(0x1ab)]=a65_0x4bf3aa(0x183),a65_0x4a9311[a65_0x4bf3aa(0x1be)]=a65_0x4bf3aa(0x1a7),a65_0x4a9311['KEY_TEST_FRAMEWORK_NAME']='test_framework_name',a65_0x4a9311[a65_0x4bf3aa(0x19e)]='test_framework_version',a65_0x4a9311['KEY_TEST_CODE']=a65_0x4bf3aa(0x1c7),a65_0x4a9311['KEY_TEST_RERUN_NAME']='test_rerun_name',a65_0x4a9311[a65_0x4bf3aa(0x1bf)]=a65_0x4bf3aa(0x1c9),a65_0x4a9311[a65_0x4bf3aa(0x18d)]=a65_0x4bf3aa(0x1b9),a65_0x4a9311[a65_0x4bf3aa(0x17f)]='test_failure',a65_0x4a9311[a65_0x4bf3aa(0x18b)]=a65_0x4bf3aa(0x17c),a65_0x4a9311[a65_0x4bf3aa(0x182)]=a65_0x4bf3aa(0x19b),a65_0x4a9311[a65_0x4bf3aa(0x188)]=a65_0x4bf3aa(0x187),a65_0x4a9311[a65_0x4bf3aa(0x1a4)]=a65_0x4bf3aa(0x194),a65_0x4a9311[a65_0x4bf3aa(0x18f)]=a65_0x4bf3aa(0x184),a65_0x4a9311[a65_0x4bf3aa(0x17e)]=a65_0x4bf3aa(0x1b0),a65_0x4a9311[a65_0x4bf3aa(0x196)]=a65_0x4bf3aa(0x181),a65_0x4a9311[a65_0x4bf3aa(0x1a1)]=a65_0x4bf3aa(0x1a5),a65_0x4a9311[a65_0x4bf3aa(0x1bb)]=a65_0x4bf3aa(0x17b),a65_0x4a9311[a65_0x4bf3aa(0x1a3)]=a65_0x4bf3aa(0x1c8),a65_0x4a9311[a65_0x4bf3aa(0x1bd)]='hook_id',a65_0x4a9311['KEY_HOOK_RESULT']=a65_0x4bf3aa(0x1ac),a65_0x4a9311['KEY_HOOK_FAILURE_TYPE']=a65_0x4bf3aa(0x1c3),a65_0x4a9311[a65_0x4bf3aa(0x1c1)]='hook_failure_reason',a65_0x4a9311[a65_0x4bf3aa(0x1c0)]='hook_failure',a65_0x4a9311['KEY_HOOK_LOGS']=a65_0x4bf3aa(0x1c5),a65_0x4a9311['KEY_HOOK_NAME']='hook_name',a65_0x4a9311[a65_0x4bf3aa(0x19a)]=a65_0x4bf3aa(0x1a2),a65_0x4a9311['DEFAULT_HOOK_RESULT']='pending',a65_0x4a9311[a65_0x4bf3aa(0x19f)]='TEST_SCREENSHOT',a65_0x4a9311[a65_0x4bf3aa(0x1ae)]='TEST_LOG',a65_0x4a9311[a65_0x4bf3aa(0x1b4)]=a65_0x4bf3aa(0x1c2),a65_0x4a9311[a65_0x4bf3aa(0x1b5)]=a65_0x4bf3aa(0x197),a65_0x4a9311[a65_0x4bf3aa(0x1b3)]=a65_0x4bf3aa(0x1cc),a65_0x4a9311[a65_0x4bf3aa(0x18a)]='test_hook_last_started',a65_0x4a9311[a65_0x4bf3aa(0x199)]=a65_0x4bf3aa(0x189),a65_0x4a9311[a65_0x4bf3aa(0x1aa)]='logs',a65_0x4a9311[a65_0x4bf3aa(0x1cd)]=a65_0x4bf3aa(0x1b8),a65_0x4a9311[a65_0x4bf3aa(0x19d)]=a65_0x4bf3aa(0x178),a65_0x4a9311['KEY_FILE_SIZE']=a65_0x4bf3aa(0x1a0),a65_0x4a9311[a65_0x4bf3aa(0x179)]=a65_0x4bf3aa(0x190),a65_0x4a9311[a65_0x4bf3aa(0x17d)]=a65_0x4bf3aa(0x18e),a65_0x4a9311[a65_0x4bf3aa(0x1b1)]='file_level';const TestFrameworkConstants=a65_0x4a9311;module['exports']=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a66_0x40ce(){const _0x564d22=[',\x20state=','trackPlaywrightInstance:\x20instance\x20already\x20exists','64482YYUsZP','params','info','CREATE','getId','NONE','getTrackedInstance','runHooks','1343361qtCQZK','getAutomationFrameworkName','../../../helpers/classLogger.js','bsParams','2bVlZaa','328836qMXDXC','24qpzRMB','\x20target=','522978DtrksN','createContext','qtkpE','190IFmKQo','instance','getCurrentInstanceName','message','trackPlaywrightInstance','TEkjr','JavKL','./automationFramework.js','trackPlaywrightInstance:\x20saved\x20instance\x20contextId=','5965848OnHEWA','PLAYWRIGHT_DISPATCH','35vsEwou','../instances/automationFrameworkInstance.js','logger','resolveInstance','\x20hookState=','420327jyMbJV','setTrackedInstance','420122PjUZEY','rxYFX','trackPlaywrightInstance:\x20created\x20instance\x20for\x20target=','14JQJBdd','getAutomationFrameworkVersion','../instances/trackedInstance.js'];a66_0x40ce=function(){return _0x564d22;};return a66_0x40ce();}const a66_0x126dc2=a66_0x45a1;(function(_0x24a246,_0x3e7a0e){const _0x52c745=a66_0x45a1,_0x5bc344=_0x24a246();while(!![]){try{const _0x21f067=parseInt(_0x52c745(0x163))/0x1+parseInt(_0x52c745(0x177))/0x2*(-parseInt(_0x52c745(0x173))/0x3)+parseInt(_0x52c745(0x178))/0x4*(-parseInt(_0x52c745(0x189))/0x5)+parseInt(_0x52c745(0x17b))/0x6*(parseInt(_0x52c745(0x166))/0x7)+-parseInt(_0x52c745(0x179))/0x8*(-parseInt(_0x52c745(0x161))/0x9)+-parseInt(_0x52c745(0x17e))/0xa*(-parseInt(_0x52c745(0x16b))/0xb)+parseInt(_0x52c745(0x187))/0xc;if(_0x21f067===_0x3e7a0e)break;else _0x5bc344['push'](_0x5bc344['shift']());}catch(_0x5891b3){_0x5bc344['push'](_0x5bc344['shift']());}}}(a66_0x40ce,0x4e15f));function a66_0x45a1(_0x2795b9,_0x593bf0){const _0x40ce4a=a66_0x40ce();return a66_0x45a1=function(_0x45a13d,_0x4e261d){_0x45a13d=_0x45a13d-0x15d;let _0x35e84b=_0x40ce4a[_0x45a13d];return _0x35e84b;},a66_0x45a1(_0x2795b9,_0x593bf0);}const AutomationFramework=require(a66_0x126dc2(0x185)),{createClassLogger}=require(a66_0x126dc2(0x175)),AutomationFrameworkState=require('../state/automationFrameworkState.js'),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a66_0x126dc2(0x168)),AutomationFrameworkInstance=require(a66_0x126dc2(0x15d));class PlaywrightAutomationFramework extends AutomationFramework{['logger']=createClassLogger('PlaywrightAutomationFramework');constructor(_0x434518,_0x178e06){super(_0x434518,_0x178e06);}async['trackEvent'](_0x515e29,_0x45c711,_0x1bf44f={}){const _0x58957d=a66_0x126dc2,_0x3033ce={};_0x3033ce['JavKL']=function(_0x5a0bb8,_0x2b96dd){return _0x5a0bb8===_0x2b96dd;};const _0x6f8180=_0x3033ce;this[_0x58957d(0x15e)]['debug']('trackEvent:\x20automationFrameworkState='+_0x515e29+_0x58957d(0x160)+_0x45c711),await super['trackEvent'](_0x515e29,_0x45c711,_0x1bf44f);const _0x59418b=this[_0x58957d(0x15f)](_0x515e29,_0x45c711,_0x1bf44f);if(_0x6f8180[_0x58957d(0x184)](_0x59418b,null))return;_0x1bf44f[_0x58957d(0x17f)]=_0x59418b,await this[_0x58957d(0x172)](_0x59418b,_0x515e29,_0x45c711,_0x1bf44f);}[a66_0x126dc2(0x15f)](_0x331fc5,_0x39cffa,_0x35bc5f={}){const _0x10f107=a66_0x126dc2,_0x539bea={};_0x539bea['rxYFX']=function(_0x332c94,_0x209479){return _0x332c94===_0x209479;},_0x539bea[_0x10f107(0x183)]=function(_0x514dec,_0x3b8693){return _0x514dec===_0x3b8693;};const _0x665a88=_0x539bea;let _0x3802a8=null;return(_0x665a88['rxYFX'](_0x331fc5,AutomationFrameworkState[_0x10f107(0x16e)])||_0x665a88['TEkjr'](_0x331fc5,AutomationFrameworkState[_0x10f107(0x188)])&&(_0x35bc5f[_0x10f107(0x181)]&&_0x35bc5f[_0x10f107(0x181)][_0x10f107(0x16c)]&&_0x35bc5f[_0x10f107(0x181)][_0x10f107(0x16c)][_0x10f107(0x176)])||_0x665a88[_0x10f107(0x164)](_0x331fc5,AutomationFrameworkState[_0x10f107(0x170)]))&&this[_0x10f107(0x182)](_0x331fc5,_0x35bc5f),_0x3802a8=AutomationFramework[_0x10f107(0x171)](),_0x3802a8;}[a66_0x126dc2(0x182)](_0x36cb8e,_0xbd9762){const _0x12a4ce=a66_0x126dc2,_0x19b4fa={};_0x19b4fa[_0x12a4ce(0x17d)]=_0x12a4ce(0x16a);const _0x4cfc5a=_0x19b4fa;if(AutomationFramework[_0x12a4ce(0x171)]()){this[_0x12a4ce(0x15e)][_0x12a4ce(0x16d)](_0x4cfc5a[_0x12a4ce(0x17d)]);return;}const _0x43620a=CLIUtils[_0x12a4ce(0x180)](),_0x2d5b19=TrackedInstance[_0x12a4ce(0x17c)](_0x43620a);let _0x227fc4=null;this[_0x12a4ce(0x15e)][_0x12a4ce(0x16d)](_0x12a4ce(0x165)+_0x43620a+_0x12a4ce(0x169)+_0x36cb8e),_0x227fc4=new AutomationFrameworkInstance(_0x2d5b19,this[_0x12a4ce(0x174)](),this[_0x12a4ce(0x167)](),_0x36cb8e),AutomationFramework[_0x12a4ce(0x162)](_0x2d5b19,_0x227fc4),this['logger']['info'](_0x12a4ce(0x186)+_0x2d5b19[_0x12a4ce(0x16f)]()+_0x12a4ce(0x17a)+_0x43620a);}}module['exports']=PlaywrightAutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a67_0x1e1664=a67_0x45f6;(function(_0x3f7b3b,_0x12c185){const _0x30cb93=a67_0x45f6,_0x2586ee=_0x3f7b3b();while(!![]){try{const _0x46a8b6=parseInt(_0x30cb93(0x1d0))/0x1+parseInt(_0x30cb93(0x1d3))/0x2+parseInt(_0x30cb93(0x214))/0x3*(parseInt(_0x30cb93(0x257))/0x4)+-parseInt(_0x30cb93(0x221))/0x5*(-parseInt(_0x30cb93(0x28f))/0x6)+-parseInt(_0x30cb93(0x27c))/0x7*(parseInt(_0x30cb93(0x1e7))/0x8)+-parseInt(_0x30cb93(0x296))/0x9*(parseInt(_0x30cb93(0x23e))/0xa)+-parseInt(_0x30cb93(0x247))/0xb;if(_0x46a8b6===_0x12c185)break;else _0x2586ee['push'](_0x2586ee['shift']());}catch(_0x1f5d9f){_0x2586ee['push'](_0x2586ee['shift']());}}}(a67_0x3bd2,0xb67d5));const TestFramework=require(a67_0x1e1664(0x1d1)),TestFrameworkState=require(a67_0x1e1664(0x226)),HookState=require('../state/hookState.js'),{createClassLogger}=require(a67_0x1e1664(0x26e)),TestFrameworkInstance=require(a67_0x1e1664(0x25a)),CLIUtils=require(a67_0x1e1664(0x20a)),TrackedInstance=require(a67_0x1e1664(0x1e3)),TestFrameworkConstants=require(a67_0x1e1664(0x1f4)),logger=createClassLogger(a67_0x1e1664(0x231)),{v4:uuidv4}=require(a67_0x1e1664(0x1c2)),util=require(a67_0x1e1664(0x1d6)),{getPlaywrightSessionName,getPlaywrightTestFilePath,getPlaywrightTestId,getPlaywrightTestTitle,getPlaywrightTestLocation,getPlaywrightTestTags,getPlaywrightTestCode,getPlaywrightTestScope,getPlaywrightTestScopes,getStepsAndLogs,getScreenshots,getVideos,getPlaywrightCustomRerunParam,getMediaArtifactsLogs,getManualUploadLogs,updatePayloadForTraceLogs}=require(a67_0x1e1664(0x294)),TestInfo=require(a67_0x1e1664(0x267)),GrpcClient=require(a67_0x1e1664(0x265)),{removeAnsiColors,getFailureType,failureData}=require(a67_0x1e1664(0x269)),{getFailureData,getTestTags,getTestRunIdentifier}=require(a67_0x1e1664(0x24c)),{findNestedKey,sendTraceZip,validateFilePath}=require(a67_0x1e1664(0x24c)),path=require('path'),fs=require('fs'),helper=require(a67_0x1e1664(0x1b0)),{PLAYWRIGHT_TRACE_LOGS}=require(a67_0x1e1664(0x21a));function a67_0x45f6(_0x5ad6af,_0x28a4e6){const _0x3bd203=a67_0x3bd2();return a67_0x45f6=function(_0x45f6b1,_0x7a8937){_0x45f6b1=_0x45f6b1-0x1b0;let _0x31dc18=_0x3bd203[_0x45f6b1];return _0x31dc18;},a67_0x45f6(_0x5ad6af,_0x28a4e6);}class PlaywrightTestFramework extends TestFramework{constructor(_0x15df3c,_0x981e86,_0x43988e){super(_0x15df3c,_0x981e86,_0x43988e);}async[a67_0x1e1664(0x24f)](_0x3f7373,_0x58eb94,_0x413ce0={}){const _0x3cc988=a67_0x1e1664,_0x2c8597={'FOjym':function(_0xf7db07,_0x108a1d){return _0xf7db07===_0x108a1d;},'DiJcx':function(_0x331d89,_0x4047c6){return _0x331d89===_0x4047c6;},'AcNYw':function(_0x1ca747,_0x463ff9,_0x3250af){return _0x1ca747(_0x463ff9,_0x3250af);},'mqNde':function(_0x59ab9d,_0x51875c){return _0x59ab9d===_0x51875c;},'BxXAf':'test','YvxqR':'trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s'};super[_0x3cc988(0x24f)](_0x3f7373,_0x58eb94,_0x413ce0);if(_0x2c8597[_0x3cc988(0x272)](_0x3f7373,TestFrameworkState['TEST_SCREENSHOT'])){const _0x37890c=TestInfo['getTestIdentifierFromTestInfo'](_0x413ce0['test'],_0x413ce0[_0x3cc988(0x266)]['retry']);TestInfo[_0x3cc988(0x210)](_0x37890c,_0x413ce0[_0x3cc988(0x285)],!![]);}const _0x2c7372=this[_0x3cc988(0x248)](_0x3f7373,_0x58eb94,_0x413ce0);if(!_0x2c7372)return;logger['debug'](_0x3cc988(0x27b)+_0x3f7373+_0x3cc988(0x241)+_0x58eb94+'\x20instanceId='+_0x2c7372[_0x3cc988(0x24b)]());try{if(_0x2c8597[_0x3cc988(0x272)](_0x58eb94,HookState[_0x3cc988(0x22e)])&&_0x2c8597[_0x3cc988(0x1fd)](_0x3f7373,TestFrameworkState[_0x3cc988(0x220)])){const _0x5bee8e=_0x413ce0[_0x3cc988(0x266)];logger[_0x3cc988(0x26c)](_0x3cc988(0x1da)+_0x5bee8e['id']+'}');const _0x5e7d6b=TestInfo[_0x3cc988(0x1cf)](_0x2c8597[_0x3cc988(0x26b)](getTestRunIdentifier,_0x5bee8e,_0x413ce0[_0x3cc988(0x285)][_0x3cc988(0x24a)]));_0x2c7372[_0x3cc988(0x261)](this['parsePlaywrightTest'](_0x5e7d6b,_0x5bee8e,_0x413ce0[_0x3cc988(0x285)])),logger['debug'](_0x3cc988(0x1f9)+_0x5bee8e['id']+_0x3cc988(0x1b1)+_0x3f7373+_0x3cc988(0x1c8)+_0x58eb94+_0x3cc988(0x1b9)+_0x2c7372[_0x3cc988(0x24b)]());}if(_0x2c8597[_0x3cc988(0x275)](_0x58eb94,HookState[_0x3cc988(0x1f8)])&&_0x2c8597[_0x3cc988(0x272)](_0x3f7373,TestFrameworkState[_0x3cc988(0x220)])){const _0x2b955f=_0x413ce0[_0x3cc988(0x266)],_0x57afe3=_0x413ce0[_0x3cc988(0x285)];logger[_0x3cc988(0x26c)](_0x3cc988(0x1e4)+_0x2b955f['id']),_0x2c7372[_0x3cc988(0x261)](this[_0x3cc988(0x1b8)](_0x2b955f['id'],_0x57afe3,_0x2b955f)),await this[_0x3cc988(0x293)](_0x2c7372,_0x3f7373,_0x58eb94,_0x2c8597[_0x3cc988(0x268)],_0x413ce0);}if(CLIUtils[_0x3cc988(0x1d8)](_0x3f7373['toString']()[_0x3cc988(0x219)]('.')[0x1])){const _0x58dddb=await this['trackHookEvent'](_0x2c7372,_0x3f7373,_0x58eb94,_0x413ce0);_0x2c7372[_0x3cc988(0x261)](_0x58dddb);}}catch(_0x22db12){logger[_0x3cc988(0x1dc)](util[_0x3cc988(0x1de)](_0x2c8597['YvxqR'],_0x3f7373,_0x58eb94,_0x413ce0[_0x3cc988(0x22a)],_0x22db12));}_0x413ce0[_0x3cc988(0x1eb)]=_0x2c7372,await this['runHooks'](_0x2c7372,_0x3f7373,_0x58eb94,_0x413ce0);}[a67_0x1e1664(0x248)](_0x321efe,_0x26ed53,_0x472a07={}){const _0x3ae4ce=a67_0x1e1664,_0x2cb5ad={};_0x2cb5ad[_0x3ae4ce(0x1f5)]=function(_0x5d473c,_0x4763d2){return _0x5d473c===_0x4763d2;};const _0x5f46ae=_0x2cb5ad;let _0x234836=null;return(_0x5f46ae[_0x3ae4ce(0x1f5)](_0x321efe,TestFrameworkState[_0x3ae4ce(0x24e)])||_0x5f46ae[_0x3ae4ce(0x1f5)](_0x321efe,TestFrameworkState[_0x3ae4ce(0x218)]))&&this[_0x3ae4ce(0x280)](_0x321efe,_0x472a07),_0x234836=TestFramework[_0x3ae4ce(0x290)](),_0x234836;}['trackPlaywrightInstance'](_0x311660,_0x1c3430){const _0x1072a2=a67_0x1e1664,_0x117784=CLIUtils[_0x1072a2(0x244)](),_0x5ce7d7=TrackedInstance[_0x1072a2(0x1c9)](_0x117784);let _0x4572b9=null;logger[_0x1072a2(0x1c5)](_0x1072a2(0x1df)+_0x117784+_0x1072a2(0x295)+_0x311660),_0x4572b9=new TestFrameworkInstance(_0x5ce7d7,this[_0x1072a2(0x255)](),this[_0x1072a2(0x282)](),_0x311660,HookState[_0x1072a2(0x218)]),TestFramework[_0x1072a2(0x259)](_0x5ce7d7,_0x4572b9),logger[_0x1072a2(0x1c5)](_0x1072a2(0x20c)+_0x5ce7d7[_0x1072a2(0x1d7)]()+_0x1072a2(0x279)+_0x117784);}['parsePlaywrightTest'](_0x5545d,_0x4882dc,_0x174b1b){const _0x1cb1d5=a67_0x1e1664,_0x3ceed1={'MyADd':function(_0x4b4f54,_0x1a1e2e){return _0x4b4f54(_0x1a1e2e);},'SWMPm':function(_0x38cbac,_0x2209ca){return _0x38cbac(_0x2209ca);},'AkJgz':function(_0x55a827,_0x253447){return _0x55a827(_0x253447);},'NeCHe':function(_0x2d19bb,_0x537d01){return _0x2d19bb(_0x537d01);},'AnIsi':function(_0x20c969,_0x33a631){return _0x20c969(_0x33a631);},'kUcid':function(_0x2a7838,_0x5f3d15){return _0x2a7838(_0x5f3d15);},'PyOmy':function(_0x1db91b,_0x590238,_0x5497d7){return _0x1db91b(_0x590238,_0x5497d7);},'matvo':function(_0x219bf2,_0x1f3645){return _0x219bf2(_0x1f3645);}},_0xfc140d=_0x3ceed1['MyADd'](getPlaywrightTestId,_0x4882dc),_0x3fc8e4=_0x3ceed1[_0x1cb1d5(0x288)](getPlaywrightTestTitle,_0x4882dc),_0x44aaa8=_0x3ceed1[_0x1cb1d5(0x1f3)](getTestTags,_0x4882dc),_0x1f704c=_0x3ceed1['SWMPm'](getPlaywrightTestCode,_0x4882dc),_0x36f400=_0x3ceed1[_0x1cb1d5(0x1f3)](getPlaywrightTestFilePath,_0x4882dc),_0x3faaa6=_0x36f400+':'+_0x3ceed1['AkJgz'](getPlaywrightTestLocation,_0x4882dc),_0x450b09=_0x3ceed1['NeCHe'](getPlaywrightTestScope,_0x4882dc),_0x50b265=_0x3ceed1[_0x1cb1d5(0x1e6)](getPlaywrightTestScopes,_0x4882dc),_0x91c705=_0x3ceed1[_0x1cb1d5(0x262)](getPlaywrightSessionName,_0x4882dc),_0x769c35=this[_0x1cb1d5(0x255)]()[0x0],_0x233fe7=_0x3ceed1[_0x1cb1d5(0x1e9)](getTestRunIdentifier,_0x4882dc,_0x174b1b[_0x1cb1d5(0x24a)]),_0x4806c0={[TestFrameworkConstants[_0x1cb1d5(0x254)]]:_0x769c35,[TestFrameworkConstants[_0x1cb1d5(0x1f6)]]:this['getTestFrameworksVersions']()[_0x769c35],[TestFrameworkConstants[_0x1cb1d5(0x1d9)]]:[],[TestFrameworkConstants[_0x1cb1d5(0x23a)]]:{},[TestFrameworkConstants[_0x1cb1d5(0x211)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x5545d,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x1cb1d5(0x283)]]:_0x91c705,[TestFrameworkConstants[_0x1cb1d5(0x230)]]:_0x36f400,[TestFrameworkConstants[_0x1cb1d5(0x276)]]:_0xfc140d,[TestFrameworkConstants[_0x1cb1d5(0x1e2)]]:_0x3fc8e4,[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x3faaa6,[TestFrameworkConstants[_0x1cb1d5(0x252)]]:_0x1f704c,[TestFrameworkConstants[_0x1cb1d5(0x1e1)]]:_0x44aaa8,[TestFrameworkConstants[_0x1cb1d5(0x1ff)]]:_0x4882dc[_0x1cb1d5(0x20d)][0x0][_0x1cb1d5(0x21e)],[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x450b09,[TestFrameworkConstants[_0x1cb1d5(0x205)]]:_0x50b265,[TestFrameworkConstants[_0x1cb1d5(0x286)]]:_0x3ceed1[_0x1cb1d5(0x1cd)](getPlaywrightCustomRerunParam,_0x4882dc)};TestInfo[_0x1cb1d5(0x210)](_0x233fe7,_0x4806c0);const _0x31def2={};return _0x31def2[_0x233fe7]=_0x4806c0,_0x31def2;}[a67_0x1e1664(0x1b8)](_0x3e434d,_0x4d1cfa,_0x4b78bd){const _0x46c1b9=a67_0x1e1664,_0x93418e={'GmkQc':function(_0x476998,_0x47d7e2){return _0x476998(_0x47d7e2);},'AuTUj':_0x46c1b9(0x28c),'RDjQq':function(_0x42aaf1,_0x5df75b){return _0x42aaf1===_0x5df75b;},'BZfgG':function(_0x5efed9,_0x2d0017){return _0x5efed9===_0x2d0017;},'wMxYP':'No\x20reason\x20provided','KwSwg':_0x46c1b9(0x291),'lFjlL':function(_0x3c4d78,_0x45f68f){return _0x3c4d78(_0x45f68f);},'zLZvD':function(_0x28e9c9,_0x1a35c1,_0x58fb81){return _0x28e9c9(_0x1a35c1,_0x58fb81);},'yAZfD':function(_0x387593,_0x17ec7f){return _0x387593+_0x17ec7f;},'VscNh':_0x46c1b9(0x260),'axeEr':_0x46c1b9(0x27a),'DuvRA':function(_0x30f39e,_0x2fd8a5){return _0x30f39e===_0x2fd8a5;},'mKjug':_0x46c1b9(0x284),'BFlkO':_0x46c1b9(0x1b7),'uTXMX':function(_0x2fa6cc,_0x15bac6){return _0x2fa6cc===_0x15bac6;},'wVlxA':function(_0x29dac2,_0x2e3705){return _0x29dac2===_0x2e3705;},'OcBPT':'Expected\x20to\x20fail,\x20but\x20passed.','OMfpQ':function(_0xff737a,_0x4015dc,_0x40fbbe){return _0xff737a(_0x4015dc,_0x40fbbe);},'BVfqJ':function(_0x5e0b24,_0x475a13){return _0x5e0b24||_0x475a13;},'uZCxf':function(_0x5c5ff4,_0x5ac5d3){return _0x5c5ff4(_0x5ac5d3);},'slKdi':function(_0x2bc759,_0x274d7f){return _0x2bc759>_0x274d7f;},'AFjoL':function(_0x4dbcae,_0x3d9e77,_0x495f9d){return _0x4dbcae(_0x3d9e77,_0x495f9d);},'JDrQO':function(_0x3fad55,_0x3bce95){return _0x3fad55-_0x3bce95;},'krGPD':_0x46c1b9(0x20f),'QlyiW':function(_0x547d8f,_0x9a5107){return _0x547d8f>_0x9a5107;},'GjXbq':function(_0xb40a6,_0x2da770,_0x12201b){return _0xb40a6(_0x2da770,_0x12201b);},'tQURB':function(_0x49fcdb,_0x500a16){return _0x49fcdb>_0x500a16;}};logger[_0x46c1b9(0x26c)](_0x46c1b9(0x277)+_0x3e434d);const _0x3c4c5d=_0x93418e[_0x46c1b9(0x1c3)](getTestRunIdentifier,_0x4b78bd,_0x4d1cfa['retry']),_0x3c5ee9=new Date(_0x4d1cfa['startTime']),_0x211773=_0x4d1cfa['duration'],_0x5c6760=new Date(_0x93418e[_0x46c1b9(0x273)](_0x3c5ee9['getTime'](),_0x211773)),_0x3b6223=_0x4d1cfa[_0x46c1b9(0x245)],_0x5c3e49=TestInfo['getTestDetails'](_0x3c4c5d)[TestFrameworkConstants[_0x46c1b9(0x1e0)]]||{};let _0x276098=_0x3b6223;if(_0x93418e['RDjQq'](_0x4d1cfa[_0x46c1b9(0x245)],_0x4b78bd['expectedStatus']))_0x276098=_0x93418e['RDjQq'](_0x4d1cfa[_0x46c1b9(0x245)],_0x93418e[_0x46c1b9(0x289)])?_0x93418e[_0x46c1b9(0x289)]:_0x93418e[_0x46c1b9(0x223)];else{(_0x93418e[_0x46c1b9(0x22f)](_0x276098,_0x93418e[_0x46c1b9(0x223)])||_0x93418e[_0x46c1b9(0x22f)](_0x276098,_0x93418e[_0x46c1b9(0x23f)])||_0x93418e[_0x46c1b9(0x1fc)](_0x276098,_0x93418e[_0x46c1b9(0x229)]))&&(_0x276098=_0x93418e[_0x46c1b9(0x23f)]);if(_0x93418e['uTXMX'](_0x4d1cfa['status'],_0x93418e[_0x46c1b9(0x223)])&&_0x93418e[_0x46c1b9(0x28a)](_0x4b78bd[_0x46c1b9(0x27e)],_0x93418e[_0x46c1b9(0x23f)])){const _0x47fb5e={};_0x47fb5e[_0x46c1b9(0x21f)]=_0x93418e['OcBPT'],_0x47fb5e[_0x46c1b9(0x26f)]=_0x93418e[_0x46c1b9(0x1fe)],_0x4d1cfa[_0x46c1b9(0x1dc)]=_0x47fb5e,_0x4d1cfa[_0x46c1b9(0x216)]=[_0x4d1cfa[_0x46c1b9(0x1dc)]];}}const {failureData:_0x4df1ee,logs:_0xa6ca37}=_0x93418e['OMfpQ'](getFailureData,_0x4d1cfa?.[_0x46c1b9(0x216)],{}),_0x4be8ab={[TestFrameworkConstants[_0x46c1b9(0x25c)]]:_0x93418e['BVfqJ'](_0x4df1ee,null),[TestFrameworkConstants[_0x46c1b9(0x1b6)]]:_0x4d1cfa?.['error']&&_0x93418e[_0x46c1b9(0x249)](getFailureType,_0x4d1cfa[_0x46c1b9(0x1dc)][_0x46c1b9(0x21f)]),[TestFrameworkConstants[_0x46c1b9(0x1fa)]]:_0x4d1cfa?.[_0x46c1b9(0x1dc)]&&_0x93418e['uZCxf'](removeAnsiColors,_0x4d1cfa['error']['message']),[TestFrameworkConstants[_0x46c1b9(0x232)]]:[],[TestFrameworkConstants[_0x46c1b9(0x28e)]]:_0x276098,[TestFrameworkConstants[_0x46c1b9(0x27f)]]:_0x5c6760['toISOString'](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x46c1b9(0x22c)](),[TestFrameworkConstants[_0x46c1b9(0x1e0)]]:_0x5c3e49};if(_0x4d1cfa&&_0x93418e[_0x46c1b9(0x1bc)](_0x4d1cfa['retry'],0x0)){const _0x230780=TestInfo['getTestUUID'](_0x93418e[_0x46c1b9(0x206)](getTestRunIdentifier,_0x4b78bd,_0x93418e[_0x46c1b9(0x23c)](_0x4d1cfa[_0x46c1b9(0x24a)],0x1)));_0x4be8ab[TestFrameworkConstants[_0x46c1b9(0x1ed)]]=_0x230780;}const _0x180100={};_0x180100[_0x46c1b9(0x266)]=_0x4b78bd;const _0xadd32f=this[_0x46c1b9(0x248)](TestFrameworkState[_0x46c1b9(0x220)],HookState[_0x46c1b9(0x1f8)],_0x180100),_0x557528=_0xadd32f['getAllData']()[_0x46c1b9(0x246)](_0x3c4c5d)[TestFrameworkConstants[_0x46c1b9(0x1ec)]],_0x2d98eb=[],_0x18a79f=_0x93418e['OMfpQ'](findNestedKey,_0x4d1cfa,_0x93418e['krGPD']);if(_0x18a79f&&_0x93418e[_0x46c1b9(0x217)](validateFilePath,_0x18a79f))try{_0x2d98eb[_0x46c1b9(0x227)]({'kind':_0x93418e[_0x46c1b9(0x1bb)],'timestamp':new Date()[_0x46c1b9(0x22c)](),'test_run_uuid':_0x557528,'file_name':path[_0x46c1b9(0x233)](_0x18a79f),'file_size':fs[_0x46c1b9(0x235)](_0x18a79f)[_0x46c1b9(0x25d)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x21b764){logger[_0x46c1b9(0x1dc)]('Error\x20processing\x20direct\x20trace\x20file\x20'+_0x18a79f+':\x20'+_0x21b764[_0x46c1b9(0x21f)]);}const _0x4b142d=TestInfo[_0x46c1b9(0x1d4)](),_0x2666fd=_0x4b142d[_0x46c1b9(0x274)](_0x5bc4eb=>_0x5bc4eb['testUId']===_0x557528);_0x2666fd[_0x46c1b9(0x1f2)](_0x3d7247=>{const _0x326ef3=_0x46c1b9;if(_0x3d7247[_0x326ef3(0x1fb)]&&_0x93418e[_0x326ef3(0x213)](validateFilePath,_0x3d7247[_0x326ef3(0x1fb)])&&!_0x2d98eb[_0x326ef3(0x256)](_0x3a79bf=>_0x3a79bf[_0x326ef3(0x21d)]===path[_0x326ef3(0x233)](_0x3d7247[_0x326ef3(0x1fb)])))try{_0x2d98eb[_0x326ef3(0x227)]({'kind':_0x93418e[_0x326ef3(0x1bb)],'timestamp':new Date()[_0x326ef3(0x22c)](),'test_run_uuid':_0x557528,'file_name':path['basename'](_0x3d7247[_0x326ef3(0x1fb)]),'file_size':fs[_0x326ef3(0x235)](_0x3d7247['filePath'])['size'],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x4c87a3){logger[_0x326ef3(0x1dc)](_0x326ef3(0x25e)+_0x3d7247['filePath']+_0x326ef3(0x1c4)+_0x4c87a3[_0x326ef3(0x21f)]);}});if(_0x93418e['QlyiW'](_0x2d98eb[_0x46c1b9(0x22a)],0x0)){const _0xf2b181=_0x4be8ab[TestFrameworkConstants[_0x46c1b9(0x232)]]||[];_0x4be8ab[TestFrameworkConstants['KEY_LOGS']]=[..._0xf2b181,..._0x2d98eb];}const _0x552f10=TestInfo[_0x46c1b9(0x26a)](_0x3c4c5d)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x5d9c2b=_0x93418e[_0x46c1b9(0x21c)](getManualUploadLogs,_0x552f10,_0xadd32f[_0x46c1b9(0x253)]()[_0x46c1b9(0x246)](_0x3c4c5d)[TestFrameworkConstants[_0x46c1b9(0x1ec)]]);if(_0x93418e['tQURB'](_0x5d9c2b[_0x46c1b9(0x22a)],0x0)){const _0x1c8451=_0x4be8ab[TestFrameworkConstants[_0x46c1b9(0x232)]]||[];_0x4be8ab[TestFrameworkConstants[_0x46c1b9(0x232)]]=[..._0x1c8451,..._0x5d9c2b];}const _0x409b26=_0x4b78bd[_0x46c1b9(0x22b)]||[],_0x48fce0=_0x4be8ab[TestFrameworkConstants[_0x46c1b9(0x1e0)]]||{};_0x409b26[_0x46c1b9(0x1f2)](_0x4ef7de=>{const _0x225d94=_0x46c1b9,{type:_0x1395bc}=_0x4ef7de;let _0x31ffc4=_0x4ef7de['description'];if(!_0x1395bc)return;(_0x93418e[_0x225d94(0x1e5)](_0x31ffc4,undefined)||_0x93418e[_0x225d94(0x1fc)](_0x31ffc4,null)||_0x93418e[_0x225d94(0x1fc)](_0x93418e[_0x225d94(0x213)](String,_0x31ffc4)[_0x225d94(0x1d2)](),''))&&(_0x31ffc4=_0x93418e['wMxYP']);if(!_0x48fce0[_0x1395bc]){const _0x9b44c9={};_0x9b44c9[_0x225d94(0x23b)]=_0x93418e['KwSwg'],_0x9b44c9[_0x225d94(0x1f0)]=[],_0x48fce0[_0x1395bc]=_0x9b44c9;}else!_0x48fce0[_0x1395bc][_0x225d94(0x23b)]&&(_0x48fce0[_0x1395bc]['field_type']=_0x93418e[_0x225d94(0x215)]),!Array[_0x225d94(0x1c6)](_0x48fce0[_0x1395bc]['values'])&&(_0x48fce0[_0x1395bc][_0x225d94(0x1f0)]=[]);const _0x46dc62=_0x93418e[_0x225d94(0x217)](String,_0x31ffc4)[_0x225d94(0x219)](',')[_0x225d94(0x20e)](_0x2b43b7=>_0x2b43b7[_0x225d94(0x1d2)]());_0x48fce0[_0x1395bc][_0x225d94(0x1f0)]=[...new Set([..._0x48fce0[_0x1395bc]['values'],..._0x46dc62])];}),_0x4be8ab[TestFrameworkConstants[_0x46c1b9(0x1e0)]]=_0x48fce0,TestInfo[_0x46c1b9(0x210)](_0x3c4c5d,_0x4be8ab);const _0x23b322={};return _0x23b322[_0x3c4c5d]=_0x4be8ab,_0x23b322;}async[a67_0x1e1664(0x263)](_0x2dddce,_0x1a40eb,_0x4ab590,_0x4d67aa){const _0x7de078=a67_0x1e1664,_0x42c14e={'yAEtQ':function(_0xb3c005,_0x345f5c,_0x1b5dfc){return _0xb3c005(_0x345f5c,_0x1b5dfc);},'tCIYU':function(_0x3cdda3,_0xa62457){return _0x3cdda3 in _0xa62457;},'nuaIV':function(_0x1ec887,_0x18864d){return _0x1ec887(_0x18864d);},'CphBk':function(_0x1315e2,_0x37782d){return _0x1315e2(_0x37782d);},'eQecm':function(_0xb42a86,_0x25e088){return _0xb42a86===_0x25e088;},'rNUmU':function(_0x5201e4){return _0x5201e4();},'vMYhn':function(_0x4baa11,_0x5f3649){return _0x4baa11>_0x5f3649;},'WIiKF':function(_0x398e7a,_0x489e79,_0x6b07c7){return _0x398e7a(_0x489e79,_0x6b07c7);},'KWOAW':_0x7de078(0x1b3),'xygZn':function(_0x5039f6,_0x270cff){return _0x5039f6(_0x270cff);},'XpiEx':function(_0x4c63fb,_0x1a7003){return _0x4c63fb(_0x1a7003);},'FQeLJ':_0x7de078(0x284),'hUTyL':_0x7de078(0x27a),'JFRIq':function(_0x65128,_0x41f0dd){return _0x65128!==_0x41f0dd;},'UlPrG':function(_0x3c92c6,_0xa2495e){return _0x3c92c6+_0xa2495e;},'ivYRC':_0x7de078(0x1cb)},_0x4e3408=_0x4d67aa[_0x7de078(0x266)],_0x384d47=_0x4d67aa[_0x7de078(0x270)],_0xf01330=_0x42c14e[_0x7de078(0x228)](getTestRunIdentifier,_0x4e3408,_0x4d67aa[_0x7de078(0x285)][_0x7de078(0x24a)]),_0x14996e=_0x1a40eb[_0x7de078(0x1dd)]()[_0x7de078(0x219)]('.')[0x1];let _0x25c635=_0x2dddce[_0x7de078(0x253)]()[_0x7de078(0x246)](_0xf01330)[TestFrameworkConstants[_0x7de078(0x211)]];!_0x25c635&&(_0x25c635={});!_0x42c14e['tCIYU'](_0x14996e,_0x25c635)&&(_0x25c635[_0x14996e]=[]);let _0x41005c=_0x2dddce[_0x7de078(0x253)]()['get'](_0xf01330)[TestFrameworkConstants[_0x7de078(0x23a)]];!_0x41005c&&(_0x41005c={});!_0x42c14e[_0x7de078(0x204)](_0x14996e,_0x41005c)&&(_0x41005c[_0x14996e]=[]);const _0x4061d2={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x25c635,[TestFrameworkConstants[_0x7de078(0x23a)]]:_0x41005c},_0x2428b6={};_0x2428b6[_0xf01330]=_0x4061d2;const _0x5e8307=_0x2428b6,_0x2990da=_0x42c14e[_0x7de078(0x1be)](getPlaywrightTestFilePath,_0x4e3408),_0x5712dd=_0x2990da+':'+_0x42c14e[_0x7de078(0x1cc)](getPlaywrightTestLocation,_0x4e3408),_0x2f1144=TestInfo[_0x7de078(0x26a)](_0xf01330)[TestFrameworkConstants[_0x7de078(0x1e0)]]||{};if(_0x42c14e[_0x7de078(0x1e8)](_0x4ab590,HookState[_0x7de078(0x22e)])){const _0x205b3d={'key':_0x14996e,[TestFrameworkConstants['KEY_HOOK_ID']]:_0x42c14e['rNUmU'](uuidv4),[TestFrameworkConstants[_0x7de078(0x287)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x7de078(0x1db)]]:_0x384d47[_0x7de078(0x21e)],[TestFrameworkConstants[_0x7de078(0x1bf)]]:[],[TestFrameworkConstants[_0x7de078(0x21b)]]:_0x384d47['title'],[TestFrameworkConstants[_0x7de078(0x230)]]:_0x2990da,[TestFrameworkConstants[_0x7de078(0x234)]]:_0x5712dd,[TestFrameworkConstants[_0x7de078(0x1e0)]]:_0x2f1144};_0x25c635[_0x14996e][_0x7de078(0x227)](_0x205b3d),_0x5e8307[_0xf01330][TestFrameworkConstants[_0x7de078(0x224)]]=_0x14996e,logger['debug'](_0x7de078(0x222)+_0x14996e+_0x7de078(0x1d5)+_0x205b3d+'\x20\x20and\x20args\x20=\x20'+_0x4d67aa);}else{if(_0x42c14e[_0x7de078(0x1e8)](_0x4ab590,HookState['POST'])){const _0x71e1ce=await _0x4d67aa[_0x7de078(0x285)],_0x1ef8e7=_0x25c635[_0x14996e]||[],_0x3f90eb=_0x4d67aa[_0x7de078(0x270)];logger['debug'](_0x7de078(0x23d)+_0x1ef8e7+_0x7de078(0x24d)+_0x4d67aa);if(_0x42c14e['vMYhn'](_0x1ef8e7[_0x7de078(0x22a)],0x0)){const _0x46d488=_0x1ef8e7[_0x7de078(0x201)]();if(_0x3f90eb[_0x7de078(0x1dc)]){const _0x179ee3=_0x42c14e[_0x7de078(0x25b)](failureData,_0x3f90eb[_0x7de078(0x1dc)],_0x42c14e[_0x7de078(0x236)]);_0x46d488[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x42c14e[_0x7de078(0x271)](getFailureType,_0x3f90eb?.[_0x7de078(0x1dc)][_0x7de078(0x21f)]),_0x46d488[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x42c14e[_0x7de078(0x212)](removeAnsiColors,_0x3f90eb?.[_0x7de078(0x1dc)][_0x7de078(0x21f)]),_0x46d488[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x42c14e[_0x7de078(0x1ca)],_0x46d488[TestFrameworkConstants[_0x7de078(0x1f7)]]=_0x179ee3;}else _0x46d488[TestFrameworkConstants[_0x7de078(0x287)]]=_0x42c14e[_0x7de078(0x1ba)];_0x42c14e[_0x7de078(0x242)](_0x71e1ce,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x46d488[TestFrameworkConstants[_0x7de078(0x287)]]=!_0x3f90eb[_0x7de078(0x1dc)]?_0x42c14e['hUTyL']:_0x42c14e[_0x7de078(0x1ca)]);const _0x158fb6=new Date(_0x3f90eb['startTime']),_0x3bd205=new Date(_0x42c14e[_0x7de078(0x243)](_0x158fb6[_0x7de078(0x1b4)](),_0x3f90eb[_0x7de078(0x264)]));_0x46d488[TestFrameworkConstants[_0x7de078(0x200)]]=_0x3bd205[_0x7de078(0x22c)](),_0x46d488[TestFrameworkConstants[_0x7de078(0x1e0)]]=_0x2f1144;const _0x3be53b=_0x46d488[TestFrameworkConstants[_0x7de078(0x1f1)]];await this[_0x7de078(0x293)](_0x2dddce,_0x1a40eb,_0x3be53b,_0x42c14e[_0x7de078(0x1ef)],_0x4d67aa),!_0x41005c[_0x14996e]&&(_0x41005c[_0x14996e]=[]),_0x41005c[_0x14996e]['push'](_0x46d488),_0x5e8307[_0xf01330][TestFrameworkConstants[_0x7de078(0x209)]]=_0x14996e;}}}return _0x5e8307;}async[a67_0x1e1664(0x293)](_0x3f98a1,_0x5c8eaa,_0x2af4e2,_0x574b86,_0x1762b){const _0x3c1a1f=a67_0x1e1664,_0x39f3a2={'IwlAJ':function(_0xb0e467,_0x771a7c){return _0xb0e467===_0x771a7c;},'ijMXx':_0x3c1a1f(0x266),'oTQGb':function(_0x126886,_0x153ab2,_0x231b83){return _0x126886(_0x153ab2,_0x231b83);},'mLqqZ':function(_0x584a44,_0x335c91,_0x2943bc){return _0x584a44(_0x335c91,_0x2943bc);},'OljXA':_0x3c1a1f(0x1ea),'GJtGN':function(_0x4b5b58,_0xda3535,_0x300cf6,_0x329240){return _0x4b5b58(_0xda3535,_0x300cf6,_0x329240);},'WhteS':function(_0x1279ae,_0x2e8f3f,_0x54f79b){return _0x1279ae(_0x2e8f3f,_0x54f79b);},'fnZml':function(_0x305080,_0x42acbc,_0x241091){return _0x305080(_0x42acbc,_0x241091);},'YXlFQ':function(_0x38676c,_0x28fa5c,_0xdade7e){return _0x38676c(_0x28fa5c,_0xdade7e);},'lfrdf':function(_0x52ad63,_0x34e422){return _0x52ad63/_0x34e422;},'FClEx':function(_0x3f3423,_0x7000fa){return _0x3f3423<_0x7000fa;},'BfupK':function(_0x4c6489,_0x29438d){return _0x4c6489*_0x29438d;},'ZiJYv':function(_0x167ccd,_0x1786a3){return _0x167ccd+_0x1786a3;},'VmaYg':function(_0x30ef45,_0x56e0e5,_0x395512,_0x56f401,_0x411380){return _0x30ef45(_0x56e0e5,_0x395512,_0x56f401,_0x411380);},'PhUMV':function(_0x5079e3,_0x34b8a7){return _0x5079e3+_0x34b8a7;},'VCThN':function(_0x1a6072,_0x242e96){return _0x1a6072+_0x242e96;},'esHvp':function(_0x4f2ad0,_0x3fbbae,_0x5c1837,_0x4f6ea5){return _0x4f2ad0(_0x3fbbae,_0x5c1837,_0x4f6ea5);},'uxWEU':_0x3c1a1f(0x1cb),'xgDlt':function(_0x235650,_0x4dd64d,_0x3e90c9){return _0x235650(_0x4dd64d,_0x3e90c9);}};try{if(_0x39f3a2[_0x3c1a1f(0x238)](_0x574b86,_0x39f3a2['ijMXx'])){const _0x2e9894=await _0x1762b[_0x3c1a1f(0x285)],_0x1bd20b=_0x39f3a2[_0x3c1a1f(0x258)](getTestRunIdentifier,_0x1762b['test'],_0x1762b[_0x3c1a1f(0x285)][_0x3c1a1f(0x24a)]),_0x19ebcb=_0x1762b['test'];logger[_0x3c1a1f(0x26c)](_0x3c1a1f(0x240)+_0x1bd20b+_0x3c1a1f(0x26d)+util[_0x3c1a1f(0x1c1)](_0x2e9894));const _0x4431dc=_0x3f98a1[_0x3c1a1f(0x253)]()[_0x3c1a1f(0x246)](_0x1bd20b)[TestFrameworkConstants[_0x3c1a1f(0x1ec)]];await _0x39f3a2[_0x3c1a1f(0x281)](sendTraceZip,_0x2e9894,_0x4431dc);const _0x1b42f8=TestInfo[_0x3c1a1f(0x26a)](_0x1bd20b)[_0x39f3a2[_0x3c1a1f(0x28d)]];if(_0x1b42f8){!_0x2e9894['attachments']&&(_0x2e9894[_0x3c1a1f(0x1ea)]=[]);Object[_0x3c1a1f(0x1b5)](_0x2e9894['attachments'],_0x2e9894[_0x3c1a1f(0x1ea)][_0x3c1a1f(0x292)](_0x1b42f8));const _0x5b70f4=TestInfo[_0x3c1a1f(0x26a)](_0x1bd20b);delete _0x5b70f4[_0x39f3a2[_0x3c1a1f(0x28d)]],TestInfo[_0x3c1a1f(0x210)](_0x1bd20b,_0x5b70f4);}const {steps:_0x35a2af,logs:_0x2f51bb}=_0x39f3a2[_0x3c1a1f(0x1c7)](getStepsAndLogs,_0x2e9894[_0x3c1a1f(0x1c0)],_0x3f98a1[_0x3c1a1f(0x253)]()['get'](_0x1bd20b)[TestFrameworkConstants[_0x3c1a1f(0x1ec)]],_0x39f3a2[_0x3c1a1f(0x278)]),_0x5d374=_0x39f3a2[_0x3c1a1f(0x1b2)](getScreenshots,_0x2e9894,_0x3f98a1[_0x3c1a1f(0x253)]()['get'](_0x1bd20b)[TestFrameworkConstants[_0x3c1a1f(0x1ec)]]),_0x26946d=_0x39f3a2['fnZml'](getVideos,_0x2e9894,_0x3f98a1[_0x3c1a1f(0x253)]()[_0x3c1a1f(0x246)](_0x1bd20b)[TestFrameworkConstants['KEY_TEST_UUID']]),{_:_0x3fbfe0,logs:_0x4c81e7}=_0x39f3a2[_0x3c1a1f(0x27d)](getFailureData,_0x2e9894[_0x3c1a1f(0x216)],{'test_run_uuid':_0x3f98a1[_0x3c1a1f(0x253)]()[_0x3c1a1f(0x246)](_0x1bd20b)[TestFrameworkConstants[_0x3c1a1f(0x1ec)]]}),_0x691b03=TestInfo[_0x3c1a1f(0x26a)](_0x1bd20b)[TestFrameworkConstants[_0x3c1a1f(0x202)]]||{},_0x3b899b=_0x39f3a2['YXlFQ'](getMediaArtifactsLogs,_0x691b03,_0x3f98a1['getAllData']()[_0x3c1a1f(0x246)](_0x1bd20b)[TestFrameworkConstants[_0x3c1a1f(0x1ec)]]),_0x31c9d6=_0x3f98a1['getAllData']()[_0x3c1a1f(0x246)](_0x1bd20b),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x37577c='',[TestFrameworkConstants[_0x3c1a1f(0x1f6)]]:_0x3dbf17=''}=_0x31c9d6,_0x1156ff=(_0x2f51bb||[])[_0x3c1a1f(0x292)](_0x5d374||[])['concat'](_0x4c81e7||[])[_0x3c1a1f(0x292)](_0x26946d||[])['concat'](_0x3b899b||[]),_0x5c08e5=0x28,_0x500fbe=Math[_0x3c1a1f(0x28b)](_0x39f3a2['lfrdf'](_0x1156ff['length'],_0x5c08e5));for(let _0x2eb065=0x0;_0x39f3a2[_0x3c1a1f(0x237)](_0x2eb065,_0x500fbe);_0x2eb065++){const _0x1dc7aa=_0x39f3a2[_0x3c1a1f(0x1bd)](_0x2eb065,_0x5c08e5),_0x1e6b0e=_0x39f3a2['ZiJYv'](_0x1dc7aa,_0x5c08e5),_0x4f1e78=_0x1156ff[_0x3c1a1f(0x225)](_0x1dc7aa,_0x1e6b0e),_0x3759d5={'platformIndex':'0','logs':_0x4f1e78,'testFrameworkName':_0x37577c,'testFrameworkVersion':_0x3dbf17,'testFrameworkState':_0x5c8eaa[_0x3c1a1f(0x1dd)]()['split']('.')[0x1]};_0x39f3a2[_0x3c1a1f(0x1ee)](updatePayloadForTraceLogs,_0x3759d5,_0x1762b,_0x1bd20b,_0x3f98a1),logger[_0x3c1a1f(0x26c)](_0x3c1a1f(0x239)+_0x1bd20b+'\x20batch\x20'+_0x39f3a2[_0x3c1a1f(0x207)](_0x2eb065,0x1)+'/'+_0x500fbe+_0x3c1a1f(0x25f)+util[_0x3c1a1f(0x1c1)](_0x3759d5));const _0xc71c0a=await GrpcClient[_0x3c1a1f(0x208)]()[_0x3c1a1f(0x251)](_0x3759d5);logger[_0x3c1a1f(0x26c)](_0x3c1a1f(0x239)+_0x1bd20b+'\x20batch\x20'+_0x39f3a2['VCThN'](_0x2eb065,0x1)+'/'+_0x500fbe+_0x3c1a1f(0x20b)+util[_0x3c1a1f(0x1c1)](_0xc71c0a));}}else{const {steps:_0x334e2b,logs:_0x23acf9}=_0x39f3a2[_0x3c1a1f(0x203)](getStepsAndLogs,_0x1762b[_0x3c1a1f(0x270)][_0x3c1a1f(0x1c0)],_0x2af4e2,_0x39f3a2[_0x3c1a1f(0x1ce)]),_0x53b546=_0x39f3a2[_0x3c1a1f(0x22d)](getTestRunIdentifier,_0x1762b['test'],_0x1762b[_0x3c1a1f(0x285)][_0x3c1a1f(0x24a)]);logger['debug'](_0x3c1a1f(0x240)+_0x53b546);const _0x1bc34c=_0x3f98a1[_0x3c1a1f(0x253)]()['get'](_0x53b546),{[TestFrameworkConstants[_0x3c1a1f(0x254)]]:_0x174aea='',[TestFrameworkConstants[_0x3c1a1f(0x1f6)]]:_0x4d9877=''}=_0x1bc34c,_0x52eb72={'platformIndex':'0','logs':_0x23acf9,'testFrameworkName':_0x174aea,'testFrameworkVersion':_0x4d9877,'testFrameworkState':_0x5c8eaa[_0x3c1a1f(0x1dd)]()[_0x3c1a1f(0x219)]('.')[0x1]};_0x39f3a2[_0x3c1a1f(0x1ee)](updatePayloadForTraceLogs,_0x52eb72,_0x1762b,_0x53b546,_0x3f98a1),logger['debug']('sendLogCreatedEvent\x20for\x20testId:\x20'+_0x53b546+_0x3c1a1f(0x25f)+util[_0x3c1a1f(0x1c1)](_0x52eb72));const _0x3364af=await GrpcClient[_0x3c1a1f(0x208)]()['logCreatedEvent'](_0x52eb72);}}catch(_0x580a42){logger[_0x3c1a1f(0x1dc)]('Error\x20in\x20sendLogCreatedEvent:\x20'+util[_0x3c1a1f(0x1de)](_0x580a42));}}}module[a67_0x1e1664(0x250)]=PlaywrightTestFramework;function a67_0x3bd2(){const _0x3101c8=['wVlxA','ceil','TEST_ATTACHMENT','OljXA','KEY_TEST_RESULT','18sHnefF','getTrackedInstance','multi_dropdown','concat','sendLogCreatedEvent','../../../helpers/helper.js',',\x20state=','38970xnFXTY','../../../../src/helpers/helper',',\x20testFrameworkState=','WhteS','err','getTime','assign','KEY_TEST_FAILURE_TYPE','timedOut','parsePlaywrightTestResult','\x20instance=','hUTyL','AuTUj','slKdi','BfupK','nuaIV','KEY_HOOK_LOGS','steps','inspect','uuid','zLZvD','\x20from\x20TestDetails:\x20','info','isArray','GJtGN','\x20testHookState=','createContext','FQeLJ','hook','CphBk','matvo','uxWEU','getTestUUID','1111307HGbsOq','./testFramework','trim','2095594fbSPkZ','getTraceFilePaths','\x20&\x20hook\x20=\x20','util','getId','matchHookRegex','KEY_TEST_LOGS','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','KEY_EVENT_STARTED_AT','error','toString','format','trackPlaywrightInstance:\x20created\x20instance\x20for\x20target=','KEY_CUSTOM_TAGS','KEY_TEST_TAGS','KEY_TEST_NAME','../instances/trackedInstance.js','trackEvent\x20loading\x20testResults\x20for\x20testId:\x20','RDjQq','AnIsi','8WJQuyO','eQecm','PyOmy','attachments','instance','KEY_TEST_UUID','KEY_TEST_RETRY_OF','VmaYg','ivYRC','values','KEY_HOOK_ID','forEach','SWMPm','./constants/testFrameworkConstants.js','FKvNy','KEY_TEST_FRAMEWORK_VERSION','KEY_HOOK_FAILURE','POST','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','KEY_TEST_FAILURE_REASON','filePath','BZfgG','DiJcx','OcBPT','KEY_TEST_STARTED_AT','KEY_EVENT_ENDED_AT','pop','KEY_TEST_ATTACHMENTS','esHvp','tCIYU','KEY_TEST_SCOPES','AFjoL','PhUMV','getInstance','KEY_HOOK_LAST_FINISHED','../cliUtils.js','\x20response=','trackPlaywrightInstance:\x20saved\x20instance\x20contextId=','results','map','path','setTestDetails','KEY_HOOKS_STARTED','XpiEx','GmkQc','3xDYOAz','KwSwg','errors','lFjlL','NONE','split','../../utils/constants','KEY_HOOK_NAME','GjXbq','file_name','startTime','message','TEST','7095LmYdvU','Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','axeEr','KEY_HOOK_LAST_STARTED','slice','../state/testFrameworkState.js','push','yAEtQ','BFlkO','length','annotations','toISOString','xgDlt','PRE','DuvRA','KEY_TEST_FILE_PATH','PlaywrightTestFramework','KEY_LOGS','basename','KEY_TEST_LOCATION','statSync','KWOAW','FClEx','IwlAJ','sendLogCreatedEvent\x20for\x20testId:\x20','KEY_HOOKS_FINISHED','field_type','JDrQO','Hook\x20List\x20in\x20Post\x20','160DzUwDB','mKjug','sendLogCreatedEvent:\x20testId=','\x20hookState=','JFRIq','UlPrG','getCurrentInstanceName','status','get','27024404VGMjYK','resolveInstance','uZCxf','retry','getRef','../../playwright/reporter/pwUtils','\x20and\x20args\x20=\x20','INIT_TEST','trackEvent','exports','logCreatedEvent','KEY_TEST_CODE','getAllData','KEY_TEST_FRAMEWORK_NAME','getTestFrameworks','some','4862552mIOJup','oTQGb','setTrackedInstance','../instances/testFrameworkInstance.js','WIiKF','KEY_TEST_FAILURE','size','Error\x20processing\x20trace\x20file\x20','\x20payload=','skipped','addMultipleEntries','kUcid','trackHookEvent','duration','../grpcClient','test','../TestInfo.js','BxXAf','../../../helpers/test-observability/utils','getTestDetails','AcNYw','debug','\x20result=','../../../helpers/classLogger.js','stack','step','xygZn','FOjym','yAZfD','filter','mqNde','KEY_TEST_ID','parsePlaywrightTestResult:\x20testId=','ijMXx','\x20target=','passed','trackEvent:\x20found\x20instance,\x20testFrameworkState=','738346Zsctmn','fnZml','expectedStatus','KEY_TEST_ENDED_AT','trackPlaywrightInstance','mLqqZ','getTestFrameworksVersions','KEY_AUTOMATE_SESSION_NAME','failed','result','KEY_TEST_RERUN_NAME','KEY_HOOK_RESULT','MyADd','VscNh'];a67_0x3bd2=function(){return _0x3101c8;};return a67_0x3bd2();}
|
|
1
|
+
function a67_0x2bf4(){const _0x4a4d30=['KEY_TEST_FRAMEWORK_NAME','KEY_HOOK_NAME','map','NaxsT','FhMxD','EprGR','\x20instance=','108QQpwQg','size','WJkQt','\x20hookState=','\x20batch\x20','getTestIdentifierFromTestInfo','TEST_ATTACHMENT','KEY_TEST_RESULT_AT','get','runHooks','exports','KEY_TEST_RETRY_OF','filter','CwjIm','trackHookEvent','470816lJNdtv','TEST_SCREENSHOT','fBBjL','steps','KEY_HOOK_LAST_FINISHED','oRxBR','annotations','../../../helpers/test-observability/utils','./testFramework','../instances/trackedInstance.js','FNOWd','ceil','err','111CorVVu','24630900jRAWZi','jgiNx','pqfBF','POST','field_type','../../../helpers/helper.js','Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','XeXmn','KEY_HOOK_ID','zQVLo','getTraceFilePaths','attachments','getAllData','80592eWPIre','getTestDetails','../../../../src/helpers/helper','RGfYN','toISOString','setTestDetails','description','KEY_TEST_NAME','mZjMt','getTime','qoPDB','values','2590825kSRYal','../state/hookState.js','stack','Hook\x20List\x20in\x20Post\x20','parsePlaywrightTest','trackPlaywrightInstance','pBRRW','HSHuc','KCNmB','KGflQ','DYDcN','KEY_TEST_FRAMEWORK_VERSION','twpig','3978163FJwnBx','getRef','KEY_TEST_UUID','wkgYH','XcHXQ','addMultipleEntries','sendLogCreatedEvent','\x20target=','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','KEY_TEST_ENDED_AT','Upmfc','basename','inspect','test','wnnEx','KEY_TEST_LOGS','DEFAULT_HOOK_RESULT','KEY_TEST_FAILURE','errors','Expected\x20to\x20fail,\x20but\x20passed.','Error\x20processing\x20direct\x20trace\x20file\x20','hook','forEach','\x20\x20and\x20args\x20=\x20','sendLogCreatedEvent:\x20testId=','ggBwn','FlJqp','KJZiz','length','matchHookRegex','Qtlsa','../grpcClient','zIEWs','duration','setTrackedInstance','expectedStatus','PRE','startTime',',\x20testFrameworkState=','getTestFrameworks','TtmpD','split','KEY_HOOK_LAST_STARTED','../TestInfo.js','4911996MditCz','KEY_TEST_FAILURE_TYPE','RyopN','instance','../../utils/constants','results','info','getInstance','concat','OjsZT','INIT_TEST','MxaLF','NIdOK','message','ESohn','\x20testHookState=','TEST','679652JoFTUv','KEY_TEST_LOCATION','filePath','failed','\x20instanceId=','parsePlaywrightTestResult','step','NONE','yDShx','KEY_HOOKS_STARTED','push','format','gbbXc','slice','statSync','dcbjc','oOooL','getTestFrameworksVersions','passed','DEFAULT_TEST_RESULT','lRdiR','Error\x20processing\x20trace\x20file\x20','KEY_HOOKS_FINISHED','timedOut','testUId','error','isArray','createContext','\x20payload=','NoFDF','\x20from\x20TestDetails:\x20','result','status','KEY_HOOK_RESULT','KEY_EVENT_ENDED_AT','toString','trackPlaywrightInstance:\x20created\x20instance\x20for\x20target=','KEY_LOGS','trim','No\x20reason\x20provided','GnLWN','multi_dropdown','debug','Odwyv','KEY_TEST_STARTED_AT','../state/testFrameworkState.js','util','Error\x20in\x20sendLogCreatedEvent:\x20','HtxHv','\x20result=','MJQfq','DFCLp','trackEvent','PlaywrightTestFramework','KEY_TEST_FILE_PATH','kbZeT','VgSpz','OCFbn','file_name','SDrTE','KEY_TEST_CODE','KEY_TEST_RESULT','title','aYGLD','trackEvent\x20loading\x20testResults\x20for\x20testId:\x20','KEY_CUSTOM_TAGS','KEY_TEST_ATTACHMENTS','KEY_TEST_FAILURE_REASON','GmthD','sendLogCreatedEvent\x20for\x20testId:\x20','./constants/testFrameworkConstants.js','KEY_AUTOMATE_SESSION_NAME','some','uuid','WZaRi','logCreatedEvent',',\x20state=','\x20and\x20args\x20=\x20','KEY_TEST_RERUN_NAME','resolveInstance','getTrackedInstance','tUJOa','parsePlaywrightTestResult:\x20testId=','pop','TIDXe','retry','2wqzYNn','\x20response='];a67_0x2bf4=function(){return _0x4a4d30;};return a67_0x2bf4();}const a67_0x13d367=a67_0x5b47;(function(_0x1587b0,_0x2a236d){const _0x3a83d1=a67_0x5b47,_0x56fb9e=_0x1587b0();while(!![]){try{const _0x59782d=-parseInt(_0x3a83d1(0x172))/0x1*(-parseInt(_0x3a83d1(0x1c8))/0x2)+-parseInt(_0x3a83d1(0x10e))/0x3*(-parseInt(_0x3a83d1(0x11c))/0x4)+parseInt(_0x3a83d1(0x128))/0x5+parseInt(_0x3a83d1(0x161))/0x6+-parseInt(_0x3a83d1(0x135))/0x7+-parseInt(_0x3a83d1(0x1e0))/0x8*(-parseInt(_0x3a83d1(0x1d1))/0x9)+-parseInt(_0x3a83d1(0x10f))/0xa;if(_0x59782d===_0x2a236d)break;else _0x56fb9e['push'](_0x56fb9e['shift']());}catch(_0x617d31){_0x56fb9e['push'](_0x56fb9e['shift']());}}}(a67_0x2bf4,0x6aa30));function a67_0x5b47(_0x18fa50,_0x358375){const _0x2bf4d3=a67_0x2bf4();return a67_0x5b47=function(_0x5b4737,_0x134968){_0x5b4737=_0x5b4737-0x103;let _0x3b35d9=_0x2bf4d3[_0x5b4737];return _0x3b35d9;},a67_0x5b47(_0x18fa50,_0x358375);}const TestFramework=require(a67_0x13d367(0x109)),TestFrameworkState=require(a67_0x13d367(0x19f)),HookState=require(a67_0x13d367(0x129)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a67_0x13d367(0x10a)),TestFrameworkConstants=require(a67_0x13d367(0x1b8)),logger=createClassLogger(a67_0x13d367(0x1a7)),{v4:uuidv4}=require(a67_0x13d367(0x1bb)),util=require(a67_0x13d367(0x1a0)),{getPlaywrightSessionName,getPlaywrightTestFilePath,getPlaywrightTestId,getPlaywrightTestTitle,getPlaywrightTestLocation,getPlaywrightTestTags,getPlaywrightTestCode,getPlaywrightTestScope,getPlaywrightTestScopes,getStepsAndLogs,getScreenshots,getVideos,getPlaywrightCustomRerunParam,getMediaArtifactsLogs,getManualUploadLogs,updatePayloadForTraceLogs}=require(a67_0x13d367(0x114)),TestInfo=require(a67_0x13d367(0x160)),GrpcClient=require(a67_0x13d367(0x154)),{removeAnsiColors,getFailureType,failureData}=require(a67_0x13d367(0x108)),{getFailureData,getTestTags,getTestRunIdentifier}=require('../../playwright/reporter/pwUtils'),{findNestedKey,sendTraceZip,validateFilePath}=require('../../playwright/reporter/pwUtils'),path=require('path'),fs=require('fs'),helper=require(a67_0x13d367(0x11e)),{PLAYWRIGHT_TRACE_LOGS}=require(a67_0x13d367(0x165));class PlaywrightTestFramework extends TestFramework{constructor(_0x5c6c35,_0x1e4906,_0x26f231){super(_0x5c6c35,_0x1e4906,_0x26f231);}async[a67_0x13d367(0x1a6)](_0x3f99a9,_0x1c2537,_0x1f1ec3={}){const _0x77cf39=a67_0x13d367,_0x486273={'VgSpz':function(_0x27f506,_0x2e27c7){return _0x27f506===_0x2e27c7;},'TIDXe':function(_0x18359c,_0x469502){return _0x18359c===_0x469502;},'eCOfN':function(_0x4fc14d,_0x59fa41,_0x17ed65){return _0x4fc14d(_0x59fa41,_0x17ed65);},'rbjii':_0x77cf39(0x142),'MJQfq':'trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s'};super[_0x77cf39(0x1a6)](_0x3f99a9,_0x1c2537,_0x1f1ec3);if(_0x486273[_0x77cf39(0x1aa)](_0x3f99a9,TestFrameworkState[_0x77cf39(0x1e1)])){const _0x4f6884=TestInfo[_0x77cf39(0x1d6)](_0x1f1ec3['test'],_0x1f1ec3['test'][_0x77cf39(0x1c7)]);TestInfo['setTestDetails'](_0x4f6884,_0x1f1ec3[_0x77cf39(0x191)],!![]);}const _0x410922=this[_0x77cf39(0x1c1)](_0x3f99a9,_0x1c2537,_0x1f1ec3);if(!_0x410922)return;logger[_0x77cf39(0x19c)]('trackEvent:\x20found\x20instance,\x20testFrameworkState='+_0x3f99a9+_0x77cf39(0x1d4)+_0x1c2537+_0x77cf39(0x176)+_0x410922['getRef']());try{if(_0x486273['VgSpz'](_0x1c2537,HookState[_0x77cf39(0x159)])&&_0x486273[_0x77cf39(0x1c6)](_0x3f99a9,TestFrameworkState['TEST'])){const _0x3b6489=_0x1f1ec3[_0x77cf39(0x142)];logger['debug']('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x3b6489['id']+'}');const _0x43c564=TestInfo['getTestUUID'](_0x486273['eCOfN'](getTestRunIdentifier,_0x3b6489,_0x1f1ec3[_0x77cf39(0x191)][_0x77cf39(0x1c7)]));_0x410922[_0x77cf39(0x13a)](this[_0x77cf39(0x12c)](_0x43c564,_0x3b6489,_0x1f1ec3[_0x77cf39(0x191)])),logger[_0x77cf39(0x19c)](_0x77cf39(0x13d)+_0x3b6489['id']+_0x77cf39(0x15b)+_0x3f99a9+_0x77cf39(0x170)+_0x1c2537+_0x77cf39(0x1d0)+_0x410922[_0x77cf39(0x136)]());}if(_0x486273[_0x77cf39(0x1aa)](_0x1c2537,HookState[_0x77cf39(0x112)])&&_0x486273[_0x77cf39(0x1c6)](_0x3f99a9,TestFrameworkState[_0x77cf39(0x171)])){const _0x561e4c=_0x1f1ec3[_0x77cf39(0x142)],_0x5c2987=_0x1f1ec3[_0x77cf39(0x191)];logger[_0x77cf39(0x19c)](_0x77cf39(0x1b2)+_0x561e4c['id']),_0x410922['addMultipleEntries'](this['parsePlaywrightTestResult'](_0x561e4c['id'],_0x5c2987,_0x561e4c)),await this[_0x77cf39(0x13b)](_0x410922,_0x3f99a9,_0x1c2537,_0x486273['rbjii'],_0x1f1ec3);}if(CLIUtils[_0x77cf39(0x152)](_0x3f99a9['toString']()[_0x77cf39(0x15e)]('.')[0x1])){const _0x14ebea=await this[_0x77cf39(0x1df)](_0x410922,_0x3f99a9,_0x1c2537,_0x1f1ec3);_0x410922[_0x77cf39(0x13a)](_0x14ebea);}}catch(_0x181ffd){logger[_0x77cf39(0x18b)](util[_0x77cf39(0x17d)](_0x486273[_0x77cf39(0x1a4)],_0x3f99a9,_0x1c2537,_0x1f1ec3[_0x77cf39(0x151)],_0x181ffd));}_0x1f1ec3[_0x77cf39(0x164)]=_0x410922,await this[_0x77cf39(0x1da)](_0x410922,_0x3f99a9,_0x1c2537,_0x1f1ec3);}[a67_0x13d367(0x1c1)](_0x132a66,_0x1c1d93,_0x8ac572={}){const _0x301914=a67_0x13d367,_0x469fb9={};_0x469fb9['UPnuq']=function(_0x55c434,_0x40b16c){return _0x55c434===_0x40b16c;},_0x469fb9[_0x301914(0x1a9)]=function(_0x4b89de,_0x5adceb){return _0x4b89de===_0x5adceb;};const _0x4a7b05=_0x469fb9;let _0x3ef4ed=null;return(_0x4a7b05['UPnuq'](_0x132a66,TestFrameworkState[_0x301914(0x16b)])||_0x4a7b05[_0x301914(0x1a9)](_0x132a66,TestFrameworkState[_0x301914(0x179)]))&&this[_0x301914(0x12d)](_0x132a66,_0x8ac572),_0x3ef4ed=TestFramework[_0x301914(0x1c2)](),_0x3ef4ed;}[a67_0x13d367(0x12d)](_0xfcee11,_0x20deb3){const _0x5c7962=a67_0x13d367,_0x3414a4=CLIUtils['getCurrentInstanceName'](),_0x2be1cb=TrackedInstance[_0x5c7962(0x18d)](_0x3414a4);let _0x241610=null;logger[_0x5c7962(0x167)](_0x5c7962(0x196)+_0x3414a4+_0x5c7962(0x1be)+_0xfcee11),_0x241610=new TestFrameworkInstance(_0x2be1cb,this[_0x5c7962(0x15c)](),this[_0x5c7962(0x183)](),_0xfcee11,HookState[_0x5c7962(0x179)]),TestFramework[_0x5c7962(0x157)](_0x2be1cb,_0x241610),logger[_0x5c7962(0x167)]('trackPlaywrightInstance:\x20saved\x20instance\x20contextId='+_0x2be1cb['getId']()+_0x5c7962(0x13c)+_0x3414a4);}[a67_0x13d367(0x12c)](_0x2d5dc8,_0x275efa,_0x22197e){const _0x5b50be=a67_0x13d367,_0x30a0ce={'fBBjL':function(_0x4e8143,_0xb56900){return _0x4e8143(_0xb56900);},'XcHXQ':function(_0x349447,_0x409b74){return _0x349447(_0x409b74);},'qoPDB':function(_0x21e268,_0x446737,_0x4821b4){return _0x21e268(_0x446737,_0x4821b4);}},_0x13ec3f=_0x30a0ce['fBBjL'](getPlaywrightTestId,_0x275efa),_0x214579=_0x30a0ce[_0x5b50be(0x139)](getPlaywrightTestTitle,_0x275efa),_0x28bcda=_0x30a0ce[_0x5b50be(0x103)](getTestTags,_0x275efa),_0xfd55c9=_0x30a0ce[_0x5b50be(0x103)](getPlaywrightTestCode,_0x275efa),_0x4048e0=_0x30a0ce[_0x5b50be(0x103)](getPlaywrightTestFilePath,_0x275efa),_0x476274=_0x4048e0+':'+_0x30a0ce[_0x5b50be(0x139)](getPlaywrightTestLocation,_0x275efa),_0x54d575=_0x30a0ce[_0x5b50be(0x103)](getPlaywrightTestScope,_0x275efa),_0x37b4bb=_0x30a0ce[_0x5b50be(0x139)](getPlaywrightTestScopes,_0x275efa),_0x3e7c0a=_0x30a0ce[_0x5b50be(0x139)](getPlaywrightSessionName,_0x275efa),_0x1f86de=this[_0x5b50be(0x15c)]()[0x0],_0x9c09d5=_0x30a0ce[_0x5b50be(0x126)](getTestRunIdentifier,_0x275efa,_0x22197e[_0x5b50be(0x1c7)]),_0x312ca8={[TestFrameworkConstants[_0x5b50be(0x1ca)]]:_0x1f86de,[TestFrameworkConstants[_0x5b50be(0x133)]]:this[_0x5b50be(0x183)]()[_0x1f86de],[TestFrameworkConstants[_0x5b50be(0x144)]]:[],[TestFrameworkConstants[_0x5b50be(0x188)]]:{},[TestFrameworkConstants[_0x5b50be(0x17b)]]:{},[TestFrameworkConstants[_0x5b50be(0x137)]]:_0x2d5dc8,[TestFrameworkConstants[_0x5b50be(0x1af)]]:TestFrameworkConstants[_0x5b50be(0x185)],[TestFrameworkConstants[_0x5b50be(0x1b9)]]:_0x3e7c0a,[TestFrameworkConstants[_0x5b50be(0x1a8)]]:_0x4048e0,[TestFrameworkConstants['KEY_TEST_ID']]:_0x13ec3f,[TestFrameworkConstants[_0x5b50be(0x123)]]:_0x214579,[TestFrameworkConstants[_0x5b50be(0x173)]]:_0x476274,[TestFrameworkConstants[_0x5b50be(0x1ae)]]:_0xfd55c9,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x28bcda,[TestFrameworkConstants[_0x5b50be(0x19e)]]:_0x275efa[_0x5b50be(0x166)][0x0][_0x5b50be(0x15a)],[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x54d575,[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x37b4bb,[TestFrameworkConstants[_0x5b50be(0x1c0)]]:_0x30a0ce[_0x5b50be(0x139)](getPlaywrightCustomRerunParam,_0x275efa)};TestInfo[_0x5b50be(0x121)](_0x9c09d5,_0x312ca8);const _0x3803c9={};return _0x3803c9[_0x9c09d5]=_0x312ca8,_0x3803c9;}[a67_0x13d367(0x177)](_0x173443,_0x3869fc,_0x4f0f23){const _0x2ba45b=a67_0x13d367,_0x35dfb3={'OCFbn':function(_0x533fe1,_0x3e2ab0){return _0x533fe1(_0x3e2ab0);},'DFCLp':_0x2ba45b(0x1d7),'wkgYH':function(_0x485da6,_0x5ea844){return _0x485da6===_0x5ea844;},'RGfYN':function(_0x3fff87,_0x30bdd5){return _0x3fff87===_0x30bdd5;},'NIdOK':function(_0x289ace,_0x2a2130){return _0x289ace===_0x2a2130;},'pqfBF':_0x2ba45b(0x199),'XeXmn':_0x2ba45b(0x19b),'zMBLQ':function(_0x3d1eca,_0x1fef41){return _0x3d1eca(_0x1fef41);},'oOooL':function(_0x1b5e93,_0x42e6b4,_0x56d8c2){return _0x1b5e93(_0x42e6b4,_0x56d8c2);},'xdpdT':function(_0x5d10e8,_0x30ae19){return _0x5d10e8+_0x30ae19;},'HtxHv':'skipped','FNOWd':_0x2ba45b(0x184),'wnnEx':_0x2ba45b(0x175),'Qtlsa':function(_0x51d541,_0x1a4b69){return _0x51d541===_0x1a4b69;},'Upmfc':_0x2ba45b(0x189),'KCNmB':function(_0xe37c37,_0xa07156){return _0xe37c37===_0xa07156;},'ESohn':function(_0x4938a5,_0xa2f3a1){return _0x4938a5===_0xa2f3a1;},'FhMxD':_0x2ba45b(0x148),'tUJOa':function(_0x3f49a6,_0x2f9e3b,_0x153a15){return _0x3f49a6(_0x2f9e3b,_0x153a15);},'dcbjc':function(_0x54f8bb,_0x1055c8){return _0x54f8bb||_0x1055c8;},'CwjIm':function(_0xa7e7d8,_0x274e14){return _0xa7e7d8(_0x274e14);},'SDrTE':function(_0x197978,_0x4755d9){return _0x197978>_0x4755d9;},'zQVLo':function(_0x1abab6,_0x39a1f3,_0x2a6555){return _0x1abab6(_0x39a1f3,_0x2a6555);},'yDShx':function(_0x31e160,_0x632092){return _0x31e160-_0x632092;},'KJZiz':function(_0x8cc37c,_0x1cb2fa,_0x59bb51){return _0x8cc37c(_0x1cb2fa,_0x59bb51);},'dxyOE':'path','NaxsT':function(_0x4614d3,_0x2f02bc){return _0x4614d3>_0x2f02bc;}};logger['debug'](_0x2ba45b(0x1c4)+_0x173443);const _0x8f65d8=_0x35dfb3[_0x2ba45b(0x182)](getTestRunIdentifier,_0x4f0f23,_0x3869fc[_0x2ba45b(0x1c7)]),_0x3646e5=new Date(_0x3869fc[_0x2ba45b(0x15a)]),_0x1f9895=_0x3869fc[_0x2ba45b(0x156)],_0x412fa6=new Date(_0x35dfb3['xdpdT'](_0x3646e5[_0x2ba45b(0x125)](),_0x1f9895)),_0x2477e7=_0x3869fc['status'],_0xd37c38=TestInfo[_0x2ba45b(0x11d)](_0x8f65d8)[TestFrameworkConstants[_0x2ba45b(0x1b3)]]||{};let _0x2ae755=_0x2477e7;if(_0x35dfb3['NIdOK'](_0x3869fc[_0x2ba45b(0x192)],_0x4f0f23[_0x2ba45b(0x158)]))_0x2ae755=_0x35dfb3[_0x2ba45b(0x138)](_0x3869fc[_0x2ba45b(0x192)],_0x35dfb3['HtxHv'])?_0x35dfb3[_0x2ba45b(0x1a2)]:_0x35dfb3[_0x2ba45b(0x10b)];else{(_0x35dfb3['wkgYH'](_0x2ae755,_0x35dfb3[_0x2ba45b(0x10b)])||_0x35dfb3[_0x2ba45b(0x11f)](_0x2ae755,_0x35dfb3['wnnEx'])||_0x35dfb3[_0x2ba45b(0x153)](_0x2ae755,_0x35dfb3[_0x2ba45b(0x13f)]))&&(_0x2ae755=_0x35dfb3[_0x2ba45b(0x143)]);if(_0x35dfb3[_0x2ba45b(0x130)](_0x3869fc['status'],_0x35dfb3[_0x2ba45b(0x10b)])&&_0x35dfb3[_0x2ba45b(0x16f)](_0x4f0f23[_0x2ba45b(0x158)],_0x35dfb3[_0x2ba45b(0x143)])){const _0x37bd58={};_0x37bd58[_0x2ba45b(0x16e)]=_0x35dfb3['FhMxD'],_0x37bd58[_0x2ba45b(0x12a)]=_0x35dfb3[_0x2ba45b(0x1ce)],_0x3869fc['error']=_0x37bd58,_0x3869fc[_0x2ba45b(0x147)]=[_0x3869fc['error']];}}const {failureData:_0x4e4f78,logs:_0x4f8050}=_0x35dfb3[_0x2ba45b(0x1c3)](getFailureData,_0x3869fc?.[_0x2ba45b(0x147)],{}),_0x451d38={[TestFrameworkConstants[_0x2ba45b(0x146)]]:_0x35dfb3[_0x2ba45b(0x181)](_0x4e4f78,null),[TestFrameworkConstants[_0x2ba45b(0x162)]]:_0x3869fc?.['error']&&_0x35dfb3['zMBLQ'](getFailureType,_0x3869fc[_0x2ba45b(0x18b)][_0x2ba45b(0x16e)]),[TestFrameworkConstants[_0x2ba45b(0x1b5)]]:_0x3869fc?.[_0x2ba45b(0x18b)]&&_0x35dfb3[_0x2ba45b(0x1de)](removeAnsiColors,_0x3869fc['error'][_0x2ba45b(0x16e)]),[TestFrameworkConstants[_0x2ba45b(0x197)]]:[],[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x2ae755,[TestFrameworkConstants[_0x2ba45b(0x13e)]]:_0x412fa6[_0x2ba45b(0x120)](),[TestFrameworkConstants[_0x2ba45b(0x1d8)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x2ba45b(0x1b3)]]:_0xd37c38};if(_0x3869fc&&_0x35dfb3[_0x2ba45b(0x1ad)](_0x3869fc[_0x2ba45b(0x1c7)],0x0)){const _0x4f6a15=TestInfo['getTestUUID'](_0x35dfb3[_0x2ba45b(0x118)](getTestRunIdentifier,_0x4f0f23,_0x35dfb3[_0x2ba45b(0x17a)](_0x3869fc[_0x2ba45b(0x1c7)],0x1)));_0x451d38[TestFrameworkConstants[_0x2ba45b(0x1dc)]]=_0x4f6a15;}const _0x7d4639={};_0x7d4639['test']=_0x4f0f23;const _0x33716f=this[_0x2ba45b(0x1c1)](TestFrameworkState[_0x2ba45b(0x171)],HookState[_0x2ba45b(0x112)],_0x7d4639),_0x3c5768=_0x33716f[_0x2ba45b(0x11b)]()[_0x2ba45b(0x1d9)](_0x8f65d8)[TestFrameworkConstants[_0x2ba45b(0x137)]],_0x8c9f8f=[],_0x313eb1=_0x35dfb3[_0x2ba45b(0x150)](findNestedKey,_0x3869fc,_0x35dfb3['dxyOE']);if(_0x313eb1&&_0x35dfb3[_0x2ba45b(0x1ab)](validateFilePath,_0x313eb1))try{_0x8c9f8f[_0x2ba45b(0x17c)]({'kind':_0x35dfb3[_0x2ba45b(0x1a5)],'timestamp':new Date()[_0x2ba45b(0x120)](),'test_run_uuid':_0x3c5768,'file_name':path[_0x2ba45b(0x140)](_0x313eb1),'file_size':fs[_0x2ba45b(0x180)](_0x313eb1)[_0x2ba45b(0x1d2)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x1cd5b3){logger['error'](_0x2ba45b(0x149)+_0x313eb1+':\x20'+_0x1cd5b3[_0x2ba45b(0x16e)]);}const _0x27e970=TestInfo[_0x2ba45b(0x119)](),_0xbd8909=_0x27e970[_0x2ba45b(0x1dd)](_0x23944e=>_0x23944e[_0x2ba45b(0x18a)]===_0x3c5768);_0xbd8909[_0x2ba45b(0x14b)](_0x414c0a=>{const _0x3dc164=_0x2ba45b;if(_0x414c0a[_0x3dc164(0x174)]&&_0x35dfb3[_0x3dc164(0x1ab)](validateFilePath,_0x414c0a[_0x3dc164(0x174)])&&!_0x8c9f8f[_0x3dc164(0x1ba)](_0x4a03dd=>_0x4a03dd[_0x3dc164(0x1ac)]===path[_0x3dc164(0x140)](_0x414c0a[_0x3dc164(0x174)])))try{_0x8c9f8f['push']({'kind':_0x35dfb3['DFCLp'],'timestamp':new Date()['toISOString'](),'test_run_uuid':_0x3c5768,'file_name':path[_0x3dc164(0x140)](_0x414c0a['filePath']),'file_size':fs[_0x3dc164(0x180)](_0x414c0a['filePath'])[_0x3dc164(0x1d2)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x5f5364){logger[_0x3dc164(0x18b)](_0x3dc164(0x187)+_0x414c0a[_0x3dc164(0x174)]+_0x3dc164(0x190)+_0x5f5364[_0x3dc164(0x16e)]);}});if(_0x35dfb3[_0x2ba45b(0x1cd)](_0x8c9f8f[_0x2ba45b(0x151)],0x0)){const _0x51c6e1=_0x451d38[TestFrameworkConstants[_0x2ba45b(0x197)]]||[];_0x451d38[TestFrameworkConstants['KEY_LOGS']]=[..._0x51c6e1,..._0x8c9f8f];}const _0x3f782e=TestInfo[_0x2ba45b(0x11d)](_0x8f65d8)[TestFrameworkConstants[_0x2ba45b(0x1b4)]]||{},_0x3a4044=_0x35dfb3[_0x2ba45b(0x118)](getManualUploadLogs,_0x3f782e,_0x33716f[_0x2ba45b(0x11b)]()[_0x2ba45b(0x1d9)](_0x8f65d8)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x35dfb3[_0x2ba45b(0x1ad)](_0x3a4044[_0x2ba45b(0x151)],0x0)){const _0x3edf7c=_0x451d38[TestFrameworkConstants[_0x2ba45b(0x197)]]||[];_0x451d38[TestFrameworkConstants[_0x2ba45b(0x197)]]=[..._0x3edf7c,..._0x3a4044];}const _0x123d1e=_0x4f0f23[_0x2ba45b(0x107)]||[],_0x2d60d5=_0x451d38[TestFrameworkConstants[_0x2ba45b(0x1b3)]]||{};_0x123d1e[_0x2ba45b(0x14b)](_0x20c5ea=>{const _0x20e6cc=_0x2ba45b,{type:_0x218027}=_0x20c5ea;let _0x5f265c=_0x20c5ea[_0x20e6cc(0x122)];if(!_0x218027)return;(_0x35dfb3[_0x20e6cc(0x138)](_0x5f265c,undefined)||_0x35dfb3['RGfYN'](_0x5f265c,null)||_0x35dfb3[_0x20e6cc(0x16d)](_0x35dfb3[_0x20e6cc(0x1ab)](String,_0x5f265c)[_0x20e6cc(0x198)](),''))&&(_0x5f265c=_0x35dfb3[_0x20e6cc(0x111)]);if(!_0x2d60d5[_0x218027]){const _0x302fb6={};_0x302fb6['field_type']=_0x35dfb3[_0x20e6cc(0x116)],_0x302fb6[_0x20e6cc(0x127)]=[],_0x2d60d5[_0x218027]=_0x302fb6;}else!_0x2d60d5[_0x218027]['field_type']&&(_0x2d60d5[_0x218027][_0x20e6cc(0x113)]=_0x35dfb3[_0x20e6cc(0x116)]),!Array[_0x20e6cc(0x18c)](_0x2d60d5[_0x218027][_0x20e6cc(0x127)])&&(_0x2d60d5[_0x218027][_0x20e6cc(0x127)]=[]);const _0x2ec609=_0x35dfb3['zMBLQ'](String,_0x5f265c)['split'](',')[_0x20e6cc(0x1cc)](_0x54d447=>_0x54d447[_0x20e6cc(0x198)]());_0x2d60d5[_0x218027][_0x20e6cc(0x127)]=[...new Set([..._0x2d60d5[_0x218027]['values'],..._0x2ec609])];}),_0x451d38[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x2d60d5,TestInfo[_0x2ba45b(0x121)](_0x8f65d8,_0x451d38);const _0x3b8c34={};return _0x3b8c34[_0x8f65d8]=_0x451d38,_0x3b8c34;}async[a67_0x13d367(0x1df)](_0x488ade,_0x45d54d,_0x2d9cda,_0x2bd462){const _0x55f7f3=a67_0x13d367,_0x255a8f={'MxaLF':function(_0x19712a,_0x1e805c,_0x5efc4b){return _0x19712a(_0x1e805c,_0x5efc4b);},'ZVGhd':function(_0xaf26a3,_0x36c7bf){return _0xaf26a3 in _0x36c7bf;},'RyopN':function(_0x7f942f,_0xc85661){return _0x7f942f in _0xc85661;},'TtmpD':function(_0x153168,_0x1b041a){return _0x153168(_0x1b041a);},'EprGR':function(_0x5b8dc5,_0x40204f){return _0x5b8dc5(_0x40204f);},'HSHuc':function(_0x7c65c2,_0x73855){return _0x7c65c2===_0x73855;},'eTpdP':function(_0x2e1f5a){return _0x2e1f5a();},'Kigjv':function(_0x3dcf12,_0x2be7b4){return _0x3dcf12===_0x2be7b4;},'dCWlf':function(_0x51d0ab,_0x358aa1){return _0x51d0ab>_0x358aa1;},'xAMCj':_0x55f7f3(0x10d),'WJkQt':_0x55f7f3(0x175),'twpig':_0x55f7f3(0x184),'ejScy':function(_0x127251,_0x4fd532){return _0x127251!==_0x4fd532;},'FlJqp':function(_0x2041d5,_0x17af95){return _0x2041d5+_0x17af95;},'Liuei':_0x55f7f3(0x14a)},_0x23d6aa=_0x2bd462[_0x55f7f3(0x142)],_0x266c85=_0x2bd462['step'],_0x2dd9f3=_0x255a8f[_0x55f7f3(0x16c)](getTestRunIdentifier,_0x23d6aa,_0x2bd462[_0x55f7f3(0x191)][_0x55f7f3(0x1c7)]),_0x7618ba=_0x45d54d[_0x55f7f3(0x195)]()['split']('.')[0x1];let _0x8d34e3=_0x488ade['getAllData']()[_0x55f7f3(0x1d9)](_0x2dd9f3)[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x8d34e3&&(_0x8d34e3={});!_0x255a8f['ZVGhd'](_0x7618ba,_0x8d34e3)&&(_0x8d34e3[_0x7618ba]=[]);let _0x2deeca=_0x488ade['getAllData']()['get'](_0x2dd9f3)[TestFrameworkConstants[_0x55f7f3(0x188)]];!_0x2deeca&&(_0x2deeca={});!_0x255a8f[_0x55f7f3(0x163)](_0x7618ba,_0x2deeca)&&(_0x2deeca[_0x7618ba]=[]);const _0x47831b={[TestFrameworkConstants[_0x55f7f3(0x17b)]]:_0x8d34e3,[TestFrameworkConstants[_0x55f7f3(0x188)]]:_0x2deeca},_0x4ffdbd={};_0x4ffdbd[_0x2dd9f3]=_0x47831b;const _0x4430ed=_0x4ffdbd,_0x1a9802=_0x255a8f[_0x55f7f3(0x15d)](getPlaywrightTestFilePath,_0x23d6aa),_0x28d291=_0x1a9802+':'+_0x255a8f[_0x55f7f3(0x1cf)](getPlaywrightTestLocation,_0x23d6aa),_0x5f43fe=TestInfo[_0x55f7f3(0x11d)](_0x2dd9f3)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};if(_0x255a8f[_0x55f7f3(0x12f)](_0x2d9cda,HookState[_0x55f7f3(0x159)])){const _0x2f3252={'key':_0x7618ba,[TestFrameworkConstants[_0x55f7f3(0x117)]]:_0x255a8f['eTpdP'](uuidv4),[TestFrameworkConstants[_0x55f7f3(0x193)]]:TestFrameworkConstants[_0x55f7f3(0x145)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x266c85[_0x55f7f3(0x15a)],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants[_0x55f7f3(0x1cb)]]:_0x266c85[_0x55f7f3(0x1b0)],[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x1a9802,[TestFrameworkConstants[_0x55f7f3(0x173)]]:_0x28d291,[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x5f43fe};_0x8d34e3[_0x7618ba][_0x55f7f3(0x17c)](_0x2f3252),_0x4430ed[_0x2dd9f3][TestFrameworkConstants[_0x55f7f3(0x15f)]]=_0x7618ba,logger[_0x55f7f3(0x19c)](_0x55f7f3(0x115)+_0x7618ba+'\x20&\x20hook\x20=\x20'+_0x2f3252+_0x55f7f3(0x14c)+_0x2bd462);}else{if(_0x255a8f['Kigjv'](_0x2d9cda,HookState['POST'])){const _0x1374ea=await _0x2bd462['result'],_0x4eba9d=_0x8d34e3[_0x7618ba]||[],_0x13a843=_0x2bd462[_0x55f7f3(0x178)];logger[_0x55f7f3(0x19c)](_0x55f7f3(0x12b)+_0x4eba9d+_0x55f7f3(0x1bf)+_0x2bd462);if(_0x255a8f['dCWlf'](_0x4eba9d[_0x55f7f3(0x151)],0x0)){const _0x49355d=_0x4eba9d[_0x55f7f3(0x1c5)]();if(_0x13a843['error']){const _0x6acee2=_0x255a8f[_0x55f7f3(0x16c)](failureData,_0x13a843[_0x55f7f3(0x18b)],_0x255a8f['xAMCj']);_0x49355d[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x255a8f[_0x55f7f3(0x1cf)](getFailureType,_0x13a843?.[_0x55f7f3(0x18b)][_0x55f7f3(0x16e)]),_0x49355d[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x255a8f[_0x55f7f3(0x1cf)](removeAnsiColors,_0x13a843?.[_0x55f7f3(0x18b)][_0x55f7f3(0x16e)]),_0x49355d[TestFrameworkConstants[_0x55f7f3(0x193)]]=_0x255a8f['WJkQt'],_0x49355d[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x6acee2;}else _0x49355d[TestFrameworkConstants[_0x55f7f3(0x193)]]=_0x255a8f[_0x55f7f3(0x134)];_0x255a8f['ejScy'](_0x1374ea,TestFrameworkConstants[_0x55f7f3(0x145)])&&(_0x49355d[TestFrameworkConstants[_0x55f7f3(0x193)]]=!_0x13a843[_0x55f7f3(0x18b)]?_0x255a8f['twpig']:_0x255a8f[_0x55f7f3(0x1d3)]);const _0x17cd22=new Date(_0x13a843['startTime']),_0x5cf279=new Date(_0x255a8f[_0x55f7f3(0x14f)](_0x17cd22[_0x55f7f3(0x125)](),_0x13a843[_0x55f7f3(0x156)]));_0x49355d[TestFrameworkConstants[_0x55f7f3(0x194)]]=_0x5cf279[_0x55f7f3(0x120)](),_0x49355d[TestFrameworkConstants[_0x55f7f3(0x1b3)]]=_0x5f43fe;const _0xd61a7=_0x49355d[TestFrameworkConstants['KEY_HOOK_ID']];await this['sendLogCreatedEvent'](_0x488ade,_0x45d54d,_0xd61a7,_0x255a8f['Liuei'],_0x2bd462),!_0x2deeca[_0x7618ba]&&(_0x2deeca[_0x7618ba]=[]),_0x2deeca[_0x7618ba]['push'](_0x49355d),_0x4430ed[_0x2dd9f3][TestFrameworkConstants[_0x55f7f3(0x105)]]=_0x7618ba;}}}return _0x4430ed;}async[a67_0x13d367(0x13b)](_0x1b67aa,_0x283d54,_0x2f1fb7,_0x310983,_0x2847af){const _0x5deceb=a67_0x13d367,_0x493093={'zEBcy':function(_0x266616,_0x26d834){return _0x266616===_0x26d834;},'NoFDF':_0x5deceb(0x142),'jgiNx':function(_0x5ce25d,_0x170ea0,_0x318bbf){return _0x5ce25d(_0x170ea0,_0x318bbf);},'lRdiR':function(_0x9e3315,_0x243e83,_0x960003){return _0x9e3315(_0x243e83,_0x960003);},'mZjMt':'attachments','OjsZT':function(_0x269f54,_0x2f28ce,_0x24c806,_0x2f3af6){return _0x269f54(_0x2f28ce,_0x24c806,_0x2f3af6);},'zIEWs':function(_0x4b30d1,_0x3f30bb,_0x5d0ca2){return _0x4b30d1(_0x3f30bb,_0x5d0ca2);},'pBRRW':function(_0x446204,_0x1bd04b,_0x308f01){return _0x446204(_0x1bd04b,_0x308f01);},'KGflQ':function(_0x3120c7,_0x3a3e67,_0x47517d){return _0x3120c7(_0x3a3e67,_0x47517d);},'aYGLD':function(_0x39026c,_0x2b67fa){return _0x39026c/_0x2b67fa;},'gbbXc':function(_0x2f3a1e,_0x3cd494){return _0x2f3a1e<_0x3cd494;},'GnLWN':function(_0x1fa8d0,_0x2c21a3){return _0x1fa8d0*_0x2c21a3;},'oRxBR':function(_0x1a9fa9,_0x2418d5){return _0x1a9fa9+_0x2418d5;},'WZaRi':function(_0xf70fd9,_0x2b4809,_0x1f37cc,_0x3710ac,_0x2fa67b){return _0xf70fd9(_0x2b4809,_0x1f37cc,_0x3710ac,_0x2fa67b);},'Odwyv':function(_0x2d770a,_0x1f3fb0){return _0x2d770a+_0x1f3fb0;},'GmthD':function(_0x2dcfc7,_0x5d5fb5,_0x5b0e94,_0x1417e8){return _0x2dcfc7(_0x5d5fb5,_0x5b0e94,_0x1417e8);},'DYDcN':_0x5deceb(0x14a),'ggBwn':function(_0x3f7eef,_0x3d58a5,_0x3d8e5e){return _0x3f7eef(_0x3d58a5,_0x3d8e5e);},'SXssk':function(_0x47fbfb,_0x849ab2,_0x581b73,_0x506988,_0xdef6f4){return _0x47fbfb(_0x849ab2,_0x581b73,_0x506988,_0xdef6f4);}};try{if(_0x493093['zEBcy'](_0x310983,_0x493093['NoFDF'])){const _0x25a532=await _0x2847af[_0x5deceb(0x191)],_0x3a3420=_0x493093[_0x5deceb(0x110)](getTestRunIdentifier,_0x2847af[_0x5deceb(0x142)],_0x2847af[_0x5deceb(0x191)][_0x5deceb(0x1c7)]),_0x24823c=_0x2847af[_0x5deceb(0x142)];logger[_0x5deceb(0x19c)](_0x5deceb(0x14d)+_0x3a3420+_0x5deceb(0x1a3)+util[_0x5deceb(0x141)](_0x25a532));const _0x39644c=_0x1b67aa[_0x5deceb(0x11b)]()[_0x5deceb(0x1d9)](_0x3a3420)[TestFrameworkConstants[_0x5deceb(0x137)]];await _0x493093[_0x5deceb(0x186)](sendTraceZip,_0x25a532,_0x39644c);const _0x5e27f3=TestInfo[_0x5deceb(0x11d)](_0x3a3420)[_0x493093[_0x5deceb(0x124)]];let _0x56b674={};if(_0x5e27f3){!_0x25a532[_0x5deceb(0x11a)]&&(_0x25a532[_0x5deceb(0x11a)]=[]);_0x56b674[_0x5deceb(0x11a)]=_0x25a532['attachments'][_0x5deceb(0x169)](_0x5e27f3||[]);const _0x4690df=TestInfo['getTestDetails'](_0x3a3420);delete _0x4690df[_0x493093[_0x5deceb(0x124)]],TestInfo[_0x5deceb(0x121)](_0x3a3420,_0x4690df);}const {steps:_0x3d8722,logs:_0x3658d9}=_0x493093[_0x5deceb(0x16a)](getStepsAndLogs,_0x25a532[_0x5deceb(0x104)],_0x1b67aa[_0x5deceb(0x11b)]()[_0x5deceb(0x1d9)](_0x3a3420)[TestFrameworkConstants[_0x5deceb(0x137)]],_0x493093[_0x5deceb(0x18f)]),_0x54d723=_0x493093[_0x5deceb(0x186)](getScreenshots,_0x56b674,_0x1b67aa[_0x5deceb(0x11b)]()[_0x5deceb(0x1d9)](_0x3a3420)[TestFrameworkConstants[_0x5deceb(0x137)]]),_0x44f87f=_0x493093[_0x5deceb(0x155)](getVideos,_0x25a532,_0x1b67aa[_0x5deceb(0x11b)]()[_0x5deceb(0x1d9)](_0x3a3420)[TestFrameworkConstants['KEY_TEST_UUID']]),{_:_0x2234a4,logs:_0x22eaa7}=_0x493093[_0x5deceb(0x12e)](getFailureData,_0x25a532[_0x5deceb(0x147)],{'test_run_uuid':_0x1b67aa[_0x5deceb(0x11b)]()[_0x5deceb(0x1d9)](_0x3a3420)[TestFrameworkConstants[_0x5deceb(0x137)]]}),_0x2c9909=TestInfo[_0x5deceb(0x11d)](_0x3a3420)[TestFrameworkConstants[_0x5deceb(0x1b4)]]||{},_0x2b7cde=_0x493093[_0x5deceb(0x131)](getMediaArtifactsLogs,_0x2c9909,_0x1b67aa[_0x5deceb(0x11b)]()[_0x5deceb(0x1d9)](_0x3a3420)[TestFrameworkConstants['KEY_TEST_UUID']]),_0xed3987=_0x1b67aa['getAllData']()['get'](_0x3a3420),{[TestFrameworkConstants[_0x5deceb(0x1ca)]]:_0x4da205='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x275930=''}=_0xed3987,_0x967394=(_0x3658d9||[])['concat'](_0x54d723||[])[_0x5deceb(0x169)](_0x22eaa7||[])[_0x5deceb(0x169)](_0x44f87f||[])[_0x5deceb(0x169)](_0x2b7cde||[]),_0x4a5f87=0x28,_0xaf0597=Math[_0x5deceb(0x10c)](_0x493093[_0x5deceb(0x1b1)](_0x967394['length'],_0x4a5f87));for(let _0x93fc53=0x0;_0x493093[_0x5deceb(0x17e)](_0x93fc53,_0xaf0597);_0x93fc53++){const _0x136361=_0x493093[_0x5deceb(0x19a)](_0x93fc53,_0x4a5f87),_0x5d6e4c=_0x493093[_0x5deceb(0x106)](_0x136361,_0x4a5f87),_0xb0e1cd=_0x967394[_0x5deceb(0x17f)](_0x136361,_0x5d6e4c),_0x4ea1ae={'platformIndex':'0','logs':_0xb0e1cd,'testFrameworkName':_0x4da205,'testFrameworkVersion':_0x275930,'testFrameworkState':_0x283d54[_0x5deceb(0x195)]()[_0x5deceb(0x15e)]('.')[0x1]};_0x493093[_0x5deceb(0x1bc)](updatePayloadForTraceLogs,_0x4ea1ae,_0x2847af,_0x3a3420,_0x1b67aa),logger['debug']('sendLogCreatedEvent\x20for\x20testId:\x20'+_0x3a3420+_0x5deceb(0x1d5)+_0x493093[_0x5deceb(0x106)](_0x93fc53,0x1)+'/'+_0xaf0597+_0x5deceb(0x18e)+util[_0x5deceb(0x141)](_0x4ea1ae));const _0x57a106=await GrpcClient[_0x5deceb(0x168)]()[_0x5deceb(0x1bd)](_0x4ea1ae);logger['debug'](_0x5deceb(0x1b7)+_0x3a3420+_0x5deceb(0x1d5)+_0x493093[_0x5deceb(0x19d)](_0x93fc53,0x1)+'/'+_0xaf0597+_0x5deceb(0x1c9)+util[_0x5deceb(0x141)](_0x57a106));}}else{const {steps:_0x2ec77d,logs:_0x2b4744}=_0x493093[_0x5deceb(0x1b6)](getStepsAndLogs,_0x2847af['step']['steps'],_0x2f1fb7,_0x493093[_0x5deceb(0x132)]),_0x122d23=_0x493093[_0x5deceb(0x14e)](getTestRunIdentifier,_0x2847af[_0x5deceb(0x142)],_0x2847af[_0x5deceb(0x191)][_0x5deceb(0x1c7)]);logger['debug'](_0x5deceb(0x14d)+_0x122d23);const _0x267623=_0x1b67aa[_0x5deceb(0x11b)]()[_0x5deceb(0x1d9)](_0x122d23),{[TestFrameworkConstants[_0x5deceb(0x1ca)]]:_0x1be878='',[TestFrameworkConstants[_0x5deceb(0x133)]]:_0x4e2ea4=''}=_0x267623,_0x5ae8e9={'platformIndex':'0','logs':_0x2b4744,'testFrameworkName':_0x1be878,'testFrameworkVersion':_0x4e2ea4,'testFrameworkState':_0x283d54['toString']()['split']('.')[0x1]};_0x493093['SXssk'](updatePayloadForTraceLogs,_0x5ae8e9,_0x2847af,_0x122d23,_0x1b67aa),logger[_0x5deceb(0x19c)]('sendLogCreatedEvent\x20for\x20testId:\x20'+_0x122d23+_0x5deceb(0x18e)+util[_0x5deceb(0x141)](_0x5ae8e9));const _0x2dcaf7=await GrpcClient['getInstance']()[_0x5deceb(0x1bd)](_0x5ae8e9);}}catch(_0x56403f){logger[_0x5deceb(0x18b)](_0x5deceb(0x1a1)+util[_0x5deceb(0x17d)](_0x56403f));}}}module[a67_0x13d367(0x1db)]=PlaywrightTestFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x14a4f8=a68_0x5132;function a68_0x5132(_0x3ca959,_0x3f3bed){const _0x1a5958=a68_0x1a59();return a68_0x5132=function(_0x513225,_0x77a53){_0x513225=_0x513225-0xa0;let _0x5635fb=_0x1a5958[_0x513225];return _0x5635fb;},a68_0x5132(_0x3ca959,_0x3f3bed);}(function(_0x5a2460,_0x232881){const _0x3787fd=a68_0x5132,_0x3f7a66=_0x5a2460();while(!![]){try{const _0x33f6e0=parseInt(_0x3787fd(0xa8))/0x1*(parseInt(_0x3787fd(0xb4))/0x2)+parseInt(_0x3787fd(0xbe))/0x3*(parseInt(_0x3787fd(0xa0))/0x4)+parseInt(_0x3787fd(0xc5))/0x5+parseInt(_0x3787fd(0xb9))/0x6+-parseInt(_0x3787fd(0xb5))/0x7+-parseInt(_0x3787fd(0xba))/0x8*(-parseInt(_0x3787fd(0xab))/0x9)+-parseInt(_0x3787fd(0xaf))/0xa;if(_0x33f6e0===_0x232881)break;else _0x3f7a66['push'](_0x3f7a66['shift']());}catch(_0x2aaabc){_0x3f7a66['push'](_0x3f7a66['shift']());}}}(a68_0x1a59,0xdf74c));function a68_0x1a59(){const _0x46a92a=['testFrameworkVersions','9KsyaDA','runHooks','../state/testFrameworkState','getAllData','17940550FdBkwk','get','../instances/testFrameworkInstance','../instances/trackedContext','set','42854LbrsmK','6021820IZZyVj','trackEvent','setState','../instances/trackedInstance','2711010plAIUR','11764840mJFUoe','testFrameworks','debug','trackEvent:\x20testFrameworkState=','558123PXUiLr','getCurrentInstanceName','getHookRegistryKey','getTestFrameworksVersions','notifyObserver','setCurrentHookState','createContext','127505hULdtr','setCurrentTestState','getTrackedInstance','../eventDispatcher','setTrackedInstance','getTestFrameworks','4oqXiJg','../cliUtils','getInstances','getState','getId','instances','binSessionId','registerObserver','67TFznkZ',';\x20hookState='];a68_0x1a59=function(){return _0x46a92a;};return a68_0x1a59();}const CLIUtils=require(a68_0x14a4f8(0xa1)),eventDispatcher=require(a68_0x14a4f8(0xc8)),TestFrameworkInstance=require(a68_0x14a4f8(0xb1)),TrackedContext=require(a68_0x14a4f8(0xb2)),TestFrameworkState=require(a68_0x14a4f8(0xad)),HookState=require('../state/hookState'),{createClassLogger}=require('../../../helpers/classLogger'),TrackedInstance=require(a68_0x14a4f8(0xb8)),logger=createClassLogger('TestFramework');class TestFramework{static [a68_0x14a4f8(0xa5)]=new Map();[a68_0x14a4f8(0xbb)]=[];[a68_0x14a4f8(0xaa)]={};[a68_0x14a4f8(0xa6)]=null;constructor(_0xa9b2c2,_0xa3e799,_0x4a3d98){const _0x3fc97c=a68_0x14a4f8;this[_0x3fc97c(0xbb)]=_0xa9b2c2,this[_0x3fc97c(0xaa)]=_0xa3e799,this[_0x3fc97c(0xa6)]=_0x4a3d98;}[a68_0x14a4f8(0xa2)](){const _0x5701cf=a68_0x14a4f8;return TestFramework[_0x5701cf(0xa5)];}['setInstance'](_0x43c11b,_0x4650df){const _0xcea7ab=a68_0x14a4f8;TestFramework['instances'][_0xcea7ab(0xb3)](_0x43c11b[_0xcea7ab(0xa4)],_0x4650df);}static[a68_0x14a4f8(0xc7)](){const _0xc39b2d=a68_0x14a4f8,_0x781db0=TrackedInstance[_0xc39b2d(0xc4)](CLIUtils[_0xc39b2d(0xbf)]());return TestFramework[_0xc39b2d(0xa5)][_0xc39b2d(0xb0)](_0x781db0[_0xc39b2d(0xa4)]());}static[a68_0x14a4f8(0xc9)](_0x2e896c,_0xd4b482){const _0x193f1e=a68_0x14a4f8;TestFramework[_0x193f1e(0xa5)]['set'](_0x2e896c['getId'](),_0xd4b482);}[a68_0x14a4f8(0xc1)](){const _0x35ac3b=a68_0x14a4f8;return this[_0x35ac3b(0xaa)];}[a68_0x14a4f8(0xca)](){const _0x530d34=a68_0x14a4f8;return this[_0x530d34(0xbb)];}[a68_0x14a4f8(0xb6)](_0x377564,_0x25c8e0,_0x7bccd4={}){const _0x392e32=a68_0x14a4f8;logger[_0x392e32(0xbc)](_0x392e32(0xbd)+_0x377564+_0x392e32(0xa9)+_0x25c8e0);}async[a68_0x14a4f8(0xac)](_0x5df319,_0x12dac9,_0x27cbc1,_0x587a27={}){const _0x5814da=a68_0x14a4f8,_0x3c2c0=CLIUtils[_0x5814da(0xc0)](_0x12dac9,_0x27cbc1);_0x5df319[_0x5814da(0xc6)](_0x12dac9),_0x5df319[_0x5814da(0xc3)](_0x27cbc1),await eventDispatcher[_0x5814da(0xc2)](_0x3c2c0,_0x587a27);}static[a68_0x14a4f8(0xa7)](_0x515fe5,_0x21c3e4,_0x1e5cad){const _0x57d13f=a68_0x14a4f8;eventDispatcher[_0x57d13f(0xa7)](CLIUtils[_0x57d13f(0xc0)](_0x515fe5,_0x21c3e4),_0x1e5cad);}static[a68_0x14a4f8(0xa3)](_0x53fd39,_0xb1102e){const _0x3d34da=a68_0x14a4f8;return _0x53fd39[_0x3d34da(0xae)]()[_0x3d34da(0xb0)](_0xb1102e);}static[a68_0x14a4f8(0xb7)](_0x1dfc75,_0x368ca8,_0x5303f4){const _0x1a2462=a68_0x14a4f8;_0x1dfc75[_0x1a2462(0xae)]()['set'](_0x368ca8,_0x5303f4);}static['hasState'](_0x23985f,_0x41cbf4){return _0x23985f['getAllData']()['has'](_0x41cbf4);}}module['exports']=TestFramework;
|