browserstack-node-sdk 1.42.1 → 1.42.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +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
|
@@ -1 +1 @@
|
|
|
1
|
-
const a67_0x446ec9=a67_0x469a;function a67_0x22ab(){const _0x428ebf=['error','description','pWHIC','2930soKcMB','bjkIp','KEY_TEST_ID','KEY_HOOK_FAILURE_TYPE','Expected\x20to\x20fail,\x20but\x20passed.','PzzUW','startTime','KEY_HOOK_RESULT','getRef','KEY_TEST_FAILURE_REASON','trackPlaywrightInstance:\x20saved\x20instance\x20contextId=','logCreatedEvent','phHCs','basename','Error\x20processing\x20direct\x20trace\x20file\x20','ZAgvI','JeLoz','KEY_TEST_ATTACHMENTS','step','skipped','length','setTrackedInstance','../../../helpers/helper.js','debug','KEY_TEST_SCOPE','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','KEY_HOOKS_STARTED','YrHmg','./testFramework','map','CwdRI','vtuBs','KEY_TEST_LOGS','zFUWw','NONE','testUId','steps','yLLnm','KEY_HOOK_FAILURE_REASON','KEY_CUSTOM_TAGS','getId','XJEyk','KEY_TEST_RESULT_AT','KEY_TEST_RERUN_NAME','err','filePath','TEST_ATTACHMENT','instance','\x20hookState=','JbDoz','statSync','size','ikEwU','field_type','errors','get','KEY_HOOK_LAST_FINISHED','results','trackPlaywrightInstance','KEY_TEST_FILE_PATH','5686820vcTqXQ','Zyzgi','\x20batch\x20','KEY_TEST_UUID','slice','ddpAD','wrfbf','sendLogCreatedEvent\x20for\x20testId:\x20','2598wKXFZm','getTime','values','../state/testFrameworkState.js','sendLogCreatedEvent','\x20from\x20TestDetails:\x20','../instances/testFrameworkInstance.js','KEY_HOOK_LAST_STARTED','path','ceil','util','dZxAK','vyxuP','toISOString','Ghqfx','../../../helpers/classLogger.js','\x20response=','trackEvent\x20loading\x20testResults\x20for\x20testId:\x20','multi_dropdown','TEST','DEFAULT_TEST_RESULT','getAllData','858752ZnoPVb','sendLogCreatedEvent:\x20testId=','uuid','6994890jFVjse','exports','runHooks','AnSzI','BKTPT','parsePlaywrightTestResult','eixth','PRE','aRUkB','35477160jjkwUo','paonm','Error\x20processing\x20trace\x20file\x20',',\x20state=','format','../TestInfo.js','jWiDY','parsePlaywrightTest','test','KEY_TEST_RESULT','passed','\x20instance=','aLvcG','POST','failed','KEY_AUTOMATE_SESSION_NAME','toString','\x20payload=','concat','trackPlaywrightInstance:\x20created\x20instance\x20for\x20target=','getTestFrameworks','KEY_HOOKS_FINISHED','SqeIM','trackEvent:\x20found\x20instance,\x20testFrameworkState=','TQsXj','split','../cliUtils.js','../../../helpers/test-observability/utils','filter','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','getTestFrameworksVersions','some','title','XIoQJ','Hook\x20List\x20in\x20Post\x20','KEY_TEST_FRAMEWORK_NAME','addMultipleEntries','trackHookEvent','trackEvent','INIT_TEST','push','LeITo','SURId','abBiC','createContext','Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','forEach','stack','info','frgZQ','hook','KEY_HOOK_FAILURE','KEY_TEST_NAME','LZCIV','DEFAULT_HOOK_RESULT','file_name','sMUCT','../../playwright/reporter/pwUtils','../state/hookState.js','testId','cuuPD','KEY_HOOK_ID','attachments','Iogzx','resolveInstance','fNsVZ','parsePlaywrightTestResult:\x20testId=','nZNeX','kXSiw','../../../../src/helpers/helper','KEY_LOGS','KiWlg','ryycs','Bqccp','631444YgqFaS','MpgCB','KEY_TEST_FRAMEWORK_VERSION','RHjJX','jCVuQ','matchHookRegex','zbwuW','KEY_TEST_LOCATION','bWeTt','getTrackedInstance','status','inspect','PlaywrightTestFramework','trim','EHbLC','PxnXM','\x20testHookState=','getTestDetails','duration','BRJRW','./constants/testFrameworkConstants.js','4415358xszYaF','KEY_TEST_STARTED_AT','setTestDetails','\x20and\x20args\x20=\x20','getInstance','\x20\x20and\x20args\x20=\x20','result','../../utils/constants','pop','message','dddIw'];a67_0x22ab=function(){return _0x428ebf;};return a67_0x22ab();}(function(_0x4845a5,_0x32a5e5){const _0x197ff0=a67_0x469a,_0x54f95f=_0x4845a5();while(!![]){try{const _0x5eb7fb=-parseInt(_0x197ff0(0x1f4))/0x1+parseInt(_0x197ff0(0x19a))/0x2*(-parseInt(_0x197ff0(0x1de))/0x3)+-parseInt(_0x197ff0(0x24b))/0x4+-parseInt(_0x197ff0(0x1d6))/0x5+parseInt(_0x197ff0(0x260))/0x6+-parseInt(_0x197ff0(0x1f7))/0x7+parseInt(_0x197ff0(0x200))/0x8;if(_0x5eb7fb===_0x32a5e5)break;else _0x54f95f['push'](_0x54f95f['shift']());}catch(_0x527216){_0x54f95f['push'](_0x54f95f['shift']());}}}(a67_0x22ab,0xb6c39));function a67_0x469a(_0x59ab40,_0x3cc0a6){const _0x22ab55=a67_0x22ab();return a67_0x469a=function(_0x469a0d,_0x330186){_0x469a0d=_0x469a0d-0x19a;let _0x16beda=_0x22ab55[_0x469a0d];return _0x16beda;},a67_0x469a(_0x59ab40,_0x3cc0a6);}const TestFramework=require(a67_0x446ec9(0x1b6)),TestFrameworkState=require(a67_0x446ec9(0x1e1)),HookState=require(a67_0x446ec9(0x23b)),{createClassLogger}=require(a67_0x446ec9(0x1ed)),TestFrameworkInstance=require(a67_0x446ec9(0x1e4)),CLIUtils=require(a67_0x446ec9(0x21a)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a67_0x446ec9(0x25f)),logger=createClassLogger(a67_0x446ec9(0x257)),{v4:uuidv4}=require(a67_0x446ec9(0x1f6)),util=require(a67_0x446ec9(0x1e8)),{getPlaywrightSessionName,getPlaywrightTestFilePath,getPlaywrightTestId,getPlaywrightTestTitle,getPlaywrightTestLocation,getPlaywrightTestTags,getPlaywrightTestCode,getPlaywrightTestScope,getPlaywrightTestScopes,getStepsAndLogs,getScreenshots,getVideos,getPlaywrightCustomRerunParam,getMediaArtifactsLogs,getManualUploadLogs,updatePayloadForTraceLogs}=require(a67_0x446ec9(0x1b0)),TestInfo=require(a67_0x446ec9(0x205)),GrpcClient=require('../grpcClient'),{removeAnsiColors,getFailureType,failureData}=require(a67_0x446ec9(0x21b)),{getFailureData,getTestTags}=require(a67_0x446ec9(0x23a)),{findNestedKey,sendTraceZip,validateFilePath}=require(a67_0x446ec9(0x23a)),path=require(a67_0x446ec9(0x1e6)),fs=require('fs'),helper=require(a67_0x446ec9(0x246)),{PLAYWRIGHT_TRACE_LOGS}=require(a67_0x446ec9(0x267));class PlaywrightTestFramework extends TestFramework{constructor(_0x294e03,_0x15aa8f,_0x53b362){super(_0x294e03,_0x15aa8f,_0x53b362);}async[a67_0x446ec9(0x227)](_0x379b9e,_0x51ebe2,_0x586bd5={}){const _0x4dc9af=a67_0x446ec9,_0x4213d2={};_0x4213d2[_0x4dc9af(0x1d7)]=function(_0x4c81e2,_0x813167){return _0x4c81e2===_0x813167;},_0x4213d2['yLLnm']=_0x4dc9af(0x208),_0x4213d2[_0x4dc9af(0x249)]=_0x4dc9af(0x1b3);const _0xd9012d=_0x4213d2;super[_0x4dc9af(0x227)](_0x379b9e,_0x51ebe2,_0x586bd5);_0xd9012d[_0x4dc9af(0x1d7)](_0x379b9e,TestFrameworkState['TEST_SCREENSHOT'])&&TestInfo[_0x4dc9af(0x262)](_0x586bd5[_0x4dc9af(0x208)][_0x4dc9af(0x23c)],_0x586bd5[_0x4dc9af(0x266)],!![]);const _0x109ab5=this[_0x4dc9af(0x241)](_0x379b9e,_0x51ebe2,_0x586bd5);if(!_0x109ab5)return;logger[_0x4dc9af(0x1b1)](_0x4dc9af(0x217)+_0x379b9e+_0x4dc9af(0x1ca)+_0x51ebe2+'\x20instanceId='+_0x109ab5['getRef']());try{if(_0xd9012d[_0x4dc9af(0x1d7)](_0x51ebe2,HookState[_0x4dc9af(0x1fe)])&&_0xd9012d[_0x4dc9af(0x1d7)](_0x379b9e,TestFrameworkState['TEST'])){const _0x1d6f32=_0x586bd5['test'];logger[_0x4dc9af(0x1b1)](_0x4dc9af(0x21d)+_0x1d6f32['id']+'}');const _0x3c3bca=TestInfo['getTestUUID'](_0x1d6f32['id']);_0x109ab5['addMultipleEntries'](this['parsePlaywrightTest'](_0x3c3bca,_0x1d6f32)),logger[_0x4dc9af(0x1b1)](_0x4dc9af(0x21e)+_0x1d6f32['id']+',\x20testFrameworkState='+_0x379b9e+_0x4dc9af(0x25b)+_0x51ebe2+_0x4dc9af(0x20b)+_0x109ab5[_0x4dc9af(0x1a2)]());}if(_0xd9012d[_0x4dc9af(0x1d7)](_0x51ebe2,HookState['POST'])&&_0xd9012d[_0x4dc9af(0x1d7)](_0x379b9e,TestFrameworkState[_0x4dc9af(0x1f1)])){const _0x40b2c8=_0x586bd5[_0x4dc9af(0x208)],_0x58d383=_0x586bd5[_0x4dc9af(0x266)];logger[_0x4dc9af(0x1b1)](_0x4dc9af(0x1ef)+_0x40b2c8['id']),_0x109ab5[_0x4dc9af(0x225)](this['parsePlaywrightTestResult'](_0x40b2c8['id'],_0x58d383,_0x40b2c8)),await this['sendLogCreatedEvent'](_0x109ab5,_0x379b9e,_0x51ebe2,_0xd9012d[_0x4dc9af(0x1bf)],_0x586bd5);}if(CLIUtils[_0x4dc9af(0x250)](_0x379b9e[_0x4dc9af(0x210)]()[_0x4dc9af(0x219)]('.')[0x1])){const _0x57ed7e=await this[_0x4dc9af(0x226)](_0x109ab5,_0x379b9e,_0x51ebe2,_0x586bd5);_0x109ab5['addMultipleEntries'](_0x57ed7e);}}catch(_0x4016b4){logger[_0x4dc9af(0x26b)](util[_0x4dc9af(0x204)](_0xd9012d['ryycs'],_0x379b9e,_0x51ebe2,_0x586bd5[_0x4dc9af(0x1ae)],_0x4016b4));}_0x586bd5[_0x4dc9af(0x1c9)]=_0x109ab5,await this[_0x4dc9af(0x1f9)](_0x109ab5,_0x379b9e,_0x51ebe2,_0x586bd5);}[a67_0x446ec9(0x241)](_0x19011f,_0x19f9f1,_0x52864a={}){const _0x18b3ee=a67_0x446ec9,_0x3eff03={};_0x3eff03[_0x18b3ee(0x19b)]=function(_0x144d82,_0x4b3d83){return _0x144d82===_0x4b3d83;};const _0x310f22=_0x3eff03;let _0x246202=null;return(_0x310f22[_0x18b3ee(0x19b)](_0x19011f,TestFrameworkState[_0x18b3ee(0x228)])||_0x310f22[_0x18b3ee(0x19b)](_0x19011f,TestFrameworkState[_0x18b3ee(0x1bc)]))&&this[_0x18b3ee(0x1d4)](_0x19011f,_0x52864a),_0x246202=TestFramework[_0x18b3ee(0x254)](),_0x246202;}[a67_0x446ec9(0x1d4)](_0x692ecd,_0x242e00){const _0x4ffa3d=a67_0x446ec9,_0x3650b3=CLIUtils['getCurrentInstanceName'](),_0x4659b0=TrackedInstance[_0x4ffa3d(0x22d)](_0x3650b3);let _0x462a4c=null;logger[_0x4ffa3d(0x231)](_0x4ffa3d(0x213)+_0x3650b3+_0x4ffa3d(0x203)+_0x692ecd),_0x462a4c=new TestFrameworkInstance(_0x4659b0,this[_0x4ffa3d(0x214)](),this[_0x4ffa3d(0x21f)](),_0x692ecd,HookState[_0x4ffa3d(0x1bc)]),TestFramework[_0x4ffa3d(0x1af)](_0x4659b0,_0x462a4c),logger[_0x4ffa3d(0x231)](_0x4ffa3d(0x1a4)+_0x4659b0[_0x4ffa3d(0x1c2)]()+'\x20target='+_0x3650b3);}[a67_0x446ec9(0x207)](_0x4e6dd1,_0x25f874){const _0x4f6442=a67_0x446ec9,_0x19310f={'nZNeX':function(_0x4dd0ce,_0x44da95){return _0x4dd0ce(_0x44da95);},'XIoQJ':function(_0x1533fa,_0xec8fcb){return _0x1533fa(_0xec8fcb);},'kXSiw':function(_0x49e198,_0x4df356){return _0x49e198(_0x4df356);},'XJEyk':function(_0x10a133,_0x2e7587){return _0x10a133(_0x2e7587);},'pWHIC':function(_0x2702a6,_0x7a0c69){return _0x2702a6(_0x7a0c69);}},_0xf5e846=_0x19310f[_0x4f6442(0x244)](getPlaywrightTestId,_0x25f874),_0x5c7087=_0x19310f['nZNeX'](getPlaywrightTestTitle,_0x25f874),_0x1747c8=_0x19310f['XIoQJ'](getTestTags,_0x25f874),_0x50dea5=_0x19310f[_0x4f6442(0x222)](getPlaywrightTestCode,_0x25f874),_0x2d3bad=_0x19310f[_0x4f6442(0x245)](getPlaywrightTestFilePath,_0x25f874),_0x592b9d=_0x2d3bad+':'+_0x19310f[_0x4f6442(0x245)](getPlaywrightTestLocation,_0x25f874),_0x210c9b=_0x19310f[_0x4f6442(0x1c3)](getPlaywrightTestScope,_0x25f874),_0x19bb3e=_0x19310f[_0x4f6442(0x244)](getPlaywrightTestScopes,_0x25f874),_0x89d764=_0x19310f[_0x4f6442(0x245)](getPlaywrightSessionName,_0x25f874),_0x24217e=this[_0x4f6442(0x214)]()[0x0],_0x1bdd37={[TestFrameworkConstants[_0x4f6442(0x224)]]:_0x24217e,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:this[_0x4f6442(0x21f)]()[_0x24217e],[TestFrameworkConstants[_0x4f6442(0x1ba)]]:[],[TestFrameworkConstants[_0x4f6442(0x215)]]:{},[TestFrameworkConstants[_0x4f6442(0x1b4)]]:{},[TestFrameworkConstants[_0x4f6442(0x1d9)]]:_0x4e6dd1,[TestFrameworkConstants[_0x4f6442(0x209)]]:TestFrameworkConstants[_0x4f6442(0x1f2)],[TestFrameworkConstants[_0x4f6442(0x20f)]]:_0x89d764,[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x2d3bad,[TestFrameworkConstants[_0x4f6442(0x19c)]]:_0xf5e846,[TestFrameworkConstants[_0x4f6442(0x235)]]:_0x5c7087,[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x592b9d,[TestFrameworkConstants['KEY_TEST_CODE']]:_0x50dea5,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x1747c8,[TestFrameworkConstants[_0x4f6442(0x261)]]:_0x25f874[_0x4f6442(0x1d3)][0x0][_0x4f6442(0x1a0)],[TestFrameworkConstants[_0x4f6442(0x1b2)]]:_0x210c9b,[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x19bb3e,[TestFrameworkConstants[_0x4f6442(0x1c5)]]:_0x19310f[_0x4f6442(0x26d)](getPlaywrightCustomRerunParam,_0x25f874)};TestInfo[_0x4f6442(0x262)](_0x25f874['id'],_0x1bdd37);const _0x2f3065={};return _0x2f3065[_0xf5e846]=_0x1bdd37,_0x2f3065;}[a67_0x446ec9(0x1fc)](_0x1bf54f,_0x3e1c42,_0x3801ce){const _0x50928b=a67_0x446ec9,_0x147cba={'paonm':function(_0x319de6,_0x3b15e0){return _0x319de6(_0x3b15e0);},'dZxAK':_0x50928b(0x1c8),'LeITo':function(_0x169ca2,_0x1928c1){return _0x169ca2===_0x1928c1;},'KiWlg':function(_0x3cd07b,_0x2b454d){return _0x3cd07b===_0x2b454d;},'PzzUW':function(_0x424d34,_0x3f6951){return _0x424d34(_0x3f6951);},'ZAgvI':'No\x20reason\x20provided','RHjJX':_0x50928b(0x1f0),'GivUY':function(_0x57e52f,_0x121978){return _0x57e52f(_0x121978);},'EHbLC':function(_0x32ab31,_0x52b22c){return _0x32ab31+_0x52b22c;},'Iogzx':_0x50928b(0x1ad),'aRUkB':'passed','sMUCT':function(_0x20e132,_0x415db8){return _0x20e132===_0x415db8;},'vyxuP':function(_0xd7be84,_0x9e0e89){return _0xd7be84===_0x9e0e89;},'SURId':_0x50928b(0x20e),'NgrjP':'timedOut','AnSzI':function(_0x1f58a6,_0x5e6332){return _0x1f58a6===_0x5e6332;},'jCVuQ':_0x50928b(0x19e),'JbDoz':function(_0x3e7e1b,_0x2dc59a,_0xef652e){return _0x3e7e1b(_0x2dc59a,_0xef652e);},'ddpAD':function(_0x1b9ab7,_0x332c5f){return _0x1b9ab7||_0x332c5f;},'SqeIM':function(_0x595614,_0x23a841,_0x3eb189){return _0x595614(_0x23a841,_0x3eb189);},'ikEwU':_0x50928b(0x1e6),'zbwuW':function(_0x191450,_0x1c539a){return _0x191450>_0x1c539a;}};logger[_0x50928b(0x1b1)](_0x50928b(0x243)+_0x1bf54f);const _0x2fc0b5=new Date(_0x3e1c42[_0x50928b(0x1a0)]),_0x3e883f=_0x3e1c42[_0x50928b(0x25d)],_0x14479d=new Date(_0x147cba[_0x50928b(0x259)](_0x2fc0b5[_0x50928b(0x1df)](),_0x3e883f)),_0x991dbc=_0x3e1c42['status'],_0x8e08c9=TestInfo[_0x50928b(0x25c)](_0x1bf54f)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};let _0x34ad87=_0x991dbc;if(_0x147cba[_0x50928b(0x22a)](_0x3e1c42[_0x50928b(0x255)],_0x3801ce['expectedStatus']))_0x34ad87=_0x147cba[_0x50928b(0x248)](_0x3e1c42[_0x50928b(0x255)],_0x147cba['Iogzx'])?_0x147cba[_0x50928b(0x240)]:_0x147cba[_0x50928b(0x1ff)];else{(_0x147cba[_0x50928b(0x239)](_0x34ad87,_0x147cba['aRUkB'])||_0x147cba['vyxuP'](_0x34ad87,_0x147cba[_0x50928b(0x22b)])||_0x147cba[_0x50928b(0x1ea)](_0x34ad87,_0x147cba['NgrjP']))&&(_0x34ad87=_0x147cba[_0x50928b(0x22b)]);if(_0x147cba[_0x50928b(0x1fa)](_0x3e1c42[_0x50928b(0x255)],_0x147cba[_0x50928b(0x1ff)])&&_0x147cba['LeITo'](_0x3801ce['expectedStatus'],_0x147cba[_0x50928b(0x22b)])){const _0x2ad389={};_0x2ad389[_0x50928b(0x269)]=_0x147cba['jCVuQ'],_0x2ad389[_0x50928b(0x230)]=_0x147cba[_0x50928b(0x24f)],_0x3e1c42[_0x50928b(0x26b)]=_0x2ad389,_0x3e1c42[_0x50928b(0x1d0)]=[_0x3e1c42[_0x50928b(0x26b)]];}}const {failureData:_0x10d026,logs:_0x5d36b1}=_0x147cba[_0x50928b(0x1cb)](getFailureData,_0x3e1c42?.[_0x50928b(0x1d0)],{}),_0x269448={[TestFrameworkConstants['KEY_TEST_FAILURE']]:_0x147cba[_0x50928b(0x1db)](_0x10d026,null),[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]:_0x3e1c42?.[_0x50928b(0x26b)]&&_0x147cba[_0x50928b(0x201)](getFailureType,_0x3e1c42[_0x50928b(0x26b)][_0x50928b(0x269)]),[TestFrameworkConstants[_0x50928b(0x1a3)]]:_0x3e1c42?.[_0x50928b(0x26b)]&&_0x147cba[_0x50928b(0x19f)](removeAnsiColors,_0x3e1c42[_0x50928b(0x26b)][_0x50928b(0x269)]),[TestFrameworkConstants[_0x50928b(0x247)]]:[],[TestFrameworkConstants[_0x50928b(0x209)]]:_0x34ad87,[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x14479d[_0x50928b(0x1eb)](),[TestFrameworkConstants[_0x50928b(0x1c4)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x50928b(0x1c1)]]:_0x8e08c9},_0x21dcc8={};_0x21dcc8['test']=_0x3801ce;const _0x187a1e=this[_0x50928b(0x241)](TestFrameworkState[_0x50928b(0x1f1)],HookState[_0x50928b(0x20d)],_0x21dcc8),_0x540f74=_0x187a1e[_0x50928b(0x1f3)]()[_0x50928b(0x1d1)](_0x1bf54f)[TestFrameworkConstants['KEY_TEST_UUID']],_0x525d15=[],_0x4b30d7=_0x147cba[_0x50928b(0x216)](findNestedKey,_0x3e1c42,_0x147cba[_0x50928b(0x1ce)]);if(_0x4b30d7&&_0x147cba[_0x50928b(0x19f)](validateFilePath,_0x4b30d7))try{_0x525d15[_0x50928b(0x229)]({'kind':_0x147cba[_0x50928b(0x1e9)],'timestamp':new Date()[_0x50928b(0x1eb)](),'test_run_uuid':_0x540f74,'file_name':path[_0x50928b(0x1a7)](_0x4b30d7),'file_size':fs[_0x50928b(0x1cc)](_0x4b30d7)[_0x50928b(0x1cd)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x122bc5){logger[_0x50928b(0x26b)](_0x50928b(0x1a8)+_0x4b30d7+':\x20'+_0x122bc5[_0x50928b(0x269)]);}const _0xf501c6=TestInfo['getTraceFilePaths'](),_0x506430=_0xf501c6[_0x50928b(0x21c)](_0xaf2f16=>_0xaf2f16[_0x50928b(0x1bd)]===_0x540f74);_0x506430[_0x50928b(0x22f)](_0xc4a5b4=>{const _0x3be713=_0x50928b;if(_0xc4a5b4[_0x3be713(0x1c7)]&&_0x147cba[_0x3be713(0x201)](validateFilePath,_0xc4a5b4[_0x3be713(0x1c7)])&&!_0x525d15[_0x3be713(0x220)](_0x4ed322=>_0x4ed322[_0x3be713(0x238)]===path[_0x3be713(0x1a7)](_0xc4a5b4[_0x3be713(0x1c7)])))try{_0x525d15['push']({'kind':_0x147cba[_0x3be713(0x1e9)],'timestamp':new Date()[_0x3be713(0x1eb)](),'test_run_uuid':_0x540f74,'file_name':path['basename'](_0xc4a5b4[_0x3be713(0x1c7)]),'file_size':fs['statSync'](_0xc4a5b4[_0x3be713(0x1c7)])[_0x3be713(0x1cd)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x4655ce){logger[_0x3be713(0x26b)](_0x3be713(0x202)+_0xc4a5b4[_0x3be713(0x1c7)]+_0x3be713(0x1e3)+_0x4655ce[_0x3be713(0x269)]);}});if(_0x147cba[_0x50928b(0x251)](_0x525d15['length'],0x0)){const _0x332c23=_0x269448[TestFrameworkConstants[_0x50928b(0x247)]]||[];_0x269448[TestFrameworkConstants['KEY_LOGS']]=[..._0x332c23,..._0x525d15];}const _0x2802ff=TestInfo['getTestDetails'](_0x1bf54f)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x18d16e=_0x147cba[_0x50928b(0x216)](getManualUploadLogs,_0x2802ff,_0x187a1e[_0x50928b(0x1f3)]()[_0x50928b(0x1d1)](_0x1bf54f)[TestFrameworkConstants[_0x50928b(0x1d9)]]);if(_0x147cba[_0x50928b(0x251)](_0x18d16e[_0x50928b(0x1ae)],0x0)){const _0x403ea1=_0x269448[TestFrameworkConstants[_0x50928b(0x247)]]||[];_0x269448[TestFrameworkConstants[_0x50928b(0x247)]]=[..._0x403ea1,..._0x18d16e];}const _0x2d4ea9=_0x3801ce['annotations']||[],_0xda2149=_0x269448[TestFrameworkConstants[_0x50928b(0x1c1)]]||{};_0x2d4ea9[_0x50928b(0x22f)](_0x4e3ead=>{const _0x135954=_0x50928b,{type:_0x40d6c3}=_0x4e3ead;let _0x4e07d9=_0x4e3ead[_0x135954(0x26c)];if(!_0x40d6c3)return;(_0x147cba[_0x135954(0x22a)](_0x4e07d9,undefined)||_0x147cba[_0x135954(0x22a)](_0x4e07d9,null)||_0x147cba[_0x135954(0x248)](_0x147cba[_0x135954(0x19f)](String,_0x4e07d9)[_0x135954(0x258)](),''))&&(_0x4e07d9=_0x147cba[_0x135954(0x1a9)]);if(!_0xda2149[_0x40d6c3]){const _0x5f9e7b={};_0x5f9e7b[_0x135954(0x1cf)]=_0x147cba[_0x135954(0x24e)],_0x5f9e7b[_0x135954(0x1e0)]=[],_0xda2149[_0x40d6c3]=_0x5f9e7b;}else!_0xda2149[_0x40d6c3]['field_type']&&(_0xda2149[_0x40d6c3][_0x135954(0x1cf)]=_0x147cba['RHjJX']),!Array['isArray'](_0xda2149[_0x40d6c3][_0x135954(0x1e0)])&&(_0xda2149[_0x40d6c3][_0x135954(0x1e0)]=[]);const _0x2f7142=_0x147cba['GivUY'](String,_0x4e07d9)[_0x135954(0x219)](',')[_0x135954(0x1b7)](_0x8d46f3=>_0x8d46f3[_0x135954(0x258)]());_0xda2149[_0x40d6c3][_0x135954(0x1e0)]=[...new Set([..._0xda2149[_0x40d6c3][_0x135954(0x1e0)],..._0x2f7142])];}),_0x269448[TestFrameworkConstants[_0x50928b(0x1c1)]]=_0xda2149,TestInfo[_0x50928b(0x262)](_0x1bf54f,_0x269448);const _0x1163ff={};return _0x1163ff[_0x1bf54f]=_0x269448,_0x1163ff;}async['trackHookEvent'](_0xb90f3e,_0x4e01d3,_0x1132e7,_0x3b3cae){const _0x18f50a=a67_0x446ec9,_0x527c18={'BRJRW':function(_0x23cab7,_0x526e8f){return _0x23cab7 in _0x526e8f;},'YrHmg':function(_0x2b0dc8,_0x32603f){return _0x2b0dc8 in _0x32603f;},'JeLoz':function(_0x18b86e,_0x17c7ab){return _0x18b86e(_0x17c7ab);},'zFUWw':function(_0x48785f,_0x149296){return _0x48785f===_0x149296;},'frgZQ':function(_0x57bc39){return _0x57bc39();},'abBiC':function(_0x194e59,_0xc99726){return _0x194e59>_0xc99726;},'ZkUyS':function(_0x178984,_0x1ba2b0,_0x575e23){return _0x178984(_0x1ba2b0,_0x575e23);},'dddIw':_0x18f50a(0x1c6),'jWiDY':_0x18f50a(0x20e),'CwdRI':_0x18f50a(0x20a),'MpgCB':function(_0x5beb0f,_0x1f1d9f){return _0x5beb0f!==_0x1f1d9f;},'TQsXj':function(_0xdf28d4,_0x2d2be5){return _0xdf28d4+_0x2d2be5;},'fNsVZ':_0x18f50a(0x233)},_0x547fa3=_0x3b3cae['test'],_0x3eef16=_0x3b3cae[_0x18f50a(0x1ac)],_0x12fca8=_0x3b3cae[_0x18f50a(0x208)]['id'],_0x46b546=_0x4e01d3[_0x18f50a(0x210)]()[_0x18f50a(0x219)]('.')[0x1];let _0x362d79=_0xb90f3e[_0x18f50a(0x1f3)]()[_0x18f50a(0x1d1)](_0x12fca8)[TestFrameworkConstants[_0x18f50a(0x1b4)]];!_0x362d79&&(_0x362d79={});!_0x527c18[_0x18f50a(0x25e)](_0x46b546,_0x362d79)&&(_0x362d79[_0x46b546]=[]);let _0x33fdf6=_0xb90f3e[_0x18f50a(0x1f3)]()[_0x18f50a(0x1d1)](_0x12fca8)[TestFrameworkConstants[_0x18f50a(0x215)]];!_0x33fdf6&&(_0x33fdf6={});!_0x527c18[_0x18f50a(0x1b5)](_0x46b546,_0x33fdf6)&&(_0x33fdf6[_0x46b546]=[]);const _0x8b2f2f={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x362d79,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x33fdf6},_0x577dca={};_0x577dca[_0x12fca8]=_0x8b2f2f;const _0x38b40d=_0x577dca,_0x32e4a4=_0x527c18['JeLoz'](getPlaywrightTestFilePath,_0x547fa3),_0x4549b4=_0x32e4a4+':'+_0x527c18[_0x18f50a(0x1aa)](getPlaywrightTestLocation,_0x547fa3),_0x5a6453=TestInfo[_0x18f50a(0x25c)](_0x12fca8)[TestFrameworkConstants[_0x18f50a(0x1c1)]]||{};if(_0x527c18[_0x18f50a(0x1bb)](_0x1132e7,HookState[_0x18f50a(0x1fe)])){const _0x199fcd={'key':_0x46b546,[TestFrameworkConstants[_0x18f50a(0x23e)]]:_0x527c18[_0x18f50a(0x232)](uuidv4),[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x18f50a(0x237)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x3eef16['startTime'],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x3eef16[_0x18f50a(0x221)],[TestFrameworkConstants[_0x18f50a(0x1d5)]]:_0x32e4a4,[TestFrameworkConstants[_0x18f50a(0x252)]]:_0x4549b4,[TestFrameworkConstants[_0x18f50a(0x1c1)]]:_0x5a6453};_0x362d79[_0x46b546][_0x18f50a(0x229)](_0x199fcd),_0x38b40d[_0x12fca8][TestFrameworkConstants[_0x18f50a(0x1e5)]]=_0x46b546,logger[_0x18f50a(0x1b1)](_0x18f50a(0x22e)+_0x46b546+'\x20&\x20hook\x20=\x20'+_0x199fcd+_0x18f50a(0x265)+_0x3b3cae);}else{if(_0x527c18[_0x18f50a(0x1bb)](_0x1132e7,HookState[_0x18f50a(0x20d)])){const _0xc8d38e=await _0x3b3cae[_0x18f50a(0x266)],_0x8b61c7=_0x362d79[_0x46b546]||[],_0x3740f1=_0x3b3cae['step'];logger['debug'](_0x18f50a(0x223)+_0x8b61c7+_0x18f50a(0x263)+_0x3b3cae);if(_0x527c18[_0x18f50a(0x22c)](_0x8b61c7['length'],0x0)){const _0x141077=_0x8b61c7[_0x18f50a(0x268)]();if(_0x3740f1[_0x18f50a(0x26b)]){const _0x394690=_0x527c18['ZkUyS'](failureData,_0x3740f1[_0x18f50a(0x26b)],_0x527c18[_0x18f50a(0x26a)]);_0x141077[TestFrameworkConstants[_0x18f50a(0x19d)]]=_0x527c18[_0x18f50a(0x1aa)](getFailureType,_0x3740f1?.[_0x18f50a(0x26b)][_0x18f50a(0x269)]),_0x141077[TestFrameworkConstants[_0x18f50a(0x1c0)]]=_0x527c18[_0x18f50a(0x1aa)](removeAnsiColors,_0x3740f1?.[_0x18f50a(0x26b)][_0x18f50a(0x269)]),_0x141077[TestFrameworkConstants[_0x18f50a(0x1a1)]]=_0x527c18[_0x18f50a(0x206)],_0x141077[TestFrameworkConstants[_0x18f50a(0x234)]]=_0x394690;}else _0x141077[TestFrameworkConstants[_0x18f50a(0x1a1)]]=_0x527c18[_0x18f50a(0x1b8)];_0x527c18[_0x18f50a(0x24c)](_0xc8d38e,TestFrameworkConstants[_0x18f50a(0x237)])&&(_0x141077[TestFrameworkConstants['KEY_HOOK_RESULT']]=!_0x3740f1[_0x18f50a(0x26b)]?_0x527c18[_0x18f50a(0x1b8)]:_0x527c18[_0x18f50a(0x206)]);const _0x334cac=new Date(_0x3740f1['startTime']),_0x319794=new Date(_0x527c18[_0x18f50a(0x218)](_0x334cac[_0x18f50a(0x1df)](),_0x3740f1[_0x18f50a(0x25d)]));_0x141077[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x319794[_0x18f50a(0x1eb)](),_0x141077[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x5a6453;const _0x5424cf=_0x141077[TestFrameworkConstants[_0x18f50a(0x23e)]];await this['sendLogCreatedEvent'](_0xb90f3e,_0x4e01d3,_0x5424cf,_0x527c18[_0x18f50a(0x242)],_0x3b3cae),!_0x33fdf6[_0x46b546]&&(_0x33fdf6[_0x46b546]=[]),_0x33fdf6[_0x46b546][_0x18f50a(0x229)](_0x141077),_0x38b40d[_0x12fca8][TestFrameworkConstants[_0x18f50a(0x1d2)]]=_0x46b546;}}}return _0x38b40d;}async[a67_0x446ec9(0x1e2)](_0x50d2e5,_0x4f2754,_0x57e5d4,_0xd91dc1,_0x58d9c5){const _0x288d93=a67_0x446ec9,_0x498a53={'JyTue':function(_0x4a6c63,_0x3f5c45){return _0x4a6c63===_0x3f5c45;},'wrfbf':_0x288d93(0x208),'vtuBs':function(_0x4ba131,_0x413f00,_0x2c1c2e){return _0x4ba131(_0x413f00,_0x2c1c2e);},'eixth':_0x288d93(0x23f),'Bqccp':function(_0x516ae0,_0x4674db,_0x239475,_0x256e2f){return _0x516ae0(_0x4674db,_0x239475,_0x256e2f);},'Ghqfx':function(_0xa5c2ee,_0x2117e1,_0x48292f){return _0xa5c2ee(_0x2117e1,_0x48292f);},'fSerw':function(_0x1dedec,_0x3aeabd,_0x2e8805){return _0x1dedec(_0x3aeabd,_0x2e8805);},'aLvcG':function(_0x3dd070,_0x18ba82,_0x49eecf){return _0x3dd070(_0x18ba82,_0x49eecf);},'PPiVI':function(_0xd75f69,_0x393b74){return _0xd75f69/_0x393b74;},'QsqqT':function(_0xed3cbf,_0x2c488b){return _0xed3cbf<_0x2c488b;},'bWeTt':function(_0x3ffe5a,_0x4bfa3f){return _0x3ffe5a*_0x4bfa3f;},'BKTPT':function(_0x5afd0d,_0x125c8d){return _0x5afd0d+_0x125c8d;},'phHCs':function(_0x461e91,_0x4948e2,_0x22a45f,_0x52b54d,_0x170340){return _0x461e91(_0x4948e2,_0x22a45f,_0x52b54d,_0x170340);},'PxnXM':function(_0x27e1ac,_0x3eebcc){return _0x27e1ac+_0x3eebcc;},'KTkCK':function(_0x20838c,_0x554ac3){return _0x20838c+_0x554ac3;},'LZCIV':function(_0x185485,_0x2fce90,_0x10c86f,_0x5d5af0){return _0x185485(_0x2fce90,_0x10c86f,_0x5d5af0);},'cuuPD':_0x288d93(0x233)};try{if(_0x498a53['JyTue'](_0xd91dc1,_0x498a53[_0x288d93(0x1dc)])){const _0x5a3ed3=await _0x58d9c5[_0x288d93(0x266)],_0x10518c=_0x58d9c5[_0x288d93(0x208)]['id'],_0x2aa793=_0x58d9c5['test'];logger['debug'](_0x288d93(0x1f5)+_0x10518c+'\x20result='+util['inspect'](_0x5a3ed3));const _0x1938e6=_0x50d2e5[_0x288d93(0x1f3)]()[_0x288d93(0x1d1)](_0x10518c)[TestFrameworkConstants['KEY_TEST_UUID']];await _0x498a53[_0x288d93(0x1b9)](sendTraceZip,_0x5a3ed3,_0x1938e6);const _0x20384e=TestInfo[_0x288d93(0x25c)](_0x10518c)[_0x498a53[_0x288d93(0x1fd)]];if(_0x20384e){!_0x5a3ed3['attachments']&&(_0x5a3ed3[_0x288d93(0x23f)]=[]);Object['assign'](_0x5a3ed3[_0x288d93(0x23f)],_0x5a3ed3['attachments'][_0x288d93(0x212)](_0x20384e));const _0x426fa4=TestInfo['getTestDetails'](_0x10518c);delete _0x426fa4[_0x498a53[_0x288d93(0x1fd)]],TestInfo[_0x288d93(0x262)](_0x10518c,_0x426fa4);}const {steps:_0x4f8fe4,logs:_0x3927b0}=_0x498a53[_0x288d93(0x24a)](getStepsAndLogs,_0x5a3ed3[_0x288d93(0x1be)],_0x50d2e5[_0x288d93(0x1f3)]()[_0x288d93(0x1d1)](_0x10518c)[TestFrameworkConstants['KEY_TEST_UUID']],_0x498a53[_0x288d93(0x1dc)]),_0x28ef33=_0x498a53[_0x288d93(0x1ec)](getScreenshots,_0x5a3ed3,_0x50d2e5[_0x288d93(0x1f3)]()[_0x288d93(0x1d1)](_0x10518c)[TestFrameworkConstants[_0x288d93(0x1d9)]]),_0x1e334c=_0x498a53['fSerw'](getVideos,_0x5a3ed3,_0x50d2e5[_0x288d93(0x1f3)]()[_0x288d93(0x1d1)](_0x10518c)[TestFrameworkConstants[_0x288d93(0x1d9)]]),{_:_0x4fd823,logs:_0x111929}=_0x498a53[_0x288d93(0x1b9)](getFailureData,_0x5a3ed3[_0x288d93(0x1d0)],{'test_run_uuid':_0x50d2e5[_0x288d93(0x1f3)]()['get'](_0x10518c)[TestFrameworkConstants[_0x288d93(0x1d9)]]}),_0x4a3b19=TestInfo[_0x288d93(0x25c)](_0x10518c)[TestFrameworkConstants[_0x288d93(0x1ab)]]||{},_0x5ae02e=_0x498a53[_0x288d93(0x20c)](getMediaArtifactsLogs,_0x4a3b19,_0x50d2e5['getAllData']()['get'](_0x10518c)[TestFrameworkConstants[_0x288d93(0x1d9)]]),_0xb04a2=_0x50d2e5[_0x288d93(0x1f3)]()[_0x288d93(0x1d1)](_0x10518c),{[TestFrameworkConstants[_0x288d93(0x224)]]:_0x11891f='',[TestFrameworkConstants[_0x288d93(0x24d)]]:_0x1663be=''}=_0xb04a2,_0x4ecded=(_0x3927b0||[])[_0x288d93(0x212)](_0x28ef33||[])['concat'](_0x111929||[])[_0x288d93(0x212)](_0x1e334c||[])['concat'](_0x5ae02e||[]),_0x27255a=0x28,_0x56c2cf=Math[_0x288d93(0x1e7)](_0x498a53['PPiVI'](_0x4ecded['length'],_0x27255a));for(let _0x369788=0x0;_0x498a53['QsqqT'](_0x369788,_0x56c2cf);_0x369788++){const _0xdad363=_0x498a53[_0x288d93(0x253)](_0x369788,_0x27255a),_0x223f01=_0x498a53[_0x288d93(0x1fb)](_0xdad363,_0x27255a),_0x59356b=_0x4ecded[_0x288d93(0x1da)](_0xdad363,_0x223f01),_0x2d0f8b={'platformIndex':'0','logs':_0x59356b,'testFrameworkName':_0x11891f,'testFrameworkVersion':_0x1663be,'testFrameworkState':_0x4f2754[_0x288d93(0x210)]()[_0x288d93(0x219)]('.')[0x1]};_0x498a53[_0x288d93(0x1a6)](updatePayloadForTraceLogs,_0x2d0f8b,_0x58d9c5,_0x10518c,_0x50d2e5),logger[_0x288d93(0x1b1)](_0x288d93(0x1dd)+_0x10518c+_0x288d93(0x1d8)+_0x498a53[_0x288d93(0x25a)](_0x369788,0x1)+'/'+_0x56c2cf+_0x288d93(0x211)+util[_0x288d93(0x256)](_0x2d0f8b));const _0x31b9f2=await GrpcClient[_0x288d93(0x264)]()[_0x288d93(0x1a5)](_0x2d0f8b);logger[_0x288d93(0x1b1)](_0x288d93(0x1dd)+_0x10518c+_0x288d93(0x1d8)+_0x498a53['KTkCK'](_0x369788,0x1)+'/'+_0x56c2cf+_0x288d93(0x1ee)+util[_0x288d93(0x256)](_0x31b9f2));}}else{const {steps:_0x5e6b36,logs:_0x3a8e35}=_0x498a53[_0x288d93(0x236)](getStepsAndLogs,_0x58d9c5['step']['steps'],_0x57e5d4,_0x498a53[_0x288d93(0x23d)]),_0x2fa1d7=_0x58d9c5[_0x288d93(0x208)]['id'];logger[_0x288d93(0x1b1)](_0x288d93(0x1f5)+_0x2fa1d7);const _0x4a0b81=_0x50d2e5[_0x288d93(0x1f3)]()[_0x288d93(0x1d1)](_0x2fa1d7),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0xd97085='',[TestFrameworkConstants[_0x288d93(0x24d)]]:_0x3cd642=''}=_0x4a0b81,_0x27f204={'platformIndex':'0','logs':_0x3a8e35,'testFrameworkName':_0xd97085,'testFrameworkVersion':_0x3cd642,'testFrameworkState':_0x4f2754[_0x288d93(0x210)]()[_0x288d93(0x219)]('.')[0x1]};_0x498a53['phHCs'](updatePayloadForTraceLogs,_0x27f204,_0x58d9c5,_0x2fa1d7,_0x50d2e5),logger[_0x288d93(0x1b1)](_0x288d93(0x1dd)+_0x2fa1d7+_0x288d93(0x211)+util[_0x288d93(0x256)](_0x27f204));const _0x50e9ba=await GrpcClient[_0x288d93(0x264)]()[_0x288d93(0x1a5)](_0x27f204);}}catch(_0x3cab93){logger[_0x288d93(0x26b)]('Error\x20in\x20sendLogCreatedEvent:\x20'+util[_0x288d93(0x204)](_0x3cab93));}}}module[a67_0x446ec9(0x1f8)]=PlaywrightTestFramework;
|
|
1
|
+
const a67_0x42d178=a67_0x263d;(function(_0x58f0c6,_0x1361dd){const _0x245cac=a67_0x263d,_0x1ebf33=_0x58f0c6();while(!![]){try{const _0x36c3d1=parseInt(_0x245cac(0x1b7))/0x1+parseInt(_0x245cac(0x1be))/0x2*(-parseInt(_0x245cac(0x1bf))/0x3)+-parseInt(_0x245cac(0x1e9))/0x4+-parseInt(_0x245cac(0x20a))/0x5*(parseInt(_0x245cac(0x23e))/0x6)+-parseInt(_0x245cac(0x1a3))/0x7*(parseInt(_0x245cac(0x24c))/0x8)+parseInt(_0x245cac(0x1d4))/0x9*(parseInt(_0x245cac(0x23d))/0xa)+parseInt(_0x245cac(0x1d2))/0xb*(parseInt(_0x245cac(0x24a))/0xc);if(_0x36c3d1===_0x1361dd)break;else _0x1ebf33['push'](_0x1ebf33['shift']());}catch(_0xbf5d9){_0x1ebf33['push'](_0x1ebf33['shift']());}}}(a67_0x1a04,0x2c02a));const TestFramework=require(a67_0x42d178(0x23a)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require('../state/hookState.js'),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a67_0x42d178(0x1a7)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a67_0x42d178(0x1ac)),TestFrameworkConstants=require(a67_0x42d178(0x1f4)),logger=createClassLogger(a67_0x42d178(0x206)),{v4:uuidv4}=require(a67_0x42d178(0x1e6)),util=require(a67_0x42d178(0x1ea)),{getPlaywrightSessionName,getPlaywrightTestFilePath,getPlaywrightTestId,getPlaywrightTestTitle,getPlaywrightTestLocation,getPlaywrightTestTags,getPlaywrightTestCode,getPlaywrightTestScope,getPlaywrightTestScopes,getStepsAndLogs,getScreenshots,getVideos,getPlaywrightCustomRerunParam,getMediaArtifactsLogs,getManualUploadLogs,updatePayloadForTraceLogs}=require(a67_0x42d178(0x257)),TestInfo=require(a67_0x42d178(0x24e)),GrpcClient=require(a67_0x42d178(0x1e4)),{removeAnsiColors,getFailureType,failureData}=require(a67_0x42d178(0x1db)),{getFailureData,getTestTags,getTestRunIdentifier}=require(a67_0x42d178(0x1d5)),{findNestedKey,sendTraceZip,validateFilePath}=require('../../playwright/reporter/pwUtils'),path=require(a67_0x42d178(0x21d)),fs=require('fs'),helper=require('../../../../src/helpers/helper'),{PLAYWRIGHT_TRACE_LOGS}=require(a67_0x42d178(0x1e7));function a67_0x263d(_0x58de5f,_0x459043){const _0x1a049c=a67_0x1a04();return a67_0x263d=function(_0x263df1,_0x2e0d34){_0x263df1=_0x263df1-0x184;let _0x4a6eb3=_0x1a049c[_0x263df1];return _0x4a6eb3;},a67_0x263d(_0x58de5f,_0x459043);}class PlaywrightTestFramework extends TestFramework{constructor(_0x330045,_0x3c65a9,_0x2880d7){super(_0x330045,_0x3c65a9,_0x2880d7);}async[a67_0x42d178(0x1e2)](_0x7f8c19,_0x4f39f1,_0x398719={}){const _0x211a7b=a67_0x42d178,_0x421590={'vGeIe':function(_0x21467b,_0x1c264a){return _0x21467b===_0x1c264a;},'wnLbo':function(_0x252932,_0x4107b6,_0x570788){return _0x252932(_0x4107b6,_0x570788);},'fvame':function(_0x3394bb,_0x19b33c){return _0x3394bb===_0x19b33c;},'ITGCx':function(_0x29fac1,_0x22994d){return _0x29fac1===_0x22994d;},'qUpvI':'test','HFGJP':_0x211a7b(0x217)};super['trackEvent'](_0x7f8c19,_0x4f39f1,_0x398719);if(_0x421590[_0x211a7b(0x202)](_0x7f8c19,TestFrameworkState[_0x211a7b(0x1fb)])){const _0x598f36=TestInfo[_0x211a7b(0x22c)](_0x398719[_0x211a7b(0x19e)],_0x398719['test']['retry']);TestInfo['setTestDetails'](_0x598f36,_0x398719[_0x211a7b(0x236)],!![]);}const _0x3e5863=this[_0x211a7b(0x241)](_0x7f8c19,_0x4f39f1,_0x398719);if(!_0x3e5863)return;logger[_0x211a7b(0x247)](_0x211a7b(0x226)+_0x7f8c19+_0x211a7b(0x1fa)+_0x4f39f1+'\x20instanceId='+_0x3e5863[_0x211a7b(0x189)]());try{if(_0x421590[_0x211a7b(0x202)](_0x4f39f1,HookState[_0x211a7b(0x23b)])&&_0x421590['vGeIe'](_0x7f8c19,TestFrameworkState[_0x211a7b(0x256)])){const _0x1bc96d=_0x398719[_0x211a7b(0x19e)];logger[_0x211a7b(0x247)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x1bc96d['id']+'}');const _0x4d08de=TestInfo['getTestUUID'](_0x421590['wnLbo'](getTestRunIdentifier,_0x1bc96d,_0x398719[_0x211a7b(0x236)][_0x211a7b(0x21f)]));_0x3e5863[_0x211a7b(0x196)](this[_0x211a7b(0x1c8)](_0x4d08de,_0x1bc96d,_0x398719[_0x211a7b(0x236)])),logger['debug'](_0x211a7b(0x185)+_0x1bc96d['id']+_0x211a7b(0x22d)+_0x7f8c19+_0x211a7b(0x1fd)+_0x4f39f1+_0x211a7b(0x21a)+_0x3e5863[_0x211a7b(0x189)]());}if(_0x421590[_0x211a7b(0x233)](_0x4f39f1,HookState[_0x211a7b(0x1e3)])&&_0x421590[_0x211a7b(0x1ae)](_0x7f8c19,TestFrameworkState[_0x211a7b(0x256)])){const _0x1e9168=_0x398719[_0x211a7b(0x19e)],_0x9d6db=_0x398719[_0x211a7b(0x236)];logger[_0x211a7b(0x247)]('trackEvent\x20loading\x20testResults\x20for\x20testId:\x20'+_0x1e9168['id']),_0x3e5863[_0x211a7b(0x196)](this[_0x211a7b(0x232)](_0x1e9168['id'],_0x9d6db,_0x1e9168)),await this[_0x211a7b(0x1f5)](_0x3e5863,_0x7f8c19,_0x4f39f1,_0x421590[_0x211a7b(0x212)],_0x398719);}if(CLIUtils[_0x211a7b(0x1cc)](_0x7f8c19[_0x211a7b(0x1c5)]()['split']('.')[0x1])){const _0x9e971d=await this[_0x211a7b(0x190)](_0x3e5863,_0x7f8c19,_0x4f39f1,_0x398719);_0x3e5863[_0x211a7b(0x196)](_0x9e971d);}}catch(_0x13c78d){logger[_0x211a7b(0x223)](util['format'](_0x421590[_0x211a7b(0x187)],_0x7f8c19,_0x4f39f1,_0x398719['length'],_0x13c78d));}_0x398719['instance']=_0x3e5863,await this[_0x211a7b(0x1dd)](_0x3e5863,_0x7f8c19,_0x4f39f1,_0x398719);}[a67_0x42d178(0x241)](_0x5d8318,_0x126bf4,_0x1b0aac={}){const _0x38bd65=a67_0x42d178,_0x44ff0d={};_0x44ff0d[_0x38bd65(0x1d3)]=function(_0x159257,_0x256381){return _0x159257===_0x256381;},_0x44ff0d[_0x38bd65(0x1aa)]=function(_0x4144e6,_0x5df164){return _0x4144e6===_0x5df164;};const _0x19d84f=_0x44ff0d;let _0x1817f9=null;return(_0x19d84f[_0x38bd65(0x1d3)](_0x5d8318,TestFrameworkState[_0x38bd65(0x1c6)])||_0x19d84f[_0x38bd65(0x1aa)](_0x5d8318,TestFrameworkState[_0x38bd65(0x1a4)]))&&this['trackPlaywrightInstance'](_0x5d8318,_0x1b0aac),_0x1817f9=TestFramework[_0x38bd65(0x1bb)](),_0x1817f9;}['trackPlaywrightInstance'](_0x2af0e7,_0x5556f6){const _0x3880dd=a67_0x42d178,_0x438036=CLIUtils['getCurrentInstanceName'](),_0x452d20=TrackedInstance[_0x3880dd(0x23c)](_0x438036);let _0x3acd3c=null;logger[_0x3880dd(0x19b)](_0x3880dd(0x207)+_0x438036+',\x20state='+_0x2af0e7),_0x3acd3c=new TestFrameworkInstance(_0x452d20,this['getTestFrameworks'](),this[_0x3880dd(0x194)](),_0x2af0e7,HookState[_0x3880dd(0x1a4)]),TestFramework[_0x3880dd(0x1fc)](_0x452d20,_0x3acd3c),logger[_0x3880dd(0x19b)](_0x3880dd(0x243)+_0x452d20[_0x3880dd(0x1c4)]()+_0x3880dd(0x1b9)+_0x438036);}[a67_0x42d178(0x1c8)](_0x359e0a,_0x15a7b0,_0x2ee746){const _0x67ed8=a67_0x42d178,_0x1c8f4a={'UFWHM':function(_0x5a334d,_0x15138f){return _0x5a334d(_0x15138f);},'TrHEs':function(_0x53b19d,_0x34db01){return _0x53b19d(_0x34db01);},'KJQXO':function(_0x5194c5,_0x4e682c){return _0x5194c5(_0x4e682c);},'fzWwn':function(_0xa4821d,_0x196fe3){return _0xa4821d(_0x196fe3);},'ZkgVh':function(_0x3e167c,_0x39e4e7){return _0x3e167c(_0x39e4e7);},'hROwX':function(_0x2341cf,_0x5dceff){return _0x2341cf(_0x5dceff);},'KbEcf':function(_0x470662,_0x53058f){return _0x470662(_0x53058f);},'WiTXc':function(_0xfa0da4,_0x539109,_0x35d6c6){return _0xfa0da4(_0x539109,_0x35d6c6);}},_0x379a7b=_0x1c8f4a[_0x67ed8(0x1a5)](getPlaywrightTestId,_0x15a7b0),_0x55150c=_0x1c8f4a[_0x67ed8(0x1a5)](getPlaywrightTestTitle,_0x15a7b0),_0x24b70e=_0x1c8f4a[_0x67ed8(0x1d6)](getTestTags,_0x15a7b0),_0x4187a6=_0x1c8f4a[_0x67ed8(0x1dc)](getPlaywrightTestCode,_0x15a7b0),_0xc4d987=_0x1c8f4a['fzWwn'](getPlaywrightTestFilePath,_0x15a7b0),_0xa66f00=_0xc4d987+':'+_0x1c8f4a[_0x67ed8(0x21b)](getPlaywrightTestLocation,_0x15a7b0),_0x1a305a=_0x1c8f4a[_0x67ed8(0x1ce)](getPlaywrightTestScope,_0x15a7b0),_0x69665f=_0x1c8f4a[_0x67ed8(0x218)](getPlaywrightTestScopes,_0x15a7b0),_0xd88b64=_0x1c8f4a[_0x67ed8(0x218)](getPlaywrightSessionName,_0x15a7b0),_0x11f340=this[_0x67ed8(0x249)]()[0x0],_0x56f5cd=_0x1c8f4a[_0x67ed8(0x1f2)](getTestRunIdentifier,_0x15a7b0,_0x2ee746['retry']),_0x28a895={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x11f340,[TestFrameworkConstants[_0x67ed8(0x20d)]]:this[_0x67ed8(0x194)]()[_0x11f340],[TestFrameworkConstants[_0x67ed8(0x216)]]:[],[TestFrameworkConstants[_0x67ed8(0x231)]]:{},[TestFrameworkConstants[_0x67ed8(0x209)]]:{},[TestFrameworkConstants[_0x67ed8(0x229)]]:_0x359e0a,[TestFrameworkConstants[_0x67ed8(0x1b5)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x67ed8(0x1d1)]]:_0xd88b64,[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0xc4d987,[TestFrameworkConstants[_0x67ed8(0x1a0)]]:_0x379a7b,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x55150c,[TestFrameworkConstants[_0x67ed8(0x1f3)]]:_0xa66f00,[TestFrameworkConstants['KEY_TEST_CODE']]:_0x4187a6,[TestFrameworkConstants[_0x67ed8(0x246)]]:_0x24b70e,[TestFrameworkConstants[_0x67ed8(0x24d)]]:_0x15a7b0[_0x67ed8(0x1d9)][0x0][_0x67ed8(0x1c7)],[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x1a305a,[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x69665f,[TestFrameworkConstants[_0x67ed8(0x242)]]:_0x1c8f4a['fzWwn'](getPlaywrightCustomRerunParam,_0x15a7b0)};TestInfo['setTestDetails'](_0x56f5cd,_0x28a895);const _0x3ab8b5={};return _0x3ab8b5[_0x56f5cd]=_0x28a895,_0x3ab8b5;}[a67_0x42d178(0x232)](_0x262ed9,_0x4864f8,_0x45f4a3){const _0x528590=a67_0x42d178,_0xf11e42={'ErSBg':function(_0x3c063c,_0x473e9c){return _0x3c063c(_0x473e9c);},'WDjtH':_0x528590(0x184),'ajJBJ':function(_0x32778d,_0x5aa88d){return _0x32778d===_0x5aa88d;},'hdBzA':function(_0x330051,_0x163f05){return _0x330051===_0x163f05;},'xVeCn':function(_0x41f2d0,_0x12a97c){return _0x41f2d0===_0x12a97c;},'ingTh':function(_0x592cb5,_0x29cfd8){return _0x592cb5(_0x29cfd8);},'hTHmT':_0x528590(0x19d),'cmpgh':'multi_dropdown','XCdQd':function(_0x4d5a61,_0x2325c0){return _0x4d5a61(_0x2325c0);},'MKXqA':function(_0x3d1efe,_0x15330c,_0x2ef3c2){return _0x3d1efe(_0x15330c,_0x2ef3c2);},'CzJPy':function(_0x2b0c96,_0x2bfb97){return _0x2b0c96+_0x2bfb97;},'rlBBs':_0x528590(0x1c2),'UExGN':_0x528590(0x1f8),'Wxqgi':function(_0x55e713,_0x512ac9){return _0x55e713===_0x512ac9;},'rPUce':_0x528590(0x214),'aAvRG':function(_0x53b4a3,_0x1e363a){return _0x53b4a3===_0x1e363a;},'TJGwq':_0x528590(0x1b2),'vRERA':function(_0x107479,_0xfe1b0d){return _0x107479===_0xfe1b0d;},'GYLFD':_0x528590(0x1bc),'gCoGo':function(_0x25edeb,_0x2d8a7c,_0x319005){return _0x25edeb(_0x2d8a7c,_0x319005);},'FCpMK':function(_0x288227,_0xc482b5){return _0x288227||_0xc482b5;},'Qqcye':function(_0x8bce1e,_0x5ed607){return _0x8bce1e(_0x5ed607);},'wyhIn':function(_0xe52386,_0x4f713d){return _0xe52386(_0x4f713d);},'lcaNi':function(_0x3a3685,_0x334b58){return _0x3a3685>_0x334b58;},'iblTZ':function(_0x4b19e2,_0xefe815){return _0x4b19e2-_0xefe815;},'CQORX':function(_0x451f86,_0x651bb7,_0x2e842){return _0x451f86(_0x651bb7,_0x2e842);},'gfXyI':_0x528590(0x21d),'gfEnB':function(_0x95b093,_0x2dfc9c){return _0x95b093(_0x2dfc9c);},'dmvsO':function(_0x45d647,_0x126515,_0x2a24ec){return _0x45d647(_0x126515,_0x2a24ec);}};logger['debug'](_0x528590(0x193)+_0x262ed9);const _0x55c7e8=_0xf11e42[_0x528590(0x1da)](getTestRunIdentifier,_0x45f4a3,_0x4864f8[_0x528590(0x21f)]),_0x5cc643=new Date(_0x4864f8['startTime']),_0x47439d=_0x4864f8[_0x528590(0x222)],_0x1327eb=new Date(_0xf11e42[_0x528590(0x245)](_0x5cc643[_0x528590(0x244)](),_0x47439d)),_0x296ff7=_0x4864f8[_0x528590(0x1b6)],_0x1b634d=TestInfo[_0x528590(0x1ec)](_0x55c7e8)[TestFrameworkConstants[_0x528590(0x1b1)]]||{};let _0x880f52=_0x296ff7;if(_0xf11e42['xVeCn'](_0x4864f8[_0x528590(0x1b6)],_0x45f4a3['expectedStatus']))_0x880f52=_0xf11e42[_0x528590(0x250)](_0x4864f8[_0x528590(0x1b6)],_0xf11e42[_0x528590(0x255)])?_0xf11e42[_0x528590(0x255)]:_0xf11e42[_0x528590(0x215)];else{(_0xf11e42[_0x528590(0x1e5)](_0x880f52,_0xf11e42[_0x528590(0x215)])||_0xf11e42[_0x528590(0x237)](_0x880f52,_0xf11e42[_0x528590(0x1cd)])||_0xf11e42['aAvRG'](_0x880f52,_0xf11e42[_0x528590(0x1a2)]))&&(_0x880f52=_0xf11e42['rPUce']);if(_0xf11e42['vRERA'](_0x4864f8['status'],_0xf11e42[_0x528590(0x215)])&&_0xf11e42[_0x528590(0x1ee)](_0x45f4a3[_0x528590(0x219)],_0xf11e42[_0x528590(0x1cd)])){const _0x4fe4ed={};_0x4fe4ed[_0x528590(0x1ab)]=_0xf11e42[_0x528590(0x192)],_0x4fe4ed[_0x528590(0x20f)]=_0xf11e42[_0x528590(0x192)],_0x4864f8[_0x528590(0x223)]=_0x4fe4ed,_0x4864f8[_0x528590(0x1f0)]=[_0x4864f8[_0x528590(0x223)]];}}const {failureData:_0x1c3e6f,logs:_0x53adda}=_0xf11e42[_0x528590(0x1b0)](getFailureData,_0x4864f8?.[_0x528590(0x1f0)],{}),_0x33b916={[TestFrameworkConstants[_0x528590(0x1af)]]:_0xf11e42['FCpMK'](_0x1c3e6f,null),[TestFrameworkConstants[_0x528590(0x21c)]]:_0x4864f8?.[_0x528590(0x223)]&&_0xf11e42['Qqcye'](getFailureType,_0x4864f8['error']['message']),[TestFrameworkConstants[_0x528590(0x186)]]:_0x4864f8?.['error']&&_0xf11e42['wyhIn'](removeAnsiColors,_0x4864f8[_0x528590(0x223)]['message']),[TestFrameworkConstants[_0x528590(0x1cb)]]:[],[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x880f52,[TestFrameworkConstants[_0x528590(0x254)]]:_0x1327eb[_0x528590(0x208)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x528590(0x208)](),[TestFrameworkConstants[_0x528590(0x1b1)]]:_0x1b634d};if(_0x4864f8&&_0xf11e42[_0x528590(0x1c9)](_0x4864f8[_0x528590(0x21f)],0x0)){const _0x592d00=TestInfo['getTestUUID'](_0xf11e42[_0x528590(0x1b0)](getTestRunIdentifier,_0x45f4a3,_0xf11e42[_0x528590(0x18b)](_0x4864f8[_0x528590(0x21f)],0x1)));_0x33b916[TestFrameworkConstants[_0x528590(0x1f9)]]=_0x592d00;}const _0xf1b8e7={};_0xf1b8e7['test']=_0x45f4a3;const _0x47f213=this[_0x528590(0x241)](TestFrameworkState[_0x528590(0x256)],HookState[_0x528590(0x1e3)],_0xf1b8e7),_0x2d8c68=_0x47f213[_0x528590(0x1c0)]()['get'](_0x55c7e8)[TestFrameworkConstants[_0x528590(0x229)]],_0x55ef6c=[],_0x22bb6f=_0xf11e42[_0x528590(0x22f)](findNestedKey,_0x4864f8,_0xf11e42[_0x528590(0x1de)]);if(_0x22bb6f&&_0xf11e42[_0x528590(0x240)](validateFilePath,_0x22bb6f))try{_0x55ef6c[_0x528590(0x1eb)]({'kind':_0xf11e42[_0x528590(0x1ad)],'timestamp':new Date()[_0x528590(0x208)](),'test_run_uuid':_0x2d8c68,'file_name':path['basename'](_0x22bb6f),'file_size':fs[_0x528590(0x1fe)](_0x22bb6f)['size'],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x4ffca0){logger[_0x528590(0x223)](_0x528590(0x1c3)+_0x22bb6f+':\x20'+_0x4ffca0[_0x528590(0x1ab)]);}const _0x4da653=TestInfo['getTraceFilePaths'](),_0x3a62a9=_0x4da653['filter'](_0x5bb718=>_0x5bb718['testUId']===_0x2d8c68);_0x3a62a9['forEach'](_0x762094=>{const _0x7436dc=_0x528590;if(_0x762094['filePath']&&_0xf11e42[_0x7436dc(0x20c)](validateFilePath,_0x762094['filePath'])&&!_0x55ef6c[_0x7436dc(0x1a9)](_0x1ae05b=>_0x1ae05b[_0x7436dc(0x19f)]===path[_0x7436dc(0x1ca)](_0x762094[_0x7436dc(0x225)])))try{_0x55ef6c[_0x7436dc(0x1eb)]({'kind':_0xf11e42[_0x7436dc(0x1ad)],'timestamp':new Date()['toISOString'](),'test_run_uuid':_0x2d8c68,'file_name':path[_0x7436dc(0x1ca)](_0x762094[_0x7436dc(0x225)]),'file_size':fs['statSync'](_0x762094[_0x7436dc(0x225)])['size'],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x3a60de){logger['error']('Error\x20processing\x20trace\x20file\x20'+_0x762094[_0x7436dc(0x225)]+_0x7436dc(0x24f)+_0x3a60de[_0x7436dc(0x1ab)]);}});if(_0xf11e42['lcaNi'](_0x55ef6c['length'],0x0)){const _0x6dd551=_0x33b916[TestFrameworkConstants[_0x528590(0x1cb)]]||[];_0x33b916[TestFrameworkConstants[_0x528590(0x1cb)]]=[..._0x6dd551,..._0x55ef6c];}const _0x23764a=TestInfo[_0x528590(0x1ec)](_0x55c7e8)[TestFrameworkConstants[_0x528590(0x21e)]]||{},_0x30751e=_0xf11e42['dmvsO'](getManualUploadLogs,_0x23764a,_0x47f213['getAllData']()[_0x528590(0x191)](_0x55c7e8)[TestFrameworkConstants[_0x528590(0x229)]]);if(_0xf11e42[_0x528590(0x1c9)](_0x30751e['length'],0x0)){const _0x3028c2=_0x33b916[TestFrameworkConstants[_0x528590(0x1cb)]]||[];_0x33b916[TestFrameworkConstants['KEY_LOGS']]=[..._0x3028c2,..._0x30751e];}const _0x1b29ac=_0x45f4a3['annotations']||[],_0x3727f0=_0x33b916[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};_0x1b29ac[_0x528590(0x200)](_0x41242f=>{const _0x39925e=_0x528590,{type:_0xb5c9d1}=_0x41242f;let _0xaff827=_0x41242f['description'];if(!_0xb5c9d1)return;(_0xf11e42['ajJBJ'](_0xaff827,undefined)||_0xf11e42[_0x39925e(0x237)](_0xaff827,null)||_0xf11e42[_0x39925e(0x250)](_0xf11e42[_0x39925e(0x1d7)](String,_0xaff827)['trim'](),''))&&(_0xaff827=_0xf11e42[_0x39925e(0x1ef)]);if(!_0x3727f0[_0xb5c9d1]){const _0x580f9b={};_0x580f9b[_0x39925e(0x199)]=_0xf11e42[_0x39925e(0x195)],_0x580f9b['values']=[],_0x3727f0[_0xb5c9d1]=_0x580f9b;}else!_0x3727f0[_0xb5c9d1][_0x39925e(0x199)]&&(_0x3727f0[_0xb5c9d1][_0x39925e(0x199)]=_0xf11e42[_0x39925e(0x195)]),!Array[_0x39925e(0x19c)](_0x3727f0[_0xb5c9d1][_0x39925e(0x18f)])&&(_0x3727f0[_0xb5c9d1]['values']=[]);const _0x354710=_0xf11e42['XCdQd'](String,_0xaff827)[_0x39925e(0x1ba)](',')[_0x39925e(0x1a6)](_0x35a6a5=>_0x35a6a5['trim']());_0x3727f0[_0xb5c9d1][_0x39925e(0x18f)]=[...new Set([..._0x3727f0[_0xb5c9d1]['values'],..._0x354710])];}),_0x33b916[TestFrameworkConstants[_0x528590(0x1b1)]]=_0x3727f0,TestInfo[_0x528590(0x1b8)](_0x55c7e8,_0x33b916);const _0x4c8c72={};return _0x4c8c72[_0x55c7e8]=_0x33b916,_0x4c8c72;}async[a67_0x42d178(0x190)](_0x813222,_0x178c2d,_0x492b41,_0x2ae089){const _0x39fddb=a67_0x42d178,_0x3ffbe3={'dnXVm':function(_0x356b70,_0x5add68,_0x21410c){return _0x356b70(_0x5add68,_0x21410c);},'KzmZZ':function(_0x103efe,_0x50fea7){return _0x103efe in _0x50fea7;},'RqXxJ':function(_0x30d98b,_0x37a2d6){return _0x30d98b(_0x37a2d6);},'npRLQ':function(_0x41033a,_0x4897cf){return _0x41033a===_0x4897cf;},'ldkZy':function(_0xe8c2b4){return _0xe8c2b4();},'UoyXK':function(_0xa91ae8,_0x51d340){return _0xa91ae8>_0x51d340;},'mWQmF':function(_0x54898b,_0x4f68fc,_0x47afa5){return _0x54898b(_0x4f68fc,_0x47afa5);},'kUFcL':_0x39fddb(0x198),'BzVsN':_0x39fddb(0x214),'ylCyr':_0x39fddb(0x1f8),'BGvOJ':function(_0x28d5e3,_0x47a187){return _0x28d5e3!==_0x47a187;},'VwmLo':function(_0x1973ae,_0x2da24a){return _0x1973ae+_0x2da24a;},'WeojT':_0x39fddb(0x20e)},_0x49dc44=_0x2ae089[_0x39fddb(0x19e)],_0x55a80a=_0x2ae089[_0x39fddb(0x197)],_0x4d963d=_0x3ffbe3[_0x39fddb(0x210)](getTestRunIdentifier,_0x49dc44,_0x2ae089[_0x39fddb(0x236)][_0x39fddb(0x21f)]),_0x1731c3=_0x178c2d[_0x39fddb(0x1c5)]()[_0x39fddb(0x1ba)]('.')[0x1];let _0x46e3f5=_0x813222[_0x39fddb(0x1c0)]()[_0x39fddb(0x191)](_0x4d963d)[TestFrameworkConstants[_0x39fddb(0x209)]];!_0x46e3f5&&(_0x46e3f5={});!_0x3ffbe3[_0x39fddb(0x1ff)](_0x1731c3,_0x46e3f5)&&(_0x46e3f5[_0x1731c3]=[]);let _0x266679=_0x813222['getAllData']()[_0x39fddb(0x191)](_0x4d963d)[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x266679&&(_0x266679={});!_0x3ffbe3[_0x39fddb(0x1ff)](_0x1731c3,_0x266679)&&(_0x266679[_0x1731c3]=[]);const _0x4147a7={[TestFrameworkConstants[_0x39fddb(0x209)]]:_0x46e3f5,[TestFrameworkConstants[_0x39fddb(0x231)]]:_0x266679},_0x11841d={};_0x11841d[_0x4d963d]=_0x4147a7;const _0x5836e9=_0x11841d,_0x111383=_0x3ffbe3['RqXxJ'](getPlaywrightTestFilePath,_0x49dc44),_0xb108b=_0x111383+':'+_0x3ffbe3[_0x39fddb(0x1b3)](getPlaywrightTestLocation,_0x49dc44),_0xc50673=TestInfo[_0x39fddb(0x1ec)](_0x4d963d)[TestFrameworkConstants[_0x39fddb(0x1b1)]]||{};if(_0x3ffbe3[_0x39fddb(0x188)](_0x492b41,HookState[_0x39fddb(0x23b)])){const _0x9579aa={'key':_0x1731c3,[TestFrameworkConstants[_0x39fddb(0x1f7)]]:_0x3ffbe3['ldkZy'](uuidv4),[TestFrameworkConstants[_0x39fddb(0x211)]]:TestFrameworkConstants[_0x39fddb(0x230)],[TestFrameworkConstants[_0x39fddb(0x1f1)]]:_0x55a80a[_0x39fddb(0x1c7)],[TestFrameworkConstants[_0x39fddb(0x235)]]:[],[TestFrameworkConstants[_0x39fddb(0x1a1)]]:_0x55a80a[_0x39fddb(0x1d8)],[TestFrameworkConstants[_0x39fddb(0x224)]]:_0x111383,[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0xb108b,[TestFrameworkConstants[_0x39fddb(0x1b1)]]:_0xc50673};_0x46e3f5[_0x1731c3][_0x39fddb(0x1eb)](_0x9579aa),_0x5836e9[_0x4d963d][TestFrameworkConstants[_0x39fddb(0x23f)]]=_0x1731c3,logger[_0x39fddb(0x247)]('Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x1731c3+_0x39fddb(0x1a8)+_0x9579aa+_0x39fddb(0x227)+_0x2ae089);}else{if(_0x3ffbe3[_0x39fddb(0x188)](_0x492b41,HookState[_0x39fddb(0x1e3)])){const _0x37663e=await _0x2ae089[_0x39fddb(0x236)],_0x3b923a=_0x46e3f5[_0x1731c3]||[],_0x14d36e=_0x2ae089[_0x39fddb(0x197)];logger[_0x39fddb(0x247)]('Hook\x20List\x20in\x20Post\x20'+_0x3b923a+'\x20and\x20args\x20=\x20'+_0x2ae089);if(_0x3ffbe3['UoyXK'](_0x3b923a['length'],0x0)){const _0x44262a=_0x3b923a[_0x39fddb(0x1e8)]();if(_0x14d36e[_0x39fddb(0x223)]){const _0x570076=_0x3ffbe3['mWQmF'](failureData,_0x14d36e[_0x39fddb(0x223)],_0x3ffbe3[_0x39fddb(0x253)]);_0x44262a[TestFrameworkConstants[_0x39fddb(0x1c1)]]=_0x3ffbe3[_0x39fddb(0x1b3)](getFailureType,_0x14d36e?.[_0x39fddb(0x223)][_0x39fddb(0x1ab)]),_0x44262a[TestFrameworkConstants[_0x39fddb(0x22b)]]=_0x3ffbe3[_0x39fddb(0x1b3)](removeAnsiColors,_0x14d36e?.[_0x39fddb(0x223)][_0x39fddb(0x1ab)]),_0x44262a[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x3ffbe3['BzVsN'],_0x44262a[TestFrameworkConstants[_0x39fddb(0x19a)]]=_0x570076;}else _0x44262a[TestFrameworkConstants[_0x39fddb(0x211)]]=_0x3ffbe3['ylCyr'];_0x3ffbe3[_0x39fddb(0x18c)](_0x37663e,TestFrameworkConstants[_0x39fddb(0x230)])&&(_0x44262a[TestFrameworkConstants[_0x39fddb(0x211)]]=!_0x14d36e[_0x39fddb(0x223)]?_0x3ffbe3[_0x39fddb(0x203)]:_0x3ffbe3['BzVsN']);const _0x25b3b1=new Date(_0x14d36e[_0x39fddb(0x1c7)]),_0x492c65=new Date(_0x3ffbe3[_0x39fddb(0x18a)](_0x25b3b1['getTime'](),_0x14d36e[_0x39fddb(0x222)]));_0x44262a[TestFrameworkConstants[_0x39fddb(0x22a)]]=_0x492c65[_0x39fddb(0x208)](),_0x44262a[TestFrameworkConstants[_0x39fddb(0x1b1)]]=_0xc50673;const _0x2b2610=_0x44262a[TestFrameworkConstants[_0x39fddb(0x1f7)]];await this['sendLogCreatedEvent'](_0x813222,_0x178c2d,_0x2b2610,_0x3ffbe3['WeojT'],_0x2ae089),!_0x266679[_0x1731c3]&&(_0x266679[_0x1731c3]=[]),_0x266679[_0x1731c3]['push'](_0x44262a),_0x5836e9[_0x4d963d][TestFrameworkConstants[_0x39fddb(0x22e)]]=_0x1731c3;}}}return _0x5836e9;}async[a67_0x42d178(0x1f5)](_0x50869f,_0x30133d,_0x75227e,_0x1ee2af,_0xf69522){const _0xbf3981=a67_0x42d178,_0x3a0d91={'tvdzE':function(_0x37097d,_0x3d7462){return _0x37097d===_0x3d7462;},'KcUki':_0xbf3981(0x19e),'FoeHW':function(_0x17a634,_0x41e17e,_0x36d263){return _0x17a634(_0x41e17e,_0x36d263);},'tHKwQ':function(_0x35ec43,_0x23b26b,_0x5d167c){return _0x35ec43(_0x23b26b,_0x5d167c);},'GKXwJ':_0xbf3981(0x221),'CsaNv':function(_0xfb90c2,_0x1bfec8,_0x530606,_0x404086){return _0xfb90c2(_0x1bfec8,_0x530606,_0x404086);},'rnhie':function(_0x3bdb47,_0x45925b,_0x1f15de){return _0x3bdb47(_0x45925b,_0x1f15de);},'THDcH':function(_0x3c904f,_0x52fc54,_0x3461b2){return _0x3c904f(_0x52fc54,_0x3461b2);},'mMoYs':function(_0x34303d,_0x2f4e37){return _0x34303d/_0x2f4e37;},'TfKMb':function(_0x1dea96,_0x33dffc){return _0x1dea96<_0x33dffc;},'rvdMf':function(_0x14a46c,_0x2d0c3f){return _0x14a46c*_0x2d0c3f;},'zBqfz':function(_0x874da7,_0x290833){return _0x874da7+_0x290833;},'Fcxmt':function(_0x201ae7,_0x315da9,_0x407610,_0x11f3a5,_0x138632){return _0x201ae7(_0x315da9,_0x407610,_0x11f3a5,_0x138632);},'ewOIA':function(_0x2a26a1,_0x506b1b){return _0x2a26a1+_0x506b1b;},'ipOPF':function(_0x5b2f7e,_0x323f33,_0x2fd0c9,_0x86dbdc){return _0x5b2f7e(_0x323f33,_0x2fd0c9,_0x86dbdc);},'HYQKx':_0xbf3981(0x20e)};try{if(_0x3a0d91['tvdzE'](_0x1ee2af,_0x3a0d91[_0xbf3981(0x238)])){const _0xd7b477=await _0xf69522[_0xbf3981(0x236)],_0x320171=_0x3a0d91['FoeHW'](getTestRunIdentifier,_0xf69522[_0xbf3981(0x19e)],_0xf69522[_0xbf3981(0x236)][_0xbf3981(0x21f)]),_0x4b60f8=_0xf69522['test'];logger['debug'](_0xbf3981(0x201)+_0x320171+_0xbf3981(0x1bd)+util[_0xbf3981(0x228)](_0xd7b477));const _0x53afad=_0x50869f[_0xbf3981(0x1c0)]()['get'](_0x320171)[TestFrameworkConstants['KEY_TEST_UUID']];await _0x3a0d91[_0xbf3981(0x248)](sendTraceZip,_0xd7b477,_0x53afad);const _0x2942a2=TestInfo['getTestDetails'](_0x320171)[_0x3a0d91[_0xbf3981(0x220)]];if(_0x2942a2){!_0xd7b477[_0xbf3981(0x221)]&&(_0xd7b477[_0xbf3981(0x221)]=[]);Object[_0xbf3981(0x213)](_0xd7b477[_0xbf3981(0x221)],_0xd7b477[_0xbf3981(0x221)][_0xbf3981(0x1e1)](_0x2942a2));const _0x57afd2=TestInfo[_0xbf3981(0x1ec)](_0x320171);delete _0x57afd2[_0x3a0d91[_0xbf3981(0x220)]],TestInfo[_0xbf3981(0x1b8)](_0x320171,_0x57afd2);}const {steps:_0x37d0ed,logs:_0x509369}=_0x3a0d91['CsaNv'](getStepsAndLogs,_0xd7b477[_0xbf3981(0x1df)],_0x50869f[_0xbf3981(0x1c0)]()['get'](_0x320171)[TestFrameworkConstants[_0xbf3981(0x229)]],_0x3a0d91[_0xbf3981(0x238)]),_0x445365=_0x3a0d91[_0xbf3981(0x204)](getScreenshots,_0xd7b477,_0x50869f[_0xbf3981(0x1c0)]()['get'](_0x320171)[TestFrameworkConstants[_0xbf3981(0x229)]]),_0xd1cdb7=_0x3a0d91[_0xbf3981(0x204)](getVideos,_0xd7b477,_0x50869f['getAllData']()['get'](_0x320171)[TestFrameworkConstants[_0xbf3981(0x229)]]),{_:_0x454567,logs:_0x9e709b}=_0x3a0d91[_0xbf3981(0x248)](getFailureData,_0xd7b477[_0xbf3981(0x1f0)],{'test_run_uuid':_0x50869f[_0xbf3981(0x1c0)]()[_0xbf3981(0x191)](_0x320171)[TestFrameworkConstants[_0xbf3981(0x229)]]}),_0x3f5398=TestInfo['getTestDetails'](_0x320171)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x472200=_0x3a0d91[_0xbf3981(0x1b4)](getMediaArtifactsLogs,_0x3f5398,_0x50869f['getAllData']()[_0xbf3981(0x191)](_0x320171)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x372ae5=_0x50869f[_0xbf3981(0x1c0)]()[_0xbf3981(0x191)](_0x320171),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0xf68396='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x1f0ada=''}=_0x372ae5,_0x1fa506=(_0x509369||[])[_0xbf3981(0x1e1)](_0x445365||[])['concat'](_0x9e709b||[])[_0xbf3981(0x1e1)](_0xd1cdb7||[])[_0xbf3981(0x1e1)](_0x472200||[]),_0x2fbd4b=0x28,_0x4028da=Math[_0xbf3981(0x1f6)](_0x3a0d91[_0xbf3981(0x239)](_0x1fa506[_0xbf3981(0x24b)],_0x2fbd4b));for(let _0xe3f1c3=0x0;_0x3a0d91['TfKMb'](_0xe3f1c3,_0x4028da);_0xe3f1c3++){const _0x4cb7dc=_0x3a0d91[_0xbf3981(0x1d0)](_0xe3f1c3,_0x2fbd4b),_0x30cfcc=_0x3a0d91[_0xbf3981(0x20b)](_0x4cb7dc,_0x2fbd4b),_0x24f966=_0x1fa506['slice'](_0x4cb7dc,_0x30cfcc),_0x21e586={'platformIndex':'0','logs':_0x24f966,'testFrameworkName':_0xf68396,'testFrameworkVersion':_0x1f0ada,'testFrameworkState':_0x30133d[_0xbf3981(0x1c5)]()[_0xbf3981(0x1ba)]('.')[0x1]};_0x3a0d91['Fcxmt'](updatePayloadForTraceLogs,_0x21e586,_0xf69522,_0x320171,_0x50869f),logger['debug'](_0xbf3981(0x252)+_0x320171+_0xbf3981(0x1e0)+_0x3a0d91[_0xbf3981(0x20b)](_0xe3f1c3,0x1)+'/'+_0x4028da+_0xbf3981(0x1ed)+util[_0xbf3981(0x228)](_0x21e586));const _0x36ec66=await GrpcClient[_0xbf3981(0x251)]()[_0xbf3981(0x18e)](_0x21e586);logger[_0xbf3981(0x247)]('sendLogCreatedEvent\x20for\x20testId:\x20'+_0x320171+_0xbf3981(0x1e0)+_0x3a0d91['ewOIA'](_0xe3f1c3,0x1)+'/'+_0x4028da+_0xbf3981(0x234)+util[_0xbf3981(0x228)](_0x36ec66));}}else{const {steps:_0x3e49fc,logs:_0x1fdd6b}=_0x3a0d91['ipOPF'](getStepsAndLogs,_0xf69522[_0xbf3981(0x197)][_0xbf3981(0x1df)],_0x75227e,_0x3a0d91[_0xbf3981(0x1cf)]),_0x530073=_0x3a0d91[_0xbf3981(0x248)](getTestRunIdentifier,_0xf69522[_0xbf3981(0x19e)],_0xf69522[_0xbf3981(0x236)][_0xbf3981(0x21f)]);logger['debug'](_0xbf3981(0x201)+_0x530073);const _0x2563a6=_0x50869f[_0xbf3981(0x1c0)]()[_0xbf3981(0x191)](_0x530073),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x3c8682='',[TestFrameworkConstants[_0xbf3981(0x20d)]]:_0x37faba=''}=_0x2563a6,_0x532b38={'platformIndex':'0','logs':_0x1fdd6b,'testFrameworkName':_0x3c8682,'testFrameworkVersion':_0x37faba,'testFrameworkState':_0x30133d['toString']()[_0xbf3981(0x1ba)]('.')[0x1]};_0x3a0d91[_0xbf3981(0x205)](updatePayloadForTraceLogs,_0x532b38,_0xf69522,_0x530073,_0x50869f),logger[_0xbf3981(0x247)](_0xbf3981(0x252)+_0x530073+_0xbf3981(0x1ed)+util[_0xbf3981(0x228)](_0x532b38));const _0x40d7da=await GrpcClient['getInstance']()['logCreatedEvent'](_0x532b38);}}catch(_0x11fe58){logger['error']('Error\x20in\x20sendLogCreatedEvent:\x20'+util['format'](_0x11fe58));}}}module[a67_0x42d178(0x18d)]=PlaywrightTestFramework;function a67_0x1a04(){const _0x4b504a=['retry','GKXwJ','attachments','duration','error','KEY_TEST_FILE_PATH','filePath','trackEvent:\x20found\x20instance,\x20testFrameworkState=','\x20\x20and\x20args\x20=\x20','inspect','KEY_TEST_UUID','KEY_EVENT_ENDED_AT','KEY_HOOK_FAILURE_REASON','getTestIdentifierFromTestInfo',',\x20testFrameworkState=','KEY_HOOK_LAST_FINISHED','CQORX','DEFAULT_HOOK_RESULT','KEY_HOOKS_FINISHED','parsePlaywrightTestResult','fvame','\x20response=','KEY_HOOK_LOGS','result','hdBzA','KcUki','mMoYs','./testFramework','PRE','createContext','20YiwGtF','56328lMKigf','KEY_HOOK_LAST_STARTED','gfEnB','resolveInstance','KEY_TEST_RERUN_NAME','trackPlaywrightInstance:\x20saved\x20instance\x20contextId=','getTime','CzJPy','KEY_TEST_TAGS','debug','tHKwQ','getTestFrameworks','12PARbVT','length','289112jaaCxp','KEY_TEST_STARTED_AT','../TestInfo.js','\x20from\x20TestDetails:\x20','xVeCn','getInstance','sendLogCreatedEvent\x20for\x20testId:\x20','kUFcL','KEY_TEST_ENDED_AT','rlBBs','TEST','../../../helpers/helper.js','TEST_ATTACHMENT','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','KEY_TEST_FAILURE_REASON','HFGJP','npRLQ','getRef','VwmLo','iblTZ','BGvOJ','exports','logCreatedEvent','values','trackHookEvent','get','GYLFD','parsePlaywrightTestResult:\x20testId=','getTestFrameworksVersions','cmpgh','addMultipleEntries','step','err','field_type','KEY_HOOK_FAILURE','info','isArray','No\x20reason\x20provided','test','file_name','KEY_TEST_ID','KEY_HOOK_NAME','TJGwq','7BtymiF','NONE','UFWHM','map','../instances/testFrameworkInstance.js','\x20&\x20hook\x20=\x20','some','TudfC','message','../instances/trackedInstance.js','WDjtH','ITGCx','KEY_TEST_FAILURE','gCoGo','KEY_CUSTOM_TAGS','timedOut','RqXxJ','THDcH','KEY_TEST_RESULT','status','232288Dowrje','setTestDetails','\x20target=','split','getTrackedInstance','Expected\x20to\x20fail,\x20but\x20passed.','\x20result=','2UcyxVS','520587UbdbMi','getAllData','KEY_HOOK_FAILURE_TYPE','skipped','Error\x20processing\x20direct\x20trace\x20file\x20','getId','toString','INIT_TEST','startTime','parsePlaywrightTest','lcaNi','basename','KEY_LOGS','matchHookRegex','rPUce','hROwX','HYQKx','rvdMf','KEY_AUTOMATE_SESSION_NAME','5146196zsQsQp','SUzqN','1133901jfQqcu','../../playwright/reporter/pwUtils','TrHEs','ingTh','title','results','MKXqA','../../../helpers/test-observability/utils','KJQXO','runHooks','gfXyI','steps','\x20batch\x20','concat','trackEvent','POST','../grpcClient','Wxqgi','uuid','../../utils/constants','pop','1422528hIbsTX','util','push','getTestDetails','\x20payload=','aAvRG','hTHmT','errors','KEY_EVENT_STARTED_AT','WiTXc','KEY_TEST_LOCATION','./constants/testFrameworkConstants.js','sendLogCreatedEvent','ceil','KEY_HOOK_ID','passed','KEY_TEST_RETRY_OF','\x20hookState=','TEST_SCREENSHOT','setTrackedInstance','\x20testHookState=','statSync','KzmZZ','forEach','sendLogCreatedEvent:\x20testId=','vGeIe','ylCyr','rnhie','Fcxmt','PlaywrightTestFramework','trackPlaywrightInstance:\x20created\x20instance\x20for\x20target=','toISOString','KEY_HOOKS_STARTED','110yGkGDa','zBqfz','ErSBg','KEY_TEST_FRAMEWORK_VERSION','hook','stack','dnXVm','KEY_HOOK_RESULT','qUpvI','assign','failed','UExGN','KEY_TEST_LOGS','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','KbEcf','expectedStatus','\x20instance=','ZkgVh','KEY_TEST_FAILURE_TYPE','path','KEY_TEST_ATTACHMENTS'];a67_0x1a04=function(){return _0x4b504a;};return a67_0x1a04();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x1d9bff=a68_0xb9f3;(function(_0x576fd4,_0x1677bf){const _0x2ac1a5=a68_0xb9f3,_0x4178c6=_0x576fd4();while(!![]){try{const _0xe7a2e6=-parseInt(_0x2ac1a5(0x10a))/0x1*(parseInt(_0x2ac1a5(0xe8))/0x2)+-parseInt(_0x2ac1a5(0xf3))/0x3*(-parseInt(_0x2ac1a5(0xf8))/0x4)+parseInt(_0x2ac1a5(0x110))/0x5+-parseInt(_0x2ac1a5(0x10c))/0x6*(-parseInt(_0x2ac1a5(0xed))/0x7)+parseInt(_0x2ac1a5(0xec))/0x8+-parseInt(_0x2ac1a5(0xfc))/0x9+-parseInt(_0x2ac1a5(0xfb))/0xa*(parseInt(_0x2ac1a5(0x103))/0xb);if(_0xe7a2e6===_0x1677bf)break;else _0x4178c6['push'](_0x4178c6['shift']());}catch(_0x240929){_0x4178c6['push'](_0x4178c6['shift']());}}}(a68_0x4ef7,0xcc321));function a68_0x4ef7(){const _0x1251b0=['../instances/testFrameworkInstance','hasState','instances','exports','testFrameworks','563605mbvdSX','testFrameworkVersions','1085034PQoWde','setTrackedInstance','../instances/trackedInstance',';\x20hookState=','6803920WvhTrl','binSessionId','notifyObserver','setState','../state/hookState','../cliUtils','getId','has','2YpeLhg','../eventDispatcher','getCurrentInstanceName','createContext','13205136BtcZas','7sxggeu','getTestFrameworks','getState','getAllData','setInstance','setCurrentHookState','6KWKhVX','trackEvent','getInstances','debug','TestFramework','2052824daseuy','getTrackedInstance','trackEvent:\x20testFrameworkState=','1620uvxnou','7060077jKLxVt','set','../state/testFrameworkState','../../../helpers/classLogger','../instances/trackedContext','get','registerObserver','138127KDATvL','getHookRegistryKey'];a68_0x4ef7=function(){return _0x1251b0;};return a68_0x4ef7();}const CLIUtils=require(a68_0x1d9bff(0xe5)),eventDispatcher=require(a68_0x1d9bff(0xe9)),TestFrameworkInstance=require(a68_0x1d9bff(0x105)),TrackedContext=require(a68_0x1d9bff(0x100)),TestFrameworkState=require(a68_0x1d9bff(0xfe)),HookState=require(a68_0x1d9bff(0xe4)),{createClassLogger}=require(a68_0x1d9bff(0xff)),TrackedInstance=require(a68_0x1d9bff(0x10e)),logger=createClassLogger(a68_0x1d9bff(0xf7));class TestFramework{static [a68_0x1d9bff(0x107)]=new Map();['testFrameworks']=[];[a68_0x1d9bff(0x10b)]={};[a68_0x1d9bff(0x111)]=null;constructor(_0x2f40aa,_0x1c0a1e,_0x5e4d72){const _0x165642=a68_0x1d9bff;this[_0x165642(0x109)]=_0x2f40aa,this['testFrameworkVersions']=_0x1c0a1e,this['binSessionId']=_0x5e4d72;}[a68_0x1d9bff(0xf5)](){const _0x3a4346=a68_0x1d9bff;return TestFramework[_0x3a4346(0x107)];}[a68_0x1d9bff(0xf1)](_0x5bcaff,_0x48ab1f){const _0x20de6f=a68_0x1d9bff;TestFramework[_0x20de6f(0x107)]['set'](_0x5bcaff['getId'],_0x48ab1f);}static[a68_0x1d9bff(0xf9)](){const _0x2b6705=a68_0x1d9bff,_0x1b7dad=TrackedInstance[_0x2b6705(0xeb)](CLIUtils[_0x2b6705(0xea)]());return TestFramework[_0x2b6705(0x107)]['get'](_0x1b7dad[_0x2b6705(0xe6)]());}static[a68_0x1d9bff(0x10d)](_0x20df30,_0x3cb785){const _0xffb885=a68_0x1d9bff;TestFramework[_0xffb885(0x107)][_0xffb885(0xfd)](_0x20df30[_0xffb885(0xe6)](),_0x3cb785);}['getTestFrameworksVersions'](){const _0x1da13e=a68_0x1d9bff;return this[_0x1da13e(0x10b)];}[a68_0x1d9bff(0xee)](){const _0x3abc85=a68_0x1d9bff;return this[_0x3abc85(0x109)];}[a68_0x1d9bff(0xf4)](_0x17d48d,_0x44e4bb,_0x5b04b7={}){const _0x2bdb94=a68_0x1d9bff;logger[_0x2bdb94(0xf6)](_0x2bdb94(0xfa)+_0x17d48d+_0x2bdb94(0x10f)+_0x44e4bb);}async['runHooks'](_0x8f4f13,_0x1af633,_0x404d71,_0x56a26d={}){const _0x1e5012=a68_0x1d9bff,_0x267cd8=CLIUtils[_0x1e5012(0x104)](_0x1af633,_0x404d71);_0x8f4f13['setCurrentTestState'](_0x1af633),_0x8f4f13[_0x1e5012(0xf2)](_0x404d71),await eventDispatcher[_0x1e5012(0x112)](_0x267cd8,_0x56a26d);}static[a68_0x1d9bff(0x102)](_0x5d4f2a,_0x4e23f2,_0x52e156){const _0x31e8ce=a68_0x1d9bff;eventDispatcher[_0x31e8ce(0x102)](CLIUtils[_0x31e8ce(0x104)](_0x5d4f2a,_0x4e23f2),_0x52e156);}static[a68_0x1d9bff(0xef)](_0x21b8e6,_0x51ec8a){const _0x1d1439=a68_0x1d9bff;return _0x21b8e6[_0x1d1439(0xf0)]()[_0x1d1439(0x101)](_0x51ec8a);}static[a68_0x1d9bff(0xe3)](_0x36b47a,_0x241561,_0x21f741){const _0x427171=a68_0x1d9bff;_0x36b47a[_0x427171(0xf0)]()['set'](_0x241561,_0x21f741);}static[a68_0x1d9bff(0x106)](_0x470805,_0x4cb058){const _0x5523f8=a68_0x1d9bff;return _0x470805[_0x5523f8(0xf0)]()[_0x5523f8(0xe7)](_0x4cb058);}}function a68_0xb9f3(_0x17dabb,_0x3a1e90){const _0x4ef71c=a68_0x4ef7();return a68_0xb9f3=function(_0xb9f311,_0x4d8452){_0xb9f311=_0xb9f311-0xe3;let _0x38d954=_0x4ef71c[_0xb9f311];return _0x38d954;},a68_0xb9f3(_0x17dabb,_0x3a1e90);}module[a68_0x1d9bff(0x108)]=TestFramework;
|
package/src/bin/v2/grpcClient.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a69_0x450c4a=a69_0x2a39;(function(_0x2f6d8d,_0x215377){const _0x46f124=a69_0x2a39,_0x3dad23=_0x2f6d8d();while(!![]){try{const _0x306990=parseInt(_0x46f124(0x145))/0x1*(-parseInt(_0x46f124(0x194))/0x2)+-parseInt(_0x46f124(0x1db))/0x3+parseInt(_0x46f124(0x205))/0x4+-parseInt(_0x46f124(0x169))/0x5*(parseInt(_0x46f124(0x1c1))/0x6)+-parseInt(_0x46f124(0x1ba))/0x7+-parseInt(_0x46f124(0x13c))/0x8*(-parseInt(_0x46f124(0x1ae))/0x9)+parseInt(_0x46f124(0x13a))/0xa;if(_0x306990===_0x215377)break;else _0x3dad23['push'](_0x3dad23['shift']());}catch(_0x134d7d){_0x3dad23['push'](_0x3dad23['shift']());}}}(a69_0x45ea,0x7bfe9));function a69_0x45ea(){const _0x7a380d=['ypCQN','null','Unable\x20to\x20determine\x20gRPC\x20server\x20listen\x20address','processId','StartBinSession\x20error:\x20','setExitSignal','JGAqz','init','accessibilityConfig','9ziuMNG','@grpc/grpc-js','encode','client','level','cyqgt','bDXzb','test_run_uuid','connect-bin-session\x20response:\x20','uDfxt','DriverInit\x20error:\x20','StopBinSession\x20successful','6075986MZhewR','setCustomMetadata','LogCreatedEvent\x20error:\x20','getFrameworkVersionsMap','LogEntry','LlXVc','kpuMa','3912iIQhIz','setExitReason','ConnectBinSession\x20successful','setSdkVersion','user_killed','BhcXX','driverInit','fileName','from','TestSessionEventRequest','setMessage','Error\x20in\x20getAccessibilityConfig:\x20','credentials','PlaywrightConfigRequest','OsTta','BmesU','provider','../../helpers/classLogger.js','error','../utils/constants','setAttachmentType','./browserstackCLI.js','KqkBZ','setPlatformIndex','JOuWR','testFrameworkEvent','794634VVIBZm','testFrameworkVersion','addLogs','getChannel','URJwD','GWuNX','\x20listenAddr:\x20','setTestFrameworkName','StartBinSessionRequest',',\x20parsedConfig=','Stopping\x20bin\x20session','setPathConfig','lKNPB','message','forEach','path','connectBinSession','startBinSession','LPiTi','setLevel','setFrameworkSessionId','setProvider','setHubUrl','setEndedAt','setExecutionContext','No\x20gRPC\x20client\x20not\x20initialized.','getSdkVersion','../../../generated/sdk-messages_pb','hubUrl','setKind','setBinSessionId','stop-bin-session\x20response:\x20','setTestHookState','getSdkLanguage','\x20and\x20listen\x20address:\x20','Error\x20in\x20getPlaywrightConfig:\x20','LBDKC','omnUz','binSessionId','testSessionEvent','DriverInit\x20request\x20successful','../../helpers/performance/performance-tester.js','975836RESMsd','resolve','logger','PlaywrightConfig\x20error:\x20','getEnvVarsMap','argv','setTestFrameworkVersion','push','ConnectBinSessionRequest','Ninvq','mjBDT','setStartedAt','setTestFrameworkState','setTestFramework','Sending\x20LogCreatedEvent','../../helpers/helper.js','ONnxt','fileSize','TestFrameworkEvent\x20error:\x20','getBrowserstackCliConfig','AccessibilityConfig\x20request\x20successful','VIePM','cwd','attachment_type','setFrameworksList','fPBay','browserstack.yml','iHVFy','../../../generated/sdk_grpc_pb','AccessibilityConfig\x20error:\x20','Error\x20in\x20stopBinSession:\x20','StopBinSessionRequest','ENEDk','GkQfL','set','createInsecure','setSdkLanguage','27631890FNAKcN','RmUaI','4507056TZypoq','setTimestamp','info','SDK_AUTOMATION_FRAMEWORK_INIT','Sending\x20TestSessionEvent','gJaMr','setFrameworkName','BROWSERSTACK_CLI_BIN_LISTEN_ADDR','dTTgT','1gbpLFt','setFrameworkVersion','StartBinSession\x20successful','addFrameworks','channel','end','KZEOI','slice','getClient','SDK_START_BIN_SESSION','getPlaywrightConfig','threadId','logCreatedEvent','Blqpr','timestamp','SDKClient','start','launchcaps','JjsyE','Missing\x20binSessionId','hash','setCapabilities','setConfig','browserstackConfigFile','LogCreatedEventRequest','pIXzC','name','iZZIW','setEventJson','stopBinSession','gBpxT','MMCAl','setExitCode','kSKxa','setUserInputParams','PlaywrightConfig\x20request\x20successful','7250ShqUJQ','testFrameworkName','format','AccessibilityConfigRequest','EpjKg','Sending\x20TestFrameworkEvent','utf-8','xeKhz','stringify','frameworkSessionId','xYKqF','env','./cliUtils.js','connect','Error\x20in\x20DriverInit:\x20','Initialized\x20gRPC\x20client\x20with\x20bin\x20session\x20id:\x20','VmWAL','ZPufd','setCliArgs:\x20cliArgs=','setProcessId','StopBinSession\x20error:\x20','BROWSERSTACK_CLI_BIN_SESSION_ID','TeVNI','setCliArgsList','setHash','KyJXR','getAccessibilityConfig','SDK_CLI_ON_STOP','listenAddress','BROWSERSTACK_CONFIG_FILE_PATH','hTzAv','setRef','playwrightConfig','BdyGk','LogCreatedEvent\x20request\x20successful','bRDnC','debug','Getting\x20Playwright\x20config','Error\x20in\x20TestFrameworkEvent:\x20','setFilePath','mJpnr','Stopping\x20signal\x20','MfXHU','1968746PGaqMJ','setPathProject','Kyixl','ConnectBinSession\x20error:\x20','setFileSize','DriverInitRequest','arOpy','JXBiX','frameworkName','TestFrameworkEventRequest','Error\x20in\x20connectBinSession:\x20','version','Error\x20in\x20LogCreatedEvent:\x20','HHitm','TestFrameworkEvent\x20request\x20successful','jXHto','setUuid'];a69_0x45ea=function(){return _0x7a380d;};return a69_0x45ea();}function a69_0x2a39(_0x51a27f,_0x46c5f9){const _0x45ea31=a69_0x45ea();return a69_0x2a39=function(_0x2a392d,_0x114942){_0x2a392d=_0x2a392d-0x127;let _0x161a97=_0x45ea31[_0x2a392d];return _0x161a97;},a69_0x2a39(_0x51a27f,_0x46c5f9);}const util=require('util'),logger=require('../../helpers/logger.js')['winstonLogger'],grpc=require(a69_0x450c4a(0x1af)),services=require(a69_0x450c4a(0x131)),messages=require(a69_0x450c4a(0x1f6)),path=require(a69_0x450c4a(0x1ea)),CLIUtils=require(a69_0x450c4a(0x175)),{createClassLogger}=require(a69_0x450c4a(0x1d2)),PerformanceTester=require(a69_0x450c4a(0x204)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{PLAYWRIGHT_TRACE_LOGS}=require(a69_0x450c4a(0x1d4)),helper=require(a69_0x450c4a(0x214));class GrpcClient{static #instance=null;[a69_0x450c4a(0x201)]=null;[a69_0x450c4a(0x185)]=null;[a69_0x450c4a(0x149)]=null;[a69_0x450c4a(0x1b1)]=null;['logger']=createClassLogger('GrpcClient');constructor(){}static['getInstance'](){return!GrpcClient.#instance&&(GrpcClient.#instance=new GrpcClient()),GrpcClient.#instance;}[a69_0x450c4a(0x1ac)](_0x458152){const _0x4f1b03=a69_0x450c4a,_0x5dbf7e={};_0x5dbf7e['ONnxt']=function(_0x563dcd,_0x195861){return _0x563dcd||_0x195861;};const _0x1b4dea=_0x5dbf7e,{id:_0x1d30f1,listen:_0x5cebc3}=_0x458152;if(_0x1b4dea[_0x4f1b03(0x215)](!_0x1d30f1,!_0x5cebc3))throw new Error('Unable\x20to\x20find\x20listen\x20addr\x20or\x20bin\x20session\x20id\x20binSessionId:\x20'+_0x1d30f1+_0x4f1b03(0x1e1)+_0x5cebc3);this[_0x4f1b03(0x201)]=_0x1d30f1,this[_0x4f1b03(0x185)]=_0x5cebc3,process[_0x4f1b03(0x174)][_0x4f1b03(0x17e)]=this[_0x4f1b03(0x201)],process['env']['BROWSERSTACK_CLI_BIN_LISTEN_ADDR']=this['listenAddress'],this[_0x4f1b03(0x176)](),this[_0x4f1b03(0x207)][_0x4f1b03(0x13e)](_0x4f1b03(0x178)+this[_0x4f1b03(0x201)]+_0x4f1b03(0x1fd)+this['listenAddress']);}['connect'](){const _0x160d95=a69_0x450c4a,_0x3a5015={};_0x3a5015[_0x160d95(0x17a)]=_0x160d95(0x1a7);const _0x4eae06=_0x3a5015;let _0x587c9f=this['listenAddress'];!_0x587c9f&&(_0x587c9f=process[_0x160d95(0x174)][_0x160d95(0x143)]);!this['binSessionId']&&(this[_0x160d95(0x201)]=this['binSessionId']||process[_0x160d95(0x174)]['BROWSERSTACK_CLI_BIN_SESSION_ID']);if(!_0x587c9f)throw new Error(_0x4eae06['ZPufd']);const _0x48a3b8={};_0x48a3b8['grpc.keepalive_time_ms']=0x2710,this['channel']=new grpc['Channel'](_0x587c9f,grpc[_0x160d95(0x1cd)][_0x160d95(0x138)](),_0x48a3b8),this[_0x160d95(0x1b1)]=new services[(_0x160d95(0x154))](_0x587c9f,grpc[_0x160d95(0x1cd)][_0x160d95(0x138)]()),this['logger']['info']('Connected\x20to\x20gRPC\x20server\x20at\x20'+_0x587c9f);}async['startBinSession'](){const _0x12258f=a69_0x450c4a,_0xe60e4c={'KyJXR':function(_0x16ff80,_0x391de9){return _0x16ff80!==_0x391de9;},'Blqpr':function(_0x26f953,_0x3418fb){return _0x26f953!==_0x3418fb;},'xYKqF':function(_0x49d22b,_0x4a44e1){return _0x49d22b(_0x4a44e1);},'pIXzC':_0x12258f(0x147),'URJwD':'startBinSession:\x20Calling\x20startBinSession','LlXVc':_0x12258f(0x1f4),'TpkYR':_0x12258f(0x1d6),'iPezb':function(_0x80de32,_0x31351e){return _0x80de32 instanceof _0x31351e;},'ybTiX':function(_0x711734,_0x466b9e){return _0x711734===_0x466b9e;},'mjBDT':_0x12258f(0x15c),'VIePM':_0x12258f(0x12f),'VmWAL':_0x12258f(0x1a6),'mNQZV':function(_0x1e44f4,_0x390825){return _0x1e44f4||_0x390825;}};PerformanceTester[_0x12258f(0x155)](PerformanceEvents['SDK_START_BIN_SESSION']),this[_0x12258f(0x207)][_0x12258f(0x13e)](_0xe60e4c[_0x12258f(0x1df)]);try{!this[_0x12258f(0x1b1)]&&this[_0x12258f(0x207)]['info'](_0xe60e4c[_0x12258f(0x1bf)]);const _0x2f27b8=CLIUtils[_0x12258f(0x1f5)](),_0x1254c8=CLIUtils['getAutomationFrameworkDetail'](),_0x4a2539=_0x1254c8['name'],_0xe592a9=_0x1254c8[_0x12258f(0x19f)],_0x50f501=new messages[(_0x12258f(0x1e3))]();_0x50f501['setBinSessionId'](this['binSessionId']),_0x50f501[_0x12258f(0x139)](CLIUtils['getSdkLanguage']()),_0x50f501[_0x12258f(0x1c4)](_0x2f27b8),_0x50f501[_0x12258f(0x195)](process[_0x12258f(0x12b)]());const _0x2a005b=_0x50f501[_0x12258f(0x209)]();Object['entries'](process[_0x12258f(0x174)])[_0x12258f(0x1e9)](([_0x4a604b,_0x2af898])=>{const _0x447cc3=_0x12258f;_0xe60e4c[_0x447cc3(0x182)](_0x2af898,undefined)&&_0xe60e4c[_0x447cc3(0x152)](_0x2af898,null)&&_0x2a005b[_0x447cc3(0x137)](_0x4a604b,_0x2af898);});const _0xc5de73=_0xe60e4c[_0x12258f(0x173)](require,_0xe60e4c['TpkYR']),_0x24fcd7=_0xc5de73['getInstance']()[_0x12258f(0x128)](),_0x28431b=[];_0x24fcd7&&_0xe60e4c['iPezb'](_0x24fcd7,Map)&&_0x24fcd7['forEach']((_0x28652a,_0x59f8b6)=>{const _0x3e2550=_0x12258f;_0x28431b[_0x3e2550(0x20c)](_0x59f8b6+'='+_0x28652a);});const _0x2b2f6e=process[_0x12258f(0x20a)][_0x12258f(0x14c)](0x2);_0x50f501[_0x12258f(0x180)]([..._0x2b2f6e,..._0x28431b]);let _0x2d220d=null;if(_0x24fcd7)for(const [_0x10b9b9,_0x1fd805]of _0x24fcd7){if(_0xe60e4c['ybTiX'](_0x10b9b9,_0xe60e4c[_0x12258f(0x20f)])){_0x2d220d=_0x1fd805;break;}}if(_0x2d220d)_0x50f501['setPathConfig'](_0x2d220d);else process[_0x12258f(0x174)][_0x12258f(0x186)]?_0x50f501[_0x12258f(0x1e6)](process[_0x12258f(0x174)]['BROWSERSTACK_CONFIG_FILE_PATH']):_0x50f501[_0x12258f(0x1e6)](path[_0x12258f(0x206)](process['cwd'](),_0xe60e4c[_0x12258f(0x12a)]));this[_0x12258f(0x207)]['info'](_0x12258f(0x17b)+JSON['stringify'](_0x2b2f6e)+_0x12258f(0x1e4)+(_0x24fcd7?JSON[_0x12258f(0x171)]([..._0x24fcd7]):_0xe60e4c[_0x12258f(0x179)])),_0x50f501['setLanguage'](CLIUtils[_0x12258f(0x1fc)]()),_0x50f501[_0x12258f(0x212)](_0x4a2539);const _0x525b3e=_0x50f501[_0x12258f(0x1bd)]();return _0x525b3e['set'](_0x4a2539,_0xe60e4c['mNQZV'](_0xe592a9,'')),_0x50f501[_0x12258f(0x148)](_0x4a2539,_0xe592a9),_0x50f501[_0x12258f(0x12d)]([_0x4a2539]),new Promise((_0x54f2a7,_0x1c216f)=>{const _0x1a7faf=_0x12258f;this['client'][_0x1a7faf(0x1ec)](_0x50f501,(_0x376fd5,_0x2d2183)=>{const _0xd44a5=_0x1a7faf;if(_0x376fd5){this['logger'][_0xd44a5(0x1d3)](_0xd44a5(0x1a9)+_0x376fd5['message']),_0xe60e4c[_0xd44a5(0x173)](_0x1c216f,_0x376fd5),PerformanceTester[_0xd44a5(0x14a)](PerformanceEvents[_0xd44a5(0x14e)],![],util['format'](_0x376fd5));return;}this['logger'][_0xd44a5(0x13e)](_0xe60e4c[_0xd44a5(0x15e)]),PerformanceTester[_0xd44a5(0x14a)](PerformanceEvents[_0xd44a5(0x14e)]),_0xe60e4c['xYKqF'](_0x54f2a7,_0x2d2183);});});}catch(_0x3e735b){this[_0x12258f(0x207)][_0x12258f(0x1d3)]('Error\x20in\x20startBinSession:\x20'+util[_0x12258f(0x16b)](_0x3e735b)),PerformanceTester[_0x12258f(0x14a)](PerformanceEvents[_0x12258f(0x14e)],![],util[_0x12258f(0x16b)](_0x3e735b));throw _0x3e735b;}}async[a69_0x450c4a(0x1eb)](){const _0x2d8fd4=a69_0x450c4a,_0x45d4bc={'JGAqz':function(_0x4edacc,_0x5e209d){return _0x4edacc(_0x5e209d);},'LPiTi':_0x2d8fd4(0x1c3),'JXBiX':'Connecting\x20bin\x20session','gJaMr':_0x2d8fd4(0x1f4)};PerformanceTester[_0x2d8fd4(0x155)](PerformanceEvents['SDK_CONNECT_BIN_SESSION']),this['logger']['info'](_0x45d4bc[_0x2d8fd4(0x19b)]);try{!this['client']&&this['logger']['info'](_0x45d4bc[_0x2d8fd4(0x141)]);const _0x34bd4d=new messages[(_0x2d8fd4(0x20d))]();_0x34bd4d[_0x2d8fd4(0x1f9)](this[_0x2d8fd4(0x201)]);const _0xcb0c40=await new Promise((_0x4ca864,_0x54796b)=>{const _0x387fa1=_0x2d8fd4;this[_0x387fa1(0x1b1)][_0x387fa1(0x1eb)](_0x34bd4d,(_0x103935,_0x3557a5)=>{const _0x353cc0=_0x387fa1;if(_0x103935){this['logger'][_0x353cc0(0x1d3)](_0x353cc0(0x197)+_0x103935[_0x353cc0(0x1e8)]),_0x45d4bc['JGAqz'](_0x54796b,_0x103935),PerformanceTester[_0x353cc0(0x14a)](PerformanceEvents['SDK_CONNECT_BIN_SESSION'],![],util[_0x353cc0(0x16b)](_0x103935));return;}this['logger'][_0x353cc0(0x13e)](_0x45d4bc[_0x353cc0(0x1ed)]),PerformanceTester['end'](PerformanceEvents['SDK_CONNECT_BIN_SESSION']),_0x45d4bc[_0x353cc0(0x1ab)](_0x4ca864,_0x3557a5);});});return this[_0x2d8fd4(0x207)][_0x2d8fd4(0x18d)](_0x2d8fd4(0x1b6)+util[_0x2d8fd4(0x16b)](_0xcb0c40)),_0xcb0c40;}catch(_0x316e6d){PerformanceTester[_0x2d8fd4(0x14a)](PerformanceEvents['SDK_CONNECT_BIN_SESSION'],![],util['format'](_0x316e6d)),this[_0x2d8fd4(0x207)]['error'](_0x2d8fd4(0x19e)+util['format'](_0x316e6d));throw _0x316e6d;}}async[a69_0x450c4a(0x162)](_0x369678={},_0x431dee=null){const _0x25c2f6=a69_0x450c4a,_0xf79682={'rhOwS':function(_0x266a93,_0x366458){return _0x266a93(_0x366458);},'HHitm':_0x25c2f6(0x1b9),'Ninvq':function(_0x1f3dae,_0x166859){return _0x1f3dae(_0x166859);},'hTzAv':_0x25c2f6(0x1e5),'BdyGk':_0x25c2f6(0x158),'kpuMa':'No\x20gRPC\x20client\x20not\x20initialized.','OsTta':_0x25c2f6(0x1c5)};PerformanceTester[_0x25c2f6(0x155)](PerformanceEvents[_0x25c2f6(0x184)]),this['logger'][_0x25c2f6(0x13e)](_0xf79682[_0x25c2f6(0x187)]);try{if(!this[_0x25c2f6(0x201)])throw new Error(_0xf79682[_0x25c2f6(0x18a)]);!this[_0x25c2f6(0x1b1)]&&this[_0x25c2f6(0x207)]['info'](_0xf79682[_0x25c2f6(0x1c0)]);const _0x2ce3a5=new messages[(_0x25c2f6(0x134))]();this[_0x25c2f6(0x207)][_0x25c2f6(0x18d)](_0x25c2f6(0x192)+JSON['stringify'](_0x431dee)),_0x2ce3a5['setBinSessionId'](this[_0x25c2f6(0x201)]),_0x2ce3a5[_0x25c2f6(0x1bb)](_0x369678),_0x2ce3a5[_0x25c2f6(0x1aa)](_0x431dee?_0x431dee:null),_0x2ce3a5[_0x25c2f6(0x1c2)](_0x431dee?_0xf79682[_0x25c2f6(0x1cf)]:null),_0x2ce3a5[_0x25c2f6(0x165)](_0x431dee?0x1:0x0);const _0x2c980e=await new Promise((_0x318587,_0xeee141)=>{const _0x2d58cc=_0x25c2f6,_0x2bdbae={'hsbWj':function(_0x581bf1,_0x482eda){return _0xf79682['rhOwS'](_0x581bf1,_0x482eda);},'kSKxa':_0xf79682[_0x2d58cc(0x1a1)],'KqkBZ':function(_0x33411a,_0x2845d4){const _0x136fd1=_0x2d58cc;return _0xf79682[_0x136fd1(0x20e)](_0x33411a,_0x2845d4);}};this[_0x2d58cc(0x1b1)][_0x2d58cc(0x162)](_0x2ce3a5,(_0x114dbf,_0x2cd526)=>{const _0x1872a7=_0x2d58cc;if(_0x114dbf){this[_0x1872a7(0x207)]['error'](_0x1872a7(0x17d)+_0x114dbf['message']),_0x2bdbae['hsbWj'](_0xeee141,_0x114dbf),PerformanceTester[_0x1872a7(0x14a)](PerformanceEvents[_0x1872a7(0x184)],![],util[_0x1872a7(0x16b)](_0x114dbf));return;}this[_0x1872a7(0x207)][_0x1872a7(0x13e)](_0x2bdbae[_0x1872a7(0x166)]),PerformanceTester[_0x1872a7(0x14a)](PerformanceEvents['SDK_CLI_ON_STOP']),_0x2bdbae[_0x1872a7(0x1d7)](_0x318587,_0x2cd526);});});return this[_0x25c2f6(0x207)]['debug'](_0x25c2f6(0x1fa)+util[_0x25c2f6(0x16b)](_0x2c980e)),_0x2c980e;}catch(_0x3836c1){PerformanceTester['end'](PerformanceEvents[_0x25c2f6(0x184)],![],util['format'](_0x3836c1)),this['logger']['error'](_0x25c2f6(0x133)+util[_0x25c2f6(0x16b)](_0x3836c1));}}async[a69_0x450c4a(0x14f)](_0x409a85){const _0x52084d=a69_0x450c4a,_0x2d0bb3={'EmFQU':function(_0x221a95,_0x1f6f5f){return _0x221a95(_0x1f6f5f);},'UHSOC':_0x52084d(0x168),'Kyixl':function(_0x18d1a2,_0x5977a7){return _0x18d1a2(_0x5977a7);},'GWuNX':_0x52084d(0x18e),'mJpnr':_0x52084d(0x1f4)};PerformanceTester['start'](PerformanceEvents['SDK_AUTOMATION_FRAMEWORK_INIT']),this[_0x52084d(0x207)][_0x52084d(0x13e)](_0x2d0bb3[_0x52084d(0x1e0)]);try{!this[_0x52084d(0x1b1)]&&this['logger']['info'](_0x2d0bb3[_0x52084d(0x191)]);const _0x54838c=new messages[(_0x52084d(0x1ce))]();return _0x54838c[_0x52084d(0x1f9)](this[_0x52084d(0x201)]),_0x54838c[_0x52084d(0x15b)](JSON['stringify'](_0x409a85)),new Promise((_0xd4923e,_0x7d5e04)=>{const _0x34b56e=_0x52084d,_0x47d360={'LBDKC':function(_0x5e8913,_0x1471d6){return _0x2d0bb3['EmFQU'](_0x5e8913,_0x1471d6);},'PQdal':_0x2d0bb3['UHSOC'],'ENEDk':function(_0x1cac93,_0x4baa16){const _0x5ba8a8=a69_0x2a39;return _0x2d0bb3[_0x5ba8a8(0x196)](_0x1cac93,_0x4baa16);}};this[_0x34b56e(0x1b1)][_0x34b56e(0x189)](_0x54838c,(_0x2d6173,_0x5325a3)=>{const _0x50580a=_0x34b56e;if(_0x2d6173){this[_0x50580a(0x207)][_0x50580a(0x1d3)](_0x50580a(0x208)+_0x2d6173[_0x50580a(0x1e8)]),_0x47d360[_0x50580a(0x1ff)](_0x7d5e04,_0x2d6173),PerformanceTester[_0x50580a(0x14a)](PerformanceEvents[_0x50580a(0x13f)],![],util[_0x50580a(0x16b)](_0x2d6173));return;}this[_0x50580a(0x207)][_0x50580a(0x13e)](_0x47d360['PQdal']),PerformanceTester['end'](PerformanceEvents[_0x50580a(0x13f)]),_0x47d360[_0x50580a(0x135)](_0xd4923e,_0x5325a3);});});}catch(_0x12a93a){PerformanceTester[_0x52084d(0x14a)](PerformanceEvents['SDK_AUTOMATION_FRAMEWORK_INIT'],![],util[_0x52084d(0x16b)](_0x12a93a)),this[_0x52084d(0x207)][_0x52084d(0x1d3)](_0x52084d(0x1fe)+util[_0x52084d(0x16b)](_0x12a93a));throw _0x12a93a;}}async[a69_0x450c4a(0x183)](_0xe54e11){const _0x451ff6=a69_0x450c4a,_0x5c186a={'pdCEo':function(_0x487ca3,_0x204f9d){return _0x487ca3(_0x204f9d);},'cyqgt':_0x451ff6(0x129),'iZZIW':'Getting\x20Accessibility\x20config','omnUz':_0x451ff6(0x16f)};this[_0x451ff6(0x207)][_0x451ff6(0x13e)](_0x5c186a[_0x451ff6(0x160)]);try{const _0x42ad59=Buffer[_0x451ff6(0x1c9)](JSON['stringify'](_0xe54e11[_0x451ff6(0x156)]),_0x5c186a[_0x451ff6(0x200)]),_0x39d151=new messages[(_0x451ff6(0x16c))](),_0x21c8a8=CLIUtils['getAutomationFrameworkDetail'](),_0x133c7a=_0x21c8a8[_0x451ff6(0x15f)],_0x3c71df=_0x21c8a8[_0x451ff6(0x19f)];return _0x39d151[_0x451ff6(0x1f9)](this[_0x451ff6(0x201)]),_0x39d151[_0x451ff6(0x1d8)](0x0),_0x39d151[_0x451ff6(0x142)](_0x133c7a),_0x39d151['setFrameworkVersion'](_0x3c71df),_0x39d151[_0x451ff6(0x1f1)](_0xe54e11[_0x451ff6(0x1f7)]),_0x39d151[_0x451ff6(0x15a)](_0x42ad59),new Promise((_0x1e2e16,_0x578c6f)=>{const _0x1e4412=_0x451ff6,_0x8cf1a0={'fPBay':function(_0x575d0e,_0x567288){return _0x5c186a['pdCEo'](_0x575d0e,_0x567288);},'TeVNI':_0x5c186a[_0x1e4412(0x1b3)]};this[_0x1e4412(0x1b1)][_0x1e4412(0x1ad)](_0x39d151,(_0x470bb7,_0x1c41a5)=>{const _0x3eb5b5=_0x1e4412;if(_0x470bb7){this[_0x3eb5b5(0x207)][_0x3eb5b5(0x1d3)](_0x3eb5b5(0x132)+_0x470bb7['message']),_0x8cf1a0[_0x3eb5b5(0x12e)](_0x578c6f,_0x470bb7);return;}this[_0x3eb5b5(0x207)]['info'](_0x8cf1a0[_0x3eb5b5(0x17f)]),_0x8cf1a0[_0x3eb5b5(0x12e)](_0x1e2e16,_0x1c41a5);});});}catch(_0xfa8964){this['logger'][_0x451ff6(0x1d3)](_0x451ff6(0x1cc)+util[_0x451ff6(0x16b)](_0xfa8964));}}async[a69_0x450c4a(0x202)](_0x338efe){const _0x26b9e1=a69_0x450c4a,_0x2165bb={'BhcXX':function(_0x2be704,_0x4928dd){return _0x2be704(_0x4928dd);},'JOuWR':'TestSessionEvent\x20request\x20successful','dTTgT':function(_0x21ea31,_0x4725a8){return _0x21ea31(_0x4725a8);},'MfXHU':_0x26b9e1(0x140),'gBpxT':_0x26b9e1(0x1f4)};this[_0x26b9e1(0x207)][_0x26b9e1(0x13e)](_0x2165bb[_0x26b9e1(0x193)]);try{!this[_0x26b9e1(0x1b1)]&&this[_0x26b9e1(0x207)]['info'](_0x2165bb[_0x26b9e1(0x163)]);const {platformIndex:_0x5d0eab,testFrameworkName:_0x3c5070,testFrameworkVersion:_0x298a9e,testFrameworkState:_0x242724,testHookState:_0x1da530,testUuid:_0x4a42b3,automationSession:_0x4638c3,capabilities:_0x5e7bd7,executionContext:_0x4b867c}=_0x338efe,_0x473d9c=new messages[(_0x26b9e1(0x1ca))]();_0x473d9c[_0x26b9e1(0x1f9)](this[_0x26b9e1(0x201)]),_0x473d9c[_0x26b9e1(0x1d8)](_0x5d0eab),_0x473d9c[_0x26b9e1(0x1e2)](_0x3c5070),_0x473d9c[_0x26b9e1(0x20b)](_0x298a9e),_0x473d9c[_0x26b9e1(0x211)](_0x242724),_0x473d9c[_0x26b9e1(0x1fb)](_0x1da530),_0x473d9c['setTestUuid'](_0x4a42b3);const _0xa215a5=new messages[(_0x26b9e1(0x1ca))]['AutomationSession']();_0xa215a5[_0x26b9e1(0x1f0)](_0x4638c3[_0x26b9e1(0x1d1)]),_0xa215a5[_0x26b9e1(0x142)](_0x4638c3[_0x26b9e1(0x19c)]),_0xa215a5[_0x26b9e1(0x146)](_0x4638c3['frameworkVersion']),_0xa215a5[_0x26b9e1(0x1ef)](_0x4638c3[_0x26b9e1(0x172)]),_0xa215a5[_0x26b9e1(0x188)](_0x4638c3['ref']),_0xa215a5[_0x26b9e1(0x1f1)](_0x4638c3[_0x26b9e1(0x1f7)]),_0x473d9c['addAutomationSessions'](_0xa215a5),_0x473d9c[_0x26b9e1(0x15a)](_0x5e7bd7);const _0xe50288=new messages['ExecutionContext']();return _0xe50288['setProcessId'](_0x4b867c['processId']),_0xe50288['setThreadId'](_0x4b867c[_0x26b9e1(0x150)]),_0xe50288[_0x26b9e1(0x181)](_0x4b867c[_0x26b9e1(0x159)]),_0x473d9c[_0x26b9e1(0x1f3)](_0xe50288),new Promise((_0x570f79,_0x12060c)=>{const _0x59e0d0=_0x26b9e1;this[_0x59e0d0(0x1b1)][_0x59e0d0(0x202)](_0x473d9c,(_0x4ba164,_0x4b1cc5)=>{const _0x1b2b79=_0x59e0d0;if(_0x4ba164){this[_0x1b2b79(0x207)][_0x1b2b79(0x1d3)]('TestSessionEvent\x20error:\x20'+_0x4ba164[_0x1b2b79(0x1e8)]),_0x2165bb[_0x1b2b79(0x1c6)](_0x12060c,_0x4ba164);return;}this[_0x1b2b79(0x207)]['info'](_0x2165bb[_0x1b2b79(0x1d9)]),_0x2165bb[_0x1b2b79(0x144)](_0x570f79,_0x4b1cc5);});});}catch(_0x4ae54a){this[_0x26b9e1(0x207)][_0x26b9e1(0x1d3)]('Error\x20in\x20TestSessionEvent:\x20'+util[_0x26b9e1(0x16b)](_0x4ae54a));throw _0x4ae54a;}}async[a69_0x450c4a(0x1da)](_0x4e0acd){const _0x461bd9=a69_0x450c4a,_0x5b241c={'BmesU':function(_0x230b77,_0x2d8c3a){return _0x230b77(_0x2d8c3a);},'EpjKg':_0x461bd9(0x1a2),'jXHto':_0x461bd9(0x16e),'ypCQN':_0x461bd9(0x1f4)};this[_0x461bd9(0x207)][_0x461bd9(0x13e)](_0x5b241c[_0x461bd9(0x1a3)]);try{!this['client']&&this[_0x461bd9(0x207)][_0x461bd9(0x13e)](_0x5b241c[_0x461bd9(0x1a5)]);const {platfromIndex:_0x256f0a,testFrameworkName:_0x2d4b68,testFrameworkVersion:_0x241adf,testFrameworkState:_0x31f0c3,hookState:_0x112103,startedAt:_0x29b27b,endedAt:_0x42831a,uuid:_0x580a50,eventJson:_0x4c079f,executionContext:_0x9b9b31}=_0x4e0acd,_0x369fda=new messages[(_0x461bd9(0x19d))]();_0x369fda[_0x461bd9(0x1f9)](this[_0x461bd9(0x201)]),_0x369fda[_0x461bd9(0x1d8)](_0x256f0a),_0x369fda[_0x461bd9(0x1e2)](_0x2d4b68),_0x369fda['setTestFrameworkVersion'](_0x241adf),_0x369fda[_0x461bd9(0x211)](_0x31f0c3),_0x369fda[_0x461bd9(0x1fb)](_0x112103),_0x369fda[_0x461bd9(0x210)](_0x29b27b),_0x369fda[_0x461bd9(0x1f2)](_0x42831a),_0x369fda[_0x461bd9(0x1a4)](_0x580a50),_0x369fda[_0x461bd9(0x161)](_0x4c079f);const _0x3ac4d5=new messages['ExecutionContext']();return _0x3ac4d5[_0x461bd9(0x17c)](_0x9b9b31[_0x461bd9(0x1a8)]),_0x3ac4d5['setThreadId'](_0x9b9b31[_0x461bd9(0x150)]),_0x3ac4d5[_0x461bd9(0x181)](_0x9b9b31['hash']),_0x369fda['setExecutionContext'](_0x3ac4d5),new Promise((_0x399f30,_0x2b345c)=>{const _0x3d68c7=_0x461bd9;this[_0x3d68c7(0x1b1)][_0x3d68c7(0x1da)](_0x369fda,(_0x417171,_0x46b38c)=>{const _0x26e656=_0x3d68c7;if(_0x417171){this['logger'][_0x26e656(0x1d3)](_0x26e656(0x127)+_0x417171['message']),_0x5b241c['BmesU'](_0x2b345c,_0x417171);return;}this[_0x26e656(0x207)][_0x26e656(0x13e)](_0x5b241c[_0x26e656(0x16d)]),_0x5b241c[_0x26e656(0x1d0)](_0x399f30,_0x46b38c);});});}catch(_0x37062d){this['logger']['error'](_0x461bd9(0x18f)+util[_0x461bd9(0x16b)](_0x37062d));throw _0x37062d;}}async['driverInit'](_0x2163fb){const _0x3405cc=a69_0x450c4a,_0x8e909c={'bDXzb':function(_0x325401,_0x1c154f){return _0x325401(_0x1c154f);},'xeKhz':_0x3405cc(0x203),'KZEOI':'Sending\x20DriverInit','MMCAl':_0x3405cc(0x1f4)};this['logger'][_0x3405cc(0x13e)](_0x8e909c[_0x3405cc(0x14b)]);try{!this['client']&&this[_0x3405cc(0x207)]['info'](_0x8e909c[_0x3405cc(0x164)]);const {platformIndex:_0x3c0cfd,ref:_0x376e27,userInputParams:_0x2f7689}=_0x2163fb,_0x3ea485=new messages[(_0x3405cc(0x199))]();return _0x3ea485['setBinSessionId'](this['binSessionId']),_0x3ea485[_0x3405cc(0x1d8)](_0x3c0cfd),_0x3ea485['setRef'](_0x376e27),_0x3ea485[_0x3405cc(0x167)](_0x2f7689),new Promise((_0x2358a1,_0x4cdf81)=>{const _0x2d7886=_0x3405cc,_0x2cf33c={'tAGFl':function(_0x166982,_0x14bfa){const _0x51af0d=a69_0x2a39;return _0x8e909c[_0x51af0d(0x1b4)](_0x166982,_0x14bfa);},'RmUaI':_0x8e909c[_0x2d7886(0x170)],'iHVFy':function(_0x35b187,_0x7be2ba){const _0x18fe31=_0x2d7886;return _0x8e909c[_0x18fe31(0x1b4)](_0x35b187,_0x7be2ba);}};this['client'][_0x2d7886(0x1c7)](_0x3ea485,(_0x57d1ed,_0x5ad6c0)=>{const _0x34e6b7=_0x2d7886;if(_0x57d1ed){this[_0x34e6b7(0x207)]['error'](_0x34e6b7(0x1b8)+_0x57d1ed['message']),_0x2cf33c['tAGFl'](_0x4cdf81,_0x57d1ed);return;}this[_0x34e6b7(0x207)]['info'](_0x2cf33c[_0x34e6b7(0x13b)]),_0x2cf33c[_0x34e6b7(0x130)](_0x2358a1,_0x5ad6c0);});});}catch(_0xd6d6c4){this[_0x3405cc(0x207)][_0x3405cc(0x1d3)](_0x3405cc(0x177)+util[_0x3405cc(0x16b)](_0xd6d6c4));throw _0xd6d6c4;}}async[a69_0x450c4a(0x151)](_0x53d29a){const _0xe6b00c=a69_0x450c4a,_0x54aef6={'arOpy':function(_0x4195f,_0x1fcf09){return _0x4195f===_0x1fcf09;},'bRDnC':function(_0x4c44b8,_0x1ad289){return _0x4c44b8(_0x1ad289);},'JjsyE':_0xe6b00c(0x18b),'GkQfL':function(_0x18fbfa,_0x1006de){return _0x18fbfa(_0x1006de);},'lKNPB':_0xe6b00c(0x213),'uDfxt':_0xe6b00c(0x1f4)};this[_0xe6b00c(0x207)][_0xe6b00c(0x13e)](_0x54aef6[_0xe6b00c(0x1e7)]);try{!this[_0xe6b00c(0x1b1)]&&this['logger']['info'](_0x54aef6[_0xe6b00c(0x1b7)]);const {platformIndex:_0x49801d,logs:_0x4f645d}=_0x53d29a,_0x217779=new messages[(_0xe6b00c(0x15d))]();_0x217779[_0xe6b00c(0x1f9)](this[_0xe6b00c(0x201)]),_0x217779[_0xe6b00c(0x1d8)](_0x49801d);const _0x1791f8=_0x53d29a[_0xe6b00c(0x16a)],_0x2b4d8e=_0x53d29a[_0xe6b00c(0x1dc)],_0x3a38a7=_0x53d29a['testFrameworkState'];return _0x4f645d['forEach'](_0x4350d0=>{const _0x557d0b=_0xe6b00c,_0x4e15cb=new messages['LogCreatedEventRequest'][(_0x557d0b(0x1be))]();_0x4e15cb[_0x557d0b(0x1e2)](_0x1791f8),_0x4e15cb[_0x557d0b(0x20b)](_0x2b4d8e),_0x4e15cb[_0x557d0b(0x211)](_0x3a38a7),_0x4e15cb[_0x557d0b(0x13d)](_0x4350d0[_0x557d0b(0x153)]),_0x4e15cb[_0x557d0b(0x1a4)](_0x4350d0['uuid']),_0x4e15cb[_0x557d0b(0x1f8)](_0x4350d0['kind']),_0x54aef6[_0x557d0b(0x19a)](_0x4350d0[_0x557d0b(0x12c)],PLAYWRIGHT_TRACE_LOGS)?(_0x4e15cb[_0x557d0b(0x1a4)](_0x4350d0[_0x557d0b(0x1b5)]),_0x4e15cb[_0x557d0b(0x1cb)](new TextEncoder()[_0x557d0b(0x1b0)](JSON[_0x557d0b(0x171)](_0x4350d0)))):_0x4e15cb[_0x557d0b(0x1cb)](new TextEncoder()[_0x557d0b(0x1b0)](_0x4350d0[_0x557d0b(0x1e8)])),_0x4e15cb[_0x557d0b(0x1ee)](_0x4350d0[_0x557d0b(0x1b2)]),_0x4e15cb['setFileName'](_0x4350d0?.[_0x557d0b(0x1c8)]||''),_0x4e15cb[_0x557d0b(0x190)](_0x4350d0?.['filePath']||''),_0x4e15cb[_0x557d0b(0x198)](_0x4350d0?.[_0x557d0b(0x216)]||0x0),_0x4e15cb[_0x557d0b(0x1d5)](_0x4350d0?.[_0x557d0b(0x12c)]||''),_0x217779[_0x557d0b(0x1dd)](_0x4e15cb);}),new Promise((_0x382307,_0x38e7e3)=>{const _0x16ea67=_0xe6b00c;this[_0x16ea67(0x1b1)][_0x16ea67(0x151)](_0x217779,(_0x1f10f0,_0x19edb2)=>{const _0x5028e2=_0x16ea67;if(_0x1f10f0){this[_0x5028e2(0x207)][_0x5028e2(0x1d3)](_0x5028e2(0x1bc)+_0x1f10f0[_0x5028e2(0x1e8)]),_0x54aef6[_0x5028e2(0x18c)](_0x38e7e3,_0x1f10f0);return;}this[_0x5028e2(0x207)][_0x5028e2(0x13e)](_0x54aef6[_0x5028e2(0x157)]),_0x54aef6[_0x5028e2(0x136)](_0x382307,_0x19edb2);});});}catch(_0x2d84ad){this[_0xe6b00c(0x207)]['error'](_0xe6b00c(0x1a0)+util[_0xe6b00c(0x16b)](_0x2d84ad));throw _0x2d84ad;}}[a69_0x450c4a(0x14d)](){const _0x5b71fc=a69_0x450c4a;return this[_0x5b71fc(0x1b1)];}[a69_0x450c4a(0x1de)](){const _0x39b7a9=a69_0x450c4a;return this[_0x39b7a9(0x149)];}}module['exports']=GrpcClient;
|
|
1
|
+
const a69_0x3924e8=a69_0x4324;(function(_0x1496c7,_0x1214c3){const _0x3d6630=a69_0x4324,_0x424a6c=_0x1496c7();while(!![]){try{const _0x6ceb48=-parseInt(_0x3d6630(0xf1))/0x1+-parseInt(_0x3d6630(0x96))/0x2*(parseInt(_0x3d6630(0x174))/0x3)+parseInt(_0x3d6630(0xe8))/0x4*(parseInt(_0x3d6630(0xac))/0x5)+parseInt(_0x3d6630(0x13b))/0x6+parseInt(_0x3d6630(0x9d))/0x7+-parseInt(_0x3d6630(0xde))/0x8*(parseInt(_0x3d6630(0x176))/0x9)+-parseInt(_0x3d6630(0x8e))/0xa*(parseInt(_0x3d6630(0x14f))/0xb);if(_0x6ceb48===_0x1214c3)break;else _0x424a6c['push'](_0x424a6c['shift']());}catch(_0x74b2dd){_0x424a6c['push'](_0x424a6c['shift']());}}}(a69_0x2b49,0xb88cf));function a69_0x2b49(){const _0x1c7845=['rovtk','../../../generated/sdk_grpc_pb','bNGEu','dsBhF','GjSXc','from','start','setTestFramework','format','hAKlZ','PlaywrightConfigRequest','Getting\x20Playwright\x20config','Error\x20in\x20LogCreatedEvent:\x20','RWgdV','info','Error\x20in\x20DriverInit:\x20','IiRih','WOqLe','cKBvl','PwLdC','version','setExecutionContext','SDK_CONNECT_BIN_SESSION','pSmpP','kind','driverInit','setUserInputParams','ref','ConnectBinSessionRequest','DriverInitRequest','getSdkVersion','SDK_AUTOMATION_FRAMEWORK_INIT','AccessibilityConfig\x20request\x20successful','\x20listenAddr:\x20','stringify','playwrightConfig','No\x20gRPC\x20client\x20not\x20initialized.','TsXCD','setRef','nJjTr','channel','DriverInit\x20error:\x20','XTrON','GgdbH','feMiS','../../helpers/performance/performance-tester.js','BtHhs','LINKl','QfCCJ','Error\x20in\x20TestSessionEvent:\x20','setFrameworkVersion','AavUg','setEventJson','setPathConfig','testFrameworkName','LizaD','Error\x20in\x20stopBinSession:\x20','getFrameworkVersionsMap','resolve','setTestFrameworkState','addLogs','7541586lHNQzd','setFrameworkName','AccessibilityConfigRequest','frameworkVersion','listenAddress','path','error','Missing\x20binSessionId','Error\x20in\x20TestFrameworkEvent:\x20','bUniL','Error\x20in\x20getAccessibilityConfig:\x20','createInsecure','BROWSERSTACK_CLI_BIN_SESSION_ID','addFrameworks','DIucZ','setProcessId','ConnectBinSession\x20error:\x20','credentials','LogCreatedEvent\x20request\x20successful','lXpTx','9772697AepMQK','wiOOR','./cliUtils.js','Initialized\x20gRPC\x20client\x20with\x20bin\x20session\x20id:\x20','test_run_uuid','aFnwj','fileName','threadId','setTestHookState','StopBinSession\x20successful','level','TestSessionEvent\x20error:\x20','aWPKo','stopBinSession','lmHHM','Error\x20in\x20getPlaywrightConfig:\x20','testFrameworkEvent','setAttachmentType','stop-bin-session\x20response:\x20','Sending\x20LogCreatedEvent','PlaywrightConfig\x20error:\x20','setPlatformIndex','VqOSq','TestSessionEvent\x20request\x20successful','setHash','yteqn','PlaywrightConfig\x20request\x20successful','AYRik','message','filePath','AccessibilityConfig\x20error:\x20','getClient','LogCreatedEventRequest','setSdkLanguage','winstonLogger','kBOUn','cwd','385569DHMKhJ','Unable\x20to\x20find\x20listen\x20addr\x20or\x20bin\x20session\x20id\x20binSessionId:\x20','9531OrqkEm','DriverInit\x20request\x20successful','Stopping\x20signal\x20','Channel','encode','10VXHdoR','setExitCode','BOcls','setCapabilities','addAutomationSessions','kiLxe','TestSessionEventRequest','setProvider','2FlQrdU','setTestFrameworkName','binSessionId','setFilePath','TestFrameworkEventRequest','frameworkName','setBinSessionId','3519677yQvgNt','end','getBrowserstackCliConfig','debug','TestFrameworkEvent\x20request\x20successful','connect-bin-session\x20response:\x20','yDYRr','StartBinSession\x20error:\x20','set','processId','SNgrx','startBinSession','setLevel','../utils/constants','BROWSERSTACK_CLI_BIN_LISTEN_ADDR','10RlbqNn','slice','testFrameworkState','fuVKl','EKEEh','@grpc/grpc-js','Getting\x20Accessibility\x20config','uRMem','dczrj','Unable\x20to\x20determine\x20gRPC\x20server\x20listen\x20address','oJzOd','ConnectBinSession\x20successful','setTimestamp','getInstance','hash','setFrameworksList','setThreadId','StartBinSession\x20successful','./browserstackCLI.js','accessibilityConfig','setCliArgsList','GrpcClient','xshPe','user_killed','BROWSERSTACK_CONFIG_FILE_PATH','setFileName','getChannel','init','name','testSessionEvent','xdsOJ','Error\x20in\x20startBinSession:\x20','setHubUrl','connect','KsApg','client','getAccessibilityConfig','setSdkVersion','forEach','browserstack.yml','setPathProject','getEnvVarsMap','logger','OZCOW','setUuid','Error\x20in\x20connectBinSession:\x20','fileSize','setEndedAt','uhuBE','attachment_type','7048NGGWXR','provider','timestamp','MJqho','qjtjd','SDK_START_BIN_SESSION','Sending\x20TestFrameworkEvent','Connecting\x20bin\x20session','SDK_CLI_ON_STOP','Stopping\x20bin\x20session','2032396EppKas','AutomationSession','env','yOdia','IkxGe','getSdkLanguage','frameworkSessionId','util','qZqvu','70092utteBJ','StopBinSessionRequest','uuid','getAutomationFrameworkDetail','startBinSession:\x20Calling\x20startBinSession','TestFrameworkEvent\x20error:\x20','setTestFrameworkVersion','ExecutionContext','\x20and\x20listen\x20address:\x20','cLoos','setFileSize','setKind','setMessage'];a69_0x2b49=function(){return _0x1c7845;};return a69_0x2b49();}const util=require(a69_0x3924e8(0xef)),logger=require('../../helpers/logger.js')[a69_0x3924e8(0x171)],grpc=require(a69_0x3924e8(0xb1)),services=require(a69_0x3924e8(0xff)),messages=require('../../../generated/sdk-messages_pb'),path=require(a69_0x3924e8(0x140)),CLIUtils=require(a69_0x3924e8(0x151)),{createClassLogger}=require('../../helpers/classLogger.js'),PerformanceTester=require(a69_0x3924e8(0x12b)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{PLAYWRIGHT_TRACE_LOGS}=require(a69_0x3924e8(0xaa)),helper=require('../../helpers/helper.js');class GrpcClient{static #instance=null;[a69_0x3924e8(0x98)]=null;[a69_0x3924e8(0x13f)]=null;['channel']=null;[a69_0x3924e8(0xcf)]=null;[a69_0x3924e8(0xd6)]=createClassLogger(a69_0x3924e8(0xc1));constructor(){}static[a69_0x3924e8(0xb9)](){return!GrpcClient.#instance&&(GrpcClient.#instance=new GrpcClient()),GrpcClient.#instance;}[a69_0x3924e8(0xc7)](_0x289629){const _0xae5fcb=a69_0x3924e8,_0x275331={};_0x275331[_0xae5fcb(0x111)]=function(_0x1a7923,_0x20833b){return _0x1a7923||_0x20833b;};const _0x58c84a=_0x275331,{id:_0x5aa055,listen:_0x17441f}=_0x289629;if(_0x58c84a[_0xae5fcb(0x111)](!_0x5aa055,!_0x17441f))throw new Error(_0xae5fcb(0x175)+_0x5aa055+_0xae5fcb(0x11f)+_0x17441f);this[_0xae5fcb(0x98)]=_0x5aa055,this[_0xae5fcb(0x13f)]=_0x17441f,process[_0xae5fcb(0xea)]['BROWSERSTACK_CLI_BIN_SESSION_ID']=this[_0xae5fcb(0x98)],process[_0xae5fcb(0xea)][_0xae5fcb(0xab)]=this['listenAddress'],this[_0xae5fcb(0xcd)](),this[_0xae5fcb(0xd6)]['info'](_0xae5fcb(0x152)+this[_0xae5fcb(0x98)]+_0xae5fcb(0xf9)+this['listenAddress']);}[a69_0x3924e8(0xcd)](){const _0x346456=a69_0x3924e8,_0x3bc19b={};_0x3bc19b[_0x346456(0x16a)]=_0x346456(0xb5);const _0x2ccc93=_0x3bc19b;let _0x22aa7c=this[_0x346456(0x13f)];!_0x22aa7c&&(_0x22aa7c=process[_0x346456(0xea)][_0x346456(0xab)]);!this[_0x346456(0x98)]&&(this['binSessionId']=this[_0x346456(0x98)]||process[_0x346456(0xea)][_0x346456(0x147)]);if(!_0x22aa7c)throw new Error(_0x2ccc93[_0x346456(0x16a)]);const _0x4138fe={};_0x4138fe['grpc.keepalive_time_ms']=0x2710,this[_0x346456(0x126)]=new grpc[(_0x346456(0x8c))](_0x22aa7c,grpc[_0x346456(0x14c)][_0x346456(0x146)](),_0x4138fe),this['client']=new services['SDKClient'](_0x22aa7c,grpc[_0x346456(0x14c)][_0x346456(0x146)]()),this['logger'][_0x346456(0x10c)]('Connected\x20to\x20gRPC\x20server\x20at\x20'+_0x22aa7c);}async[a69_0x3924e8(0xa8)](){const _0x697b82=a69_0x3924e8,_0x4f94e3={'iaZfO':function(_0x2b631b,_0x1693a1){return _0x2b631b!==_0x1693a1;},'qZqvu':function(_0x2dd96b,_0x455351){return _0x2dd96b!==_0x455351;},'MJqho':function(_0x1ba149,_0x2378fd){return _0x1ba149(_0x2378fd);},'yDYRr':_0x697b82(0xbd),'AavUg':_0x697b82(0xf5),'uhuBE':_0x697b82(0x122),'PNuFy':function(_0x58ebf8,_0x1f5d04){return _0x58ebf8(_0x1f5d04);},'kiLxe':_0x697b82(0xbe),'pSmpP':function(_0x2916d7,_0x401e5f){return _0x2916d7 instanceof _0x401e5f;},'IiRih':function(_0x36d14a,_0x57101f){return _0x36d14a===_0x57101f;},'YUiWy':'browserstackConfigFile','VqOSq':_0x697b82(0xd3),'LINKl':'null','feMiS':function(_0x1ad6e5,_0xd51726){return _0x1ad6e5||_0xd51726;}};PerformanceTester['start'](PerformanceEvents[_0x697b82(0xe3)]),this[_0x697b82(0xd6)]['info'](_0x4f94e3[_0x697b82(0x131)]);try{!this['client']&&this[_0x697b82(0xd6)][_0x697b82(0x10c)](_0x4f94e3[_0x697b82(0xdc)]);const _0xf01fdb=CLIUtils[_0x697b82(0x11c)](),_0x292e10=CLIUtils['getAutomationFrameworkDetail'](),_0x396f2e=_0x292e10[_0x697b82(0xc8)],_0x26d11c=_0x292e10[_0x697b82(0x112)],_0x30ac6b=new messages['StartBinSessionRequest']();_0x30ac6b[_0x697b82(0x9c)](this[_0x697b82(0x98)]),_0x30ac6b[_0x697b82(0x170)](CLIUtils[_0x697b82(0xed)]()),_0x30ac6b[_0x697b82(0xd1)](_0xf01fdb),_0x30ac6b[_0x697b82(0xd4)](process['cwd']());const _0x2a25e8=_0x30ac6b[_0x697b82(0xd5)]();Object['entries'](process[_0x697b82(0xea)])[_0x697b82(0xd2)](([_0x1ddd71,_0x3acdab])=>{const _0x3ece92=_0x697b82;_0x4f94e3['iaZfO'](_0x3acdab,undefined)&&_0x4f94e3[_0x3ece92(0xf0)](_0x3acdab,null)&&_0x2a25e8['set'](_0x1ddd71,_0x3acdab);});const _0xcbd1a9=_0x4f94e3['PNuFy'](require,_0x4f94e3[_0x697b82(0x93)]),_0xa120d2=_0xcbd1a9[_0x697b82(0xb9)]()[_0x697b82(0x9f)](),_0x2b547f=[];_0xa120d2&&_0x4f94e3[_0x697b82(0x115)](_0xa120d2,Map)&&_0xa120d2[_0x697b82(0xd2)]((_0x4fa1ce,_0xfcdbd1)=>{_0x2b547f['push'](_0xfcdbd1+'='+_0x4fa1ce);});const _0x5cef6c=process['argv'][_0x697b82(0xad)](0x2);_0x30ac6b[_0x697b82(0xc0)]([..._0x5cef6c,..._0x2b547f]);let _0x27dc8e=null;if(_0xa120d2)for(const [_0x115453,_0x39ae6c]of _0xa120d2){if(_0x4f94e3[_0x697b82(0x10e)](_0x115453,_0x4f94e3['YUiWy'])){_0x27dc8e=_0x39ae6c;break;}}if(_0x27dc8e)_0x30ac6b[_0x697b82(0x133)](_0x27dc8e);else process[_0x697b82(0xea)][_0x697b82(0xc4)]?_0x30ac6b[_0x697b82(0x133)](process[_0x697b82(0xea)][_0x697b82(0xc4)]):_0x30ac6b[_0x697b82(0x133)](path[_0x697b82(0x138)](process[_0x697b82(0x173)](),_0x4f94e3[_0x697b82(0x165)]));this[_0x697b82(0xd6)][_0x697b82(0x10c)]('setCliArgs:\x20cliArgs='+JSON[_0x697b82(0x120)](_0x5cef6c)+',\x20parsedConfig='+(_0xa120d2?JSON[_0x697b82(0x120)]([..._0xa120d2]):_0x4f94e3[_0x697b82(0x12d)])),_0x30ac6b['setLanguage'](CLIUtils[_0x697b82(0xed)]()),_0x30ac6b[_0x697b82(0x105)](_0x396f2e);const _0x4987fb=_0x30ac6b[_0x697b82(0x137)]();return _0x4987fb[_0x697b82(0xa5)](_0x396f2e,_0x4f94e3[_0x697b82(0x12a)](_0x26d11c,'')),_0x30ac6b[_0x697b82(0x148)](_0x396f2e,_0x26d11c),_0x30ac6b[_0x697b82(0xbb)]([_0x396f2e]),new Promise((_0x5757ba,_0x4ae304)=>{const _0x14557d=_0x697b82,_0x17e5a5={'LsFQe':function(_0x43304b,_0x53cc21){const _0x33ea48=a69_0x4324;return _0x4f94e3[_0x33ea48(0xe1)](_0x43304b,_0x53cc21);},'BOcls':_0x4f94e3[_0x14557d(0xa3)],'IkxGe':function(_0x367091,_0x38345e){const _0x32f281=_0x14557d;return _0x4f94e3[_0x32f281(0xe1)](_0x367091,_0x38345e);}};this[_0x14557d(0xcf)][_0x14557d(0xa8)](_0x30ac6b,(_0x368602,_0x3d754c)=>{const _0x14242c=_0x14557d;if(_0x368602){this[_0x14242c(0xd6)]['error'](_0x14242c(0xa4)+_0x368602[_0x14242c(0x16b)]),_0x17e5a5['LsFQe'](_0x4ae304,_0x368602),PerformanceTester['end'](PerformanceEvents['SDK_START_BIN_SESSION'],![],util['format'](_0x368602));return;}this[_0x14242c(0xd6)][_0x14242c(0x10c)](_0x17e5a5[_0x14242c(0x90)]),PerformanceTester[_0x14242c(0x9e)](PerformanceEvents[_0x14242c(0xe3)]),_0x17e5a5[_0x14242c(0xec)](_0x5757ba,_0x3d754c);});});}catch(_0x1d7dda){this[_0x697b82(0xd6)][_0x697b82(0x141)](_0x697b82(0xcb)+util[_0x697b82(0x106)](_0x1d7dda)),PerformanceTester['end'](PerformanceEvents[_0x697b82(0xe3)],![],util['format'](_0x1d7dda));throw _0x1d7dda;}}async['connectBinSession'](){const _0x476e93=a69_0x3924e8,_0x21ca1e={'nJjTr':function(_0x14a2dd,_0x46785f){return _0x14a2dd(_0x46785f);},'dsBhF':_0x476e93(0xb7),'BtHhs':_0x476e93(0xe5),'EKEEh':_0x476e93(0x122)};PerformanceTester[_0x476e93(0x104)](PerformanceEvents[_0x476e93(0x114)]),this[_0x476e93(0xd6)][_0x476e93(0x10c)](_0x21ca1e[_0x476e93(0x12c)]);try{!this['client']&&this[_0x476e93(0xd6)][_0x476e93(0x10c)](_0x21ca1e[_0x476e93(0xb0)]);const _0x1d7943=new messages[(_0x476e93(0x11a))]();_0x1d7943[_0x476e93(0x9c)](this[_0x476e93(0x98)]);const _0x2175d5=await new Promise((_0x175153,_0x5560fe)=>{const _0x6c5c4f=_0x476e93,_0x476f22={'SNgrx':function(_0x1f0efe,_0xc5cd6){const _0x234fd2=a69_0x4324;return _0x21ca1e[_0x234fd2(0x125)](_0x1f0efe,_0xc5cd6);},'qXaGk':_0x21ca1e[_0x6c5c4f(0x101)],'uRMem':function(_0x5d2d19,_0x56a38c){const _0x37967a=_0x6c5c4f;return _0x21ca1e[_0x37967a(0x125)](_0x5d2d19,_0x56a38c);}};this[_0x6c5c4f(0xcf)]['connectBinSession'](_0x1d7943,(_0xd4ec38,_0x19baaf)=>{const _0x3e8efc=_0x6c5c4f;if(_0xd4ec38){this[_0x3e8efc(0xd6)][_0x3e8efc(0x141)](_0x3e8efc(0x14b)+_0xd4ec38[_0x3e8efc(0x16b)]),_0x476f22[_0x3e8efc(0xa7)](_0x5560fe,_0xd4ec38),PerformanceTester[_0x3e8efc(0x9e)](PerformanceEvents[_0x3e8efc(0x114)],![],util[_0x3e8efc(0x106)](_0xd4ec38));return;}this[_0x3e8efc(0xd6)]['info'](_0x476f22['qXaGk']),PerformanceTester[_0x3e8efc(0x9e)](PerformanceEvents[_0x3e8efc(0x114)]),_0x476f22[_0x3e8efc(0xb3)](_0x175153,_0x19baaf);});});return this[_0x476e93(0xd6)][_0x476e93(0xa0)](_0x476e93(0xa2)+util['format'](_0x2175d5)),_0x2175d5;}catch(_0x5da418){PerformanceTester[_0x476e93(0x9e)](PerformanceEvents['SDK_CONNECT_BIN_SESSION'],![],util[_0x476e93(0x106)](_0x5da418)),this[_0x476e93(0xd6)][_0x476e93(0x141)](_0x476e93(0xd9)+util[_0x476e93(0x106)](_0x5da418));throw _0x5da418;}}async[a69_0x3924e8(0x15c)](_0x3d6e16={},_0x1e770b=null){const _0xdbea6a=a69_0x3924e8,_0x253643={'bNGEu':function(_0x12fb14,_0x4a3bf5){return _0x12fb14(_0x4a3bf5);},'cLoos':_0xdbea6a(0x158),'lmHHM':_0xdbea6a(0xe7),'yJMoq':_0xdbea6a(0x142),'rovtk':_0xdbea6a(0x122),'FuLSP':_0xdbea6a(0xc3)};PerformanceTester['start'](PerformanceEvents[_0xdbea6a(0xe6)]),this[_0xdbea6a(0xd6)][_0xdbea6a(0x10c)](_0x253643[_0xdbea6a(0x15d)]);try{if(!this[_0xdbea6a(0x98)])throw new Error(_0x253643['yJMoq']);!this['client']&&this[_0xdbea6a(0xd6)]['info'](_0x253643[_0xdbea6a(0xfe)]);const _0x239ac3=new messages[(_0xdbea6a(0xf2))]();this[_0xdbea6a(0xd6)][_0xdbea6a(0xa0)](_0xdbea6a(0x8b)+JSON[_0xdbea6a(0x120)](_0x1e770b)),_0x239ac3[_0xdbea6a(0x9c)](this[_0xdbea6a(0x98)]),_0x239ac3['setCustomMetadata'](_0x3d6e16),_0x239ac3['setExitSignal'](_0x1e770b?_0x1e770b:null),_0x239ac3['setExitReason'](_0x1e770b?_0x253643['FuLSP']:null),_0x239ac3[_0xdbea6a(0x8f)](_0x1e770b?0x1:0x0);const _0x4a1b6b=await new Promise((_0x4e6f1c,_0x3a7350)=>{const _0x28bd83=_0xdbea6a,_0x41b755={'GgdbH':function(_0x5ca6c3,_0x4290bb){const _0x4e0ece=a69_0x4324;return _0x253643[_0x4e0ece(0x100)](_0x5ca6c3,_0x4290bb);},'uMWsQ':_0x253643[_0x28bd83(0xfa)]};this[_0x28bd83(0xcf)]['stopBinSession'](_0x239ac3,(_0x27f6a8,_0x227f78)=>{const _0x30eee9=_0x28bd83;if(_0x27f6a8){this['logger']['error']('StopBinSession\x20error:\x20'+_0x27f6a8['message']),_0x41b755[_0x30eee9(0x129)](_0x3a7350,_0x27f6a8),PerformanceTester[_0x30eee9(0x9e)](PerformanceEvents[_0x30eee9(0xe6)],![],util['format'](_0x27f6a8));return;}this[_0x30eee9(0xd6)][_0x30eee9(0x10c)](_0x41b755['uMWsQ']),PerformanceTester[_0x30eee9(0x9e)](PerformanceEvents['SDK_CLI_ON_STOP']),_0x41b755[_0x30eee9(0x129)](_0x4e6f1c,_0x227f78);});});return this[_0xdbea6a(0xd6)][_0xdbea6a(0xa0)](_0xdbea6a(0x161)+util[_0xdbea6a(0x106)](_0x4a1b6b)),_0x4a1b6b;}catch(_0x3a6b04){PerformanceTester[_0xdbea6a(0x9e)](PerformanceEvents[_0xdbea6a(0xe6)],![],util[_0xdbea6a(0x106)](_0x3a6b04)),this[_0xdbea6a(0xd6)][_0xdbea6a(0x141)](_0xdbea6a(0x136)+util[_0xdbea6a(0x106)](_0x3a6b04));}}async['getPlaywrightConfig'](_0x8d0f36){const _0x8e9c04=a69_0x3924e8,_0x316687={'yOdia':function(_0x16cc7e,_0x196155){return _0x16cc7e(_0x196155);},'kBOUn':_0x8e9c04(0x169),'aWPKo':_0x8e9c04(0x109),'RWgdV':_0x8e9c04(0x122)};PerformanceTester[_0x8e9c04(0x104)](PerformanceEvents[_0x8e9c04(0x11d)]),this[_0x8e9c04(0xd6)][_0x8e9c04(0x10c)](_0x316687[_0x8e9c04(0x15b)]);try{!this['client']&&this['logger']['info'](_0x316687[_0x8e9c04(0x10b)]);const _0x533606=new messages[(_0x8e9c04(0x108))]();return _0x533606[_0x8e9c04(0x9c)](this[_0x8e9c04(0x98)]),_0x533606['setConfig'](JSON['stringify'](_0x8d0f36)),new Promise((_0x1bcd22,_0x1542bc)=>{const _0x1854be=_0x8e9c04;this[_0x1854be(0xcf)][_0x1854be(0x121)](_0x533606,(_0x6bdc9d,_0x3a8645)=>{const _0x5b9dc5=_0x1854be;if(_0x6bdc9d){this['logger'][_0x5b9dc5(0x141)](_0x5b9dc5(0x163)+_0x6bdc9d[_0x5b9dc5(0x16b)]),_0x316687['yOdia'](_0x1542bc,_0x6bdc9d),PerformanceTester[_0x5b9dc5(0x9e)](PerformanceEvents[_0x5b9dc5(0x11d)],![],util[_0x5b9dc5(0x106)](_0x6bdc9d));return;}this['logger'][_0x5b9dc5(0x10c)](_0x316687[_0x5b9dc5(0x172)]),PerformanceTester[_0x5b9dc5(0x9e)](PerformanceEvents[_0x5b9dc5(0x11d)]),_0x316687[_0x5b9dc5(0xeb)](_0x1bcd22,_0x3a8645);});});}catch(_0x42a193){PerformanceTester[_0x8e9c04(0x9e)](PerformanceEvents[_0x8e9c04(0x11d)],![],util[_0x8e9c04(0x106)](_0x42a193)),this[_0x8e9c04(0xd6)][_0x8e9c04(0x141)](_0x8e9c04(0x15e)+util['format'](_0x42a193));throw _0x42a193;}}async[a69_0x3924e8(0xd0)](_0x40cc95){const _0xbe468b=a69_0x3924e8,_0x4afe41={'TsXCD':function(_0x43423e,_0x12f265){return _0x43423e(_0x12f265);},'OZCOW':_0xbe468b(0x11e),'wiOOR':_0xbe468b(0xb2),'lXpTx':'utf-8'};this['logger']['info'](_0x4afe41[_0xbe468b(0x150)]);try{const _0x5e248f=Buffer[_0xbe468b(0x103)](JSON[_0xbe468b(0x120)](_0x40cc95['launchcaps']),_0x4afe41[_0xbe468b(0x14e)]),_0x1f1f51=new messages[(_0xbe468b(0x13d))](),_0x11902b=CLIUtils[_0xbe468b(0xf4)](),_0x42bebe=_0x11902b[_0xbe468b(0xc8)],_0x25ac58=_0x11902b[_0xbe468b(0x112)];return _0x1f1f51[_0xbe468b(0x9c)](this[_0xbe468b(0x98)]),_0x1f1f51[_0xbe468b(0x164)](0x0),_0x1f1f51[_0xbe468b(0x13c)](_0x42bebe),_0x1f1f51[_0xbe468b(0x130)](_0x25ac58),_0x1f1f51['setHubUrl'](_0x40cc95['hubUrl']),_0x1f1f51[_0xbe468b(0x91)](_0x5e248f),new Promise((_0x4c15db,_0x3de85e)=>{const _0x402c69=_0xbe468b;this[_0x402c69(0xcf)][_0x402c69(0xbf)](_0x1f1f51,(_0x276212,_0x2261db)=>{const _0x1611b6=_0x402c69;if(_0x276212){this[_0x1611b6(0xd6)][_0x1611b6(0x141)](_0x1611b6(0x16d)+_0x276212['message']),_0x4afe41['TsXCD'](_0x3de85e,_0x276212);return;}this[_0x1611b6(0xd6)][_0x1611b6(0x10c)](_0x4afe41[_0x1611b6(0xd7)]),_0x4afe41[_0x1611b6(0x123)](_0x4c15db,_0x2261db);});});}catch(_0x2e1bd2){this[_0xbe468b(0xd6)]['error'](_0xbe468b(0x145)+util['format'](_0x2e1bd2));}}async[a69_0x3924e8(0xc9)](_0x2cffbd){const _0x5843e0=a69_0x3924e8,_0x4eb0a7={'xshPe':function(_0x68535,_0x51d7ea){return _0x68535(_0x51d7ea);},'WOqLe':_0x5843e0(0x166),'QfCCJ':'Sending\x20TestSessionEvent','qjtjd':_0x5843e0(0x122)};this[_0x5843e0(0xd6)][_0x5843e0(0x10c)](_0x4eb0a7[_0x5843e0(0x12e)]);try{!this[_0x5843e0(0xcf)]&&this[_0x5843e0(0xd6)][_0x5843e0(0x10c)](_0x4eb0a7[_0x5843e0(0xe2)]);const {platformIndex:_0x1fc7d7,testFrameworkName:_0x29939c,testFrameworkVersion:_0x303a47,testFrameworkState:_0x35e4f5,testHookState:_0x152f21,testUuid:_0x86d8ea,automationSession:_0x2e3261,capabilities:_0x1549c4,executionContext:_0x2bd4ff}=_0x2cffbd,_0x356905=new messages['TestSessionEventRequest']();_0x356905['setBinSessionId'](this[_0x5843e0(0x98)]),_0x356905[_0x5843e0(0x164)](_0x1fc7d7),_0x356905[_0x5843e0(0x97)](_0x29939c),_0x356905['setTestFrameworkVersion'](_0x303a47),_0x356905[_0x5843e0(0x139)](_0x35e4f5),_0x356905[_0x5843e0(0x157)](_0x152f21),_0x356905['setTestUuid'](_0x86d8ea);const _0x5b4ebe=new messages[(_0x5843e0(0x94))][(_0x5843e0(0xe9))]();_0x5b4ebe[_0x5843e0(0x95)](_0x2e3261[_0x5843e0(0xdf)]),_0x5b4ebe[_0x5843e0(0x13c)](_0x2e3261[_0x5843e0(0x9b)]),_0x5b4ebe['setFrameworkVersion'](_0x2e3261[_0x5843e0(0x13e)]),_0x5b4ebe['setFrameworkSessionId'](_0x2e3261[_0x5843e0(0xee)]),_0x5b4ebe[_0x5843e0(0x124)](_0x2e3261[_0x5843e0(0x119)]),_0x5b4ebe[_0x5843e0(0xcc)](_0x2e3261['hubUrl']),_0x356905[_0x5843e0(0x92)](_0x5b4ebe),_0x356905['setCapabilities'](_0x1549c4);const _0x2dc947=new messages['ExecutionContext']();return _0x2dc947['setProcessId'](_0x2bd4ff[_0x5843e0(0xa6)]),_0x2dc947['setThreadId'](_0x2bd4ff[_0x5843e0(0x156)]),_0x2dc947['setHash'](_0x2bd4ff[_0x5843e0(0xba)]),_0x356905[_0x5843e0(0x113)](_0x2dc947),new Promise((_0x25b601,_0x3e07c2)=>{const _0xaa5ca6=_0x5843e0,_0x5a308c={'PYtQH':function(_0x32ea40,_0x4d5baf){const _0xf531a6=a69_0x4324;return _0x4eb0a7[_0xf531a6(0xc2)](_0x32ea40,_0x4d5baf);},'cKBvl':_0x4eb0a7[_0xaa5ca6(0x10f)]};this['client']['testSessionEvent'](_0x356905,(_0xe02db3,_0x36756a)=>{const _0x4129f3=_0xaa5ca6;if(_0xe02db3){this[_0x4129f3(0xd6)][_0x4129f3(0x141)](_0x4129f3(0x15a)+_0xe02db3[_0x4129f3(0x16b)]),_0x5a308c['PYtQH'](_0x3e07c2,_0xe02db3);return;}this['logger'][_0x4129f3(0x10c)](_0x5a308c[_0x4129f3(0x110)]),_0x5a308c['PYtQH'](_0x25b601,_0x36756a);});});}catch(_0x334e3c){this['logger']['error'](_0x5843e0(0x12f)+util[_0x5843e0(0x106)](_0x334e3c));throw _0x334e3c;}}async['testFrameworkEvent'](_0x4662d5){const _0x239f36=a69_0x3924e8,_0x540701={'xdsOJ':function(_0x2d083b,_0x43aca4){return _0x2d083b(_0x43aca4);},'fuVKl':_0x239f36(0xa1),'Moual':_0x239f36(0xe4),'yteqn':_0x239f36(0x122)};this[_0x239f36(0xd6)][_0x239f36(0x10c)](_0x540701['Moual']);try{!this[_0x239f36(0xcf)]&&this['logger'][_0x239f36(0x10c)](_0x540701[_0x239f36(0x168)]);const {platfromIndex:_0x478ace,testFrameworkName:_0x334e00,testFrameworkVersion:_0x286f9d,testFrameworkState:_0x1dd824,hookState:_0x31521d,startedAt:_0x59bd11,endedAt:_0x574de8,uuid:_0x3ed050,eventJson:_0x5c9268,executionContext:_0x26400f}=_0x4662d5,_0x2b7137=new messages[(_0x239f36(0x9a))]();_0x2b7137[_0x239f36(0x9c)](this['binSessionId']),_0x2b7137['setPlatformIndex'](_0x478ace),_0x2b7137[_0x239f36(0x97)](_0x334e00),_0x2b7137['setTestFrameworkVersion'](_0x286f9d),_0x2b7137[_0x239f36(0x139)](_0x1dd824),_0x2b7137[_0x239f36(0x157)](_0x31521d),_0x2b7137['setStartedAt'](_0x59bd11),_0x2b7137[_0x239f36(0xdb)](_0x574de8),_0x2b7137[_0x239f36(0xd8)](_0x3ed050),_0x2b7137[_0x239f36(0x132)](_0x5c9268);const _0x4ea8e1=new messages[(_0x239f36(0xf8))]();return _0x4ea8e1[_0x239f36(0x14a)](_0x26400f['processId']),_0x4ea8e1[_0x239f36(0xbc)](_0x26400f[_0x239f36(0x156)]),_0x4ea8e1[_0x239f36(0x167)](_0x26400f[_0x239f36(0xba)]),_0x2b7137[_0x239f36(0x113)](_0x4ea8e1),new Promise((_0x4af974,_0x526311)=>{const _0x191db2=_0x239f36;this[_0x191db2(0xcf)][_0x191db2(0x15f)](_0x2b7137,(_0x58ef55,_0x5d64dd)=>{const _0x819c9d=_0x191db2;if(_0x58ef55){this[_0x819c9d(0xd6)][_0x819c9d(0x141)](_0x819c9d(0xf6)+_0x58ef55[_0x819c9d(0x16b)]),_0x540701[_0x819c9d(0xca)](_0x526311,_0x58ef55);return;}this[_0x819c9d(0xd6)][_0x819c9d(0x10c)](_0x540701[_0x819c9d(0xaf)]),_0x540701[_0x819c9d(0xca)](_0x4af974,_0x5d64dd);});});}catch(_0x51dca3){this[_0x239f36(0xd6)]['error'](_0x239f36(0x143)+util[_0x239f36(0x106)](_0x51dca3));throw _0x51dca3;}}async['driverInit'](_0x3f4b56){const _0x40bf85=a69_0x3924e8,_0x422400={'KsApg':function(_0x1ad1ca,_0x78bfd0){return _0x1ad1ca(_0x78bfd0);},'GstVm':_0x40bf85(0x177),'LizaD':'Sending\x20DriverInit','oJzOd':_0x40bf85(0x122)};this[_0x40bf85(0xd6)][_0x40bf85(0x10c)](_0x422400[_0x40bf85(0x135)]);try{!this['client']&&this[_0x40bf85(0xd6)][_0x40bf85(0x10c)](_0x422400[_0x40bf85(0xb6)]);const {platformIndex:_0x91ef4f,ref:_0x2e1ca0,userInputParams:_0x4dec93}=_0x3f4b56,_0x40c293=new messages[(_0x40bf85(0x11b))]();return _0x40c293[_0x40bf85(0x9c)](this[_0x40bf85(0x98)]),_0x40c293[_0x40bf85(0x164)](_0x91ef4f),_0x40c293[_0x40bf85(0x124)](_0x2e1ca0),_0x40c293[_0x40bf85(0x118)](_0x4dec93),new Promise((_0x316150,_0x14e0e7)=>{const _0x31757f=_0x40bf85,_0x254fca={'aFnwj':function(_0x20db90,_0x5378a2){const _0x4e55a3=a69_0x4324;return _0x422400[_0x4e55a3(0xce)](_0x20db90,_0x5378a2);},'VmKJw':_0x422400['GstVm']};this[_0x31757f(0xcf)][_0x31757f(0x117)](_0x40c293,(_0x3df104,_0x3cf650)=>{const _0x37f860=_0x31757f;if(_0x3df104){this[_0x37f860(0xd6)][_0x37f860(0x141)](_0x37f860(0x127)+_0x3df104[_0x37f860(0x16b)]),_0x254fca[_0x37f860(0x154)](_0x14e0e7,_0x3df104);return;}this['logger'][_0x37f860(0x10c)](_0x254fca['VmKJw']),_0x254fca[_0x37f860(0x154)](_0x316150,_0x3cf650);});});}catch(_0x430448){this[_0x40bf85(0xd6)]['error'](_0x40bf85(0x10d)+util[_0x40bf85(0x106)](_0x430448));throw _0x430448;}}async['logCreatedEvent'](_0x3ae705){const _0x5369ed=a69_0x3924e8,_0x49c1ce={'hAKlZ':function(_0x4d91ff,_0x47d732){return _0x4d91ff===_0x47d732;},'bSNAJ':function(_0x44791b,_0x52c023){return _0x44791b(_0x52c023);},'DIucZ':_0x5369ed(0x14d),'bUniL':_0x5369ed(0x162),'GjSXc':_0x5369ed(0x122)};this['logger'][_0x5369ed(0x10c)](_0x49c1ce[_0x5369ed(0x144)]);try{!this['client']&&this[_0x5369ed(0xd6)][_0x5369ed(0x10c)](_0x49c1ce[_0x5369ed(0x102)]);const {platformIndex:_0x19be11,logs:_0x11159c}=_0x3ae705,_0x62c881=new messages[(_0x5369ed(0x16f))]();_0x62c881['setBinSessionId'](this[_0x5369ed(0x98)]),_0x62c881[_0x5369ed(0x164)](_0x19be11);const _0x5264f4=_0x3ae705[_0x5369ed(0x134)],_0x38d2f8=_0x3ae705['testFrameworkVersion'],_0x5aadcc=_0x3ae705[_0x5369ed(0xae)];return _0x11159c[_0x5369ed(0xd2)](_0x5c4356=>{const _0x165f0e=_0x5369ed,_0x1778a7=new messages[(_0x165f0e(0x16f))]['LogEntry']();_0x1778a7['setTestFrameworkName'](_0x5264f4),_0x1778a7[_0x165f0e(0xf7)](_0x38d2f8),_0x1778a7['setTestFrameworkState'](_0x5aadcc),_0x1778a7[_0x165f0e(0xb8)](_0x5c4356[_0x165f0e(0xe0)]),_0x1778a7[_0x165f0e(0xd8)](_0x5c4356[_0x165f0e(0xf3)]),_0x1778a7[_0x165f0e(0xfc)](_0x5c4356[_0x165f0e(0x116)]),_0x49c1ce[_0x165f0e(0x107)](_0x5c4356[_0x165f0e(0xdd)],PLAYWRIGHT_TRACE_LOGS)?(_0x1778a7[_0x165f0e(0xd8)](_0x5c4356[_0x165f0e(0x153)]),_0x1778a7[_0x165f0e(0xfd)](new TextEncoder()[_0x165f0e(0x8d)](JSON[_0x165f0e(0x120)](_0x5c4356)))):_0x1778a7[_0x165f0e(0xfd)](new TextEncoder()[_0x165f0e(0x8d)](_0x5c4356[_0x165f0e(0x16b)])),_0x1778a7[_0x165f0e(0xa9)](_0x5c4356[_0x165f0e(0x159)]),_0x1778a7[_0x165f0e(0xc5)](_0x5c4356?.[_0x165f0e(0x155)]||''),_0x1778a7[_0x165f0e(0x99)](_0x5c4356?.[_0x165f0e(0x16c)]||''),_0x1778a7[_0x165f0e(0xfb)](_0x5c4356?.[_0x165f0e(0xda)]||0x0),_0x1778a7[_0x165f0e(0x160)](_0x5c4356?.[_0x165f0e(0xdd)]||''),_0x62c881[_0x165f0e(0x13a)](_0x1778a7);}),new Promise((_0x41bdf4,_0x56e883)=>{const _0x8d25d=_0x5369ed,_0x319f98={'dczrj':function(_0x4cc3bf,_0x4d1d10){return _0x49c1ce['bSNAJ'](_0x4cc3bf,_0x4d1d10);},'XTrON':_0x49c1ce[_0x8d25d(0x149)]};this[_0x8d25d(0xcf)]['logCreatedEvent'](_0x62c881,(_0x2f4438,_0x38c624)=>{const _0xb7423b=_0x8d25d;if(_0x2f4438){this['logger'][_0xb7423b(0x141)]('LogCreatedEvent\x20error:\x20'+_0x2f4438[_0xb7423b(0x16b)]),_0x319f98[_0xb7423b(0xb4)](_0x56e883,_0x2f4438);return;}this[_0xb7423b(0xd6)][_0xb7423b(0x10c)](_0x319f98[_0xb7423b(0x128)]),_0x319f98['dczrj'](_0x41bdf4,_0x38c624);});});}catch(_0x4036b1){this['logger'][_0x5369ed(0x141)](_0x5369ed(0x10a)+util[_0x5369ed(0x106)](_0x4036b1));throw _0x4036b1;}}[a69_0x3924e8(0x16e)](){return this['client'];}[a69_0x3924e8(0xc6)](){const _0x572f4b=a69_0x3924e8;return this[_0x572f4b(0x126)];}}function a69_0x4324(_0x54386e,_0x3a9204){const _0x2b49aa=a69_0x2b49();return a69_0x4324=function(_0x43246d,_0x9d87ea){_0x43246d=_0x43246d-0x8b;let _0x2cf0e3=_0x2b49aa[_0x43246d];return _0x2cf0e3;},a69_0x4324(_0x54386e,_0x3a9204);}module['exports']=GrpcClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x4f1161=a70_0x1733;function a70_0x1733(_0x16ff8a,_0x337a20){const _0x36e49b=a70_0x36e4();return a70_0x1733=function(_0x173394,_0x2e99a4){_0x173394=_0x173394-0x159;let _0x4ca363=_0x36e49b[_0x173394];return _0x4ca363;},a70_0x1733(_0x16ff8a,_0x337a20);}(function(_0x197184,_0x148b19){const _0x8d59f9=a70_0x1733,_0xd92546=_0x197184();while(!![]){try{const _0x4adabe=parseInt(_0x8d59f9(0x166))/0x1*(-parseInt(_0x8d59f9(0x163))/0x2)+-parseInt(_0x8d59f9(0x16c))/0x3+parseInt(_0x8d59f9(0x16f))/0x4*(-parseInt(_0x8d59f9(0x162))/0x5)+parseInt(_0x8d59f9(0x164))/0x6*(-parseInt(_0x8d59f9(0x16b))/0x7)+parseInt(_0x8d59f9(0x161))/0x8*(-parseInt(_0x8d59f9(0x15c))/0x9)+-parseInt(_0x8d59f9(0x15a))/0xa+parseInt(_0x8d59f9(0x168))/0xb;if(_0x4adabe===_0x148b19)break;else _0xd92546['push'](_0xd92546['shift']());}catch(_0x3d606a){_0xd92546['push'](_0xd92546['shift']());}}}(a70_0x36e4,0xd26b5));function a70_0x36e4(){const _0x5d3738=['lastState','406LnmXAt','161274OkVVhJ','getState','toLocaleString','628DLxmYW','./trackedInstance','exports','getFrameworkName','2841490dZnKEn','split','3717pGOCAk','frameworkName','../state/automationFrameworkState','frameworkVersion','state','1432VLuipA','22580cgwkMk','5386DxMTCr','122658mtweRY','yiSYM','213hIjJvw','2|4|1|3|5|0','41162286BqkDhI','NONE'];a70_0x36e4=function(){return _0x5d3738;};return a70_0x36e4();}const AutomationFrameworkState=require(a70_0x4f1161(0x15e)),TrackedInstance=require(a70_0x4f1161(0x170)),now=new Date();class AutomationFrameworkInstance extends TrackedInstance{constructor(_0x5d6f07,_0x4e1262,_0x53ee84,_0x36a71b){const _0x262c7f=a70_0x4f1161,_0xc4e1ce={};_0xc4e1ce[_0x262c7f(0x165)]=_0x262c7f(0x167);const _0x587441=_0xc4e1ce,_0x1a28dd=_0x587441[_0x262c7f(0x165)][_0x262c7f(0x15b)]('|');let _0x584663=0x0;while(!![]){switch(_0x1a28dd[_0x584663++]){case'0':this['createdAt']=now[_0x262c7f(0x16e)]();continue;case'1':this[_0x262c7f(0x15f)]=_0x53ee84;continue;case'2':super(_0x5d6f07);continue;case'3':this[_0x262c7f(0x160)]=_0x36a71b;continue;case'4':this[_0x262c7f(0x15d)]=_0x4e1262;continue;case'5':this[_0x262c7f(0x16a)]=AutomationFrameworkState[_0x262c7f(0x169)];continue;}break;}}[a70_0x4f1161(0x159)](){const _0x5b1e04=a70_0x4f1161;return this[_0x5b1e04(0x15d)];}['getFrameworkVersion'](){const _0x485844=a70_0x4f1161;return this[_0x485844(0x15f)];}[a70_0x4f1161(0x16d)](){const _0x36e030=a70_0x4f1161;return this[_0x36e030(0x160)];}['setState'](_0x299e5e){const _0x981e74=a70_0x4f1161;this['lastState']=this[_0x981e74(0x160)],this[_0x981e74(0x160)]=_0x299e5e;}}module[a70_0x4f1161(0x171)]=AutomationFrameworkInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a71_0x125db9=a71_0x1d0f;function a71_0x1d0f(_0x37c9e7,_0x20a7e9){const _0xa5504e=a71_0xa550();return a71_0x1d0f=function(_0x1d0f6a,_0x5419e2){_0x1d0f6a=_0x1d0f6a-0x168;let _0x3067a2=_0xa5504e[_0x1d0f6a];return _0x3067a2;},a71_0x1d0f(_0x37c9e7,_0x20a7e9);}function a71_0xa550(){const _0x22eeec=['setCurrentHookState','126256XUROjE','1758156UOwEhY','split','getLastTestState','lastTestState','418218AjUuRP','VuAwQ','NONE','1|5|0|4|3|7|2|6','getCurrentTestState','exports','testFrameworks','setLastTestState','4390660OfQORK','1aZOMrp','8cQwILz','testFrameworksVersions','./trackedContext','14724490AwYOlF','../../../helpers/classLogger','currentTestState','11848959qLUjZG','setLastHookState','getCreatedAt','currentHookState','createdAt','./trackedInstance','toLocaleString','../state/hookState','3894246qBhUSB','21SsEryO'];a71_0xa550=function(){return _0x22eeec;};return a71_0xa550();}(function(_0x881710,_0x450b34){const _0x1bc4a6=a71_0x1d0f,_0x3f7ac1=_0x881710();while(!![]){try{const _0xa44974=-parseInt(_0x1bc4a6(0x169))/0x1*(parseInt(_0x1bc4a6(0x180))/0x2)+-parseInt(_0x1bc4a6(0x178))/0x3+-parseInt(_0x1bc4a6(0x16a))/0x4*(-parseInt(_0x1bc4a6(0x168))/0x5)+parseInt(_0x1bc4a6(0x17c))/0x6*(parseInt(_0x1bc4a6(0x179))/0x7)+-parseInt(_0x1bc4a6(0x17b))/0x8+parseInt(_0x1bc4a6(0x170))/0x9+-parseInt(_0x1bc4a6(0x16d))/0xa;if(_0xa44974===_0x450b34)break;else _0x3f7ac1['push'](_0x3f7ac1['shift']());}catch(_0x576741){_0x3f7ac1['push'](_0x3f7ac1['shift']());}}}(a71_0xa550,0xe9837));const {createClassLogger}=require(a71_0x125db9(0x16e)),logger=createClassLogger('TrackedInstance'),HookState=require(a71_0x125db9(0x177)),TestFrameworkState=require('../state/testFrameworkState'),TrackedContext=require(a71_0x125db9(0x16c)),TrackedInstance=require(a71_0x125db9(0x175)),now=new Date();class TestFrameworkInstance extends TrackedInstance{constructor(_0x1b87f4,_0x339142,_0xad7e5f,_0x394108,_0x3e4bf7){const _0xc05565=a71_0x125db9,_0x3c5932={};_0x3c5932['VuAwQ']=_0xc05565(0x183);const _0x39be44=_0x3c5932,_0x125184=_0x39be44[_0xc05565(0x181)][_0xc05565(0x17d)]('|');let _0x3c5223=0x0;while(!![]){switch(_0x125184[_0x3c5223++]){case'0':this[_0xc05565(0x16b)]=_0xad7e5f;continue;case'1':super(_0x1b87f4);continue;case'2':this['lastHookState']=HookState[_0xc05565(0x182)];continue;case'3':this[_0xc05565(0x173)]=_0x3e4bf7;continue;case'4':this[_0xc05565(0x16f)]=_0x394108;continue;case'5':this[_0xc05565(0x186)]=_0x339142;continue;case'6':this[_0xc05565(0x174)]=now[_0xc05565(0x176)]();continue;case'7':this[_0xc05565(0x17f)]=TestFrameworkState['NONE'];continue;}break;}}[a71_0x125db9(0x184)](){const _0x5ef49e=a71_0x125db9;return this[_0x5ef49e(0x16f)];}['setCurrentTestState'](_0x4350d1){const _0x2542f1=a71_0x125db9;this[_0x2542f1(0x187)](this['currentTestState']),this[_0x2542f1(0x16f)]=_0x4350d1;}['getCurrentHookState'](){return this['currentHookState'];}[a71_0x125db9(0x17a)](_0x2883c9){const _0x8f1748=a71_0x125db9;this[_0x8f1748(0x171)](this[_0x8f1748(0x173)]),this[_0x8f1748(0x173)]=_0x2883c9;}[a71_0x125db9(0x17e)](){const _0x38ac77=a71_0x125db9;return this[_0x38ac77(0x17f)];}[a71_0x125db9(0x187)](_0x547d96){this['lastTestState']=_0x547d96;}['getLastHookState'](){return this['lastHookState'];}[a71_0x125db9(0x171)](_0x4cfc75){this['lastHookState']=_0x4cfc75;}[a71_0x125db9(0x172)](){const _0x3e7bb8=a71_0x125db9;return this[_0x3e7bb8(0x174)];}}module[a71_0x125db9(0x185)]=TestFrameworkInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a72_0x3642ad=a72_0x203e;(function(_0x21c396,_0x446b2c){const _0x81f462=a72_0x203e,_0x287c41=_0x21c396();while(!![]){try{const _0x357128=-parseInt(_0x81f462(0x99))/0x1+-parseInt(_0x81f462(0x8c))/0x2+-parseInt(_0x81f462(0x97))/0x3+parseInt(_0x81f462(0x8d))/0x4*(parseInt(_0x81f462(0x90))/0x5)+parseInt(_0x81f462(0x96))/0x6+-parseInt(_0x81f462(0x9b))/0x7*(parseInt(_0x81f462(0x9c))/0x8)+parseInt(_0x81f462(0x92))/0x9;if(_0x357128===_0x446b2c)break;else _0x287c41['push'](_0x287c41['shift']());}catch(_0x5e9e9e){_0x287c41['push'](_0x287c41['shift']());}}}(a72_0x135e,0x3c6ec));const {createClassLogger}=require(a72_0x3642ad(0x8f)),logger=createClassLogger(a72_0x3642ad(0x8e));function a72_0x203e(_0x23f213,_0x521161){const _0x135e2c=a72_0x135e();return a72_0x203e=function(_0x203edb,_0x55e82c){_0x203edb=_0x203edb-0x8c;let _0x1a811b=_0x135e2c[_0x203edb];return _0x1a811b;},a72_0x203e(_0x23f213,_0x521161);}function a72_0x135e(){const _0x2721ef=['getProcessId','4703778MdjAHI','getThreadId','getType','type','720642DzphPP','903459auCWrl','threadId','274396lcTPrP','exports','2940lpjUtQ','904cRdafh','processId','110916bDieAF','40tshwvs','TrackedContext','../../../helpers/classLogger','141625kIWMil'];a72_0x135e=function(){return _0x2721ef;};return a72_0x135e();}class TrackedContext{constructor(_0x511cf9,_0xf533b4,_0x574ae4,_0x3335e1){const _0x4a5a15=a72_0x3642ad;this['id']=_0x511cf9,this[_0x4a5a15(0x98)]=_0xf533b4,this[_0x4a5a15(0x9d)]=_0x574ae4,this[_0x4a5a15(0x95)]=_0x3335e1;}[a72_0x3642ad(0x93)](){const _0x55a7d6=a72_0x3642ad;return this[_0x55a7d6(0x98)];}[a72_0x3642ad(0x91)](){return this['processId'];}['getId'](){return this['id'];}[a72_0x3642ad(0x94)](){const _0x35d6f1=a72_0x3642ad;return this[_0x35d6f1(0x95)];}}module[a72_0x3642ad(0x9a)]=TrackedContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a73_0x5e5f(){const _0x5d5e4c=['isBrowserstackAutomationSession','2480ubzcWv','getId','createContext','data','319ermBRM','exports','DCexT','1382zuMoQL','ARlKb','3lnnkDo','145oubmsn','./trackedContext','8tfZVWl','set','25036CEWMJC','forEach','31542YOBhwo','sha256','createHash','19680ftfpHC','context','1423026wvgxTa','worker_threads','keys','crypto','updateMultipleEntries','FWNmg','digest','getData','hex','updateData','792hwzlRk','KEY_IS_BROWSERSTACK_AUTOMATION_SESSION','1189398aWuiHD','pid','get','26377NQRVoe'];a73_0x5e5f=function(){return _0x5d5e4c;};return a73_0x5e5f();}const a73_0x54d707=a73_0x142d;(function(_0x477891,_0x2711d1){const _0xb2403b=a73_0x142d,_0x57a670=_0x477891();while(!![]){try{const _0x26466e=-parseInt(_0xb2403b(0x1fe))/0x1*(parseInt(_0xb2403b(0x201))/0x2)+-parseInt(_0xb2403b(0x203))/0x3*(parseInt(_0xb2403b(0x20d))/0x4)+-parseInt(_0xb2403b(0x204))/0x5*(-parseInt(_0xb2403b(0x20a))/0x6)+parseInt(_0xb2403b(0x1f5))/0x7*(parseInt(_0xb2403b(0x206))/0x8)+-parseInt(_0xb2403b(0x20f))/0x9+parseInt(_0xb2403b(0x1fa))/0xa*(parseInt(_0xb2403b(0x208))/0xb)+-parseInt(_0xb2403b(0x1f3))/0xc*(parseInt(_0xb2403b(0x1f8))/0xd);if(_0x26466e===_0x2711d1)break;else _0x57a670['push'](_0x57a670['shift']());}catch(_0x7177b1){_0x57a670['push'](_0x57a670['shift']());}}}(a73_0x5e5f,0x5a31e));const TrackedContext=require(a73_0x54d707(0x205)),crypto=require(a73_0x54d707(0x212)),{threadId}=require(a73_0x54d707(0x210));function a73_0x142d(_0x8dd7a0,_0x251d88){const _0x5e5f1e=a73_0x5e5f();return a73_0x142d=function(_0x142d78,_0x2a19dd){_0x142d78=_0x142d78-0x1f0;let _0x15b1c1=_0x5e5f1e[_0x142d78];return _0x15b1c1;},a73_0x142d(_0x8dd7a0,_0x251d88);}class TrackedInstance{static [a73_0x54d707(0x1f4)]=a73_0x54d707(0x1f9);constructor(_0x17b80e){const _0xe91db=a73_0x54d707;this[_0xe91db(0x20e)]=_0x17b80e,this[_0xe91db(0x1fd)]=new Map();}['getRef'](){const _0x53888f=a73_0x54d707;return this['context'][_0x53888f(0x1fb)]();}['getContext'](){const _0x16e248=a73_0x54d707;return this[_0x16e248(0x20e)];}['getAllData'](){const _0x55fbe2=a73_0x54d707;return this[_0x55fbe2(0x1fd)];}[a73_0x54d707(0x213)](_0x4c968c){const _0x2d92b4=a73_0x54d707;Object[_0x2d92b4(0x211)](_0x4c968c)[_0x2d92b4(0x209)](_0x1af024=>{this['data']['set'](_0x1af024,_0x4c968c[_0x1af024]);});}['addMultipleEntries'](_0x3b6a34){Object['entries'](_0x3b6a34)['forEach'](([_0x1ed18a,_0x1b920c])=>{const _0x4ee792=a73_0x142d,_0x165855=this[_0x4ee792(0x1fd)][_0x4ee792(0x1f7)](_0x1ed18a)||{},_0x6bd41={..._0x165855,..._0x1b920c},_0x32737b=_0x6bd41;this[_0x4ee792(0x1fd)][_0x4ee792(0x207)](_0x1ed18a,_0x32737b);});}[a73_0x54d707(0x1f0)](_0x241e69){const _0x170cdf=a73_0x54d707;return this['data'][_0x170cdf(0x1f7)](_0x241e69);}[a73_0x54d707(0x1f2)](_0x52ad33,_0x9bae84){const _0x4d14a8=a73_0x54d707;this[_0x4d14a8(0x1fd)][_0x4d14a8(0x207)](_0x52ad33,_0x9bae84);}static[a73_0x54d707(0x1fc)](_0x134d26){const _0x34b187=a73_0x54d707,_0x1247aa={};_0x1247aa[_0x34b187(0x202)]=_0x34b187(0x20b),_0x1247aa['DCexT']=_0x34b187(0x1f1),_0x1247aa[_0x34b187(0x214)]=function(_0x2a1111,_0x3f7f5e){return _0x2a1111||_0x3f7f5e;};const _0x3c1f9c=_0x1247aa;return new TrackedContext(crypto[_0x34b187(0x20c)](_0x3c1f9c['ARlKb'])['update'](_0x134d26)[_0x34b187(0x215)](_0x3c1f9c[_0x34b187(0x200)]),_0x3c1f9c[_0x34b187(0x214)](threadId,0x0),process[_0x34b187(0x1f6)],typeof _0x134d26);}}module[a73_0x54d707(0x1ff)]=TrackedInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x50c9ad=a74_0x432d;(function(_0x17b63e,_0x3b9611){const _0x4ed690=a74_0x432d,_0x31249e=_0x17b63e();while(!![]){try{const _0x8de0d3=parseInt(_0x4ed690(0x88))/0x1*(parseInt(_0x4ed690(0x6c))/0x2)+-parseInt(_0x4ed690(0xb2))/0x3+-parseInt(_0x4ed690(0xbc))/0x4+parseInt(_0x4ed690(0x85))/0x5*(-parseInt(_0x4ed690(0x96))/0x6)+parseInt(_0x4ed690(0x91))/0x7+-parseInt(_0x4ed690(0xa2))/0x8*(-parseInt(_0x4ed690(0x98))/0x9)+-parseInt(_0x4ed690(0x73))/0xa*(-parseInt(_0x4ed690(0x9d))/0xb);if(_0x8de0d3===_0x3b9611)break;else _0x31249e['push'](_0x31249e['shift']());}catch(_0xca3460){_0x31249e['push'](_0x31249e['shift']());}}}(a74_0x1c19,0x8918d));const BaseModule=require(a74_0x50c9ad(0xb5)),{createClassLogger}=require(a74_0x50c9ad(0x95)),CLIUtils=require('../cliUtils'),AutomationFramework=require(a74_0x50c9ad(0x7b)),AutomationFrameworkState=require('../state/automationFrameworkState'),HookState=require(a74_0x50c9ad(0xba)),GrpcClient=require('../grpcClient'),scripts=require('../../../helpers/accessibility-automation/scripts'),logger=createClassLogger('TrackedInstance'),PerformanceTester=require('../../../helpers/performance/performance-tester.js'),{EVENTS}=require(a74_0x50c9ad(0xac));class AccessibilityModule extends BaseModule{static [a74_0x50c9ad(0xbe)]=AccessibilityModule[a74_0x50c9ad(0x99)];constructor(_0x538dbd){const _0x301c1c=a74_0x50c9ad,_0x1dd828={};_0x1dd828[_0x301c1c(0xab)]='8|3|7|10|2|0|1|6|5|4|9';const _0x10feb1=_0x1dd828,_0x4b4842=_0x10feb1[_0x301c1c(0xab)][_0x301c1c(0x82)]('|');let _0x569af3=0x0;while(!![]){switch(_0x4b4842[_0x569af3++]){case'0':this[_0x301c1c(0x8c)]=_0x538dbd['toObject']();continue;case'1':this[_0x301c1c(0xaa)]=new Map();continue;case'2':this[_0x301c1c(0xa4)]=!![];continue;case'3':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x301c1c(0x7e)],HookState[_0x301c1c(0x80)],this[_0x301c1c(0x9a)][_0x301c1c(0x7f)](this));continue;case'4':this[_0x301c1c(0xa8)]=[];continue;case'5':this[_0x301c1c(0x6d)]=![];continue;case'6':this['LOG_DISABLED_SHOWN']=new Map();continue;case'7':AutomationFramework[_0x301c1c(0x74)](AutomationFrameworkState[_0x301c1c(0x9b)],HookState['PRE'],this[_0x301c1c(0x94)]['bind'](this));continue;case'8':super();continue;case'9':this[_0x301c1c(0xa5)](_0x538dbd[_0x301c1c(0xa3)]()['getCapabilitiesList']());continue;case'10':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x301c1c(0xaf)],HookState[_0x301c1c(0x80)],this['onAfterTest'][_0x301c1c(0x7f)](this));continue;}break;}}[a74_0x50c9ad(0xa4)](){const _0x120ed3=a74_0x50c9ad;return this[_0x120ed3(0xa4)];}['getModuleName'](){const _0x5ed707=a74_0x50c9ad;return AccessibilityModule[_0x5ed707(0xbe)];}[a74_0x50c9ad(0xa6)](){const _0x591dfe=a74_0x50c9ad;return this[_0x591dfe(0xaa)][_0x591dfe(0xb9)](CLIUtils[_0x591dfe(0x79)](),![]);}[a74_0x50c9ad(0x90)](){const _0x2c4f8d=a74_0x50c9ad;return this[_0x2c4f8d(0x75)][_0x2c4f8d(0xb9)](CLIUtils['getCurrentInstanceName'](),![]);}[a74_0x50c9ad(0x6b)](_0x2045c7){const _0x432531=a74_0x50c9ad;this[_0x432531(0x75)]['put'](CLIUtils['getCurrentInstanceName'](),_0x2045c7);}async[a74_0x50c9ad(0x94)](_0x42e411){const _0x4cd0ed=a74_0x50c9ad;try{PerformanceTester[_0x4cd0ed(0xb7)](EVENTS[_0x4cd0ed(0x7d)]);const _0x1c099b=await GrpcClient[_0x4cd0ed(0x8f)]()[_0x4cd0ed(0xb6)](_0x42e411);_0x1c099b&&_0x1c099b['getAccessibility']()&&_0x1c099b[_0x4cd0ed(0xb1)]()[_0x4cd0ed(0x7a)]()&&(global['accessibilityPlatform']=!![],process[_0x4cd0ed(0xb3)][_0x4cd0ed(0x7c)]=!![],this[_0x4cd0ed(0x76)](_0x1c099b,_0x42e411)),PerformanceTester[_0x4cd0ed(0x9c)](EVENTS[_0x4cd0ed(0x7d)]);}catch(_0x37e16d){PerformanceTester['end'](EVENTS['SDK_ACCESSIBILITY_CONFIG'],![],_0x37e16d[_0x4cd0ed(0xa1)]),logger[_0x4cd0ed(0xad)]('Error\x20while\x20setting\x20accessibility\x20config:\x20'+(_0x37e16d[_0x4cd0ed(0x92)]||_0x37e16d['message']));}}[a74_0x50c9ad(0x81)](){const _0x57871a=a74_0x50c9ad;return this[_0x57871a(0xa8)][_0x57871a(0x93)](_0x1be2ae=>_0x1be2ae[_0x57871a(0xa0)]()===_0x57871a(0x78))?.['getValue']()||'';}async[a74_0x50c9ad(0x76)](_0x57cc21,_0x17901f){const _0x4b9495=a74_0x50c9ad,_0x111e75=_0x57cc21[_0x4b9495(0xb1)]()[_0x4b9495(0xa3)](),_0x541222=_0x111e75['getScriptsList'](),_0x25f948=_0x111e75['getCommandsToWrap']()?.[_0x4b9495(0x86)]();scripts[_0x4b9495(0x97)](_0x541222,_0x25f948),scripts[_0x4b9495(0xb0)]();const _0x2590e8=_0x111e75[_0x4b9495(0x6f)]();this[_0x4b9495(0xa8)]=_0x111e75[_0x4b9495(0x6f)](),await this[_0x4b9495(0xa5)](_0x2590e8,_0x17901f['launchCaps']);}async[a74_0x50c9ad(0xa5)](_0x1fed75,_0x1435be={}){const _0x1ae9f9=a74_0x50c9ad,_0x27da10={};_0x27da10['wspWS']=function(_0x4e7b62,_0x3bd978){return _0x4e7b62===_0x3bd978;},_0x27da10[_0x1ae9f9(0x9f)]=_0x1ae9f9(0x9e),_0x27da10['HfXXr']='browserstack.accessibilityOptions.authToken',_0x27da10['lXves']=_0x1ae9f9(0x8a),_0x27da10[_0x1ae9f9(0xae)]=_0x1ae9f9(0x8e),_0x27da10[_0x1ae9f9(0xa9)]=function(_0x3bc830,_0x71f80f){return _0x3bc830===_0x71f80f;},_0x27da10[_0x1ae9f9(0x70)]='scannerVersion',_0x27da10[_0x1ae9f9(0x6e)]=_0x1ae9f9(0x83),_0x27da10[_0x1ae9f9(0xbb)]=function(_0x51cef9,_0x24df7e){return _0x51cef9===_0x24df7e;},_0x27da10[_0x1ae9f9(0x8b)]=_0x1ae9f9(0x8d),_0x27da10[_0x1ae9f9(0x72)]=_0x1ae9f9(0x87);const _0x422916=_0x27da10;for(const _0x36d937 of _0x1fed75){logger[_0x1ae9f9(0x77)](_0x1ae9f9(0xb4)+_0x36d937[_0x1ae9f9(0xa0)]()+'\x20value='+_0x36d937[_0x1ae9f9(0x84)]());if(_0x422916[_0x1ae9f9(0xbd)](_0x36d937['getName'](),_0x422916[_0x1ae9f9(0x9f)]))process[_0x1ae9f9(0xb3)]['BS_A11Y_JWT']=_0x36d937[_0x1ae9f9(0x84)](),_0x1435be[_0x422916['HfXXr']]=_0x36d937[_0x1ae9f9(0x84)]();else{if(_0x422916[_0x1ae9f9(0xbd)](_0x36d937[_0x1ae9f9(0xa0)](),_0x422916['lXves']))_0x1435be[_0x422916[_0x1ae9f9(0xae)]]=_0x36d937[_0x1ae9f9(0x84)]();else{if(_0x422916[_0x1ae9f9(0xa9)](_0x36d937[_0x1ae9f9(0xa0)](),_0x422916['Ffryp']))_0x1435be[_0x422916['FKPmR']]=_0x36d937[_0x1ae9f9(0x84)]();else _0x422916[_0x1ae9f9(0xbb)](_0x36d937[_0x1ae9f9(0xa0)](),_0x422916[_0x1ae9f9(0x8b)])&&(_0x1435be[_0x422916['fEXLE']]=_0x36d937[_0x1ae9f9(0x84)]());}}}}[a74_0x50c9ad(0x71)](_0x3d89c8){const _0x2e4805=a74_0x50c9ad;logger[_0x2e4805(0x77)](_0x2e4805(0x89)+_0x3d89c8);}[a74_0x50c9ad(0x9a)](_0x3a1745){const _0x9970c8=a74_0x50c9ad;logger[_0x9970c8(0x77)](_0x9970c8(0xa7)+_0x3a1745);}};function a74_0x432d(_0x429097,_0x3ff469){const _0x1c198e=a74_0x1c19();return a74_0x432d=function(_0x432df4,_0x13311f){_0x432df4=_0x432df4-0x6b;let _0x1e0052=_0x1c198e[_0x432df4];return _0x1e0052;},a74_0x432d(_0x429097,_0x3ff469);}function a74_0x1c19(){const _0x5d11f2=['getGoogleChromeOptions','split','browserstack.accessibilityOptions.scannerVersion','getValue','205895uPNPsc','getCommandsList','browserstack.accessibilityOptions.scannerProcessingTimeout','1NzhfDn','onAfterTest:\x20event=','wcagVersion','WOfqk','accessibilityConfig','scannerProcessingTimeout','browserstack.accessibilityOptions.wcagVersion','getInstance','getLogDisabledShown','4583131dUPVBn','stack','find','onBeforeTest','../../../helpers/classLogger','42GPvoIL','parseFromProto','5318847qPspMf','name','onBeforeExecute','CREATE','end','4673416qTdVRP','accessibilityToken','EwfqJ','getName','message','8lwUCqU','getOptions','isEnabled','setAccessibilityToken','getCurrentAccessibilityStatus','onBeforeExecute:\x20event=','capabilities','uSdZm','accessibility','ssucP','../../../helpers/performance/constants.js','error','xvmRM','QUIT','toJson','getAccessibility','1752027ovOpNF','env','name:\x20','./baseModule','getAccessibilityConfig','start','exports','get','../state/hookState','kcFRr','3257008jrACZb','wspWS','MODULE_NAME','setLogDisabledShown','1154982FCMLeO','isAppAccessibility','FKPmR','getCapabilitiesList','Ffryp','onAfterTest','fEXLE','10CdTjAF','registerObserver','LOG_DISABLED_SHOWN','setAccessibilityConfig','info','goog:chromeOptions','getCurrentInstanceName','getSuccess','../framework/automationFramework','BROWSERSTACK_TEST_ACCESSIBILITY_YML','SDK_ACCESSIBILITY_CONFIG','EXECUTE','bind','PRE'];a74_0x1c19=function(){return _0x5d11f2;};return a74_0x1c19();}module[a74_0x50c9ad(0xb8)]=AccessibilityModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a75_0xa4b7c4=a75_0x5ab4;(function(_0x16ba5e,_0x2b6e4a){const _0x531707=a75_0x5ab4,_0x38b8d2=_0x16ba5e();while(!![]){try{const _0x18802=-parseInt(_0x531707(0x104))/0x1+-parseInt(_0x531707(0xf2))/0x2+parseInt(_0x531707(0xfd))/0x3*(-parseInt(_0x531707(0xf8))/0x4)+parseInt(_0x531707(0xf0))/0x5*(-parseInt(_0x531707(0xfa))/0x6)+parseInt(_0x531707(0xf5))/0x7+-parseInt(_0x531707(0x101))/0x8*(parseInt(_0x531707(0xfc))/0x9)+parseInt(_0x531707(0xfe))/0xa;if(_0x18802===_0x2b6e4a)break;else _0x38b8d2['push'](_0x38b8d2['shift']());}catch(_0x471f35){_0x38b8d2['push'](_0x38b8d2['shift']());}}}(a75_0x345a,0xded51));const logger=require('../../../helpers/logger.js')[a75_0xa4b7c4(0x102)];function a75_0x5ab4(_0x4a6116,_0x5d9f5b){const _0x345a76=a75_0x345a();return a75_0x5ab4=function(_0x5ab48d,_0x23cf1e){_0x5ab48d=_0x5ab48d-0xec;let _0x496ef2=_0x345a76[_0x5ab48d];return _0x496ef2;},a75_0x5ab4(_0x4a6116,_0x5d9f5b);}class BaseModule{constructor(){const _0x1a12b9=a75_0xa4b7c4,_0x8d0ef8={};_0x8d0ef8[_0x1a12b9(0x100)]='3|0|1|4|2',_0x8d0ef8[_0x1a12b9(0xef)]=_0x1a12b9(0xed);const _0x2e59a2=_0x8d0ef8,_0xbb21f7=_0x2e59a2[_0x1a12b9(0x100)][_0x1a12b9(0xf9)]('|');let _0x469086=0x0;while(!![]){switch(_0xbb21f7[_0x469086++]){case'0':this[_0x1a12b9(0xf4)]=null;continue;case'1':this['platformIndex']=0x0;continue;case'2':this['client']=null;continue;case'3':this[_0x1a12b9(0xf3)]=_0x2e59a2['pmmfE'];continue;case'4':this[_0x1a12b9(0xec)]={};continue;}break;}}[a75_0xa4b7c4(0xf7)](){const _0x238b2d=a75_0xa4b7c4,_0x18454f={};_0x18454f[_0x238b2d(0xee)]=_0x238b2d(0xfb);const _0x392d7e=_0x18454f;if(!this['binSessionId'])throw new Error(_0x392d7e['ZKHDo']);}[a75_0xa4b7c4(0x107)](){const _0x287511=a75_0xa4b7c4;return this[_0x287511(0xf3)];}['configure'](_0x428c53,_0x417446,_0x3f677e,_0x3b5737={}){const _0x56ff0b=a75_0xa4b7c4,_0x2b71e7={};_0x2b71e7[_0x56ff0b(0xf1)]=_0x56ff0b(0xf6);const _0x39ac2a=_0x2b71e7,_0x347644=_0x39ac2a['jqFsF'][_0x56ff0b(0xf9)]('|');let _0x14240e=0x0;while(!![]){switch(_0x347644[_0x14240e++]){case'0':this['binSessionId']=_0x428c53;continue;case'1':logger['debug'](_0x56ff0b(0x106)+this[_0x56ff0b(0x107)]()+_0x56ff0b(0x105)+_0x428c53+',\x20platformIndex='+_0x417446);continue;case'2':this[_0x56ff0b(0x103)]=_0x3f677e;continue;case'3':this['platformIndex']=_0x417446;continue;case'4':this[_0x56ff0b(0xec)]=_0x3b5737;continue;}break;}}}function a75_0x345a(){const _0x53dcae=['2591113VBZvAS','0|3|2|4|1','ensureBinSession','4aogFZO','split','6892338fYAgDL','Missing\x20binSessionId','1089awMMak','2930961EdcuzF','54023290jhwtkU','exports','QAFBt','74864zyzKmf','winstonLogger','client','667871laHela','\x20with\x20binSessionId=','Configured\x20module\x20','getModuleName','config','BaseModule','ZKHDo','pmmfE','5OOanvT','jqFsF','1867736OJMFPH','name','binSessionId'];a75_0x345a=function(){return _0x53dcae;};return a75_0x345a();}module[a75_0xa4b7c4(0xff)]=BaseModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a76_0x15dc(){const _0x29eee9=['mGVvD','onBeforeTest:\x20page\x20is\x20not\x20defined','observabilityConfig','exports','359256VUmcZh','getModuleName','info','page','MODULE_NAME','309238qgEjTv','14VnfWEO','\x20sync\x20done','390hRVNFb','TEST_REPORTING_ANALYTICS','SYNC','3515874jvlMeY','POST','../state/hookState.js','bind','JiuBg','logger','../../../helpers/performance/performance-tester.js','pNgrw','debug','2rDlmYq','Omspt','bpOrp','onBeforeTest','../../../helpers/performance/constants.js','825744FAPqre','onBeforeTest:\x20','2229944dtFfSI','../../../helpers/helper.js','ojZmn','ObservabilitySync:','now','840933OYxwOA','end','ObservabilityModule','5ePdqbw','name','../state/automationFrameworkState.js','../../utils/constants.js','99924nZmtuD'];a76_0x15dc=function(){return _0x29eee9;};return a76_0x15dc();}function a76_0x3cda(_0x192908,_0x1360a2){const _0x15dc51=a76_0x15dc();return a76_0x3cda=function(_0x3cda97,_0x30511b){_0x3cda97=_0x3cda97-0xa8;let _0x36d4ad=_0x15dc51[_0x3cda97];return _0x36d4ad;},a76_0x3cda(_0x192908,_0x1360a2);}const a76_0x87880e=a76_0x3cda;(function(_0x2207bb,_0x1ef938){const _0x5958bd=a76_0x3cda,_0x49a112=_0x2207bb();while(!![]){try{const _0x6cfad4=parseInt(_0x5958bd(0xc5))/0x1*(-parseInt(_0x5958bd(0xa8))/0x2)+parseInt(_0x5958bd(0xad))/0x3+-parseInt(_0x5958bd(0xaf))/0x4+parseInt(_0x5958bd(0xb7))/0x5*(parseInt(_0x5958bd(0xcb))/0x6)+parseInt(_0x5958bd(0xc6))/0x7*(-parseInt(_0x5958bd(0xc0))/0x8)+parseInt(_0x5958bd(0xb4))/0x9+-parseInt(_0x5958bd(0xc8))/0xa*(-parseInt(_0x5958bd(0xbb))/0xb);if(_0x6cfad4===_0x1ef938)break;else _0x49a112['push'](_0x49a112['shift']());}catch(_0xaaac93){_0x49a112['push'](_0x49a112['shift']());}}}(a76_0x15dc,0x56092));const BaseModule=require('./baseModule'),{createClassLogger}=require('../../../helpers/classLogger.js'),AutomationFramework=require('../framework/automationFramework.js'),AutomationFrameworkState=require(a76_0x87880e(0xb9)),HookState=require(a76_0x87880e(0xcd)),{playwrightAnnotate}=require(a76_0x87880e(0xb0)),PerformanceTester=require(a76_0x87880e(0xd1)),{O11y_EVENTS}=require(a76_0x87880e(0xac)),constants=require(a76_0x87880e(0xba));class ObservabilityModule extends BaseModule{[a76_0x87880e(0xd0)]=createClassLogger(a76_0x87880e(0xb6));constructor(_0x49ccd8){const _0x3dc17c=a76_0x87880e,_0x3c7b40={};_0x3c7b40[_0x3dc17c(0xd2)]=_0x3dc17c(0xb6);const _0x147ae2=_0x3c7b40;super(),this[_0x3dc17c(0xb8)]=_0x147ae2[_0x3dc17c(0xd2)],this[_0x3dc17c(0xbe)]=_0x49ccd8,AutomationFramework['registerObserver'](AutomationFrameworkState['CREATE'],HookState[_0x3dc17c(0xcc)],this[_0x3dc17c(0xab)][_0x3dc17c(0xce)](this));}[a76_0x87880e(0xc1)](){const _0x2c91e5=a76_0x87880e;return ObservabilityModule[_0x2c91e5(0xc4)];}async[a76_0x87880e(0xab)](_0x5d44bf){const _0x54e5ea=a76_0x87880e,_0x3ea47a={'Omspt':function(_0x3b1682,_0x1eedda){return _0x3b1682+_0x1eedda;},'bpOrp':_0x54e5ea(0xb2),'ojZmn':function(_0x4448c4,_0x1ff641,_0x30b145,_0x19d1fb){return _0x4448c4(_0x1ff641,_0x30b145,_0x19d1fb);},'mGVvD':_0x54e5ea(0xd3),'JiuBg':_0x54e5ea(0xbd)};if(_0x5d44bf[_0x54e5ea(0xc3)]){const _0xed74e0=_0x5d44bf[_0x54e5ea(0xc3)],_0x37b21b=Date[_0x54e5ea(0xb3)](),_0x40abd2=_0x3ea47a[_0x54e5ea(0xa9)](_0x3ea47a[_0x54e5ea(0xaa)],_0x37b21b);PerformanceTester['start'](O11y_EVENTS['SYNC']),await _0x3ea47a[_0x54e5ea(0xb1)](playwrightAnnotate,_0xed74e0,_0x40abd2,_0x3ea47a[_0x54e5ea(0xbc)]),PerformanceTester[_0x54e5ea(0xb5)](O11y_EVENTS[_0x54e5ea(0xca)]),this[_0x54e5ea(0xd0)][_0x54e5ea(0xc2)](_0x54e5ea(0xae)+constants[_0x54e5ea(0xc9)]+_0x54e5ea(0xc7));}else this[_0x54e5ea(0xd0)][_0x54e5ea(0xd3)](_0x3ea47a[_0x54e5ea(0xcf)]);}}ObservabilityModule[a76_0x87880e(0xc4)]=a76_0x87880e(0xb6),module[a76_0x87880e(0xbf)]=ObservabilityModule;
|