browserstack-node-sdk 1.42.8 → 1.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/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/accessibilityRetryHelper.js +1 -0
- 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
|
-
function a67_0x2bf4(){const _0x4a4d30=['KEY_TEST_FRAMEWORK_NAME','KEY_HOOK_NAME','map','NaxsT','FhMxD','EprGR','\x20instance=','108QQpwQg','size','WJkQt','\x20hookState=','\x20batch\x20','getTestIdentifierFromTestInfo','TEST_ATTACHMENT','KEY_TEST_RESULT_AT','get','runHooks','exports','KEY_TEST_RETRY_OF','filter','CwjIm','trackHookEvent','470816lJNdtv','TEST_SCREENSHOT','fBBjL','steps','KEY_HOOK_LAST_FINISHED','oRxBR','annotations','../../../helpers/test-observability/utils','./testFramework','../instances/trackedInstance.js','FNOWd','ceil','err','111CorVVu','24630900jRAWZi','jgiNx','pqfBF','POST','field_type','../../../helpers/helper.js','Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','XeXmn','KEY_HOOK_ID','zQVLo','getTraceFilePaths','attachments','getAllData','80592eWPIre','getTestDetails','../../../../src/helpers/helper','RGfYN','toISOString','setTestDetails','description','KEY_TEST_NAME','mZjMt','getTime','qoPDB','values','2590825kSRYal','../state/hookState.js','stack','Hook\x20List\x20in\x20Post\x20','parsePlaywrightTest','trackPlaywrightInstance','pBRRW','HSHuc','KCNmB','KGflQ','DYDcN','KEY_TEST_FRAMEWORK_VERSION','twpig','3978163FJwnBx','getRef','KEY_TEST_UUID','wkgYH','XcHXQ','addMultipleEntries','sendLogCreatedEvent','\x20target=','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','KEY_TEST_ENDED_AT','Upmfc','basename','inspect','test','wnnEx','KEY_TEST_LOGS','DEFAULT_HOOK_RESULT','KEY_TEST_FAILURE','errors','Expected\x20to\x20fail,\x20but\x20passed.','Error\x20processing\x20direct\x20trace\x20file\x20','hook','forEach','\x20\x20and\x20args\x20=\x20','sendLogCreatedEvent:\x20testId=','ggBwn','FlJqp','KJZiz','length','matchHookRegex','Qtlsa','../grpcClient','zIEWs','duration','setTrackedInstance','expectedStatus','PRE','startTime',',\x20testFrameworkState=','getTestFrameworks','TtmpD','split','KEY_HOOK_LAST_STARTED','../TestInfo.js','4911996MditCz','KEY_TEST_FAILURE_TYPE','RyopN','instance','../../utils/constants','results','info','getInstance','concat','OjsZT','INIT_TEST','MxaLF','NIdOK','message','ESohn','\x20testHookState=','TEST','679652JoFTUv','KEY_TEST_LOCATION','filePath','failed','\x20instanceId=','parsePlaywrightTestResult','step','NONE','yDShx','KEY_HOOKS_STARTED','push','format','gbbXc','slice','statSync','dcbjc','oOooL','getTestFrameworksVersions','passed','DEFAULT_TEST_RESULT','lRdiR','Error\x20processing\x20trace\x20file\x20','KEY_HOOKS_FINISHED','timedOut','testUId','error','isArray','createContext','\x20payload=','NoFDF','\x20from\x20TestDetails:\x20','result','status','KEY_HOOK_RESULT','KEY_EVENT_ENDED_AT','toString','trackPlaywrightInstance:\x20created\x20instance\x20for\x20target=','KEY_LOGS','trim','No\x20reason\x20provided','GnLWN','multi_dropdown','debug','Odwyv','KEY_TEST_STARTED_AT','../state/testFrameworkState.js','util','Error\x20in\x20sendLogCreatedEvent:\x20','HtxHv','\x20result=','MJQfq','DFCLp','trackEvent','PlaywrightTestFramework','KEY_TEST_FILE_PATH','kbZeT','VgSpz','OCFbn','file_name','SDrTE','KEY_TEST_CODE','KEY_TEST_RESULT','title','aYGLD','trackEvent\x20loading\x20testResults\x20for\x20testId:\x20','KEY_CUSTOM_TAGS','KEY_TEST_ATTACHMENTS','KEY_TEST_FAILURE_REASON','GmthD','sendLogCreatedEvent\x20for\x20testId:\x20','./constants/testFrameworkConstants.js','KEY_AUTOMATE_SESSION_NAME','some','uuid','WZaRi','logCreatedEvent',',\x20state=','\x20and\x20args\x20=\x20','KEY_TEST_RERUN_NAME','resolveInstance','getTrackedInstance','tUJOa','parsePlaywrightTestResult:\x20testId=','pop','TIDXe','retry','2wqzYNn','\x20response='];a67_0x2bf4=function(){return _0x4a4d30;};return a67_0x2bf4();}const a67_0x13d367=a67_0x5b47;(function(_0x1587b0,_0x2a236d){const _0x3a83d1=a67_0x5b47,_0x56fb9e=_0x1587b0();while(!![]){try{const _0x59782d=-parseInt(_0x3a83d1(0x172))/0x1*(-parseInt(_0x3a83d1(0x1c8))/0x2)+-parseInt(_0x3a83d1(0x10e))/0x3*(-parseInt(_0x3a83d1(0x11c))/0x4)+parseInt(_0x3a83d1(0x128))/0x5+parseInt(_0x3a83d1(0x161))/0x6+-parseInt(_0x3a83d1(0x135))/0x7+-parseInt(_0x3a83d1(0x1e0))/0x8*(-parseInt(_0x3a83d1(0x1d1))/0x9)+-parseInt(_0x3a83d1(0x10f))/0xa;if(_0x59782d===_0x2a236d)break;else _0x56fb9e['push'](_0x56fb9e['shift']());}catch(_0x617d31){_0x56fb9e['push'](_0x56fb9e['shift']());}}}(a67_0x2bf4,0x6aa30));function a67_0x5b47(_0x18fa50,_0x358375){const _0x2bf4d3=a67_0x2bf4();return a67_0x5b47=function(_0x5b4737,_0x134968){_0x5b4737=_0x5b4737-0x103;let _0x3b35d9=_0x2bf4d3[_0x5b4737];return _0x3b35d9;},a67_0x5b47(_0x18fa50,_0x358375);}const TestFramework=require(a67_0x13d367(0x109)),TestFrameworkState=require(a67_0x13d367(0x19f)),HookState=require(a67_0x13d367(0x129)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a67_0x13d367(0x10a)),TestFrameworkConstants=require(a67_0x13d367(0x1b8)),logger=createClassLogger(a67_0x13d367(0x1a7)),{v4:uuidv4}=require(a67_0x13d367(0x1bb)),util=require(a67_0x13d367(0x1a0)),{getPlaywrightSessionName,getPlaywrightTestFilePath,getPlaywrightTestId,getPlaywrightTestTitle,getPlaywrightTestLocation,getPlaywrightTestTags,getPlaywrightTestCode,getPlaywrightTestScope,getPlaywrightTestScopes,getStepsAndLogs,getScreenshots,getVideos,getPlaywrightCustomRerunParam,getMediaArtifactsLogs,getManualUploadLogs,updatePayloadForTraceLogs}=require(a67_0x13d367(0x114)),TestInfo=require(a67_0x13d367(0x160)),GrpcClient=require(a67_0x13d367(0x154)),{removeAnsiColors,getFailureType,failureData}=require(a67_0x13d367(0x108)),{getFailureData,getTestTags,getTestRunIdentifier}=require('../../playwright/reporter/pwUtils'),{findNestedKey,sendTraceZip,validateFilePath}=require('../../playwright/reporter/pwUtils'),path=require('path'),fs=require('fs'),helper=require(a67_0x13d367(0x11e)),{PLAYWRIGHT_TRACE_LOGS}=require(a67_0x13d367(0x165));class PlaywrightTestFramework extends TestFramework{constructor(_0x5c6c35,_0x1e4906,_0x26f231){super(_0x5c6c35,_0x1e4906,_0x26f231);}async[a67_0x13d367(0x1a6)](_0x3f99a9,_0x1c2537,_0x1f1ec3={}){const _0x77cf39=a67_0x13d367,_0x486273={'VgSpz':function(_0x27f506,_0x2e27c7){return _0x27f506===_0x2e27c7;},'TIDXe':function(_0x18359c,_0x469502){return _0x18359c===_0x469502;},'eCOfN':function(_0x4fc14d,_0x59fa41,_0x17ed65){return _0x4fc14d(_0x59fa41,_0x17ed65);},'rbjii':_0x77cf39(0x142),'MJQfq':'trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s'};super[_0x77cf39(0x1a6)](_0x3f99a9,_0x1c2537,_0x1f1ec3);if(_0x486273[_0x77cf39(0x1aa)](_0x3f99a9,TestFrameworkState[_0x77cf39(0x1e1)])){const _0x4f6884=TestInfo[_0x77cf39(0x1d6)](_0x1f1ec3['test'],_0x1f1ec3['test'][_0x77cf39(0x1c7)]);TestInfo['setTestDetails'](_0x4f6884,_0x1f1ec3[_0x77cf39(0x191)],!![]);}const _0x410922=this[_0x77cf39(0x1c1)](_0x3f99a9,_0x1c2537,_0x1f1ec3);if(!_0x410922)return;logger[_0x77cf39(0x19c)]('trackEvent:\x20found\x20instance,\x20testFrameworkState='+_0x3f99a9+_0x77cf39(0x1d4)+_0x1c2537+_0x77cf39(0x176)+_0x410922['getRef']());try{if(_0x486273['VgSpz'](_0x1c2537,HookState[_0x77cf39(0x159)])&&_0x486273[_0x77cf39(0x1c6)](_0x3f99a9,TestFrameworkState['TEST'])){const _0x3b6489=_0x1f1ec3[_0x77cf39(0x142)];logger['debug']('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x3b6489['id']+'}');const _0x43c564=TestInfo['getTestUUID'](_0x486273['eCOfN'](getTestRunIdentifier,_0x3b6489,_0x1f1ec3[_0x77cf39(0x191)][_0x77cf39(0x1c7)]));_0x410922[_0x77cf39(0x13a)](this[_0x77cf39(0x12c)](_0x43c564,_0x3b6489,_0x1f1ec3[_0x77cf39(0x191)])),logger[_0x77cf39(0x19c)](_0x77cf39(0x13d)+_0x3b6489['id']+_0x77cf39(0x15b)+_0x3f99a9+_0x77cf39(0x170)+_0x1c2537+_0x77cf39(0x1d0)+_0x410922[_0x77cf39(0x136)]());}if(_0x486273[_0x77cf39(0x1aa)](_0x1c2537,HookState[_0x77cf39(0x112)])&&_0x486273[_0x77cf39(0x1c6)](_0x3f99a9,TestFrameworkState[_0x77cf39(0x171)])){const _0x561e4c=_0x1f1ec3[_0x77cf39(0x142)],_0x5c2987=_0x1f1ec3[_0x77cf39(0x191)];logger[_0x77cf39(0x19c)](_0x77cf39(0x1b2)+_0x561e4c['id']),_0x410922['addMultipleEntries'](this['parsePlaywrightTestResult'](_0x561e4c['id'],_0x5c2987,_0x561e4c)),await this[_0x77cf39(0x13b)](_0x410922,_0x3f99a9,_0x1c2537,_0x486273['rbjii'],_0x1f1ec3);}if(CLIUtils[_0x77cf39(0x152)](_0x3f99a9['toString']()[_0x77cf39(0x15e)]('.')[0x1])){const _0x14ebea=await this[_0x77cf39(0x1df)](_0x410922,_0x3f99a9,_0x1c2537,_0x1f1ec3);_0x410922[_0x77cf39(0x13a)](_0x14ebea);}}catch(_0x181ffd){logger[_0x77cf39(0x18b)](util[_0x77cf39(0x17d)](_0x486273[_0x77cf39(0x1a4)],_0x3f99a9,_0x1c2537,_0x1f1ec3[_0x77cf39(0x151)],_0x181ffd));}_0x1f1ec3[_0x77cf39(0x164)]=_0x410922,await this[_0x77cf39(0x1da)](_0x410922,_0x3f99a9,_0x1c2537,_0x1f1ec3);}[a67_0x13d367(0x1c1)](_0x132a66,_0x1c1d93,_0x8ac572={}){const _0x301914=a67_0x13d367,_0x469fb9={};_0x469fb9['UPnuq']=function(_0x55c434,_0x40b16c){return _0x55c434===_0x40b16c;},_0x469fb9[_0x301914(0x1a9)]=function(_0x4b89de,_0x5adceb){return _0x4b89de===_0x5adceb;};const _0x4a7b05=_0x469fb9;let _0x3ef4ed=null;return(_0x4a7b05['UPnuq'](_0x132a66,TestFrameworkState[_0x301914(0x16b)])||_0x4a7b05[_0x301914(0x1a9)](_0x132a66,TestFrameworkState[_0x301914(0x179)]))&&this[_0x301914(0x12d)](_0x132a66,_0x8ac572),_0x3ef4ed=TestFramework[_0x301914(0x1c2)](),_0x3ef4ed;}[a67_0x13d367(0x12d)](_0xfcee11,_0x20deb3){const _0x5c7962=a67_0x13d367,_0x3414a4=CLIUtils['getCurrentInstanceName'](),_0x2be1cb=TrackedInstance[_0x5c7962(0x18d)](_0x3414a4);let _0x241610=null;logger[_0x5c7962(0x167)](_0x5c7962(0x196)+_0x3414a4+_0x5c7962(0x1be)+_0xfcee11),_0x241610=new TestFrameworkInstance(_0x2be1cb,this[_0x5c7962(0x15c)](),this[_0x5c7962(0x183)](),_0xfcee11,HookState[_0x5c7962(0x179)]),TestFramework[_0x5c7962(0x157)](_0x2be1cb,_0x241610),logger[_0x5c7962(0x167)]('trackPlaywrightInstance:\x20saved\x20instance\x20contextId='+_0x2be1cb['getId']()+_0x5c7962(0x13c)+_0x3414a4);}[a67_0x13d367(0x12c)](_0x2d5dc8,_0x275efa,_0x22197e){const _0x5b50be=a67_0x13d367,_0x30a0ce={'fBBjL':function(_0x4e8143,_0xb56900){return _0x4e8143(_0xb56900);},'XcHXQ':function(_0x349447,_0x409b74){return _0x349447(_0x409b74);},'qoPDB':function(_0x21e268,_0x446737,_0x4821b4){return _0x21e268(_0x446737,_0x4821b4);}},_0x13ec3f=_0x30a0ce['fBBjL'](getPlaywrightTestId,_0x275efa),_0x214579=_0x30a0ce[_0x5b50be(0x139)](getPlaywrightTestTitle,_0x275efa),_0x28bcda=_0x30a0ce[_0x5b50be(0x103)](getTestTags,_0x275efa),_0xfd55c9=_0x30a0ce[_0x5b50be(0x103)](getPlaywrightTestCode,_0x275efa),_0x4048e0=_0x30a0ce[_0x5b50be(0x103)](getPlaywrightTestFilePath,_0x275efa),_0x476274=_0x4048e0+':'+_0x30a0ce[_0x5b50be(0x139)](getPlaywrightTestLocation,_0x275efa),_0x54d575=_0x30a0ce[_0x5b50be(0x103)](getPlaywrightTestScope,_0x275efa),_0x37b4bb=_0x30a0ce[_0x5b50be(0x139)](getPlaywrightTestScopes,_0x275efa),_0x3e7c0a=_0x30a0ce[_0x5b50be(0x139)](getPlaywrightSessionName,_0x275efa),_0x1f86de=this[_0x5b50be(0x15c)]()[0x0],_0x9c09d5=_0x30a0ce[_0x5b50be(0x126)](getTestRunIdentifier,_0x275efa,_0x22197e[_0x5b50be(0x1c7)]),_0x312ca8={[TestFrameworkConstants[_0x5b50be(0x1ca)]]:_0x1f86de,[TestFrameworkConstants[_0x5b50be(0x133)]]:this[_0x5b50be(0x183)]()[_0x1f86de],[TestFrameworkConstants[_0x5b50be(0x144)]]:[],[TestFrameworkConstants[_0x5b50be(0x188)]]:{},[TestFrameworkConstants[_0x5b50be(0x17b)]]:{},[TestFrameworkConstants[_0x5b50be(0x137)]]:_0x2d5dc8,[TestFrameworkConstants[_0x5b50be(0x1af)]]:TestFrameworkConstants[_0x5b50be(0x185)],[TestFrameworkConstants[_0x5b50be(0x1b9)]]:_0x3e7c0a,[TestFrameworkConstants[_0x5b50be(0x1a8)]]:_0x4048e0,[TestFrameworkConstants['KEY_TEST_ID']]:_0x13ec3f,[TestFrameworkConstants[_0x5b50be(0x123)]]:_0x214579,[TestFrameworkConstants[_0x5b50be(0x173)]]:_0x476274,[TestFrameworkConstants[_0x5b50be(0x1ae)]]:_0xfd55c9,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x28bcda,[TestFrameworkConstants[_0x5b50be(0x19e)]]:_0x275efa[_0x5b50be(0x166)][0x0][_0x5b50be(0x15a)],[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x54d575,[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x37b4bb,[TestFrameworkConstants[_0x5b50be(0x1c0)]]:_0x30a0ce[_0x5b50be(0x139)](getPlaywrightCustomRerunParam,_0x275efa)};TestInfo[_0x5b50be(0x121)](_0x9c09d5,_0x312ca8);const _0x3803c9={};return _0x3803c9[_0x9c09d5]=_0x312ca8,_0x3803c9;}[a67_0x13d367(0x177)](_0x173443,_0x3869fc,_0x4f0f23){const _0x2ba45b=a67_0x13d367,_0x35dfb3={'OCFbn':function(_0x533fe1,_0x3e2ab0){return _0x533fe1(_0x3e2ab0);},'DFCLp':_0x2ba45b(0x1d7),'wkgYH':function(_0x485da6,_0x5ea844){return _0x485da6===_0x5ea844;},'RGfYN':function(_0x3fff87,_0x30bdd5){return _0x3fff87===_0x30bdd5;},'NIdOK':function(_0x289ace,_0x2a2130){return _0x289ace===_0x2a2130;},'pqfBF':_0x2ba45b(0x199),'XeXmn':_0x2ba45b(0x19b),'zMBLQ':function(_0x3d1eca,_0x1fef41){return _0x3d1eca(_0x1fef41);},'oOooL':function(_0x1b5e93,_0x42e6b4,_0x56d8c2){return _0x1b5e93(_0x42e6b4,_0x56d8c2);},'xdpdT':function(_0x5d10e8,_0x30ae19){return _0x5d10e8+_0x30ae19;},'HtxHv':'skipped','FNOWd':_0x2ba45b(0x184),'wnnEx':_0x2ba45b(0x175),'Qtlsa':function(_0x51d541,_0x1a4b69){return _0x51d541===_0x1a4b69;},'Upmfc':_0x2ba45b(0x189),'KCNmB':function(_0xe37c37,_0xa07156){return _0xe37c37===_0xa07156;},'ESohn':function(_0x4938a5,_0xa2f3a1){return _0x4938a5===_0xa2f3a1;},'FhMxD':_0x2ba45b(0x148),'tUJOa':function(_0x3f49a6,_0x2f9e3b,_0x153a15){return _0x3f49a6(_0x2f9e3b,_0x153a15);},'dcbjc':function(_0x54f8bb,_0x1055c8){return _0x54f8bb||_0x1055c8;},'CwjIm':function(_0xa7e7d8,_0x274e14){return _0xa7e7d8(_0x274e14);},'SDrTE':function(_0x197978,_0x4755d9){return _0x197978>_0x4755d9;},'zQVLo':function(_0x1abab6,_0x39a1f3,_0x2a6555){return _0x1abab6(_0x39a1f3,_0x2a6555);},'yDShx':function(_0x31e160,_0x632092){return _0x31e160-_0x632092;},'KJZiz':function(_0x8cc37c,_0x1cb2fa,_0x59bb51){return _0x8cc37c(_0x1cb2fa,_0x59bb51);},'dxyOE':'path','NaxsT':function(_0x4614d3,_0x2f02bc){return _0x4614d3>_0x2f02bc;}};logger['debug'](_0x2ba45b(0x1c4)+_0x173443);const _0x8f65d8=_0x35dfb3[_0x2ba45b(0x182)](getTestRunIdentifier,_0x4f0f23,_0x3869fc[_0x2ba45b(0x1c7)]),_0x3646e5=new Date(_0x3869fc[_0x2ba45b(0x15a)]),_0x1f9895=_0x3869fc[_0x2ba45b(0x156)],_0x412fa6=new Date(_0x35dfb3['xdpdT'](_0x3646e5[_0x2ba45b(0x125)](),_0x1f9895)),_0x2477e7=_0x3869fc['status'],_0xd37c38=TestInfo[_0x2ba45b(0x11d)](_0x8f65d8)[TestFrameworkConstants[_0x2ba45b(0x1b3)]]||{};let _0x2ae755=_0x2477e7;if(_0x35dfb3['NIdOK'](_0x3869fc[_0x2ba45b(0x192)],_0x4f0f23[_0x2ba45b(0x158)]))_0x2ae755=_0x35dfb3[_0x2ba45b(0x138)](_0x3869fc[_0x2ba45b(0x192)],_0x35dfb3['HtxHv'])?_0x35dfb3[_0x2ba45b(0x1a2)]:_0x35dfb3[_0x2ba45b(0x10b)];else{(_0x35dfb3['wkgYH'](_0x2ae755,_0x35dfb3[_0x2ba45b(0x10b)])||_0x35dfb3[_0x2ba45b(0x11f)](_0x2ae755,_0x35dfb3['wnnEx'])||_0x35dfb3[_0x2ba45b(0x153)](_0x2ae755,_0x35dfb3[_0x2ba45b(0x13f)]))&&(_0x2ae755=_0x35dfb3[_0x2ba45b(0x143)]);if(_0x35dfb3[_0x2ba45b(0x130)](_0x3869fc['status'],_0x35dfb3[_0x2ba45b(0x10b)])&&_0x35dfb3[_0x2ba45b(0x16f)](_0x4f0f23[_0x2ba45b(0x158)],_0x35dfb3[_0x2ba45b(0x143)])){const _0x37bd58={};_0x37bd58[_0x2ba45b(0x16e)]=_0x35dfb3['FhMxD'],_0x37bd58[_0x2ba45b(0x12a)]=_0x35dfb3[_0x2ba45b(0x1ce)],_0x3869fc['error']=_0x37bd58,_0x3869fc[_0x2ba45b(0x147)]=[_0x3869fc['error']];}}const {failureData:_0x4e4f78,logs:_0x4f8050}=_0x35dfb3[_0x2ba45b(0x1c3)](getFailureData,_0x3869fc?.[_0x2ba45b(0x147)],{}),_0x451d38={[TestFrameworkConstants[_0x2ba45b(0x146)]]:_0x35dfb3[_0x2ba45b(0x181)](_0x4e4f78,null),[TestFrameworkConstants[_0x2ba45b(0x162)]]:_0x3869fc?.['error']&&_0x35dfb3['zMBLQ'](getFailureType,_0x3869fc[_0x2ba45b(0x18b)][_0x2ba45b(0x16e)]),[TestFrameworkConstants[_0x2ba45b(0x1b5)]]:_0x3869fc?.[_0x2ba45b(0x18b)]&&_0x35dfb3[_0x2ba45b(0x1de)](removeAnsiColors,_0x3869fc['error'][_0x2ba45b(0x16e)]),[TestFrameworkConstants[_0x2ba45b(0x197)]]:[],[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x2ae755,[TestFrameworkConstants[_0x2ba45b(0x13e)]]:_0x412fa6[_0x2ba45b(0x120)](),[TestFrameworkConstants[_0x2ba45b(0x1d8)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x2ba45b(0x1b3)]]:_0xd37c38};if(_0x3869fc&&_0x35dfb3[_0x2ba45b(0x1ad)](_0x3869fc[_0x2ba45b(0x1c7)],0x0)){const _0x4f6a15=TestInfo['getTestUUID'](_0x35dfb3[_0x2ba45b(0x118)](getTestRunIdentifier,_0x4f0f23,_0x35dfb3[_0x2ba45b(0x17a)](_0x3869fc[_0x2ba45b(0x1c7)],0x1)));_0x451d38[TestFrameworkConstants[_0x2ba45b(0x1dc)]]=_0x4f6a15;}const _0x7d4639={};_0x7d4639['test']=_0x4f0f23;const _0x33716f=this[_0x2ba45b(0x1c1)](TestFrameworkState[_0x2ba45b(0x171)],HookState[_0x2ba45b(0x112)],_0x7d4639),_0x3c5768=_0x33716f[_0x2ba45b(0x11b)]()[_0x2ba45b(0x1d9)](_0x8f65d8)[TestFrameworkConstants[_0x2ba45b(0x137)]],_0x8c9f8f=[],_0x313eb1=_0x35dfb3[_0x2ba45b(0x150)](findNestedKey,_0x3869fc,_0x35dfb3['dxyOE']);if(_0x313eb1&&_0x35dfb3[_0x2ba45b(0x1ab)](validateFilePath,_0x313eb1))try{_0x8c9f8f[_0x2ba45b(0x17c)]({'kind':_0x35dfb3[_0x2ba45b(0x1a5)],'timestamp':new Date()[_0x2ba45b(0x120)](),'test_run_uuid':_0x3c5768,'file_name':path[_0x2ba45b(0x140)](_0x313eb1),'file_size':fs[_0x2ba45b(0x180)](_0x313eb1)[_0x2ba45b(0x1d2)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x1cd5b3){logger['error'](_0x2ba45b(0x149)+_0x313eb1+':\x20'+_0x1cd5b3[_0x2ba45b(0x16e)]);}const _0x27e970=TestInfo[_0x2ba45b(0x119)](),_0xbd8909=_0x27e970[_0x2ba45b(0x1dd)](_0x23944e=>_0x23944e[_0x2ba45b(0x18a)]===_0x3c5768);_0xbd8909[_0x2ba45b(0x14b)](_0x414c0a=>{const _0x3dc164=_0x2ba45b;if(_0x414c0a[_0x3dc164(0x174)]&&_0x35dfb3[_0x3dc164(0x1ab)](validateFilePath,_0x414c0a[_0x3dc164(0x174)])&&!_0x8c9f8f[_0x3dc164(0x1ba)](_0x4a03dd=>_0x4a03dd[_0x3dc164(0x1ac)]===path[_0x3dc164(0x140)](_0x414c0a[_0x3dc164(0x174)])))try{_0x8c9f8f['push']({'kind':_0x35dfb3['DFCLp'],'timestamp':new Date()['toISOString'](),'test_run_uuid':_0x3c5768,'file_name':path[_0x3dc164(0x140)](_0x414c0a['filePath']),'file_size':fs[_0x3dc164(0x180)](_0x414c0a['filePath'])[_0x3dc164(0x1d2)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x5f5364){logger[_0x3dc164(0x18b)](_0x3dc164(0x187)+_0x414c0a[_0x3dc164(0x174)]+_0x3dc164(0x190)+_0x5f5364[_0x3dc164(0x16e)]);}});if(_0x35dfb3[_0x2ba45b(0x1cd)](_0x8c9f8f[_0x2ba45b(0x151)],0x0)){const _0x51c6e1=_0x451d38[TestFrameworkConstants[_0x2ba45b(0x197)]]||[];_0x451d38[TestFrameworkConstants['KEY_LOGS']]=[..._0x51c6e1,..._0x8c9f8f];}const _0x3f782e=TestInfo[_0x2ba45b(0x11d)](_0x8f65d8)[TestFrameworkConstants[_0x2ba45b(0x1b4)]]||{},_0x3a4044=_0x35dfb3[_0x2ba45b(0x118)](getManualUploadLogs,_0x3f782e,_0x33716f[_0x2ba45b(0x11b)]()[_0x2ba45b(0x1d9)](_0x8f65d8)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x35dfb3[_0x2ba45b(0x1ad)](_0x3a4044[_0x2ba45b(0x151)],0x0)){const _0x3edf7c=_0x451d38[TestFrameworkConstants[_0x2ba45b(0x197)]]||[];_0x451d38[TestFrameworkConstants[_0x2ba45b(0x197)]]=[..._0x3edf7c,..._0x3a4044];}const _0x123d1e=_0x4f0f23[_0x2ba45b(0x107)]||[],_0x2d60d5=_0x451d38[TestFrameworkConstants[_0x2ba45b(0x1b3)]]||{};_0x123d1e[_0x2ba45b(0x14b)](_0x20c5ea=>{const _0x20e6cc=_0x2ba45b,{type:_0x218027}=_0x20c5ea;let _0x5f265c=_0x20c5ea[_0x20e6cc(0x122)];if(!_0x218027)return;(_0x35dfb3[_0x20e6cc(0x138)](_0x5f265c,undefined)||_0x35dfb3['RGfYN'](_0x5f265c,null)||_0x35dfb3[_0x20e6cc(0x16d)](_0x35dfb3[_0x20e6cc(0x1ab)](String,_0x5f265c)[_0x20e6cc(0x198)](),''))&&(_0x5f265c=_0x35dfb3[_0x20e6cc(0x111)]);if(!_0x2d60d5[_0x218027]){const _0x302fb6={};_0x302fb6['field_type']=_0x35dfb3[_0x20e6cc(0x116)],_0x302fb6[_0x20e6cc(0x127)]=[],_0x2d60d5[_0x218027]=_0x302fb6;}else!_0x2d60d5[_0x218027]['field_type']&&(_0x2d60d5[_0x218027][_0x20e6cc(0x113)]=_0x35dfb3[_0x20e6cc(0x116)]),!Array[_0x20e6cc(0x18c)](_0x2d60d5[_0x218027][_0x20e6cc(0x127)])&&(_0x2d60d5[_0x218027][_0x20e6cc(0x127)]=[]);const _0x2ec609=_0x35dfb3['zMBLQ'](String,_0x5f265c)['split'](',')[_0x20e6cc(0x1cc)](_0x54d447=>_0x54d447[_0x20e6cc(0x198)]());_0x2d60d5[_0x218027][_0x20e6cc(0x127)]=[...new Set([..._0x2d60d5[_0x218027]['values'],..._0x2ec609])];}),_0x451d38[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x2d60d5,TestInfo[_0x2ba45b(0x121)](_0x8f65d8,_0x451d38);const _0x3b8c34={};return _0x3b8c34[_0x8f65d8]=_0x451d38,_0x3b8c34;}async[a67_0x13d367(0x1df)](_0x488ade,_0x45d54d,_0x2d9cda,_0x2bd462){const _0x55f7f3=a67_0x13d367,_0x255a8f={'MxaLF':function(_0x19712a,_0x1e805c,_0x5efc4b){return _0x19712a(_0x1e805c,_0x5efc4b);},'ZVGhd':function(_0xaf26a3,_0x36c7bf){return _0xaf26a3 in _0x36c7bf;},'RyopN':function(_0x7f942f,_0xc85661){return _0x7f942f in _0xc85661;},'TtmpD':function(_0x153168,_0x1b041a){return _0x153168(_0x1b041a);},'EprGR':function(_0x5b8dc5,_0x40204f){return _0x5b8dc5(_0x40204f);},'HSHuc':function(_0x7c65c2,_0x73855){return _0x7c65c2===_0x73855;},'eTpdP':function(_0x2e1f5a){return _0x2e1f5a();},'Kigjv':function(_0x3dcf12,_0x2be7b4){return _0x3dcf12===_0x2be7b4;},'dCWlf':function(_0x51d0ab,_0x358aa1){return _0x51d0ab>_0x358aa1;},'xAMCj':_0x55f7f3(0x10d),'WJkQt':_0x55f7f3(0x175),'twpig':_0x55f7f3(0x184),'ejScy':function(_0x127251,_0x4fd532){return _0x127251!==_0x4fd532;},'FlJqp':function(_0x2041d5,_0x17af95){return _0x2041d5+_0x17af95;},'Liuei':_0x55f7f3(0x14a)},_0x23d6aa=_0x2bd462[_0x55f7f3(0x142)],_0x266c85=_0x2bd462['step'],_0x2dd9f3=_0x255a8f[_0x55f7f3(0x16c)](getTestRunIdentifier,_0x23d6aa,_0x2bd462[_0x55f7f3(0x191)][_0x55f7f3(0x1c7)]),_0x7618ba=_0x45d54d[_0x55f7f3(0x195)]()['split']('.')[0x1];let _0x8d34e3=_0x488ade['getAllData']()[_0x55f7f3(0x1d9)](_0x2dd9f3)[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x8d34e3&&(_0x8d34e3={});!_0x255a8f['ZVGhd'](_0x7618ba,_0x8d34e3)&&(_0x8d34e3[_0x7618ba]=[]);let _0x2deeca=_0x488ade['getAllData']()['get'](_0x2dd9f3)[TestFrameworkConstants[_0x55f7f3(0x188)]];!_0x2deeca&&(_0x2deeca={});!_0x255a8f[_0x55f7f3(0x163)](_0x7618ba,_0x2deeca)&&(_0x2deeca[_0x7618ba]=[]);const _0x47831b={[TestFrameworkConstants[_0x55f7f3(0x17b)]]:_0x8d34e3,[TestFrameworkConstants[_0x55f7f3(0x188)]]:_0x2deeca},_0x4ffdbd={};_0x4ffdbd[_0x2dd9f3]=_0x47831b;const _0x4430ed=_0x4ffdbd,_0x1a9802=_0x255a8f[_0x55f7f3(0x15d)](getPlaywrightTestFilePath,_0x23d6aa),_0x28d291=_0x1a9802+':'+_0x255a8f[_0x55f7f3(0x1cf)](getPlaywrightTestLocation,_0x23d6aa),_0x5f43fe=TestInfo[_0x55f7f3(0x11d)](_0x2dd9f3)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};if(_0x255a8f[_0x55f7f3(0x12f)](_0x2d9cda,HookState[_0x55f7f3(0x159)])){const _0x2f3252={'key':_0x7618ba,[TestFrameworkConstants[_0x55f7f3(0x117)]]:_0x255a8f['eTpdP'](uuidv4),[TestFrameworkConstants[_0x55f7f3(0x193)]]:TestFrameworkConstants[_0x55f7f3(0x145)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x266c85[_0x55f7f3(0x15a)],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants[_0x55f7f3(0x1cb)]]:_0x266c85[_0x55f7f3(0x1b0)],[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x1a9802,[TestFrameworkConstants[_0x55f7f3(0x173)]]:_0x28d291,[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x5f43fe};_0x8d34e3[_0x7618ba][_0x55f7f3(0x17c)](_0x2f3252),_0x4430ed[_0x2dd9f3][TestFrameworkConstants[_0x55f7f3(0x15f)]]=_0x7618ba,logger[_0x55f7f3(0x19c)](_0x55f7f3(0x115)+_0x7618ba+'\x20&\x20hook\x20=\x20'+_0x2f3252+_0x55f7f3(0x14c)+_0x2bd462);}else{if(_0x255a8f['Kigjv'](_0x2d9cda,HookState['POST'])){const _0x1374ea=await _0x2bd462['result'],_0x4eba9d=_0x8d34e3[_0x7618ba]||[],_0x13a843=_0x2bd462[_0x55f7f3(0x178)];logger[_0x55f7f3(0x19c)](_0x55f7f3(0x12b)+_0x4eba9d+_0x55f7f3(0x1bf)+_0x2bd462);if(_0x255a8f['dCWlf'](_0x4eba9d[_0x55f7f3(0x151)],0x0)){const _0x49355d=_0x4eba9d[_0x55f7f3(0x1c5)]();if(_0x13a843['error']){const _0x6acee2=_0x255a8f[_0x55f7f3(0x16c)](failureData,_0x13a843[_0x55f7f3(0x18b)],_0x255a8f['xAMCj']);_0x49355d[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x255a8f[_0x55f7f3(0x1cf)](getFailureType,_0x13a843?.[_0x55f7f3(0x18b)][_0x55f7f3(0x16e)]),_0x49355d[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x255a8f[_0x55f7f3(0x1cf)](removeAnsiColors,_0x13a843?.[_0x55f7f3(0x18b)][_0x55f7f3(0x16e)]),_0x49355d[TestFrameworkConstants[_0x55f7f3(0x193)]]=_0x255a8f['WJkQt'],_0x49355d[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x6acee2;}else _0x49355d[TestFrameworkConstants[_0x55f7f3(0x193)]]=_0x255a8f[_0x55f7f3(0x134)];_0x255a8f['ejScy'](_0x1374ea,TestFrameworkConstants[_0x55f7f3(0x145)])&&(_0x49355d[TestFrameworkConstants[_0x55f7f3(0x193)]]=!_0x13a843[_0x55f7f3(0x18b)]?_0x255a8f['twpig']:_0x255a8f[_0x55f7f3(0x1d3)]);const _0x17cd22=new Date(_0x13a843['startTime']),_0x5cf279=new Date(_0x255a8f[_0x55f7f3(0x14f)](_0x17cd22[_0x55f7f3(0x125)](),_0x13a843[_0x55f7f3(0x156)]));_0x49355d[TestFrameworkConstants[_0x55f7f3(0x194)]]=_0x5cf279[_0x55f7f3(0x120)](),_0x49355d[TestFrameworkConstants[_0x55f7f3(0x1b3)]]=_0x5f43fe;const _0xd61a7=_0x49355d[TestFrameworkConstants['KEY_HOOK_ID']];await this['sendLogCreatedEvent'](_0x488ade,_0x45d54d,_0xd61a7,_0x255a8f['Liuei'],_0x2bd462),!_0x2deeca[_0x7618ba]&&(_0x2deeca[_0x7618ba]=[]),_0x2deeca[_0x7618ba]['push'](_0x49355d),_0x4430ed[_0x2dd9f3][TestFrameworkConstants[_0x55f7f3(0x105)]]=_0x7618ba;}}}return _0x4430ed;}async[a67_0x13d367(0x13b)](_0x1b67aa,_0x283d54,_0x2f1fb7,_0x310983,_0x2847af){const _0x5deceb=a67_0x13d367,_0x493093={'zEBcy':function(_0x266616,_0x26d834){return _0x266616===_0x26d834;},'NoFDF':_0x5deceb(0x142),'jgiNx':function(_0x5ce25d,_0x170ea0,_0x318bbf){return _0x5ce25d(_0x170ea0,_0x318bbf);},'lRdiR':function(_0x9e3315,_0x243e83,_0x960003){return _0x9e3315(_0x243e83,_0x960003);},'mZjMt':'attachments','OjsZT':function(_0x269f54,_0x2f28ce,_0x24c806,_0x2f3af6){return _0x269f54(_0x2f28ce,_0x24c806,_0x2f3af6);},'zIEWs':function(_0x4b30d1,_0x3f30bb,_0x5d0ca2){return _0x4b30d1(_0x3f30bb,_0x5d0ca2);},'pBRRW':function(_0x446204,_0x1bd04b,_0x308f01){return _0x446204(_0x1bd04b,_0x308f01);},'KGflQ':function(_0x3120c7,_0x3a3e67,_0x47517d){return _0x3120c7(_0x3a3e67,_0x47517d);},'aYGLD':function(_0x39026c,_0x2b67fa){return _0x39026c/_0x2b67fa;},'gbbXc':function(_0x2f3a1e,_0x3cd494){return _0x2f3a1e<_0x3cd494;},'GnLWN':function(_0x1fa8d0,_0x2c21a3){return _0x1fa8d0*_0x2c21a3;},'oRxBR':function(_0x1a9fa9,_0x2418d5){return _0x1a9fa9+_0x2418d5;},'WZaRi':function(_0xf70fd9,_0x2b4809,_0x1f37cc,_0x3710ac,_0x2fa67b){return _0xf70fd9(_0x2b4809,_0x1f37cc,_0x3710ac,_0x2fa67b);},'Odwyv':function(_0x2d770a,_0x1f3fb0){return _0x2d770a+_0x1f3fb0;},'GmthD':function(_0x2dcfc7,_0x5d5fb5,_0x5b0e94,_0x1417e8){return _0x2dcfc7(_0x5d5fb5,_0x5b0e94,_0x1417e8);},'DYDcN':_0x5deceb(0x14a),'ggBwn':function(_0x3f7eef,_0x3d58a5,_0x3d8e5e){return _0x3f7eef(_0x3d58a5,_0x3d8e5e);},'SXssk':function(_0x47fbfb,_0x849ab2,_0x581b73,_0x506988,_0xdef6f4){return _0x47fbfb(_0x849ab2,_0x581b73,_0x506988,_0xdef6f4);}};try{if(_0x493093['zEBcy'](_0x310983,_0x493093['NoFDF'])){const _0x25a532=await _0x2847af[_0x5deceb(0x191)],_0x3a3420=_0x493093[_0x5deceb(0x110)](getTestRunIdentifier,_0x2847af[_0x5deceb(0x142)],_0x2847af[_0x5deceb(0x191)][_0x5deceb(0x1c7)]),_0x24823c=_0x2847af[_0x5deceb(0x142)];logger[_0x5deceb(0x19c)](_0x5deceb(0x14d)+_0x3a3420+_0x5deceb(0x1a3)+util[_0x5deceb(0x141)](_0x25a532));const _0x39644c=_0x1b67aa[_0x5deceb(0x11b)]()[_0x5deceb(0x1d9)](_0x3a3420)[TestFrameworkConstants[_0x5deceb(0x137)]];await _0x493093[_0x5deceb(0x186)](sendTraceZip,_0x25a532,_0x39644c);const _0x5e27f3=TestInfo[_0x5deceb(0x11d)](_0x3a3420)[_0x493093[_0x5deceb(0x124)]];let _0x56b674={};if(_0x5e27f3){!_0x25a532[_0x5deceb(0x11a)]&&(_0x25a532[_0x5deceb(0x11a)]=[]);_0x56b674[_0x5deceb(0x11a)]=_0x25a532['attachments'][_0x5deceb(0x169)](_0x5e27f3||[]);const _0x4690df=TestInfo['getTestDetails'](_0x3a3420);delete _0x4690df[_0x493093[_0x5deceb(0x124)]],TestInfo[_0x5deceb(0x121)](_0x3a3420,_0x4690df);}const {steps:_0x3d8722,logs:_0x3658d9}=_0x493093[_0x5deceb(0x16a)](getStepsAndLogs,_0x25a532[_0x5deceb(0x104)],_0x1b67aa[_0x5deceb(0x11b)]()[_0x5deceb(0x1d9)](_0x3a3420)[TestFrameworkConstants[_0x5deceb(0x137)]],_0x493093[_0x5deceb(0x18f)]),_0x54d723=_0x493093[_0x5deceb(0x186)](getScreenshots,_0x56b674,_0x1b67aa[_0x5deceb(0x11b)]()[_0x5deceb(0x1d9)](_0x3a3420)[TestFrameworkConstants[_0x5deceb(0x137)]]),_0x44f87f=_0x493093[_0x5deceb(0x155)](getVideos,_0x25a532,_0x1b67aa[_0x5deceb(0x11b)]()[_0x5deceb(0x1d9)](_0x3a3420)[TestFrameworkConstants['KEY_TEST_UUID']]),{_:_0x2234a4,logs:_0x22eaa7}=_0x493093[_0x5deceb(0x12e)](getFailureData,_0x25a532[_0x5deceb(0x147)],{'test_run_uuid':_0x1b67aa[_0x5deceb(0x11b)]()[_0x5deceb(0x1d9)](_0x3a3420)[TestFrameworkConstants[_0x5deceb(0x137)]]}),_0x2c9909=TestInfo[_0x5deceb(0x11d)](_0x3a3420)[TestFrameworkConstants[_0x5deceb(0x1b4)]]||{},_0x2b7cde=_0x493093[_0x5deceb(0x131)](getMediaArtifactsLogs,_0x2c9909,_0x1b67aa[_0x5deceb(0x11b)]()[_0x5deceb(0x1d9)](_0x3a3420)[TestFrameworkConstants['KEY_TEST_UUID']]),_0xed3987=_0x1b67aa['getAllData']()['get'](_0x3a3420),{[TestFrameworkConstants[_0x5deceb(0x1ca)]]:_0x4da205='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x275930=''}=_0xed3987,_0x967394=(_0x3658d9||[])['concat'](_0x54d723||[])[_0x5deceb(0x169)](_0x22eaa7||[])[_0x5deceb(0x169)](_0x44f87f||[])[_0x5deceb(0x169)](_0x2b7cde||[]),_0x4a5f87=0x28,_0xaf0597=Math[_0x5deceb(0x10c)](_0x493093[_0x5deceb(0x1b1)](_0x967394['length'],_0x4a5f87));for(let _0x93fc53=0x0;_0x493093[_0x5deceb(0x17e)](_0x93fc53,_0xaf0597);_0x93fc53++){const _0x136361=_0x493093[_0x5deceb(0x19a)](_0x93fc53,_0x4a5f87),_0x5d6e4c=_0x493093[_0x5deceb(0x106)](_0x136361,_0x4a5f87),_0xb0e1cd=_0x967394[_0x5deceb(0x17f)](_0x136361,_0x5d6e4c),_0x4ea1ae={'platformIndex':'0','logs':_0xb0e1cd,'testFrameworkName':_0x4da205,'testFrameworkVersion':_0x275930,'testFrameworkState':_0x283d54[_0x5deceb(0x195)]()[_0x5deceb(0x15e)]('.')[0x1]};_0x493093[_0x5deceb(0x1bc)](updatePayloadForTraceLogs,_0x4ea1ae,_0x2847af,_0x3a3420,_0x1b67aa),logger['debug']('sendLogCreatedEvent\x20for\x20testId:\x20'+_0x3a3420+_0x5deceb(0x1d5)+_0x493093[_0x5deceb(0x106)](_0x93fc53,0x1)+'/'+_0xaf0597+_0x5deceb(0x18e)+util[_0x5deceb(0x141)](_0x4ea1ae));const _0x57a106=await GrpcClient[_0x5deceb(0x168)]()[_0x5deceb(0x1bd)](_0x4ea1ae);logger['debug'](_0x5deceb(0x1b7)+_0x3a3420+_0x5deceb(0x1d5)+_0x493093[_0x5deceb(0x19d)](_0x93fc53,0x1)+'/'+_0xaf0597+_0x5deceb(0x1c9)+util[_0x5deceb(0x141)](_0x57a106));}}else{const {steps:_0x2ec77d,logs:_0x2b4744}=_0x493093[_0x5deceb(0x1b6)](getStepsAndLogs,_0x2847af['step']['steps'],_0x2f1fb7,_0x493093[_0x5deceb(0x132)]),_0x122d23=_0x493093[_0x5deceb(0x14e)](getTestRunIdentifier,_0x2847af[_0x5deceb(0x142)],_0x2847af[_0x5deceb(0x191)][_0x5deceb(0x1c7)]);logger['debug'](_0x5deceb(0x14d)+_0x122d23);const _0x267623=_0x1b67aa[_0x5deceb(0x11b)]()[_0x5deceb(0x1d9)](_0x122d23),{[TestFrameworkConstants[_0x5deceb(0x1ca)]]:_0x1be878='',[TestFrameworkConstants[_0x5deceb(0x133)]]:_0x4e2ea4=''}=_0x267623,_0x5ae8e9={'platformIndex':'0','logs':_0x2b4744,'testFrameworkName':_0x1be878,'testFrameworkVersion':_0x4e2ea4,'testFrameworkState':_0x283d54['toString']()['split']('.')[0x1]};_0x493093['SXssk'](updatePayloadForTraceLogs,_0x5ae8e9,_0x2847af,_0x122d23,_0x1b67aa),logger[_0x5deceb(0x19c)]('sendLogCreatedEvent\x20for\x20testId:\x20'+_0x122d23+_0x5deceb(0x18e)+util[_0x5deceb(0x141)](_0x5ae8e9));const _0x2dcaf7=await GrpcClient['getInstance']()[_0x5deceb(0x1bd)](_0x5ae8e9);}}catch(_0x56403f){logger[_0x5deceb(0x18b)](_0x5deceb(0x1a1)+util[_0x5deceb(0x17d)](_0x56403f));}}}module[a67_0x13d367(0x1db)]=PlaywrightTestFramework;
|
|
1
|
+
function a67_0x3dfc(){const _0x311209=['KEY_HOOK_FAILURE_TYPE','Error\x20in\x20sendLogCreatedEvent:\x20','ceil','KEY_TEST_STARTED_AT','KEY_HOOK_FAILURE_REASON','fYxzK','NONE','./constants/testFrameworkConstants.js','ErphC','TEST','values','startTime','debug','ptixP','dvYOE','\x20payload=','rZWFf','nExjd','expectedStatus','steps','KEY_TEST_RESULT_AT','toISOString','\x20instanceId=','getTestFrameworksVersions','map','pvCCM','AUOhz','getTime','\x20response=','trackEvent:\x20found\x20instance,\x20testFrameworkState=','test','KEY_TEST_RETRY_OF','exports','KEY_HOOK_NAME','trim','../../utils/constants','Error\x20processing\x20direct\x20trace\x20file\x20','YDodo','3TvaMMH','85HuKnvw','trackPlaywrightInstance','OMNcX','KEY_HOOKS_STARTED','9616780ROrEOg','UZSDp','KEY_TEST_CODE','TEST_ATTACHMENT','11621869FDwuqK','parsePlaywrightTestResult','\x20hookState=','KEY_TEST_TAGS','getCurrentInstanceName','instance','yHGsU','format','YaHfN','inspect','basename','xbObz','path','KEY_TEST_LOGS','hlqqb','../state/testFrameworkState.js','JQaLx','annotations','KEY_CUSTOM_TAGS','push',',\x20state=','KEY_TEST_UUID','qoueS','438722peALqN','../../../helpers/helper.js','message','PHgHY','filePath','logCreatedEvent','stack','KEY_TEST_FAILURE','getInstance','EhPAR','2792625hodrwP','ZoyEd','skipped','CLcZv','statSync','some','trackPlaywrightInstance:\x20created\x20instance\x20for\x20target=','KEY_HOOK_FAILURE','../../playwright/reporter/pwUtils','No\x20reason\x20provided','Hook\x20List\x20in\x20Post\x20','epedS','ffVtT','concat','KEY_TEST_FILE_PATH','KEY_TEST_FRAMEWORK_NAME','\x20from\x20TestDetails:\x20','forEach','split','jcKBy','duration','trackEvent\x20loading\x20testResults\x20for\x20testId:\x20','filter','KEY_HOOK_ID','size','title','KEY_TEST_LOCATION','cKLxh','rvQgp','3eKFxNG','../../../helpers/classLogger.js','sendLogCreatedEvent\x20for\x20testId:\x20','../instances/testFrameworkInstance.js','errors','retry','PlaywrightTestFramework',',\x20testFrameworkState=','get','Iexcr','KEY_TEST_NAME','passed','getTestDetails','sendLogCreatedEvent:\x20testId=','\x20target=','getTrackedInstance','PEFRl','DEFAULT_TEST_RESULT','../instances/trackedInstance.js','../grpcClient','fuBhR','zehJC','nMHSF','addMultipleEntries','KEY_TEST_FRAMEWORK_VERSION','createContext','trackPlaywrightInstance:\x20saved\x20instance\x20contextId=','rzxPh','../../../helpers/test-observability/utils','failed','FTOvh','AKcEk','KEY_HOOKS_FINISHED','KEY_HOOK_LAST_FINISHED','Error\x20processing\x20trace\x20file\x20','VLgTC','getAllData','pMPxE','\x20result=','UxAnL','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','KEY_TEST_FAILURE_REASON','259914KLAllS','parsePlaywrightTest','KEY_TEST_RESULT','SVRyW','KEY_HOOK_RESULT','toString','KEY_AUTOMATE_SESSION_NAME','sendLogCreatedEvent','getTestUUID','POST','error','8gfLfzh','INIT_TEST','step','pwPFw','setTestDetails','KEY_TEST_SCOPES','\x20&\x20hook\x20=\x20','result','\x20batch\x20','NLlHR','3126380JkHJJC','IZFIk','Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','cVeSg','err','TTJCC','\x20\x20and\x20args\x20=\x20','KEY_TEST_ID','slice','hTedL','getTraceFilePaths','multi_dropdown','attachments','wDPLJ','runHooks','KEY_EVENT_STARTED_AT','yQXqB','KEY_EVENT_ENDED_AT','../state/hookState.js','DEFAULT_HOOK_RESULT','isArray','TEST_SCREENSHOT','getId','info','./testFramework','pop','xnSlF','status','uZsPw','trackEvent','WRiPR','KEY_TEST_RERUN_NAME','../TestInfo.js','PRE','nOlTQ','getRef','util','12688695HuLgob','KEY_TEST_ENDED_AT','acduz','Tpxbk','WGqDf','KEY_TEST_ATTACHMENTS','file_name','SuGlc','field_type','KEY_LOGS','\x20and\x20args\x20=\x20','resolveInstance','description','length','yWCta','Expected\x20to\x20fail,\x20but\x20passed.'];a67_0x3dfc=function(){return _0x311209;};return a67_0x3dfc();}const a67_0x2699b6=a67_0x561f;function a67_0x561f(_0xc4d80f,_0x169929){const _0x3dfc64=a67_0x3dfc();return a67_0x561f=function(_0x561f22,_0x453647){_0x561f22=_0x561f22-0x117;let _0x1d7d6b=_0x3dfc64[_0x561f22];return _0x1d7d6b;},a67_0x561f(_0xc4d80f,_0x169929);}(function(_0x59545b,_0x10781f){const _0x258027=a67_0x561f,_0x20ff25=_0x59545b();while(!![]){try{const _0x16540d=-parseInt(_0x258027(0x11b))/0x1*(parseInt(_0x258027(0x13b))/0x2)+parseInt(_0x258027(0x162))/0x3*(parseInt(_0x258027(0x1a1))/0x4)+-parseInt(_0x258027(0x11c))/0x5*(parseInt(_0x258027(0x18c))/0x6)+parseInt(_0x258027(0x124))/0x7+-parseInt(_0x258027(0x197))/0x8*(parseInt(_0x258027(0x1c6))/0x9)+parseInt(_0x258027(0x120))/0xa+parseInt(_0x258027(0x145))/0xb;if(_0x16540d===_0x10781f)break;else _0x20ff25['push'](_0x20ff25['shift']());}catch(_0x50f220){_0x20ff25['push'](_0x20ff25['shift']());}}}(a67_0x3dfc,0xd043e));const TestFramework=require(a67_0x2699b6(0x1b9)),TestFrameworkState=require(a67_0x2699b6(0x133)),HookState=require(a67_0x2699b6(0x1b3)),{createClassLogger}=require(a67_0x2699b6(0x163)),TestFrameworkInstance=require(a67_0x2699b6(0x165)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a67_0x2699b6(0x174)),TestFrameworkConstants=require(a67_0x2699b6(0x1dd)),logger=createClassLogger(a67_0x2699b6(0x168)),{v4:uuidv4}=require('uuid'),util=require(a67_0x2699b6(0x1c5)),{getPlaywrightSessionName,getPlaywrightTestFilePath,getPlaywrightTestId,getPlaywrightTestTitle,getPlaywrightTestLocation,getPlaywrightTestTags,getPlaywrightTestCode,getPlaywrightTestScope,getPlaywrightTestScopes,getStepsAndLogs,getScreenshots,getVideos,getPlaywrightCustomRerunParam,getMediaArtifactsLogs,getManualUploadLogs,updatePayloadForTraceLogs}=require(a67_0x2699b6(0x13c)),TestInfo=require(a67_0x2699b6(0x1c1)),GrpcClient=require(a67_0x2699b6(0x175)),{removeAnsiColors,getFailureType,failureData}=require(a67_0x2699b6(0x17e)),{getFailureData,getTestTags,getTestRunIdentifier}=require(a67_0x2699b6(0x14d)),{findNestedKey,sendTraceZip,validateFilePath}=require('../../playwright/reporter/pwUtils'),path=require('path'),fs=require('fs'),helper=require('../../../../src/helpers/helper'),{PLAYWRIGHT_TRACE_LOGS}=require(a67_0x2699b6(0x118));class PlaywrightTestFramework extends TestFramework{constructor(_0x3acccd,_0x169ae4,_0x4561c0){super(_0x3acccd,_0x169ae4,_0x4561c0);}async['trackEvent'](_0x1be764,_0x2d853a,_0x3b8c8c={}){const _0x54edaf=a67_0x2699b6,_0x33a010={'AUOhz':function(_0x5b9e17,_0x2ae889){return _0x5b9e17===_0x2ae889;},'hTedL':function(_0x1290ab,_0x44cceb){return _0x1290ab===_0x44cceb;},'nExjd':function(_0x1ebe7d,_0x185470,_0x4c4219){return _0x1ebe7d(_0x185470,_0x4c4219);},'rvQgp':function(_0x7cbe0e,_0x561885){return _0x7cbe0e===_0x561885;},'yQXqB':'test','xbObz':_0x54edaf(0x18a)};super[_0x54edaf(0x1be)](_0x1be764,_0x2d853a,_0x3b8c8c);if(_0x33a010[_0x54edaf(0x1f0)](_0x1be764,TestFrameworkState[_0x54edaf(0x1b6)])){const _0x5463e9=TestInfo['getTestIdentifierFromTestInfo'](_0x3b8c8c[_0x54edaf(0x1f4)],_0x3b8c8c[_0x54edaf(0x1f4)][_0x54edaf(0x167)]);TestInfo['setTestDetails'](_0x5463e9,_0x3b8c8c[_0x54edaf(0x19e)],!![]);}const _0x5ebb3d=this[_0x54edaf(0x1d1)](_0x1be764,_0x2d853a,_0x3b8c8c);if(!_0x5ebb3d)return;logger['debug'](_0x54edaf(0x1f3)+_0x1be764+_0x54edaf(0x126)+_0x2d853a+_0x54edaf(0x1ec)+_0x5ebb3d[_0x54edaf(0x1c4)]());try{if(_0x33a010['AUOhz'](_0x2d853a,HookState[_0x54edaf(0x1c2)])&&_0x33a010[_0x54edaf(0x1aa)](_0x1be764,TestFrameworkState['TEST'])){const _0x44de77=_0x3b8c8c['test'];logger[_0x54edaf(0x1e2)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x44de77['id']+'}');const _0x42aea1=TestInfo[_0x54edaf(0x194)](_0x33a010[_0x54edaf(0x1e7)](getTestRunIdentifier,_0x44de77,_0x3b8c8c['result'][_0x54edaf(0x167)]));_0x5ebb3d[_0x54edaf(0x179)](this[_0x54edaf(0x18d)](_0x42aea1,_0x44de77,_0x3b8c8c[_0x54edaf(0x19e)])),logger[_0x54edaf(0x1e2)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x44de77['id']+_0x54edaf(0x169)+_0x1be764+'\x20testHookState='+_0x2d853a+'\x20instance='+_0x5ebb3d['getRef']());}if(_0x33a010[_0x54edaf(0x161)](_0x2d853a,HookState[_0x54edaf(0x195)])&&_0x33a010[_0x54edaf(0x161)](_0x1be764,TestFrameworkState[_0x54edaf(0x1df)])){const _0x7f788f=_0x3b8c8c[_0x54edaf(0x1f4)],_0x58b16d=_0x3b8c8c[_0x54edaf(0x19e)];logger[_0x54edaf(0x1e2)](_0x54edaf(0x15a)+_0x7f788f['id']),_0x5ebb3d['addMultipleEntries'](this[_0x54edaf(0x125)](_0x7f788f['id'],_0x58b16d,_0x7f788f)),await this['sendLogCreatedEvent'](_0x5ebb3d,_0x1be764,_0x2d853a,_0x33a010[_0x54edaf(0x1b1)],_0x3b8c8c);}if(CLIUtils['matchHookRegex'](_0x1be764[_0x54edaf(0x191)]()[_0x54edaf(0x157)]('.')[0x1])){const _0x280759=await this['trackHookEvent'](_0x5ebb3d,_0x1be764,_0x2d853a,_0x3b8c8c);_0x5ebb3d['addMultipleEntries'](_0x280759);}}catch(_0x113893){logger[_0x54edaf(0x196)](util[_0x54edaf(0x12b)](_0x33a010[_0x54edaf(0x12f)],_0x1be764,_0x2d853a,_0x3b8c8c['length'],_0x113893));}_0x3b8c8c[_0x54edaf(0x129)]=_0x5ebb3d,await this[_0x54edaf(0x1af)](_0x5ebb3d,_0x1be764,_0x2d853a,_0x3b8c8c);}[a67_0x2699b6(0x1d1)](_0x599cf6,_0x3f8eab,_0x4c369d={}){const _0x3dbe05=a67_0x2699b6,_0x1d6e2c={};_0x1d6e2c[_0x3dbe05(0x1bb)]=function(_0x2e4614,_0x7c889e){return _0x2e4614===_0x7c889e;};const _0x442608=_0x1d6e2c;let _0xd6fe1c=null;return(_0x442608[_0x3dbe05(0x1bb)](_0x599cf6,TestFrameworkState[_0x3dbe05(0x198)])||_0x442608[_0x3dbe05(0x1bb)](_0x599cf6,TestFrameworkState[_0x3dbe05(0x1dc)]))&&this[_0x3dbe05(0x11d)](_0x599cf6,_0x4c369d),_0xd6fe1c=TestFramework[_0x3dbe05(0x171)](),_0xd6fe1c;}['trackPlaywrightInstance'](_0xcb073,_0x3ec7cc){const _0x22f2fe=a67_0x2699b6,_0x3c35a3=CLIUtils[_0x22f2fe(0x128)](),_0x1f0822=TrackedInstance[_0x22f2fe(0x17b)](_0x3c35a3);let _0x47cd95=null;logger['info'](_0x22f2fe(0x14b)+_0x3c35a3+_0x22f2fe(0x138)+_0xcb073),_0x47cd95=new TestFrameworkInstance(_0x1f0822,this['getTestFrameworks'](),this[_0x22f2fe(0x1ed)](),_0xcb073,HookState[_0x22f2fe(0x1dc)]),TestFramework['setTrackedInstance'](_0x1f0822,_0x47cd95),logger[_0x22f2fe(0x1b8)](_0x22f2fe(0x17c)+_0x1f0822[_0x22f2fe(0x1b7)]()+_0x22f2fe(0x170)+_0x3c35a3);}[a67_0x2699b6(0x18d)](_0x5080bf,_0x13b264,_0x2e101b){const _0x35ea12=a67_0x2699b6,_0x236625={'nMHSF':function(_0x192239,_0x13cd29){return _0x192239(_0x13cd29);},'zehJC':function(_0x3da431,_0x28a89a){return _0x3da431(_0x28a89a);},'YDodo':function(_0x11d52d,_0x1be639){return _0x11d52d(_0x1be639);},'acduz':function(_0x168a86,_0x159453){return _0x168a86(_0x159453);},'yHGsU':function(_0x19de73,_0x301d9b){return _0x19de73(_0x301d9b);},'gxEGy':function(_0x416375,_0xc7e0f6,_0x57dbd0){return _0x416375(_0xc7e0f6,_0x57dbd0);}},_0x2e61c7=_0x236625[_0x35ea12(0x178)](getPlaywrightTestId,_0x13b264),_0x5af679=_0x236625[_0x35ea12(0x178)](getPlaywrightTestTitle,_0x13b264),_0x2dbd2b=_0x236625[_0x35ea12(0x177)](getTestTags,_0x13b264),_0x29a530=_0x236625[_0x35ea12(0x177)](getPlaywrightTestCode,_0x13b264),_0x34d69d=_0x236625['YDodo'](getPlaywrightTestFilePath,_0x13b264),_0x58201e=_0x34d69d+':'+_0x236625[_0x35ea12(0x1c8)](getPlaywrightTestLocation,_0x13b264),_0x117e6b=_0x236625[_0x35ea12(0x177)](getPlaywrightTestScope,_0x13b264),_0x87c559=_0x236625[_0x35ea12(0x11a)](getPlaywrightTestScopes,_0x13b264),_0x1f2442=_0x236625[_0x35ea12(0x12a)](getPlaywrightSessionName,_0x13b264),_0x57962a=this['getTestFrameworks']()[0x0],_0x4777ff=_0x236625['gxEGy'](getTestRunIdentifier,_0x13b264,_0x2e101b[_0x35ea12(0x167)]),_0x3325da={[TestFrameworkConstants[_0x35ea12(0x154)]]:_0x57962a,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:this[_0x35ea12(0x1ed)]()[_0x57962a],[TestFrameworkConstants[_0x35ea12(0x131)]]:[],[TestFrameworkConstants[_0x35ea12(0x182)]]:{},[TestFrameworkConstants[_0x35ea12(0x11f)]]:{},[TestFrameworkConstants[_0x35ea12(0x139)]]:_0x5080bf,[TestFrameworkConstants[_0x35ea12(0x18e)]]:TestFrameworkConstants[_0x35ea12(0x173)],[TestFrameworkConstants[_0x35ea12(0x192)]]:_0x1f2442,[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x34d69d,[TestFrameworkConstants[_0x35ea12(0x1a8)]]:_0x2e61c7,[TestFrameworkConstants[_0x35ea12(0x16c)]]:_0x5af679,[TestFrameworkConstants[_0x35ea12(0x15f)]]:_0x58201e,[TestFrameworkConstants[_0x35ea12(0x122)]]:_0x29a530,[TestFrameworkConstants[_0x35ea12(0x127)]]:_0x2dbd2b,[TestFrameworkConstants[_0x35ea12(0x1d9)]]:_0x13b264['results'][0x0][_0x35ea12(0x1e1)],[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x117e6b,[TestFrameworkConstants[_0x35ea12(0x19c)]]:_0x87c559,[TestFrameworkConstants[_0x35ea12(0x1c0)]]:_0x236625[_0x35ea12(0x12a)](getPlaywrightCustomRerunParam,_0x13b264)};TestInfo['setTestDetails'](_0x4777ff,_0x3325da);const _0x194f5a={};return _0x194f5a[_0x4777ff]=_0x3325da,_0x194f5a;}[a67_0x2699b6(0x125)](_0x36d8bd,_0x7c2e9c,_0x415881){const _0x16489f=a67_0x2699b6,_0xcec8b6={'FTOvh':function(_0x24a060,_0x292b0a){return _0x24a060(_0x292b0a);},'jcKBy':_0x16489f(0x123),'ErphC':function(_0x98a862,_0x452e3e){return _0x98a862===_0x452e3e;},'fYxzK':_0x16489f(0x14e),'Tpxbk':_0x16489f(0x1ac),'UxAnL':function(_0x5a4074,_0x30136e,_0xab3c4c){return _0x5a4074(_0x30136e,_0xab3c4c);},'WGqDf':function(_0x36cb43,_0x43c2c0){return _0x36cb43+_0x43c2c0;},'ZoyEd':function(_0x39170e,_0x3edbed){return _0x39170e===_0x3edbed;},'PHgHY':_0x16489f(0x147),'EhPAR':_0x16489f(0x16d),'cVeSg':function(_0x4768b3,_0x4bca59){return _0x4768b3===_0x4bca59;},'pvCCM':'failed','rzxPh':function(_0x282e7e,_0x321062){return _0x282e7e===_0x321062;},'ptixP':'timedOut','SVRyW':function(_0xce023e,_0xcb0251){return _0xce023e===_0xcb0251;},'WRiPR':function(_0x49bdfd,_0xd4def6){return _0x49bdfd===_0xd4def6;},'VLgTC':_0x16489f(0x1d5),'epedS':function(_0x4b732e,_0x15eadd){return _0x4b732e||_0x15eadd;},'AKcEk':function(_0x28e6de,_0x209f23){return _0x28e6de(_0x209f23);},'JQaLx':function(_0x501211,_0x561ff4){return _0x501211>_0x561ff4;},'Iexcr':function(_0x5787a7,_0x3be0d3){return _0x5787a7-_0x3be0d3;},'TbTsj':_0x16489f(0x130)};logger['debug']('parsePlaywrightTestResult:\x20testId='+_0x36d8bd);const _0xf96d2c=_0xcec8b6[_0x16489f(0x189)](getTestRunIdentifier,_0x415881,_0x7c2e9c[_0x16489f(0x167)]),_0x4af6be=new Date(_0x7c2e9c[_0x16489f(0x1e1)]),_0x3eca7c=_0x7c2e9c['duration'],_0x40e04f=new Date(_0xcec8b6[_0x16489f(0x1ca)](_0x4af6be[_0x16489f(0x1f1)](),_0x3eca7c)),_0x85a287=_0x7c2e9c[_0x16489f(0x1bc)],_0x366f80=TestInfo['getTestDetails'](_0xf96d2c)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};let _0x312ee7=_0x85a287;if(_0xcec8b6[_0x16489f(0x146)](_0x7c2e9c['status'],_0x415881['expectedStatus']))_0x312ee7=_0xcec8b6[_0x16489f(0x146)](_0x7c2e9c[_0x16489f(0x1bc)],_0xcec8b6[_0x16489f(0x13e)])?_0xcec8b6[_0x16489f(0x13e)]:_0xcec8b6[_0x16489f(0x144)];else{(_0xcec8b6[_0x16489f(0x1de)](_0x312ee7,_0xcec8b6[_0x16489f(0x144)])||_0xcec8b6[_0x16489f(0x1a4)](_0x312ee7,_0xcec8b6['pvCCM'])||_0xcec8b6[_0x16489f(0x17d)](_0x312ee7,_0xcec8b6[_0x16489f(0x1e3)]))&&(_0x312ee7=_0xcec8b6[_0x16489f(0x1ef)]);if(_0xcec8b6[_0x16489f(0x18f)](_0x7c2e9c[_0x16489f(0x1bc)],_0xcec8b6[_0x16489f(0x144)])&&_0xcec8b6[_0x16489f(0x1bf)](_0x415881[_0x16489f(0x1e8)],_0xcec8b6[_0x16489f(0x1ef)])){const _0x5ba246={};_0x5ba246['message']=_0xcec8b6[_0x16489f(0x185)],_0x5ba246[_0x16489f(0x141)]=_0xcec8b6['VLgTC'],_0x7c2e9c[_0x16489f(0x196)]=_0x5ba246,_0x7c2e9c[_0x16489f(0x166)]=[_0x7c2e9c[_0x16489f(0x196)]];}}const {failureData:_0x5e80c6,logs:_0xa964a2}=_0xcec8b6['UxAnL'](getFailureData,_0x7c2e9c?.['errors'],{}),_0x1f737a={[TestFrameworkConstants[_0x16489f(0x142)]]:_0xcec8b6[_0x16489f(0x150)](_0x5e80c6,null),[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]:_0x7c2e9c?.[_0x16489f(0x196)]&&_0xcec8b6['FTOvh'](getFailureType,_0x7c2e9c[_0x16489f(0x196)]['message']),[TestFrameworkConstants[_0x16489f(0x18b)]]:_0x7c2e9c?.[_0x16489f(0x196)]&&_0xcec8b6[_0x16489f(0x181)](removeAnsiColors,_0x7c2e9c[_0x16489f(0x196)][_0x16489f(0x13d)]),[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants[_0x16489f(0x18e)]]:_0x312ee7,[TestFrameworkConstants[_0x16489f(0x1c7)]]:_0x40e04f[_0x16489f(0x1eb)](),[TestFrameworkConstants[_0x16489f(0x1ea)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x16489f(0x136)]]:_0x366f80};if(_0x7c2e9c&&_0xcec8b6['JQaLx'](_0x7c2e9c[_0x16489f(0x167)],0x0)){const _0x11adff=TestInfo['getTestUUID'](_0xcec8b6['UxAnL'](getTestRunIdentifier,_0x415881,_0xcec8b6[_0x16489f(0x16b)](_0x7c2e9c[_0x16489f(0x167)],0x1)));_0x1f737a[TestFrameworkConstants[_0x16489f(0x1f5)]]=_0x11adff;}const _0x31ce82={};_0x31ce82['test']=_0x415881;const _0x2d2a89=this[_0x16489f(0x1d1)](TestFrameworkState[_0x16489f(0x1df)],HookState[_0x16489f(0x195)],_0x31ce82),_0x1f82db=_0x2d2a89[_0x16489f(0x186)]()[_0x16489f(0x16a)](_0xf96d2c)[TestFrameworkConstants[_0x16489f(0x139)]],_0x4aa54d=[],_0xa69821=_0xcec8b6['UxAnL'](findNestedKey,_0x7c2e9c,_0xcec8b6['TbTsj']);if(_0xa69821&&_0xcec8b6['AKcEk'](validateFilePath,_0xa69821))try{_0x4aa54d[_0x16489f(0x137)]({'kind':_0xcec8b6[_0x16489f(0x158)],'timestamp':new Date()[_0x16489f(0x1eb)](),'test_run_uuid':_0x1f82db,'file_name':path['basename'](_0xa69821),'file_size':fs[_0x16489f(0x149)](_0xa69821)[_0x16489f(0x15d)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x3cb997){logger[_0x16489f(0x196)](_0x16489f(0x119)+_0xa69821+':\x20'+_0x3cb997[_0x16489f(0x13d)]);}const _0xa4a78f=TestInfo[_0x16489f(0x1ab)](),_0x12c0ed=_0xa4a78f[_0x16489f(0x15b)](_0x349fc7=>_0x349fc7['testUId']===_0x1f82db);_0x12c0ed[_0x16489f(0x156)](_0x19882a=>{const _0x4c2ed8=_0x16489f;if(_0x19882a[_0x4c2ed8(0x13f)]&&_0xcec8b6[_0x4c2ed8(0x180)](validateFilePath,_0x19882a[_0x4c2ed8(0x13f)])&&!_0x4aa54d[_0x4c2ed8(0x14a)](_0x25f78b=>_0x25f78b[_0x4c2ed8(0x1cc)]===path['basename'](_0x19882a[_0x4c2ed8(0x13f)])))try{_0x4aa54d[_0x4c2ed8(0x137)]({'kind':_0xcec8b6[_0x4c2ed8(0x158)],'timestamp':new Date()['toISOString'](),'test_run_uuid':_0x1f82db,'file_name':path[_0x4c2ed8(0x12e)](_0x19882a[_0x4c2ed8(0x13f)]),'file_size':fs[_0x4c2ed8(0x149)](_0x19882a['filePath'])[_0x4c2ed8(0x15d)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x21f9ca){logger['error'](_0x4c2ed8(0x184)+_0x19882a[_0x4c2ed8(0x13f)]+_0x4c2ed8(0x155)+_0x21f9ca[_0x4c2ed8(0x13d)]);}});if(_0xcec8b6[_0x16489f(0x134)](_0x4aa54d[_0x16489f(0x1d3)],0x0)){const _0x1d3969=_0x1f737a[TestFrameworkConstants[_0x16489f(0x1cf)]]||[];_0x1f737a[TestFrameworkConstants[_0x16489f(0x1cf)]]=[..._0x1d3969,..._0x4aa54d];}const _0x4438d2=TestInfo[_0x16489f(0x16e)](_0xf96d2c)[TestFrameworkConstants[_0x16489f(0x1cb)]]||{},_0x3bfff5=_0xcec8b6[_0x16489f(0x189)](getManualUploadLogs,_0x4438d2,_0x2d2a89[_0x16489f(0x186)]()[_0x16489f(0x16a)](_0xf96d2c)[TestFrameworkConstants[_0x16489f(0x139)]]);if(_0xcec8b6['JQaLx'](_0x3bfff5['length'],0x0)){const _0x747d7e=_0x1f737a[TestFrameworkConstants[_0x16489f(0x1cf)]]||[];_0x1f737a[TestFrameworkConstants[_0x16489f(0x1cf)]]=[..._0x747d7e,..._0x3bfff5];}const _0x405343=_0x415881[_0x16489f(0x135)]||[],_0x444954=_0x1f737a[TestFrameworkConstants[_0x16489f(0x136)]]||{};_0x405343[_0x16489f(0x156)](_0x3b60f0=>{const _0x2bb15a=_0x16489f,{type:_0x3f8431}=_0x3b60f0;let _0x58d7ee=_0x3b60f0[_0x2bb15a(0x1d2)];if(!_0x3f8431)return;(_0xcec8b6[_0x2bb15a(0x1de)](_0x58d7ee,undefined)||_0xcec8b6['ErphC'](_0x58d7ee,null)||_0xcec8b6['ErphC'](_0xcec8b6[_0x2bb15a(0x180)](String,_0x58d7ee)[_0x2bb15a(0x117)](),''))&&(_0x58d7ee=_0xcec8b6[_0x2bb15a(0x1db)]);if(!_0x444954[_0x3f8431]){const _0x1345ce={};_0x1345ce['field_type']=_0xcec8b6[_0x2bb15a(0x1c9)],_0x1345ce[_0x2bb15a(0x1e0)]=[],_0x444954[_0x3f8431]=_0x1345ce;}else!_0x444954[_0x3f8431][_0x2bb15a(0x1ce)]&&(_0x444954[_0x3f8431][_0x2bb15a(0x1ce)]=_0xcec8b6[_0x2bb15a(0x1c9)]),!Array[_0x2bb15a(0x1b5)](_0x444954[_0x3f8431][_0x2bb15a(0x1e0)])&&(_0x444954[_0x3f8431]['values']=[]);const _0x17610f=_0xcec8b6['FTOvh'](String,_0x58d7ee)[_0x2bb15a(0x157)](',')[_0x2bb15a(0x1ee)](_0x2ef209=>_0x2ef209['trim']());_0x444954[_0x3f8431]['values']=[...new Set([..._0x444954[_0x3f8431][_0x2bb15a(0x1e0)],..._0x17610f])];}),_0x1f737a[TestFrameworkConstants[_0x16489f(0x136)]]=_0x444954,TestInfo[_0x16489f(0x19b)](_0xf96d2c,_0x1f737a);const _0x1f7d21={};return _0x1f7d21[_0xf96d2c]=_0x1f737a,_0x1f7d21;}async['trackHookEvent'](_0x271620,_0x578102,_0x270466,_0x63689e){const _0x28bdaa=a67_0x2699b6,_0xba5e8b={'YaHfN':function(_0x2b8d20,_0x3797d9,_0x3e7a5){return _0x2b8d20(_0x3797d9,_0x3e7a5);},'JMSiL':function(_0x4f1a7c,_0x549b3e){return _0x4f1a7c in _0x549b3e;},'pwPFw':function(_0xb300c0,_0x3a8810){return _0xb300c0 in _0x3a8810;},'wDPLJ':function(_0x1d7809,_0x38f8f3){return _0x1d7809(_0x38f8f3);},'nOlTQ':function(_0xa3a215,_0x394b3a){return _0xa3a215===_0x394b3a;},'PEFRl':function(_0x1439f1){return _0x1439f1();},'dvYOE':function(_0x2525ae,_0x35d2c7){return _0x2525ae>_0x35d2c7;},'fGeWt':_0x28bdaa(0x1a5),'CLcZv':_0x28bdaa(0x17f),'pMPxE':_0x28bdaa(0x16d),'ffVtT':function(_0x147f02,_0x35ad8f){return _0x147f02!==_0x35ad8f;},'gJJsQ':function(_0x5622c7,_0x1fc646){return _0x5622c7+_0x1fc646;},'UZSDp':'hook'},_0x3c1e2f=_0x63689e[_0x28bdaa(0x1f4)],_0x43c56d=_0x63689e[_0x28bdaa(0x199)],_0x48770e=_0xba5e8b['YaHfN'](getTestRunIdentifier,_0x3c1e2f,_0x63689e['result'][_0x28bdaa(0x167)]),_0x33ce02=_0x578102[_0x28bdaa(0x191)]()[_0x28bdaa(0x157)]('.')[0x1];let _0x232dd7=_0x271620[_0x28bdaa(0x186)]()[_0x28bdaa(0x16a)](_0x48770e)[TestFrameworkConstants[_0x28bdaa(0x11f)]];!_0x232dd7&&(_0x232dd7={});!_0xba5e8b['JMSiL'](_0x33ce02,_0x232dd7)&&(_0x232dd7[_0x33ce02]=[]);let _0xe41021=_0x271620['getAllData']()[_0x28bdaa(0x16a)](_0x48770e)[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0xe41021&&(_0xe41021={});!_0xba5e8b[_0x28bdaa(0x19a)](_0x33ce02,_0xe41021)&&(_0xe41021[_0x33ce02]=[]);const _0x3f214d={[TestFrameworkConstants[_0x28bdaa(0x11f)]]:_0x232dd7,[TestFrameworkConstants[_0x28bdaa(0x182)]]:_0xe41021},_0x3706a1={};_0x3706a1[_0x48770e]=_0x3f214d;const _0x873e2e=_0x3706a1,_0x5b4b79=_0xba5e8b['wDPLJ'](getPlaywrightTestFilePath,_0x3c1e2f),_0x5c2e33=_0x5b4b79+':'+_0xba5e8b[_0x28bdaa(0x1ae)](getPlaywrightTestLocation,_0x3c1e2f),_0x2d3730=TestInfo[_0x28bdaa(0x16e)](_0x48770e)[TestFrameworkConstants[_0x28bdaa(0x136)]]||{};if(_0xba5e8b[_0x28bdaa(0x1c3)](_0x270466,HookState[_0x28bdaa(0x1c2)])){const _0xae7778={'key':_0x33ce02,[TestFrameworkConstants['KEY_HOOK_ID']]:_0xba5e8b[_0x28bdaa(0x172)](uuidv4),[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x28bdaa(0x1b4)],[TestFrameworkConstants[_0x28bdaa(0x1b0)]]:_0x43c56d[_0x28bdaa(0x1e1)],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants[_0x28bdaa(0x1f7)]]:_0x43c56d[_0x28bdaa(0x15e)],[TestFrameworkConstants[_0x28bdaa(0x153)]]:_0x5b4b79,[TestFrameworkConstants[_0x28bdaa(0x15f)]]:_0x5c2e33,[TestFrameworkConstants[_0x28bdaa(0x136)]]:_0x2d3730};_0x232dd7[_0x33ce02]['push'](_0xae7778),_0x873e2e[_0x48770e][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x33ce02,logger[_0x28bdaa(0x1e2)](_0x28bdaa(0x1a3)+_0x33ce02+_0x28bdaa(0x19d)+_0xae7778+_0x28bdaa(0x1a7)+_0x63689e);}else{if(_0xba5e8b[_0x28bdaa(0x1c3)](_0x270466,HookState[_0x28bdaa(0x195)])){const _0x25db8d=await _0x63689e['result'],_0x3287d3=_0x232dd7[_0x33ce02]||[],_0x115d88=_0x63689e[_0x28bdaa(0x199)];logger[_0x28bdaa(0x1e2)](_0x28bdaa(0x14f)+_0x3287d3+_0x28bdaa(0x1d0)+_0x63689e);if(_0xba5e8b[_0x28bdaa(0x1e4)](_0x3287d3[_0x28bdaa(0x1d3)],0x0)){const _0x3e94d8=_0x3287d3[_0x28bdaa(0x1ba)]();if(_0x115d88['error']){const _0x22c0d3=_0xba5e8b[_0x28bdaa(0x12c)](failureData,_0x115d88[_0x28bdaa(0x196)],_0xba5e8b['fGeWt']);_0x3e94d8[TestFrameworkConstants[_0x28bdaa(0x1d6)]]=_0xba5e8b[_0x28bdaa(0x1ae)](getFailureType,_0x115d88?.[_0x28bdaa(0x196)][_0x28bdaa(0x13d)]),_0x3e94d8[TestFrameworkConstants[_0x28bdaa(0x1da)]]=_0xba5e8b[_0x28bdaa(0x1ae)](removeAnsiColors,_0x115d88?.[_0x28bdaa(0x196)]['message']),_0x3e94d8[TestFrameworkConstants[_0x28bdaa(0x190)]]=_0xba5e8b[_0x28bdaa(0x148)],_0x3e94d8[TestFrameworkConstants[_0x28bdaa(0x14c)]]=_0x22c0d3;}else _0x3e94d8[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0xba5e8b[_0x28bdaa(0x187)];_0xba5e8b[_0x28bdaa(0x151)](_0x25db8d,TestFrameworkConstants[_0x28bdaa(0x1b4)])&&(_0x3e94d8[TestFrameworkConstants['KEY_HOOK_RESULT']]=!_0x115d88[_0x28bdaa(0x196)]?_0xba5e8b[_0x28bdaa(0x187)]:_0xba5e8b[_0x28bdaa(0x148)]);const _0x17e265=new Date(_0x115d88[_0x28bdaa(0x1e1)]),_0x25f658=new Date(_0xba5e8b['gJJsQ'](_0x17e265[_0x28bdaa(0x1f1)](),_0x115d88[_0x28bdaa(0x159)]));_0x3e94d8[TestFrameworkConstants[_0x28bdaa(0x1b2)]]=_0x25f658['toISOString'](),_0x3e94d8[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x2d3730;const _0x1c15cd=_0x3e94d8[TestFrameworkConstants[_0x28bdaa(0x15c)]];await this[_0x28bdaa(0x193)](_0x271620,_0x578102,_0x1c15cd,_0xba5e8b[_0x28bdaa(0x121)],_0x63689e),!_0xe41021[_0x33ce02]&&(_0xe41021[_0x33ce02]=[]),_0xe41021[_0x33ce02][_0x28bdaa(0x137)](_0x3e94d8),_0x873e2e[_0x48770e][TestFrameworkConstants[_0x28bdaa(0x183)]]=_0x33ce02;}}}return _0x873e2e;}async[a67_0x2699b6(0x193)](_0x4d3d86,_0x3eb653,_0x401d13,_0x28ee73,_0x4fbcc8){const _0x502635=a67_0x2699b6,_0xfa139d={'qoueS':function(_0xee14d4,_0x356054){return _0xee14d4===_0x356054;},'IZFIk':'test','fuBhR':function(_0x4f0831,_0x382251,_0x366d51){return _0x4f0831(_0x382251,_0x366d51);},'SuGlc':'attachments','cKLxh':function(_0x3d0072,_0x2ac91d,_0x5c24f1,_0x5d941f){return _0x3d0072(_0x2ac91d,_0x5c24f1,_0x5d941f);},'uZsPw':function(_0x2af9d5,_0x8fe4e9,_0x43b89a){return _0x2af9d5(_0x8fe4e9,_0x43b89a);},'NLlHR':function(_0x37f645,_0x3df8a1,_0x338a5a){return _0x37f645(_0x3df8a1,_0x338a5a);},'yWCta':function(_0x2bb611,_0x19ce1c){return _0x2bb611/_0x19ce1c;},'zkANG':function(_0x5395a0,_0x44ea69){return _0x5395a0<_0x44ea69;},'uTStd':function(_0x788ebe,_0x4fe473){return _0x788ebe*_0x4fe473;},'TTJCC':function(_0x531f92,_0x1f38db){return _0x531f92+_0x1f38db;},'rZWFf':function(_0x3a6150,_0xeb7f4,_0x2ddb8c,_0x2a5a7e,_0x56186c){return _0x3a6150(_0xeb7f4,_0x2ddb8c,_0x2a5a7e,_0x56186c);},'hlqqb':function(_0x3dd296,_0x4cb6e0){return _0x3dd296+_0x4cb6e0;},'OMNcX':'hook','UDKZG':function(_0x3d0869,_0x5ab3ec,_0x31f4ba){return _0x3d0869(_0x5ab3ec,_0x31f4ba);}};try{if(_0xfa139d[_0x502635(0x13a)](_0x28ee73,_0xfa139d[_0x502635(0x1a2)])){const _0x1e0808=await _0x4fbcc8['result'],_0x1a081f=_0xfa139d['fuBhR'](getTestRunIdentifier,_0x4fbcc8[_0x502635(0x1f4)],_0x4fbcc8[_0x502635(0x19e)]['retry']),_0x242ff4=_0x4fbcc8[_0x502635(0x1f4)];logger[_0x502635(0x1e2)](_0x502635(0x16f)+_0x1a081f+_0x502635(0x188)+util[_0x502635(0x12d)](_0x1e0808));const _0x2d72aa=_0x4d3d86[_0x502635(0x186)]()['get'](_0x1a081f)[TestFrameworkConstants[_0x502635(0x139)]];await _0xfa139d[_0x502635(0x176)](sendTraceZip,_0x1e0808,_0x2d72aa);const _0x61eaf8=TestInfo[_0x502635(0x16e)](_0x1a081f)[_0xfa139d[_0x502635(0x1cd)]],_0x3c1cb5={};if(_0x61eaf8){!_0x1e0808[_0x502635(0x1ad)]&&(_0x1e0808['attachments']=[]);_0x3c1cb5[_0x502635(0x1ad)]=_0x1e0808[_0x502635(0x1ad)]['concat'](_0x61eaf8||[]);const _0x1f97a4=TestInfo[_0x502635(0x16e)](_0x1a081f);delete _0x1f97a4[_0xfa139d[_0x502635(0x1cd)]],TestInfo['setTestDetails'](_0x1a081f,_0x1f97a4);}const {steps:_0x57ca48,logs:_0x3bd005}=_0xfa139d[_0x502635(0x160)](getStepsAndLogs,_0x1e0808[_0x502635(0x1e9)],_0x4d3d86[_0x502635(0x186)]()['get'](_0x1a081f)[TestFrameworkConstants['KEY_TEST_UUID']],_0xfa139d[_0x502635(0x1a2)]),_0x2bde8b=_0xfa139d[_0x502635(0x176)](getScreenshots,_0x3c1cb5,_0x4d3d86['getAllData']()[_0x502635(0x16a)](_0x1a081f)[TestFrameworkConstants[_0x502635(0x139)]]),_0x4f2d26=_0xfa139d[_0x502635(0x176)](getVideos,_0x1e0808,_0x4d3d86[_0x502635(0x186)]()[_0x502635(0x16a)](_0x1a081f)[TestFrameworkConstants['KEY_TEST_UUID']]),{_:_0xabeacf,logs:_0x1caa83}=_0xfa139d[_0x502635(0x1bd)](getFailureData,_0x1e0808[_0x502635(0x166)],{'test_run_uuid':_0x4d3d86[_0x502635(0x186)]()[_0x502635(0x16a)](_0x1a081f)[TestFrameworkConstants[_0x502635(0x139)]]}),_0x2f58c8=TestInfo[_0x502635(0x16e)](_0x1a081f)[TestFrameworkConstants[_0x502635(0x1cb)]]||{},_0x36bfc0=_0xfa139d[_0x502635(0x1a0)](getMediaArtifactsLogs,_0x2f58c8,_0x4d3d86[_0x502635(0x186)]()[_0x502635(0x16a)](_0x1a081f)[TestFrameworkConstants[_0x502635(0x139)]]),_0x528d66=_0x4d3d86[_0x502635(0x186)]()[_0x502635(0x16a)](_0x1a081f),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x42c934='',[TestFrameworkConstants[_0x502635(0x17a)]]:_0x55288a=''}=_0x528d66,_0x1a8ac4=(_0x3bd005||[])[_0x502635(0x152)](_0x2bde8b||[])[_0x502635(0x152)](_0x1caa83||[])['concat'](_0x4f2d26||[])[_0x502635(0x152)](_0x36bfc0||[]),_0x5a0731=0x28,_0x41b53c=Math[_0x502635(0x1d8)](_0xfa139d[_0x502635(0x1d4)](_0x1a8ac4[_0x502635(0x1d3)],_0x5a0731));for(let _0x1a8e75=0x0;_0xfa139d['zkANG'](_0x1a8e75,_0x41b53c);_0x1a8e75++){const _0x1914c4=_0xfa139d['uTStd'](_0x1a8e75,_0x5a0731),_0x182507=_0xfa139d[_0x502635(0x1a6)](_0x1914c4,_0x5a0731),_0x3e8012=_0x1a8ac4[_0x502635(0x1a9)](_0x1914c4,_0x182507),_0x4bf8b0={'platformIndex':'0','logs':_0x3e8012,'testFrameworkName':_0x42c934,'testFrameworkVersion':_0x55288a,'testFrameworkState':_0x3eb653[_0x502635(0x191)]()[_0x502635(0x157)]('.')[0x1]};_0xfa139d[_0x502635(0x1e6)](updatePayloadForTraceLogs,_0x4bf8b0,_0x4fbcc8,_0x1a081f,_0x4d3d86),logger['debug'](_0x502635(0x164)+_0x1a081f+_0x502635(0x19f)+_0xfa139d[_0x502635(0x132)](_0x1a8e75,0x1)+'/'+_0x41b53c+_0x502635(0x1e5)+util[_0x502635(0x12d)](_0x4bf8b0));const _0x4195e1=await GrpcClient[_0x502635(0x143)]()[_0x502635(0x140)](_0x4bf8b0);logger[_0x502635(0x1e2)](_0x502635(0x164)+_0x1a081f+'\x20batch\x20'+_0xfa139d[_0x502635(0x1a6)](_0x1a8e75,0x1)+'/'+_0x41b53c+_0x502635(0x1f2)+util['inspect'](_0x4195e1));}}else{const {steps:_0x34b884,logs:_0x159d82}=_0xfa139d[_0x502635(0x160)](getStepsAndLogs,_0x4fbcc8['step'][_0x502635(0x1e9)],_0x401d13,_0xfa139d[_0x502635(0x11e)]),_0x465822=_0xfa139d['UDKZG'](getTestRunIdentifier,_0x4fbcc8[_0x502635(0x1f4)],_0x4fbcc8[_0x502635(0x19e)][_0x502635(0x167)]);logger[_0x502635(0x1e2)](_0x502635(0x16f)+_0x465822);const _0x2bedad=_0x4d3d86[_0x502635(0x186)]()[_0x502635(0x16a)](_0x465822),{[TestFrameworkConstants[_0x502635(0x154)]]:_0x3a0648='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x19f984=''}=_0x2bedad,_0x30cb8c={'platformIndex':'0','logs':_0x159d82,'testFrameworkName':_0x3a0648,'testFrameworkVersion':_0x19f984,'testFrameworkState':_0x3eb653[_0x502635(0x191)]()[_0x502635(0x157)]('.')[0x1]};_0xfa139d[_0x502635(0x1e6)](updatePayloadForTraceLogs,_0x30cb8c,_0x4fbcc8,_0x465822,_0x4d3d86),logger['debug'](_0x502635(0x164)+_0x465822+_0x502635(0x1e5)+util['inspect'](_0x30cb8c));const _0x219470=await GrpcClient[_0x502635(0x143)]()[_0x502635(0x140)](_0x30cb8c);}}catch(_0x4b4239){logger[_0x502635(0x196)](_0x502635(0x1d7)+util[_0x502635(0x12b)](_0x4b4239));}}}module[a67_0x2699b6(0x1f6)]=PlaywrightTestFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x279480=a68_0x4e0f;(function(_0x12eb3b,_0x742712){const _0x5f5303=a68_0x4e0f,_0xd868ef=_0x12eb3b();while(!![]){try{const _0x56a12c=parseInt(_0x5f5303(0x1ad))/0x1*(-parseInt(_0x5f5303(0x1cf))/0x2)+parseInt(_0x5f5303(0x1c6))/0x3*(-parseInt(_0x5f5303(0x1c7))/0x4)+parseInt(_0x5f5303(0x1b9))/0x5+parseInt(_0x5f5303(0x1b3))/0x6+-parseInt(_0x5f5303(0x1c5))/0x7+parseInt(_0x5f5303(0x1c0))/0x8+parseInt(_0x5f5303(0x1b2))/0x9*(parseInt(_0x5f5303(0x1c1))/0xa);if(_0x56a12c===_0x742712)break;else _0xd868ef['push'](_0xd868ef['shift']());}catch(_0xaf2f1d){_0xd868ef['push'](_0xd868ef['shift']());}}}(a68_0x52db,0xb763d));function a68_0x52db(){const _0x3a80fa=['31wNydfX','getAllData','testFrameworkVersions',';\x20hookState=','getTestFrameworksVersions','2907081Xhoeoz','1668582hrnuns','runHooks','set','../state/testFrameworkState','getHookRegistryKey','getId','5533975zNxlFC','testFrameworks','binSessionId','get','createContext','instances','../eventDispatcher','1099080iZSVnC','10wXdqGl','../../../helpers/classLogger','TestFramework','exports','4494175YbcEyz','3jsRWFo','1590268CDQLqH','getTrackedInstance','setInstance','hasState','../instances/trackedContext','setTrackedInstance','trackEvent:\x20testFrameworkState=','setCurrentHookState','3518ToQXrh','../cliUtils','has','../instances/trackedInstance','getState','registerObserver'];a68_0x52db=function(){return _0x3a80fa;};return a68_0x52db();}const CLIUtils=require(a68_0x279480(0x1d0)),eventDispatcher=require(a68_0x279480(0x1bf)),TestFrameworkInstance=require('../instances/testFrameworkInstance'),TrackedContext=require(a68_0x279480(0x1cb)),TestFrameworkState=require(a68_0x279480(0x1b6)),HookState=require('../state/hookState'),{createClassLogger}=require(a68_0x279480(0x1c2)),TrackedInstance=require(a68_0x279480(0x1aa)),logger=createClassLogger(a68_0x279480(0x1c3));function a68_0x4e0f(_0x166506,_0x4bcf66){const _0x52db8a=a68_0x52db();return a68_0x4e0f=function(_0x4e0f67,_0x5d5b0f){_0x4e0f67=_0x4e0f67-0x1a9;let _0x17a45a=_0x52db8a[_0x4e0f67];return _0x17a45a;},a68_0x4e0f(_0x166506,_0x4bcf66);}class TestFramework{static ['instances']=new Map();[a68_0x279480(0x1ba)]=[];[a68_0x279480(0x1af)]={};[a68_0x279480(0x1bb)]=null;constructor(_0x3337fb,_0x6433ef,_0x196f87){const _0x1caaa0=a68_0x279480;this[_0x1caaa0(0x1ba)]=_0x3337fb,this[_0x1caaa0(0x1af)]=_0x6433ef,this[_0x1caaa0(0x1bb)]=_0x196f87;}['getInstances'](){return TestFramework['instances'];}[a68_0x279480(0x1c9)](_0x2974ce,_0x35bbb5){const _0x5d2bcd=a68_0x279480;TestFramework['instances']['set'](_0x2974ce[_0x5d2bcd(0x1b8)],_0x35bbb5);}static[a68_0x279480(0x1c8)](){const _0x4ffb9c=a68_0x279480,_0x41011f=TrackedInstance[_0x4ffb9c(0x1bd)](CLIUtils['getCurrentInstanceName']());return TestFramework[_0x4ffb9c(0x1be)][_0x4ffb9c(0x1bc)](_0x41011f['getId']());}static[a68_0x279480(0x1cc)](_0x59a76b,_0x379586){const _0x5e4189=a68_0x279480;TestFramework[_0x5e4189(0x1be)]['set'](_0x59a76b[_0x5e4189(0x1b8)](),_0x379586);}[a68_0x279480(0x1b1)](){const _0x4a06e0=a68_0x279480;return this[_0x4a06e0(0x1af)];}['getTestFrameworks'](){const _0x71a7bf=a68_0x279480;return this[_0x71a7bf(0x1ba)];}['trackEvent'](_0x3b7a23,_0x295833,_0x550bee={}){const _0x33a343=a68_0x279480;logger['debug'](_0x33a343(0x1cd)+_0x3b7a23+_0x33a343(0x1b0)+_0x295833);}async[a68_0x279480(0x1b4)](_0x1f9b7c,_0x4f39cf,_0x2a6b69,_0x48535d={}){const _0x4b065d=a68_0x279480,_0x2cba2f=CLIUtils[_0x4b065d(0x1b7)](_0x4f39cf,_0x2a6b69);_0x1f9b7c['setCurrentTestState'](_0x4f39cf),_0x1f9b7c[_0x4b065d(0x1ce)](_0x2a6b69),await eventDispatcher['notifyObserver'](_0x2cba2f,_0x48535d);}static[a68_0x279480(0x1ac)](_0x1b24cc,_0x100888,_0x2810d1){const _0x36cc97=a68_0x279480;eventDispatcher[_0x36cc97(0x1ac)](CLIUtils['getHookRegistryKey'](_0x1b24cc,_0x100888),_0x2810d1);}static[a68_0x279480(0x1ab)](_0x32692b,_0x5c3865){return _0x32692b['getAllData']()['get'](_0x5c3865);}static['setState'](_0x38bab6,_0x862f66,_0x6d2a69){const _0x42ff13=a68_0x279480;_0x38bab6[_0x42ff13(0x1ae)]()[_0x42ff13(0x1b5)](_0x862f66,_0x6d2a69);}static[a68_0x279480(0x1ca)](_0x363662,_0x5efbe4){const _0x93574=a68_0x279480;return _0x363662['getAllData']()[_0x93574(0x1a9)](_0x5efbe4);}}module[a68_0x279480(0x1c4)]=TestFramework;
|
package/src/bin/v2/grpcClient.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a69_0x965da=a69_0x2fc2;function a69_0x2fc2(_0x1d8669,_0x53df40){const _0x12e60c=a69_0x12e6();return a69_0x2fc2=function(_0x2fc29f,_0x3f1104){_0x2fc29f=_0x2fc29f-0xfd;let _0x5780a4=_0x12e60c[_0x2fc29f];return _0x5780a4;},a69_0x2fc2(_0x1d8669,_0x53df40);}(function(_0x31a961,_0x1af8a4){const _0x6f982c=a69_0x2fc2,_0x5ce0cf=_0x31a961();while(!![]){try{const _0x3c85a8=-parseInt(_0x6f982c(0x16b))/0x1*(-parseInt(_0x6f982c(0x17e))/0x2)+parseInt(_0x6f982c(0x178))/0x3*(-parseInt(_0x6f982c(0x14c))/0x4)+parseInt(_0x6f982c(0x171))/0x5+parseInt(_0x6f982c(0x192))/0x6*(-parseInt(_0x6f982c(0x198))/0x7)+parseInt(_0x6f982c(0x155))/0x8*(-parseInt(_0x6f982c(0x1a1))/0x9)+parseInt(_0x6f982c(0x139))/0xa*(parseInt(_0x6f982c(0x14a))/0xb)+parseInt(_0x6f982c(0x18e))/0xc;if(_0x3c85a8===_0x1af8a4)break;else _0x5ce0cf['push'](_0x5ce0cf['shift']());}catch(_0x56a1fb){_0x5ce0cf['push'](_0x5ce0cf['shift']());}}}(a69_0x12e6,0x67ab5));const util=require(a69_0x965da(0x141)),logger=require(a69_0x965da(0x109))[a69_0x965da(0x193)],grpc=require(a69_0x965da(0x180)),services=require('../../../generated/sdk_grpc_pb'),messages=require(a69_0x965da(0x110)),path=require(a69_0x965da(0x15b)),CLIUtils=require('./cliUtils.js'),{createClassLogger}=require(a69_0x965da(0x1ba)),PerformanceTester=require(a69_0x965da(0x150)),{EVENTS:PerformanceEvents}=require(a69_0x965da(0x129)),{PLAYWRIGHT_TRACE_LOGS}=require(a69_0x965da(0x106)),helper=require(a69_0x965da(0x186));function a69_0x12e6(){const _0x40b524=['Sending\x20TestFrameworkEvent','stringify','launchcaps','Unable\x20to\x20find\x20listen\x20addr\x20or\x20bin\x20session\x20id\x20binSessionId:\x20','JFJsv','version','StartBinSession\x20successful','getSdkLanguage','12LclVoi',',\x20parsedConfig=','SDK_CLI_ON_STOP','BROWSERSTACK_CLI_BIN_SESSION_ID','ConnectBinSession\x20error:\x20','credentials','343530wbaHPl','TestFrameworkEvent\x20error:\x20','Error\x20in\x20connectBinSession:\x20','browserstackConfigFile','RkgHe','grpc.keepalive_time_ms','threadId','1981221AoxNyf','name','uuid','xfdRj','Stopping\x20bin\x20session','setPlatformIndex','60936hTpFQs','filePath','@grpc/grpc-js','setConfig','fmxTf','StopBinSession\x20successful','setProcessId','hubUrl','../../helpers/helper.js','ConnectBinSession\x20successful','message','setExecutionContext','setFrameworkName','setHash','SDK_START_BIN_SESSION','AutomationSession','21748668ltTCLS','setCapabilities','setBinSessionId','setHubUrl','24HqcDKf','winstonLogger','channel','UwoCw','end','logCreatedEvent','1311919hTjkOR','setTestUuid','forEach','dqEmN','setTestFrameworkState','setTimestamp','entries','getInstance','resolve','246933VgLase','UmLHJ','setStartedAt','No\x20gRPC\x20client\x20not\x20initialized.','Sending\x20LogCreatedEvent','listenAddress','WcIlL','WPatt','getEnvVarsMap','push','ConnectBinSessionRequest','setSdkVersion','error','Stopping\x20signal\x20','Error\x20in\x20getPlaywrightConfig:\x20','testFrameworkEvent','exports','BROWSERSTACK_CONFIG_FILE_PATH','\x20listenAddr:\x20','getAutomationFrameworkDetail','Error\x20in\x20TestFrameworkEvent:\x20','jLvDI','BROWSERSTACK_CLI_BIN_LISTEN_ADDR','accessibilityConfig','AccessibilityConfigRequest','../../helpers/classLogger.js','frameworkSessionId','ZkDUO','from','GrpcClient','WQkxT','logger','SDK_CONNECT_BIN_SESSION','SDK_AUTOMATION_FRAMEWORK_INIT','FjmpV','Error\x20in\x20LogCreatedEvent:\x20','iOUIq','ywPtD','JIFnY','set','setKind','testFrameworkState','Getting\x20Accessibility\x20config','stop-bin-session\x20response:\x20','testFrameworkVersion','setFrameworkSessionId','binSessionId','startBinSession','init','addFrameworks','Initialized\x20gRPC\x20client\x20with\x20bin\x20session\x20id:\x20','TestFrameworkEventRequest','slice','provider','StartBinSessionRequest','CILAM','PlaywrightConfigRequest','null','LogCreatedEvent\x20error:\x20','suNRu','setPathConfig','setFrameworksList','Connecting\x20bin\x20session','setEndedAt','Kraso','setTestHookState','pnExM','attachment_type','getChannel','BlSli','gvLbn','setTestFrameworkVersion','tFJUU','AccessibilityConfig\x20error:\x20','startBinSession:\x20Calling\x20startBinSession','client','XJLcV','getPlaywrightConfig','processId','DriverInit\x20error:\x20','Getting\x20Playwright\x20config','playwrightConfig','../utils/constants','connect','TrFEI','../../helpers/logger.js','boIHz','setUserInputParams','setMessage','setFilePath','env','Connected\x20to\x20gRPC\x20server\x20at\x20','../../../generated/sdk-messages_pb','driverInit','aiKNM','getFrameworkVersionsMap','TestSessionEventRequest','ZmRQa','hcepW','setThreadId','addAutomationSessions','getBrowserstackCliConfig','format','ExecutionContext','SDKClient','wgEmd','fileName','stopBinSession','info','zAvhn','frameworkVersion','OJEVU','Sending\x20TestSessionEvent','DriverInit\x20request\x20successful','utf-8','connectBinSession','TdsRe','../../helpers/performance/constants','gdUkq','setFrameworkVersion','setRef','CPKMl','cwd','AazoH','eycpJ','createInsecure','osqhe','RAKrm','kind','KnlBK','AccessibilityConfig\x20request\x20successful','debug','StopBinSession\x20error:\x20','10UTYwSh','TestSessionEvent\x20request\x20successful','BhyLK','xlfFG','yxATL','Error\x20in\x20DriverInit:\x20','user_killed','connect-bin-session\x20response:\x20','util','setUuid','hash','nHlDZ','setExitCode','szMcy','QukdF','setCliArgs:\x20cliArgs=','setLevel','3918519SwlMpV','efaXw','4bVHfcV','IvJDn','DriverInitRequest','setTestFrameworkName','../../helpers/performance/performance-tester.js','./browserstackCLI.js','setEventJson','testSessionEvent','LogCreatedEventRequest','224bCsyCF','start','VRkOR','setTestFramework','setProvider','akKfp','path','MIeLP','ISQEK','PlaywrightConfig\x20request\x20successful','LogCreatedEvent\x20request\x20successful','PsPhH','VfNbR','SJLIi'];a69_0x12e6=function(){return _0x40b524;};return a69_0x12e6();}class GrpcClient{static #instance=null;[a69_0x965da(0x1cf)]=null;['listenAddress']=null;['channel']=null;[a69_0x965da(0xff)]=null;[a69_0x965da(0x1c0)]=createClassLogger(a69_0x965da(0x1be));constructor(){}static[a69_0x965da(0x19f)](){return!GrpcClient.#instance&&(GrpcClient.#instance=new GrpcClient()),GrpcClient.#instance;}[a69_0x965da(0x1d1)](_0x2b6aa2){const _0x50e666=a69_0x965da,_0x2858f8={};_0x2858f8[_0x50e666(0x121)]=function(_0x3ccde3,_0x445feb){return _0x3ccde3||_0x445feb;};const _0x3dc5c1=_0x2858f8,{id:_0x5ed003,listen:_0x3fc495}=_0x2b6aa2;if(_0x3dc5c1['zAvhn'](!_0x5ed003,!_0x3fc495))throw new Error(_0x50e666(0x166)+_0x5ed003+_0x50e666(0x1b3)+_0x3fc495);this['binSessionId']=_0x5ed003,this[_0x50e666(0x1a6)]=_0x3fc495,process['env'][_0x50e666(0x16e)]=this[_0x50e666(0x1cf)],process[_0x50e666(0x10e)][_0x50e666(0x1b7)]=this[_0x50e666(0x1a6)],this[_0x50e666(0x107)](),this['logger'][_0x50e666(0x120)](_0x50e666(0x1d3)+this[_0x50e666(0x1cf)]+'\x20and\x20listen\x20address:\x20'+this[_0x50e666(0x1a6)]);}[a69_0x965da(0x107)](){const _0x4c8bc1=a69_0x965da,_0x16bf19={};_0x16bf19[_0x4c8bc1(0x112)]='Unable\x20to\x20determine\x20gRPC\x20server\x20listen\x20address';const _0xaff60b=_0x16bf19;let _0x134646=this[_0x4c8bc1(0x1a6)];!_0x134646&&(_0x134646=process[_0x4c8bc1(0x10e)]['BROWSERSTACK_CLI_BIN_LISTEN_ADDR']);!this[_0x4c8bc1(0x1cf)]&&(this[_0x4c8bc1(0x1cf)]=this[_0x4c8bc1(0x1cf)]||process[_0x4c8bc1(0x10e)][_0x4c8bc1(0x16e)]);if(!_0x134646)throw new Error(_0xaff60b[_0x4c8bc1(0x112)]);const _0x2e8d32={};_0x2e8d32[_0x4c8bc1(0x176)]=0x2710,this[_0x4c8bc1(0x194)]=new grpc['Channel'](_0x134646,grpc[_0x4c8bc1(0x170)][_0x4c8bc1(0x131)](),_0x2e8d32),this[_0x4c8bc1(0xff)]=new services[(_0x4c8bc1(0x11c))](_0x134646,grpc[_0x4c8bc1(0x170)][_0x4c8bc1(0x131)]()),this[_0x4c8bc1(0x1c0)][_0x4c8bc1(0x120)](_0x4c8bc1(0x10f)+_0x134646);}async[a69_0x965da(0x1d0)](){const _0x59f701=a69_0x965da,_0x20450f={'RAKrm':function(_0x57d0c8,_0x215634){return _0x57d0c8!==_0x215634;},'Lwybo':function(_0x976468,_0x5e451b){return _0x976468(_0x5e451b);},'suNRu':_0x59f701(0x169),'akKfp':function(_0xfbaac5,_0x243148){return _0xfbaac5(_0x243148);},'apQyw':_0x59f701(0xfe),'ZmRQa':_0x59f701(0x1a4),'RTmqW':function(_0x569a72,_0x7cca4b){return _0x569a72(_0x7cca4b);},'VfNbR':_0x59f701(0x151),'DDHDI':function(_0x4f6469,_0x399199){return _0x4f6469 instanceof _0x399199;},'IvJDn':function(_0x3e5f86,_0x59ee40){return _0x3e5f86===_0x59ee40;},'UmLHJ':_0x59f701(0x174),'KnlBK':'browserstack.yml','dqEmN':_0x59f701(0x1da),'osqhe':function(_0x8710c5,_0x194e0d){return _0x8710c5||_0x194e0d;}};PerformanceTester[_0x59f701(0x156)](PerformanceEvents['SDK_START_BIN_SESSION']),this[_0x59f701(0x1c0)][_0x59f701(0x120)](_0x20450f['apQyw']);try{!this[_0x59f701(0xff)]&&this[_0x59f701(0x1c0)][_0x59f701(0x120)](_0x20450f[_0x59f701(0x115)]);const _0x5e4217=CLIUtils['getSdkVersion'](),_0x496d84=CLIUtils[_0x59f701(0x1b4)](),_0x449057=_0x496d84[_0x59f701(0x179)],_0xa224b8=_0x496d84[_0x59f701(0x168)],_0x325c98=new messages[(_0x59f701(0x1d7))]();_0x325c98['setBinSessionId'](this[_0x59f701(0x1cf)]),_0x325c98['setSdkLanguage'](CLIUtils['getSdkLanguage']()),_0x325c98[_0x59f701(0x1ac)](_0x5e4217),_0x325c98['setPathProject'](process[_0x59f701(0x12e)]());const _0xfc316a=_0x325c98[_0x59f701(0x1a9)]();Object[_0x59f701(0x19e)](process[_0x59f701(0x10e)])['forEach'](([_0x4a4112,_0x283c7b])=>{const _0x53ee42=_0x59f701;_0x20450f[_0x53ee42(0x133)](_0x283c7b,undefined)&&_0x20450f[_0x53ee42(0x133)](_0x283c7b,null)&&_0xfc316a[_0x53ee42(0x1c8)](_0x4a4112,_0x283c7b);});const _0x217133=_0x20450f['RTmqW'](require,_0x20450f[_0x59f701(0x161)]),_0x4117a7=_0x217133[_0x59f701(0x19f)]()[_0x59f701(0x119)](),_0x443883=[];_0x4117a7&&_0x20450f['DDHDI'](_0x4117a7,Map)&&_0x4117a7[_0x59f701(0x19a)]((_0x59117a,_0xf83ef7)=>{const _0xafb01a=_0x59f701;_0x443883[_0xafb01a(0x1aa)](_0xf83ef7+'='+_0x59117a);});const _0x529d60=process['argv'][_0x59f701(0x1d5)](0x2);_0x325c98['setCliArgsList']([..._0x529d60,..._0x443883]);let _0xdd0544=null;if(_0x4117a7)for(const [_0x5ac165,_0x2a3863]of _0x4117a7){if(_0x20450f[_0x59f701(0x14d)](_0x5ac165,_0x20450f[_0x59f701(0x1a2)])){_0xdd0544=_0x2a3863;break;}}if(_0xdd0544)_0x325c98[_0x59f701(0x1dd)](_0xdd0544);else process[_0x59f701(0x10e)][_0x59f701(0x1b2)]?_0x325c98[_0x59f701(0x1dd)](process[_0x59f701(0x10e)][_0x59f701(0x1b2)]):_0x325c98[_0x59f701(0x1dd)](path[_0x59f701(0x1a0)](process[_0x59f701(0x12e)](),_0x20450f[_0x59f701(0x135)]));this[_0x59f701(0x1c0)]['info'](_0x59f701(0x148)+JSON['stringify'](_0x529d60)+_0x59f701(0x16c)+(_0x4117a7?JSON[_0x59f701(0x164)]([..._0x4117a7]):_0x20450f[_0x59f701(0x19b)])),_0x325c98['setLanguage'](CLIUtils[_0x59f701(0x16a)]()),_0x325c98[_0x59f701(0x158)](_0x449057);const _0xed9e52=_0x325c98[_0x59f701(0x113)]();return _0xed9e52[_0x59f701(0x1c8)](_0x449057,_0x20450f[_0x59f701(0x132)](_0xa224b8,'')),_0x325c98[_0x59f701(0x1d2)](_0x449057,_0xa224b8),_0x325c98[_0x59f701(0x1de)]([_0x449057]),new Promise((_0x155df8,_0x213a7d)=>{const _0x3b1c70=_0x59f701;this[_0x3b1c70(0xff)][_0x3b1c70(0x1d0)](_0x325c98,(_0x3c12bf,_0x382277)=>{const _0x207033=_0x3b1c70;if(_0x3c12bf){this[_0x207033(0x1c0)][_0x207033(0x1ad)]('StartBinSession\x20error:\x20'+_0x3c12bf[_0x207033(0x188)]),_0x20450f['Lwybo'](_0x213a7d,_0x3c12bf),PerformanceTester[_0x207033(0x196)](PerformanceEvents['SDK_START_BIN_SESSION'],![],util[_0x207033(0x11a)](_0x3c12bf));return;}this[_0x207033(0x1c0)][_0x207033(0x120)](_0x20450f[_0x207033(0x1dc)]),PerformanceTester[_0x207033(0x196)](PerformanceEvents[_0x207033(0x18c)]),_0x20450f[_0x207033(0x15a)](_0x155df8,_0x382277);});});}catch(_0x207b6d){this[_0x59f701(0x1c0)][_0x59f701(0x1ad)]('Error\x20in\x20startBinSession:\x20'+util[_0x59f701(0x11a)](_0x207b6d)),PerformanceTester[_0x59f701(0x196)](PerformanceEvents[_0x59f701(0x18c)],![],util[_0x59f701(0x11a)](_0x207b6d));throw _0x207b6d;}}async['connectBinSession'](){const _0x4798df=a69_0x965da,_0xc77700={'pnExM':function(_0x2fbb49,_0xd5af3b){return _0x2fbb49(_0xd5af3b);},'BhyLK':_0x4798df(0x187),'gdUkq':function(_0x2971bf,_0x195470){return _0x2971bf(_0x195470);},'QukdF':_0x4798df(0x1df),'UHlXs':_0x4798df(0x1a4)};PerformanceTester[_0x4798df(0x156)](PerformanceEvents['SDK_CONNECT_BIN_SESSION']),this[_0x4798df(0x1c0)][_0x4798df(0x120)](_0xc77700[_0x4798df(0x147)]);try{!this[_0x4798df(0xff)]&&this['logger'][_0x4798df(0x120)](_0xc77700['UHlXs']);const _0x4c0aff=new messages[(_0x4798df(0x1ab))]();_0x4c0aff[_0x4798df(0x190)](this[_0x4798df(0x1cf)]);const _0x29831b=await new Promise((_0x5f11e9,_0x4c5db7)=>{const _0x1ca4d2=_0x4798df,_0x39a2f3={'FjmpV':function(_0x26d235,_0x29fcbf){const _0x51df0d=a69_0x2fc2;return _0xc77700[_0x51df0d(0x1e3)](_0x26d235,_0x29fcbf);},'WcIlL':_0xc77700[_0x1ca4d2(0x13b)],'Jdpsd':function(_0x405b00,_0x44ec21){const _0x5670e6=_0x1ca4d2;return _0xc77700[_0x5670e6(0x12a)](_0x405b00,_0x44ec21);}};this[_0x1ca4d2(0xff)][_0x1ca4d2(0x127)](_0x4c0aff,(_0x17de1a,_0x404832)=>{const _0x52faa8=_0x1ca4d2;if(_0x17de1a){this[_0x52faa8(0x1c0)][_0x52faa8(0x1ad)](_0x52faa8(0x16f)+_0x17de1a[_0x52faa8(0x188)]),_0x39a2f3[_0x52faa8(0x1c3)](_0x4c5db7,_0x17de1a),PerformanceTester['end'](PerformanceEvents[_0x52faa8(0x1c1)],![],util[_0x52faa8(0x11a)](_0x17de1a));return;}this['logger'][_0x52faa8(0x120)](_0x39a2f3[_0x52faa8(0x1a7)]),PerformanceTester[_0x52faa8(0x196)](PerformanceEvents[_0x52faa8(0x1c1)]),_0x39a2f3['Jdpsd'](_0x5f11e9,_0x404832);});});return this[_0x4798df(0x1c0)][_0x4798df(0x137)](_0x4798df(0x140)+util[_0x4798df(0x11a)](_0x29831b)),_0x29831b;}catch(_0x267db1){PerformanceTester[_0x4798df(0x196)](PerformanceEvents[_0x4798df(0x1c1)],![],util[_0x4798df(0x11a)](_0x267db1)),this[_0x4798df(0x1c0)]['error'](_0x4798df(0x173)+util[_0x4798df(0x11a)](_0x267db1));throw _0x267db1;}}async[a69_0x965da(0x11f)](_0x356137={},_0x921dc3=null){const _0x4a56a9=a69_0x965da,_0x10e1db={'jLvDI':function(_0x487284,_0x4c71fb){return _0x487284(_0x4c71fb);},'WQkxT':_0x4a56a9(0x183),'boIHz':function(_0x38700c,_0x3026a2){return _0x38700c(_0x3026a2);},'szMcy':_0x4a56a9(0x17c),'SJLIi':'Missing\x20binSessionId','ZkDUO':_0x4a56a9(0x1a4),'RZpxT':_0x4a56a9(0x13f)};PerformanceTester[_0x4a56a9(0x156)](PerformanceEvents['SDK_CLI_ON_STOP']),this[_0x4a56a9(0x1c0)][_0x4a56a9(0x120)](_0x10e1db[_0x4a56a9(0x146)]);try{if(!this['binSessionId'])throw new Error(_0x10e1db[_0x4a56a9(0x162)]);!this[_0x4a56a9(0xff)]&&this[_0x4a56a9(0x1c0)]['info'](_0x10e1db[_0x4a56a9(0x1bc)]);const _0x2adabb=new messages['StopBinSessionRequest']();this[_0x4a56a9(0x1c0)]['debug'](_0x4a56a9(0x1ae)+JSON[_0x4a56a9(0x164)](_0x921dc3)),_0x2adabb[_0x4a56a9(0x190)](this['binSessionId']),_0x2adabb['setCustomMetadata'](_0x356137),_0x2adabb['setExitSignal'](_0x921dc3?_0x921dc3:null),_0x2adabb['setExitReason'](_0x921dc3?_0x10e1db['RZpxT']:null),_0x2adabb[_0x4a56a9(0x145)](_0x921dc3?0x1:0x0);const _0xc2d5ae=await new Promise((_0x59c9ae,_0x4df8bd)=>{const _0x388b26=_0x4a56a9;this[_0x388b26(0xff)][_0x388b26(0x11f)](_0x2adabb,(_0x5df5d7,_0xf61f8)=>{const _0xa1805a=_0x388b26;if(_0x5df5d7){this[_0xa1805a(0x1c0)]['error'](_0xa1805a(0x138)+_0x5df5d7[_0xa1805a(0x188)]),_0x10e1db[_0xa1805a(0x1b6)](_0x4df8bd,_0x5df5d7),PerformanceTester['end'](PerformanceEvents[_0xa1805a(0x16d)],![],util[_0xa1805a(0x11a)](_0x5df5d7));return;}this['logger'][_0xa1805a(0x120)](_0x10e1db[_0xa1805a(0x1bf)]),PerformanceTester[_0xa1805a(0x196)](PerformanceEvents[_0xa1805a(0x16d)]),_0x10e1db[_0xa1805a(0x10a)](_0x59c9ae,_0xf61f8);});});return this[_0x4a56a9(0x1c0)][_0x4a56a9(0x137)](_0x4a56a9(0x1cc)+util[_0x4a56a9(0x11a)](_0xc2d5ae)),_0xc2d5ae;}catch(_0x3f002a){PerformanceTester[_0x4a56a9(0x196)](PerformanceEvents[_0x4a56a9(0x16d)],![],util['format'](_0x3f002a)),this[_0x4a56a9(0x1c0)][_0x4a56a9(0x1ad)]('Error\x20in\x20stopBinSession:\x20'+util['format'](_0x3f002a));}}async[a69_0x965da(0x101)](_0xc069f3){const _0x209d9f=a69_0x965da,_0xa3b91d={'JFJsv':function(_0x207346,_0x9ccef){return _0x207346(_0x9ccef);},'WUZDv':_0x209d9f(0x15e),'QDnDa':_0x209d9f(0x104),'nHlDZ':_0x209d9f(0x1a4)};PerformanceTester['start'](PerformanceEvents[_0x209d9f(0x1c2)]),this['logger'][_0x209d9f(0x120)](_0xa3b91d['QDnDa']);try{!this[_0x209d9f(0xff)]&&this[_0x209d9f(0x1c0)][_0x209d9f(0x120)](_0xa3b91d[_0x209d9f(0x144)]);const _0x5ab32d=new messages[(_0x209d9f(0x1d9))]();return _0x5ab32d[_0x209d9f(0x190)](this[_0x209d9f(0x1cf)]),_0x5ab32d[_0x209d9f(0x181)](JSON[_0x209d9f(0x164)](_0xc069f3)),new Promise((_0x4e9ab4,_0x4d2a4a)=>{const _0x270fc4=_0x209d9f;this[_0x270fc4(0xff)][_0x270fc4(0x105)](_0x5ab32d,(_0x3e7e4c,_0x3cf706)=>{const _0x17eb58=_0x270fc4;if(_0x3e7e4c){this[_0x17eb58(0x1c0)]['error']('PlaywrightConfig\x20error:\x20'+_0x3e7e4c[_0x17eb58(0x188)]),_0xa3b91d['JFJsv'](_0x4d2a4a,_0x3e7e4c),PerformanceTester['end'](PerformanceEvents['SDK_AUTOMATION_FRAMEWORK_INIT'],![],util[_0x17eb58(0x11a)](_0x3e7e4c));return;}this[_0x17eb58(0x1c0)][_0x17eb58(0x120)](_0xa3b91d['WUZDv']),PerformanceTester[_0x17eb58(0x196)](PerformanceEvents['SDK_AUTOMATION_FRAMEWORK_INIT']),_0xa3b91d[_0x17eb58(0x167)](_0x4e9ab4,_0x3cf706);});});}catch(_0x53fdd3){PerformanceTester[_0x209d9f(0x196)](PerformanceEvents[_0x209d9f(0x1c2)],![],util[_0x209d9f(0x11a)](_0x53fdd3)),this[_0x209d9f(0x1c0)][_0x209d9f(0x1ad)](_0x209d9f(0x1af)+util[_0x209d9f(0x11a)](_0x53fdd3));throw _0x53fdd3;}}async['getAccessibilityConfig'](_0x3f423a){const _0x359f13=a69_0x965da,_0xa800cc={'FDPrA':function(_0x21aa2d,_0x2b053e){return _0x21aa2d(_0x2b053e);},'MIeLP':_0x359f13(0x136),'CILAM':function(_0x5b6a46,_0x176253){return _0x5b6a46(_0x176253);},'VRkOR':_0x359f13(0x1cb),'ywPtD':_0x359f13(0x126)};this['logger'][_0x359f13(0x120)](_0xa800cc[_0x359f13(0x157)]);try{const _0x27bcb3=Buffer[_0x359f13(0x1bd)](JSON[_0x359f13(0x164)](_0x3f423a[_0x359f13(0x165)]),_0xa800cc[_0x359f13(0x1c6)]),_0x531fff=new messages[(_0x359f13(0x1b9))](),_0x2891b1=CLIUtils[_0x359f13(0x1b4)](),_0x2748ae=_0x2891b1[_0x359f13(0x179)],_0x3a3c61=_0x2891b1['version'];return _0x531fff[_0x359f13(0x190)](this[_0x359f13(0x1cf)]),_0x531fff[_0x359f13(0x17d)](0x0),_0x531fff[_0x359f13(0x18a)](_0x2748ae),_0x531fff[_0x359f13(0x12b)](_0x3a3c61),_0x531fff[_0x359f13(0x191)](_0x3f423a[_0x359f13(0x185)]),_0x531fff[_0x359f13(0x18f)](_0x27bcb3),new Promise((_0x3d4221,_0x366d23)=>{const _0x2f6c3c=_0x359f13,_0x2cadbd={'AazoH':function(_0x1a2d1,_0x1722a4){return _0xa800cc['FDPrA'](_0x1a2d1,_0x1722a4);},'fTKJp':_0xa800cc[_0x2f6c3c(0x15c)],'RkgHe':function(_0x3cc71f,_0x344ecc){const _0x5eb7bb=_0x2f6c3c;return _0xa800cc[_0x5eb7bb(0x1d8)](_0x3cc71f,_0x344ecc);}};this['client'][_0x2f6c3c(0x1b8)](_0x531fff,(_0x142743,_0x7edd99)=>{const _0x3bf725=_0x2f6c3c;if(_0x142743){this[_0x3bf725(0x1c0)]['error'](_0x3bf725(0xfd)+_0x142743[_0x3bf725(0x188)]),_0x2cadbd[_0x3bf725(0x12f)](_0x366d23,_0x142743);return;}this[_0x3bf725(0x1c0)][_0x3bf725(0x120)](_0x2cadbd['fTKJp']),_0x2cadbd[_0x3bf725(0x175)](_0x3d4221,_0x7edd99);});});}catch(_0x3f1e1f){this[_0x359f13(0x1c0)][_0x359f13(0x1ad)]('Error\x20in\x20getAccessibilityConfig:\x20'+util['format'](_0x3f1e1f));}}async[a69_0x965da(0x153)](_0x330389){const _0x40f543=a69_0x965da,_0x688883={'PsPhH':function(_0x187dcd,_0x594321){return _0x187dcd(_0x594321);},'WPatt':_0x40f543(0x13a),'BlSli':_0x40f543(0x124),'UwoCw':_0x40f543(0x1a4)};this[_0x40f543(0x1c0)]['info'](_0x688883[_0x40f543(0x1e6)]);try{!this[_0x40f543(0xff)]&&this['logger'][_0x40f543(0x120)](_0x688883[_0x40f543(0x195)]);const {platformIndex:_0x7e496e,testFrameworkName:_0x1edc11,testFrameworkVersion:_0x20c195,testFrameworkState:_0x544654,testHookState:_0x1e45a0,testUuid:_0x45690f,automationSession:_0x26bc92,capabilities:_0x54a5dc,executionContext:_0x19c435}=_0x330389,_0x159433=new messages[(_0x40f543(0x114))]();_0x159433[_0x40f543(0x190)](this[_0x40f543(0x1cf)]),_0x159433[_0x40f543(0x17d)](_0x7e496e),_0x159433[_0x40f543(0x14f)](_0x1edc11),_0x159433[_0x40f543(0x1e8)](_0x20c195),_0x159433[_0x40f543(0x19c)](_0x544654),_0x159433[_0x40f543(0x1e2)](_0x1e45a0),_0x159433[_0x40f543(0x199)](_0x45690f);const _0x36dc53=new messages[(_0x40f543(0x114))][(_0x40f543(0x18d))]();_0x36dc53[_0x40f543(0x159)](_0x26bc92[_0x40f543(0x1d6)]),_0x36dc53[_0x40f543(0x18a)](_0x26bc92['frameworkName']),_0x36dc53['setFrameworkVersion'](_0x26bc92[_0x40f543(0x122)]),_0x36dc53[_0x40f543(0x1ce)](_0x26bc92[_0x40f543(0x1bb)]),_0x36dc53['setRef'](_0x26bc92['ref']),_0x36dc53[_0x40f543(0x191)](_0x26bc92['hubUrl']),_0x159433[_0x40f543(0x118)](_0x36dc53),_0x159433[_0x40f543(0x18f)](_0x54a5dc);const _0x24a8bf=new messages[(_0x40f543(0x11b))]();return _0x24a8bf[_0x40f543(0x184)](_0x19c435[_0x40f543(0x102)]),_0x24a8bf[_0x40f543(0x117)](_0x19c435[_0x40f543(0x177)]),_0x24a8bf[_0x40f543(0x18b)](_0x19c435[_0x40f543(0x143)]),_0x159433['setExecutionContext'](_0x24a8bf),new Promise((_0x4ff0e6,_0x132df5)=>{const _0x175e6d=_0x40f543,_0x40239c={'CPKMl':function(_0x50e52d,_0x465215){const _0x611bd5=a69_0x2fc2;return _0x688883[_0x611bd5(0x160)](_0x50e52d,_0x465215);},'OJEVU':_0x688883[_0x175e6d(0x1a8)],'JIFnY':function(_0x9687d9,_0x350b8a){const _0xc84e8=_0x175e6d;return _0x688883[_0xc84e8(0x160)](_0x9687d9,_0x350b8a);}};this['client'][_0x175e6d(0x153)](_0x159433,(_0x36fa1c,_0x55031e)=>{const _0x3f89fe=_0x175e6d;if(_0x36fa1c){this[_0x3f89fe(0x1c0)][_0x3f89fe(0x1ad)]('TestSessionEvent\x20error:\x20'+_0x36fa1c[_0x3f89fe(0x188)]),_0x40239c[_0x3f89fe(0x12d)](_0x132df5,_0x36fa1c);return;}this[_0x3f89fe(0x1c0)]['info'](_0x40239c[_0x3f89fe(0x123)]),_0x40239c[_0x3f89fe(0x1c7)](_0x4ff0e6,_0x55031e);});});}catch(_0xb9c43){this['logger'][_0x40f543(0x1ad)]('Error\x20in\x20TestSessionEvent:\x20'+util['format'](_0xb9c43));throw _0xb9c43;}}async['testFrameworkEvent'](_0x4675eb){const _0x27d562=a69_0x965da,_0x614306={'ISQEK':function(_0x123c0e,_0x399082){return _0x123c0e(_0x399082);},'fmxTf':'TestFrameworkEvent\x20request\x20successful','wgEmd':function(_0x41929d,_0x1376c5){return _0x41929d(_0x1376c5);},'efaXw':_0x27d562(0x163),'tFJUU':_0x27d562(0x1a4)};this['logger'][_0x27d562(0x120)](_0x614306[_0x27d562(0x14b)]);try{!this[_0x27d562(0xff)]&&this['logger']['info'](_0x614306[_0x27d562(0x1e9)]);const {platfromIndex:_0xd98de2,testFrameworkName:_0x497d7f,testFrameworkVersion:_0x504026,testFrameworkState:_0x153086,hookState:_0x2f5820,startedAt:_0x4ffc22,endedAt:_0x41bfe7,uuid:_0x578447,eventJson:_0x373d8a,executionContext:_0x4212b1}=_0x4675eb,_0x4f882d=new messages[(_0x27d562(0x1d4))]();_0x4f882d[_0x27d562(0x190)](this[_0x27d562(0x1cf)]),_0x4f882d[_0x27d562(0x17d)](_0xd98de2),_0x4f882d['setTestFrameworkName'](_0x497d7f),_0x4f882d[_0x27d562(0x1e8)](_0x504026),_0x4f882d[_0x27d562(0x19c)](_0x153086),_0x4f882d['setTestHookState'](_0x2f5820),_0x4f882d[_0x27d562(0x1a3)](_0x4ffc22),_0x4f882d[_0x27d562(0x1e0)](_0x41bfe7),_0x4f882d['setUuid'](_0x578447),_0x4f882d[_0x27d562(0x152)](_0x373d8a);const _0x7eef18=new messages['ExecutionContext']();return _0x7eef18[_0x27d562(0x184)](_0x4212b1[_0x27d562(0x102)]),_0x7eef18[_0x27d562(0x117)](_0x4212b1[_0x27d562(0x177)]),_0x7eef18[_0x27d562(0x18b)](_0x4212b1[_0x27d562(0x143)]),_0x4f882d[_0x27d562(0x189)](_0x7eef18),new Promise((_0x149791,_0x3479cf)=>{const _0x551d57=_0x27d562;this[_0x551d57(0xff)][_0x551d57(0x1b0)](_0x4f882d,(_0x3195ea,_0x5eaaa5)=>{const _0x5bf0f6=_0x551d57;if(_0x3195ea){this['logger'][_0x5bf0f6(0x1ad)](_0x5bf0f6(0x172)+_0x3195ea[_0x5bf0f6(0x188)]),_0x614306[_0x5bf0f6(0x15d)](_0x3479cf,_0x3195ea);return;}this[_0x5bf0f6(0x1c0)][_0x5bf0f6(0x120)](_0x614306[_0x5bf0f6(0x182)]),_0x614306[_0x5bf0f6(0x11d)](_0x149791,_0x5eaaa5);});});}catch(_0x145cac){this['logger'][_0x27d562(0x1ad)](_0x27d562(0x1b5)+util[_0x27d562(0x11a)](_0x145cac));throw _0x145cac;}}async[a69_0x965da(0x111)](_0x1b9026){const _0x4f0d72=a69_0x965da,_0x93ff09={'TdsRe':function(_0x3bf988,_0x6601ab){return _0x3bf988(_0x6601ab);},'gvLbn':_0x4f0d72(0x125),'mkplf':'Sending\x20DriverInit','yxATL':_0x4f0d72(0x1a4)};this['logger']['info'](_0x93ff09['mkplf']);try{!this[_0x4f0d72(0xff)]&&this[_0x4f0d72(0x1c0)][_0x4f0d72(0x120)](_0x93ff09[_0x4f0d72(0x13d)]);const {platformIndex:_0x552402,ref:_0x12bf4a,userInputParams:_0xbbf23b}=_0x1b9026,_0x104e6c=new messages[(_0x4f0d72(0x14e))]();return _0x104e6c[_0x4f0d72(0x190)](this[_0x4f0d72(0x1cf)]),_0x104e6c[_0x4f0d72(0x17d)](_0x552402),_0x104e6c[_0x4f0d72(0x12c)](_0x12bf4a),_0x104e6c[_0x4f0d72(0x10b)](_0xbbf23b),new Promise((_0x296246,_0x2a881b)=>{const _0x4d656c=_0x4f0d72,_0x2c8c69={'TrFEI':function(_0x178e27,_0x219b45){const _0x581dbe=a69_0x2fc2;return _0x93ff09[_0x581dbe(0x128)](_0x178e27,_0x219b45);},'eycpJ':_0x93ff09[_0x4d656c(0x1e7)]};this[_0x4d656c(0xff)][_0x4d656c(0x111)](_0x104e6c,(_0x7ebf5e,_0x423cc4)=>{const _0x373d9d=_0x4d656c;if(_0x7ebf5e){this['logger'][_0x373d9d(0x1ad)](_0x373d9d(0x103)+_0x7ebf5e['message']),_0x2c8c69[_0x373d9d(0x108)](_0x2a881b,_0x7ebf5e);return;}this[_0x373d9d(0x1c0)][_0x373d9d(0x120)](_0x2c8c69[_0x373d9d(0x130)]),_0x2c8c69[_0x373d9d(0x108)](_0x296246,_0x423cc4);});});}catch(_0x3e2b9c){this[_0x4f0d72(0x1c0)][_0x4f0d72(0x1ad)](_0x4f0d72(0x13e)+util['format'](_0x3e2b9c));throw _0x3e2b9c;}}async[a69_0x965da(0x197)](_0x3c581c){const _0x328fb9=a69_0x965da,_0x37f01b={'xfdRj':function(_0x39a554,_0x10ec02){return _0x39a554===_0x10ec02;},'hcepW':function(_0x9bd34d,_0x3e0b95){return _0x9bd34d(_0x3e0b95);},'xlfFG':_0x328fb9(0x15f),'Kraso':_0x328fb9(0x1a5),'YHOPD':_0x328fb9(0x1a4)};this[_0x328fb9(0x1c0)][_0x328fb9(0x120)](_0x37f01b[_0x328fb9(0x1e1)]);try{!this['client']&&this[_0x328fb9(0x1c0)][_0x328fb9(0x120)](_0x37f01b['YHOPD']);const {platformIndex:_0x596ffe,logs:_0x18a613}=_0x3c581c,_0x914c6d=new messages['LogCreatedEventRequest']();_0x914c6d[_0x328fb9(0x190)](this[_0x328fb9(0x1cf)]),_0x914c6d[_0x328fb9(0x17d)](_0x596ffe);const _0x455ea6=_0x3c581c['testFrameworkName'],_0x1dfeb7=_0x3c581c[_0x328fb9(0x1cd)],_0x2d0444=_0x3c581c[_0x328fb9(0x1ca)];return _0x18a613[_0x328fb9(0x19a)](_0x540463=>{const _0x15dab1=_0x328fb9,_0x1773bc=new messages[(_0x15dab1(0x154))]['LogEntry']();_0x1773bc[_0x15dab1(0x14f)](_0x455ea6),_0x1773bc[_0x15dab1(0x1e8)](_0x1dfeb7),_0x1773bc[_0x15dab1(0x19c)](_0x2d0444),_0x1773bc[_0x15dab1(0x19d)](_0x540463['timestamp']),_0x1773bc['setUuid'](_0x540463[_0x15dab1(0x17a)]),_0x1773bc[_0x15dab1(0x1c9)](_0x540463[_0x15dab1(0x134)]),_0x37f01b[_0x15dab1(0x17b)](_0x540463['attachment_type'],PLAYWRIGHT_TRACE_LOGS)?(_0x1773bc[_0x15dab1(0x142)](_0x540463['test_run_uuid']),_0x1773bc[_0x15dab1(0x10c)](new TextEncoder()['encode'](JSON[_0x15dab1(0x164)](_0x540463)))):_0x1773bc[_0x15dab1(0x10c)](new TextEncoder()['encode'](_0x540463[_0x15dab1(0x188)])),_0x1773bc[_0x15dab1(0x149)](_0x540463['level']),_0x1773bc['setFileName'](_0x540463?.[_0x15dab1(0x11e)]||''),_0x1773bc[_0x15dab1(0x10d)](_0x540463?.[_0x15dab1(0x17f)]||''),_0x1773bc['setFileSize'](_0x540463?.['fileSize']||0x0),_0x1773bc['setAttachmentType'](_0x540463?.[_0x15dab1(0x1e4)]||''),_0x914c6d['addLogs'](_0x1773bc);}),new Promise((_0x5013d1,_0x32745c)=>{const _0x50ff81=_0x328fb9,_0x545e18={'iOUIq':function(_0x1079e7,_0x3fa41d){const _0x47d59e=a69_0x2fc2;return _0x37f01b[_0x47d59e(0x116)](_0x1079e7,_0x3fa41d);},'XJLcV':_0x37f01b[_0x50ff81(0x13c)]};this[_0x50ff81(0xff)][_0x50ff81(0x197)](_0x914c6d,(_0x27ab79,_0x157eb2)=>{const _0x3db567=_0x50ff81;if(_0x27ab79){this['logger']['error'](_0x3db567(0x1db)+_0x27ab79[_0x3db567(0x188)]),_0x545e18['iOUIq'](_0x32745c,_0x27ab79);return;}this[_0x3db567(0x1c0)][_0x3db567(0x120)](_0x545e18[_0x3db567(0x100)]),_0x545e18[_0x3db567(0x1c5)](_0x5013d1,_0x157eb2);});});}catch(_0x991fcf){this['logger'][_0x328fb9(0x1ad)](_0x328fb9(0x1c4)+util[_0x328fb9(0x11a)](_0x991fcf));throw _0x991fcf;}}['getClient'](){const _0x3c952f=a69_0x965da;return this[_0x3c952f(0xff)];}[a69_0x965da(0x1e5)](){const _0xd088f0=a69_0x965da;return this[_0xd088f0(0x194)];}}module[a69_0x965da(0x1b1)]=GrpcClient;
|
|
1
|
+
function a69_0x41bb(){const _0x2f005b=['FpKTE','setUserInputParams','connectBinSession','StartBinSession\x20error:\x20','XIsMG','../../helpers/performance/constants','AccessibilityConfig\x20error:\x20','filePath','vkKmH','StopBinSessionRequest','frameworkVersion','timestamp','./browserstackCLI.js','from','BROWSERSTACK_CLI_BIN_LISTEN_ADDR','logCreatedEvent','DriverInit\x20error:\x20','ffUAS','credentials','setTestFrameworkState','launchcaps','setExecutionContext','rxmZq','info','Error\x20in\x20stopBinSession:\x20','startBinSession','2zdZRYh','YZPOW','73650MhZMym','Connected\x20to\x20gRPC\x20server\x20at\x20','forEach','setCapabilities','yuRtO','mrkeP','cwd','set','setFrameworkSessionId','Unable\x20to\x20find\x20listen\x20addr\x20or\x20bin\x20session\x20id\x20binSessionId:\x20','bhNJs','kind','VFIbT','mnUUt','Getting\x20Playwright\x20config','hash','NcIdL','VTLLC','testFrameworkState','ExecutionContext','AccessibilityConfig\x20request\x20successful','channel','provider','setStartedAt','testFrameworkEvent','client','ABhkl','SOOSl','XWIOP','debug','setUuid','IJtnJ','getEnvVarsMap','ConnectBinSessionRequest','ConnectBinSession\x20error:\x20','setEventJson','error','BROWSERSTACK_CLI_BIN_SESSION_ID','110QWWtMW','./cliUtils.js','aVMxG','RGFTJ','507690OqLZby','TestFrameworkEventRequest','pybHJ','init','Sending\x20DriverInit','processId','rfhKu','PlaywrightConfig\x20error:\x20','xiPJo','setExitReason','Unable\x20to\x20determine\x20gRPC\x20server\x20listen\x20address','listenAddress','Error\x20in\x20connectBinSession:\x20','HPtas','OZlGY','36544SbhOat','setTestFramework','driverInit','getSdkVersion','SDK_CLI_ON_STOP','testFrameworkName','setHash','end','MWTWw','createInsecure','hLuQV','nRZEA','argv','852406oMPVON','addLogs',',\x20parsedConfig=','attachment_type','TestSessionEvent\x20error:\x20','No\x20gRPC\x20client\x20not\x20initialized.','setBinSessionId','SDK_START_BIN_SESSION','SDK_CONNECT_BIN_SESSION','TestFrameworkEvent\x20error:\x20','setCliArgsList','getChannel','message','\x20listenAddr:\x20','fileName','setProcessId','@grpc/grpc-js','5225068BTKJai','hubUrl','stringify','3GnCRFF','BROWSERSTACK_CONFIG_FILE_PATH','../../helpers/performance/performance-tester.js','Sending\x20TestFrameworkEvent','mkZvL','JiHDR','utf-8','setTestHookState','setCliArgs:\x20cliArgs=','ohjcq','playwrightConfig','TgLkA','DriverInitRequest','BWXxF','xZUvj','uuid','stopBinSession','Error\x20in\x20getPlaywrightConfig:\x20','setFrameworkVersion','CUpOf','\x20and\x20listen\x20address:\x20','setPathProject','env','PlaywrightConfigRequest','getAccessibilityConfig','Stopping\x20bin\x20session','version','../../../generated/sdk-messages_pb','DriverInit\x20request\x20successful','user_killed','addFrameworks','testFrameworkVersion','xOhIn','setLevel','WSEyD','NxMDZ','addAutomationSessions','Error\x20in\x20TestSessionEvent:\x20','WVgaJ','ZfTrW','setHubUrl','LREoD','testSessionEvent','getSdkLanguage','setAttachmentType','SDK_AUTOMATION_FRAMEWORK_INIT','lSkYn','startBinSession:\x20Calling\x20startBinSession','Channel','mUzhg','StartBinSessionRequest','setTestFrameworkVersion','logger','1393CpCgWP','voPVn','setTestFrameworkName','fileSize','../../helpers/classLogger.js','setSdkLanguage','frameworkName','setConfig','LogEntry','AutomationSession','setMessage','browserstackConfigFile','setKind','StopBinSession\x20successful','setSdkVersion','LogCreatedEvent\x20error:\x20','dzXyQ','TestSessionEventRequest','setExitSignal','VAAqc','StartBinSession\x20successful','encode','binSessionId','getAutomationFrameworkDetail','getFrameworkVersionsMap','mGzkL','Error\x20in\x20DriverInit:\x20','IGzSw','getInstance','GHEfN','setTimestamp','StopBinSession\x20error:\x20','Missing\x20binSessionId','setFrameworkName','name','GrpcClient','ref','../../helpers/logger.js','setPlatformIndex','accessibilityConfig','4418890CBXZVQ','format','zznus','iWyCH','Error\x20in\x20TestFrameworkEvent:\x20','LogCreatedEvent\x20request\x20successful','../../../generated/sdk_grpc_pb','exports','26615292CCSBzL','hcBIH','TestFrameworkEvent\x20request\x20successful','LogCreatedEventRequest','setPathConfig','getClient','PlaywrightConfig\x20request\x20successful','setRef','../../helpers/helper.js','AONDu','TestSessionEvent\x20request\x20successful','start','puRVZ','setFileName','slice','threadId','ConnectBinSession\x20successful','Getting\x20Accessibility\x20config','setEndedAt'];a69_0x41bb=function(){return _0x2f005b;};return a69_0x41bb();}const a69_0x3acb58=a69_0x27e6;(function(_0x2ea60b,_0x26214b){const _0x3c9b59=a69_0x27e6,_0x481330=_0x2ea60b();while(!![]){try{const _0x413b8c=-parseInt(_0x3c9b59(0x125))/0x1*(-parseInt(_0x3c9b59(0x1cb))/0x2)+parseInt(_0x3c9b59(0x139))/0x3*(-parseInt(_0x3c9b59(0x136))/0x4)+-parseInt(_0x3c9b59(0x196))/0x5+parseInt(_0x3c9b59(0x1cd))/0x6+-parseInt(_0x3c9b59(0x16e))/0x7*(parseInt(_0x3c9b59(0x118))/0x8)+parseInt(_0x3c9b59(0x109))/0x9*(parseInt(_0x3c9b59(0x105))/0xa)+parseInt(_0x3c9b59(0x19e))/0xb;if(_0x413b8c===_0x26214b)break;else _0x481330['push'](_0x481330['shift']());}catch(_0x7c98d4){_0x481330['push'](_0x481330['shift']());}}}(a69_0x41bb,0xc4b36));const util=require('util'),logger=require(a69_0x3acb58(0x193))['winstonLogger'],grpc=require(a69_0x3acb58(0x135)),services=require(a69_0x3acb58(0x19c)),messages=require(a69_0x3acb58(0x154)),path=require('path'),CLIUtils=require(a69_0x3acb58(0x106)),{createClassLogger}=require(a69_0x3acb58(0x172)),PerformanceTester=require(a69_0x3acb58(0x13b)),{EVENTS:PerformanceEvents}=require(a69_0x3acb58(0x1b6)),{PLAYWRIGHT_TRACE_LOGS}=require('../utils/constants'),helper=require(a69_0x3acb58(0x1a6));function a69_0x27e6(_0x1386f5,_0x4409e8){const _0x41bb71=a69_0x41bb();return a69_0x27e6=function(_0x27e60a,_0x25ca51){_0x27e60a=_0x27e60a-0xff;let _0x521c9c=_0x41bb71[_0x27e60a];return _0x521c9c;},a69_0x27e6(_0x1386f5,_0x4409e8);}class GrpcClient{static #instance=null;[a69_0x3acb58(0x184)]=null;['listenAddress']=null;['channel']=null;[a69_0x3acb58(0x1e6)]=null;[a69_0x3acb58(0x16d)]=createClassLogger(a69_0x3acb58(0x191));constructor(){}static[a69_0x3acb58(0x18a)](){return!GrpcClient.#instance&&(GrpcClient.#instance=new GrpcClient()),GrpcClient.#instance;}[a69_0x3acb58(0x10c)](_0x2c3916){const _0x3bd583=a69_0x3acb58,_0x5db651={};_0x5db651[_0x3bd583(0x1e8)]=function(_0x75fb4c,_0x163cda){return _0x75fb4c||_0x163cda;};const _0x17587c=_0x5db651,{id:_0x495ef3,listen:_0x4cf4d5}=_0x2c3916;if(_0x17587c[_0x3bd583(0x1e8)](!_0x495ef3,!_0x4cf4d5))throw new Error(_0x3bd583(0x1d6)+_0x495ef3+_0x3bd583(0x132)+_0x4cf4d5);this[_0x3bd583(0x184)]=_0x495ef3,this[_0x3bd583(0x114)]=_0x4cf4d5,process[_0x3bd583(0x14f)][_0x3bd583(0x104)]=this[_0x3bd583(0x184)],process['env'][_0x3bd583(0x1bf)]=this['listenAddress'],this['connect'](),this[_0x3bd583(0x16d)][_0x3bd583(0x1c8)]('Initialized\x20gRPC\x20client\x20with\x20bin\x20session\x20id:\x20'+this[_0x3bd583(0x184)]+_0x3bd583(0x14d)+this[_0x3bd583(0x114)]);}['connect'](){const _0x55a613=a69_0x3acb58,_0x32ff0d={};_0x32ff0d[_0x55a613(0x147)]=_0x55a613(0x113);const _0x1f8b70=_0x32ff0d;let _0x2b097e=this[_0x55a613(0x114)];!_0x2b097e&&(_0x2b097e=process[_0x55a613(0x14f)][_0x55a613(0x1bf)]);!this['binSessionId']&&(this[_0x55a613(0x184)]=this[_0x55a613(0x184)]||process[_0x55a613(0x14f)][_0x55a613(0x104)]);if(!_0x2b097e)throw new Error(_0x1f8b70[_0x55a613(0x147)]);const _0xf2265a={};_0xf2265a['grpc.keepalive_time_ms']=0x2710,this[_0x55a613(0x1e2)]=new grpc[(_0x55a613(0x169))](_0x2b097e,grpc[_0x55a613(0x1c3)][_0x55a613(0x121)](),_0xf2265a),this[_0x55a613(0x1e6)]=new services['SDKClient'](_0x2b097e,grpc['credentials']['createInsecure']()),this[_0x55a613(0x16d)]['info'](_0x55a613(0x1ce)+_0x2b097e);}async[a69_0x3acb58(0x1ca)](){const _0x10e2df=a69_0x3acb58,_0x1465ef={'EQAFk':function(_0x2262ec,_0x19a4bb){return _0x2262ec!==_0x19a4bb;},'CUpOf':function(_0x359ee5,_0x15d5e8){return _0x359ee5!==_0x15d5e8;},'rxmZq':function(_0x4cbd23,_0x5afeff){return _0x4cbd23(_0x5afeff);},'YZPOW':_0x10e2df(0x182),'waBZX':function(_0x19e9a0,_0x438d25){return _0x19e9a0(_0x438d25);},'hLuQV':_0x10e2df(0x168),'mGzkL':_0x10e2df(0x12a),'AtyZQ':_0x10e2df(0x1bd),'tTXgF':function(_0x53443a,_0x5037e0){return _0x53443a instanceof _0x5037e0;},'pybHJ':function(_0x496a9c,_0x3aa8e1){return _0x496a9c===_0x3aa8e1;},'xOhIn':_0x10e2df(0x179),'aVMxG':'browserstack.yml','wIogC':'null','ElaUe':function(_0x44156a,_0x5d8516){return _0x44156a||_0x5d8516;}};PerformanceTester[_0x10e2df(0x1a9)](PerformanceEvents[_0x10e2df(0x12c)]),this['logger'][_0x10e2df(0x1c8)](_0x1465ef[_0x10e2df(0x122)]);try{!this[_0x10e2df(0x1e6)]&&this[_0x10e2df(0x16d)]['info'](_0x1465ef[_0x10e2df(0x187)]);const _0x28b50e=CLIUtils[_0x10e2df(0x11b)](),_0xcbf7b8=CLIUtils['getAutomationFrameworkDetail'](),_0x55b9de=_0xcbf7b8[_0x10e2df(0x190)],_0x27aea6=_0xcbf7b8[_0x10e2df(0x153)],_0x4a7c4b=new messages[(_0x10e2df(0x16b))]();_0x4a7c4b['setBinSessionId'](this[_0x10e2df(0x184)]),_0x4a7c4b[_0x10e2df(0x173)](CLIUtils[_0x10e2df(0x164)]()),_0x4a7c4b[_0x10e2df(0x17c)](_0x28b50e),_0x4a7c4b[_0x10e2df(0x14e)](process[_0x10e2df(0x1d3)]());const _0xdca50c=_0x4a7c4b[_0x10e2df(0xff)]();Object['entries'](process['env'])[_0x10e2df(0x1cf)](([_0x123d8f,_0x4683af])=>{const _0x318cac=_0x10e2df;_0x1465ef['EQAFk'](_0x4683af,undefined)&&_0x1465ef[_0x318cac(0x14c)](_0x4683af,null)&&_0xdca50c[_0x318cac(0x1d4)](_0x123d8f,_0x4683af);});const _0x39c368=_0x1465ef[_0x10e2df(0x1c7)](require,_0x1465ef['AtyZQ']),_0x55382b=_0x39c368[_0x10e2df(0x18a)]()['getBrowserstackCliConfig'](),_0x2cfcf1=[];_0x55382b&&_0x1465ef['tTXgF'](_0x55382b,Map)&&_0x55382b[_0x10e2df(0x1cf)]((_0x5895f5,_0x4acd76)=>{_0x2cfcf1['push'](_0x4acd76+'='+_0x5895f5);});const _0xd31f26=process[_0x10e2df(0x124)][_0x10e2df(0x1ac)](0x2);_0x4a7c4b[_0x10e2df(0x12f)]([..._0xd31f26,..._0x2cfcf1]);let _0x1bd45d=null;if(_0x55382b)for(const [_0x281d8a,_0x42856d]of _0x55382b){if(_0x1465ef[_0x10e2df(0x10b)](_0x281d8a,_0x1465ef[_0x10e2df(0x159)])){_0x1bd45d=_0x42856d;break;}}if(_0x1bd45d)_0x4a7c4b[_0x10e2df(0x1a2)](_0x1bd45d);else process[_0x10e2df(0x14f)][_0x10e2df(0x13a)]?_0x4a7c4b[_0x10e2df(0x1a2)](process[_0x10e2df(0x14f)][_0x10e2df(0x13a)]):_0x4a7c4b[_0x10e2df(0x1a2)](path['resolve'](process[_0x10e2df(0x1d3)](),_0x1465ef[_0x10e2df(0x107)]));this[_0x10e2df(0x16d)][_0x10e2df(0x1c8)](_0x10e2df(0x141)+JSON[_0x10e2df(0x138)](_0xd31f26)+_0x10e2df(0x127)+(_0x55382b?JSON[_0x10e2df(0x138)]([..._0x55382b]):_0x1465ef['wIogC'])),_0x4a7c4b['setLanguage'](CLIUtils['getSdkLanguage']()),_0x4a7c4b[_0x10e2df(0x119)](_0x55b9de);const _0x1a052b=_0x4a7c4b[_0x10e2df(0x186)]();return _0x1a052b['set'](_0x55b9de,_0x1465ef['ElaUe'](_0x27aea6,'')),_0x4a7c4b[_0x10e2df(0x157)](_0x55b9de,_0x27aea6),_0x4a7c4b['setFrameworksList']([_0x55b9de]),new Promise((_0x56ebb2,_0x22a351)=>{const _0xf3a123=_0x10e2df;this[_0xf3a123(0x1e6)][_0xf3a123(0x1ca)](_0x4a7c4b,(_0x242219,_0x52d9b3)=>{const _0x43bcbb=_0xf3a123;if(_0x242219){this[_0x43bcbb(0x16d)][_0x43bcbb(0x103)](_0x43bcbb(0x1b4)+_0x242219[_0x43bcbb(0x131)]),_0x1465ef['rxmZq'](_0x22a351,_0x242219),PerformanceTester['end'](PerformanceEvents['SDK_START_BIN_SESSION'],![],util['format'](_0x242219));return;}this['logger'][_0x43bcbb(0x1c8)](_0x1465ef[_0x43bcbb(0x1cc)]),PerformanceTester['end'](PerformanceEvents[_0x43bcbb(0x12c)]),_0x1465ef['waBZX'](_0x56ebb2,_0x52d9b3);});});}catch(_0x31f68b){this[_0x10e2df(0x16d)][_0x10e2df(0x103)]('Error\x20in\x20startBinSession:\x20'+util[_0x10e2df(0x197)](_0x31f68b)),PerformanceTester[_0x10e2df(0x11f)](PerformanceEvents[_0x10e2df(0x12c)],![],util[_0x10e2df(0x197)](_0x31f68b));throw _0x31f68b;}}async[a69_0x3acb58(0x1b3)](){const _0x7762c5=a69_0x3acb58,_0x2496b1={'kHAGS':function(_0x4aa562,_0x4a8c1f){return _0x4aa562(_0x4a8c1f);},'iWyCH':_0x7762c5(0x1ae),'WSEyD':'Connecting\x20bin\x20session','rfhKu':_0x7762c5(0x12a)};PerformanceTester[_0x7762c5(0x1a9)](PerformanceEvents[_0x7762c5(0x12d)]),this[_0x7762c5(0x16d)][_0x7762c5(0x1c8)](_0x2496b1[_0x7762c5(0x15b)]);try{!this[_0x7762c5(0x1e6)]&&this[_0x7762c5(0x16d)][_0x7762c5(0x1c8)](_0x2496b1[_0x7762c5(0x10f)]);const _0x5a202a=new messages[(_0x7762c5(0x100))]();_0x5a202a[_0x7762c5(0x12b)](this[_0x7762c5(0x184)]);const _0x397d48=await new Promise((_0x3a9d98,_0x40fecf)=>{const _0x4c3add=_0x7762c5,_0x4f9376={'ttCri':function(_0x2377c0,_0x2de468){return _0x2496b1['kHAGS'](_0x2377c0,_0x2de468);},'VAAqc':_0x2496b1[_0x4c3add(0x199)]};this[_0x4c3add(0x1e6)]['connectBinSession'](_0x5a202a,(_0x822cb8,_0x4c850a)=>{const _0x2b2c44=_0x4c3add;if(_0x822cb8){this['logger'][_0x2b2c44(0x103)](_0x2b2c44(0x101)+_0x822cb8['message']),_0x4f9376['ttCri'](_0x40fecf,_0x822cb8),PerformanceTester[_0x2b2c44(0x11f)](PerformanceEvents[_0x2b2c44(0x12d)],![],util[_0x2b2c44(0x197)](_0x822cb8));return;}this[_0x2b2c44(0x16d)][_0x2b2c44(0x1c8)](_0x4f9376[_0x2b2c44(0x181)]),PerformanceTester[_0x2b2c44(0x11f)](PerformanceEvents[_0x2b2c44(0x12d)]),_0x4f9376['ttCri'](_0x3a9d98,_0x4c850a);});});return this[_0x7762c5(0x16d)][_0x7762c5(0x1ea)]('connect-bin-session\x20response:\x20'+util[_0x7762c5(0x197)](_0x397d48)),_0x397d48;}catch(_0x477ad7){PerformanceTester[_0x7762c5(0x11f)](PerformanceEvents['SDK_CONNECT_BIN_SESSION'],![],util[_0x7762c5(0x197)](_0x477ad7)),this[_0x7762c5(0x16d)][_0x7762c5(0x103)](_0x7762c5(0x115)+util[_0x7762c5(0x197)](_0x477ad7));throw _0x477ad7;}}async[a69_0x3acb58(0x149)](_0x44342a={},_0x18d27c=null){const _0x364b90=a69_0x3acb58,_0x4af924={'mUzhg':function(_0x1f90df,_0x1f5946){return _0x1f90df(_0x1f5946);},'lSkYn':_0x364b90(0x17b),'voPVn':_0x364b90(0x152),'OZlGY':_0x364b90(0x18e),'XIsMG':_0x364b90(0x12a),'AONDu':_0x364b90(0x156)};PerformanceTester[_0x364b90(0x1a9)](PerformanceEvents[_0x364b90(0x11c)]),this['logger'][_0x364b90(0x1c8)](_0x4af924[_0x364b90(0x16f)]);try{if(!this[_0x364b90(0x184)])throw new Error(_0x4af924[_0x364b90(0x117)]);!this[_0x364b90(0x1e6)]&&this['logger'][_0x364b90(0x1c8)](_0x4af924[_0x364b90(0x1b5)]);const _0x4fbeee=new messages[(_0x364b90(0x1ba))]();this[_0x364b90(0x16d)][_0x364b90(0x1ea)]('Stopping\x20signal\x20'+JSON[_0x364b90(0x138)](_0x18d27c)),_0x4fbeee['setBinSessionId'](this[_0x364b90(0x184)]),_0x4fbeee['setCustomMetadata'](_0x44342a),_0x4fbeee[_0x364b90(0x180)](_0x18d27c?_0x18d27c:null),_0x4fbeee[_0x364b90(0x112)](_0x18d27c?_0x4af924[_0x364b90(0x1a7)]:null),_0x4fbeee['setExitCode'](_0x18d27c?0x1:0x0);const _0x22ac19=await new Promise((_0x260be7,_0x1f2141)=>{const _0x52e400=_0x364b90,_0x47b327={'ZfTrW':function(_0x34f06c,_0x438ca0){const _0x2cb128=a69_0x27e6;return _0x4af924[_0x2cb128(0x16a)](_0x34f06c,_0x438ca0);},'MWTWw':_0x4af924[_0x52e400(0x167)]};this[_0x52e400(0x1e6)][_0x52e400(0x149)](_0x4fbeee,(_0x1cb40a,_0x5502bf)=>{const _0x5bf8eb=_0x52e400;if(_0x1cb40a){this[_0x5bf8eb(0x16d)][_0x5bf8eb(0x103)](_0x5bf8eb(0x18d)+_0x1cb40a[_0x5bf8eb(0x131)]),_0x47b327[_0x5bf8eb(0x160)](_0x1f2141,_0x1cb40a),PerformanceTester['end'](PerformanceEvents[_0x5bf8eb(0x11c)],![],util[_0x5bf8eb(0x197)](_0x1cb40a));return;}this[_0x5bf8eb(0x16d)]['info'](_0x47b327[_0x5bf8eb(0x120)]),PerformanceTester['end'](PerformanceEvents[_0x5bf8eb(0x11c)]),_0x47b327[_0x5bf8eb(0x160)](_0x260be7,_0x5502bf);});});return this['logger'][_0x364b90(0x1ea)]('stop-bin-session\x20response:\x20'+util['format'](_0x22ac19)),_0x22ac19;}catch(_0x5b6b91){PerformanceTester[_0x364b90(0x11f)](PerformanceEvents[_0x364b90(0x11c)],![],util[_0x364b90(0x197)](_0x5b6b91)),this['logger']['error'](_0x364b90(0x1c9)+util['format'](_0x5b6b91));}}async['getPlaywrightConfig'](_0x267a9c){const _0x47e228=a69_0x3acb58,_0x46c7f4={'mkZvL':function(_0x4c51f3,_0x8fef52){return _0x4c51f3(_0x8fef52);},'ffUAS':_0x47e228(0x1a4),'RdYDV':function(_0x16f5d8,_0x16fc92){return _0x16f5d8(_0x16fc92);},'RGFTJ':_0x47e228(0x1db),'yuRtO':_0x47e228(0x12a)};PerformanceTester[_0x47e228(0x1a9)](PerformanceEvents[_0x47e228(0x166)]),this[_0x47e228(0x16d)]['info'](_0x46c7f4[_0x47e228(0x108)]);try{!this['client']&&this['logger'][_0x47e228(0x1c8)](_0x46c7f4[_0x47e228(0x1d1)]);const _0x24132b=new messages[(_0x47e228(0x150))]();return _0x24132b[_0x47e228(0x12b)](this['binSessionId']),_0x24132b[_0x47e228(0x175)](JSON[_0x47e228(0x138)](_0x267a9c)),new Promise((_0x3d916b,_0x5561f0)=>{const _0x4088c6=_0x47e228,_0x8f11b3={'BWXxF':function(_0x48766f,_0x410854){const _0x548fba=a69_0x27e6;return _0x46c7f4[_0x548fba(0x13d)](_0x48766f,_0x410854);},'GHEfN':_0x46c7f4[_0x4088c6(0x1c2)],'uEmvX':function(_0x29f8c9,_0x420412){return _0x46c7f4['RdYDV'](_0x29f8c9,_0x420412);}};this['client'][_0x4088c6(0x143)](_0x24132b,(_0xa402d4,_0x37a057)=>{const _0xd8eeef=_0x4088c6;if(_0xa402d4){this[_0xd8eeef(0x16d)][_0xd8eeef(0x103)](_0xd8eeef(0x110)+_0xa402d4['message']),_0x8f11b3[_0xd8eeef(0x146)](_0x5561f0,_0xa402d4),PerformanceTester[_0xd8eeef(0x11f)](PerformanceEvents[_0xd8eeef(0x166)],![],util['format'](_0xa402d4));return;}this['logger']['info'](_0x8f11b3[_0xd8eeef(0x18b)]),PerformanceTester['end'](PerformanceEvents['SDK_AUTOMATION_FRAMEWORK_INIT']),_0x8f11b3['uEmvX'](_0x3d916b,_0x37a057);});});}catch(_0x336dd0){PerformanceTester[_0x47e228(0x11f)](PerformanceEvents[_0x47e228(0x166)],![],util[_0x47e228(0x197)](_0x336dd0)),this[_0x47e228(0x16d)][_0x47e228(0x103)](_0x47e228(0x14a)+util[_0x47e228(0x197)](_0x336dd0));throw _0x336dd0;}}async[a69_0x3acb58(0x151)](_0x3ec086){const _0x46e931=a69_0x3acb58,_0x1c2c4a={'dzXyQ':function(_0x3e3593,_0x491d17){return _0x3e3593(_0x491d17);},'TgLkA':_0x46e931(0x1e1),'VTLLC':_0x46e931(0x1af),'cFoXC':_0x46e931(0x13f)};this[_0x46e931(0x16d)]['info'](_0x1c2c4a[_0x46e931(0x1de)]);try{const _0x5184e9=Buffer[_0x46e931(0x1be)](JSON[_0x46e931(0x138)](_0x3ec086[_0x46e931(0x1c5)]),_0x1c2c4a['cFoXC']),_0x18de56=new messages['AccessibilityConfigRequest'](),_0x1786c5=CLIUtils[_0x46e931(0x185)](),_0x14b0dd=_0x1786c5[_0x46e931(0x190)],_0x559673=_0x1786c5[_0x46e931(0x153)];return _0x18de56[_0x46e931(0x12b)](this[_0x46e931(0x184)]),_0x18de56[_0x46e931(0x194)](0x0),_0x18de56[_0x46e931(0x18f)](_0x14b0dd),_0x18de56[_0x46e931(0x14b)](_0x559673),_0x18de56[_0x46e931(0x161)](_0x3ec086[_0x46e931(0x137)]),_0x18de56['setCapabilities'](_0x5184e9),new Promise((_0x3dcf67,_0x3a2173)=>{const _0x180dc2=_0x46e931,_0x165fc9={'ABhkl':function(_0x28efb4,_0x29af3f){const _0x1d5a3d=a69_0x27e6;return _0x1c2c4a[_0x1d5a3d(0x17e)](_0x28efb4,_0x29af3f);},'puRVZ':_0x1c2c4a[_0x180dc2(0x144)],'JiHDR':function(_0x1b40e6,_0x5f2dbf){const _0x250d6c=_0x180dc2;return _0x1c2c4a[_0x250d6c(0x17e)](_0x1b40e6,_0x5f2dbf);}};this[_0x180dc2(0x1e6)][_0x180dc2(0x195)](_0x18de56,(_0x4db1cd,_0x49afad)=>{const _0x5c2883=_0x180dc2;if(_0x4db1cd){this[_0x5c2883(0x16d)][_0x5c2883(0x103)](_0x5c2883(0x1b7)+_0x4db1cd[_0x5c2883(0x131)]),_0x165fc9[_0x5c2883(0x1e7)](_0x3a2173,_0x4db1cd);return;}this[_0x5c2883(0x16d)]['info'](_0x165fc9[_0x5c2883(0x1aa)]),_0x165fc9[_0x5c2883(0x13e)](_0x3dcf67,_0x49afad);});});}catch(_0x147dc7){this[_0x46e931(0x16d)]['error']('Error\x20in\x20getAccessibilityConfig:\x20'+util[_0x46e931(0x197)](_0x147dc7));}}async[a69_0x3acb58(0x163)](_0x1bd2b0){const _0x5c0c47=a69_0x3acb58,_0x90fb2b={'bhNJs':function(_0x44fe00,_0xc3555e){return _0x44fe00(_0xc3555e);},'WVgaJ':_0x5c0c47(0x1a8),'RHNxp':function(_0x3b9e71,_0x3a3461){return _0x3b9e71(_0x3a3461);},'LREoD':'Sending\x20TestSessionEvent','VTDJd':_0x5c0c47(0x12a)};this[_0x5c0c47(0x16d)][_0x5c0c47(0x1c8)](_0x90fb2b[_0x5c0c47(0x162)]);try{!this[_0x5c0c47(0x1e6)]&&this[_0x5c0c47(0x16d)][_0x5c0c47(0x1c8)](_0x90fb2b['VTDJd']);const {platformIndex:_0x19fab2,testFrameworkName:_0x149e3c,testFrameworkVersion:_0x1c382c,testFrameworkState:_0x111a71,testHookState:_0x30b43b,testUuid:_0x5484b0,automationSession:_0x28ec66,capabilities:_0x1905b0,executionContext:_0x502a54}=_0x1bd2b0,_0x93b3ab=new messages['TestSessionEventRequest']();_0x93b3ab[_0x5c0c47(0x12b)](this['binSessionId']),_0x93b3ab[_0x5c0c47(0x194)](_0x19fab2),_0x93b3ab[_0x5c0c47(0x170)](_0x149e3c),_0x93b3ab[_0x5c0c47(0x16c)](_0x1c382c),_0x93b3ab[_0x5c0c47(0x1c4)](_0x111a71),_0x93b3ab[_0x5c0c47(0x140)](_0x30b43b),_0x93b3ab['setTestUuid'](_0x5484b0);const _0xb28690=new messages[(_0x5c0c47(0x17f))][(_0x5c0c47(0x177))]();_0xb28690['setProvider'](_0x28ec66[_0x5c0c47(0x1e3)]),_0xb28690['setFrameworkName'](_0x28ec66[_0x5c0c47(0x174)]),_0xb28690[_0x5c0c47(0x14b)](_0x28ec66[_0x5c0c47(0x1bb)]),_0xb28690[_0x5c0c47(0x1d5)](_0x28ec66['frameworkSessionId']),_0xb28690[_0x5c0c47(0x1a5)](_0x28ec66[_0x5c0c47(0x192)]),_0xb28690[_0x5c0c47(0x161)](_0x28ec66[_0x5c0c47(0x137)]),_0x93b3ab[_0x5c0c47(0x15d)](_0xb28690),_0x93b3ab[_0x5c0c47(0x1d0)](_0x1905b0);const _0x4da172=new messages['ExecutionContext']();return _0x4da172[_0x5c0c47(0x134)](_0x502a54[_0x5c0c47(0x10e)]),_0x4da172['setThreadId'](_0x502a54[_0x5c0c47(0x1ad)]),_0x4da172[_0x5c0c47(0x11e)](_0x502a54[_0x5c0c47(0x1dc)]),_0x93b3ab[_0x5c0c47(0x1c6)](_0x4da172),new Promise((_0x4b1416,_0x31e446)=>{const _0x219d74=_0x5c0c47;this[_0x219d74(0x1e6)][_0x219d74(0x163)](_0x93b3ab,(_0x2c38bf,_0x51b062)=>{const _0x2e135c=_0x219d74;if(_0x2c38bf){this['logger'][_0x2e135c(0x103)](_0x2e135c(0x129)+_0x2c38bf[_0x2e135c(0x131)]),_0x90fb2b[_0x2e135c(0x1d7)](_0x31e446,_0x2c38bf);return;}this[_0x2e135c(0x16d)][_0x2e135c(0x1c8)](_0x90fb2b[_0x2e135c(0x15f)]),_0x90fb2b['RHNxp'](_0x4b1416,_0x51b062);});});}catch(_0x178274){this['logger'][_0x5c0c47(0x103)](_0x5c0c47(0x15e)+util[_0x5c0c47(0x197)](_0x178274));throw _0x178274;}}async[a69_0x3acb58(0x1e5)](_0x408040){const _0x220dbb=a69_0x3acb58,_0x3aa671={'FpKTE':function(_0x3e5a3c,_0x664a91){return _0x3e5a3c(_0x664a91);},'UjZvR':_0x220dbb(0x1a0),'NcIdL':function(_0x2f97b0,_0x520a69){return _0x2f97b0(_0x520a69);},'vkKmH':_0x220dbb(0x13c),'IJtnJ':_0x220dbb(0x12a)};this[_0x220dbb(0x16d)][_0x220dbb(0x1c8)](_0x3aa671[_0x220dbb(0x1b9)]);try{!this[_0x220dbb(0x1e6)]&&this[_0x220dbb(0x16d)][_0x220dbb(0x1c8)](_0x3aa671[_0x220dbb(0x1ec)]);const {platfromIndex:_0x43fb2e,testFrameworkName:_0x529ead,testFrameworkVersion:_0x5035d2,testFrameworkState:_0x1f1c9d,hookState:_0x30f80f,startedAt:_0x35dbd0,endedAt:_0x2825f6,uuid:_0x6d89,eventJson:_0x508227,executionContext:_0x1df48b}=_0x408040,_0x446b75=new messages[(_0x220dbb(0x10a))]();_0x446b75[_0x220dbb(0x12b)](this['binSessionId']),_0x446b75[_0x220dbb(0x194)](_0x43fb2e),_0x446b75[_0x220dbb(0x170)](_0x529ead),_0x446b75[_0x220dbb(0x16c)](_0x5035d2),_0x446b75[_0x220dbb(0x1c4)](_0x1f1c9d),_0x446b75['setTestHookState'](_0x30f80f),_0x446b75[_0x220dbb(0x1e4)](_0x35dbd0),_0x446b75[_0x220dbb(0x1b0)](_0x2825f6),_0x446b75[_0x220dbb(0x1eb)](_0x6d89),_0x446b75[_0x220dbb(0x102)](_0x508227);const _0x1bcde4=new messages[(_0x220dbb(0x1e0))]();return _0x1bcde4[_0x220dbb(0x134)](_0x1df48b[_0x220dbb(0x10e)]),_0x1bcde4['setThreadId'](_0x1df48b[_0x220dbb(0x1ad)]),_0x1bcde4[_0x220dbb(0x11e)](_0x1df48b[_0x220dbb(0x1dc)]),_0x446b75[_0x220dbb(0x1c6)](_0x1bcde4),new Promise((_0x25026a,_0x2ec444)=>{const _0x12a1db=_0x220dbb,_0x422b0b={'mrkeP':function(_0x146336,_0x44352e){const _0x468d09=a69_0x27e6;return _0x3aa671[_0x468d09(0x1b1)](_0x146336,_0x44352e);},'IGzSw':_0x3aa671['UjZvR'],'HPtas':function(_0x59c5dc,_0x50c3e0){const _0x5b8e04=a69_0x27e6;return _0x3aa671[_0x5b8e04(0x1dd)](_0x59c5dc,_0x50c3e0);}};this[_0x12a1db(0x1e6)]['testFrameworkEvent'](_0x446b75,(_0x10d098,_0xc7b671)=>{const _0x1321e4=_0x12a1db;if(_0x10d098){this[_0x1321e4(0x16d)][_0x1321e4(0x103)](_0x1321e4(0x12e)+_0x10d098[_0x1321e4(0x131)]),_0x422b0b[_0x1321e4(0x1d2)](_0x2ec444,_0x10d098);return;}this[_0x1321e4(0x16d)]['info'](_0x422b0b[_0x1321e4(0x189)]),_0x422b0b[_0x1321e4(0x116)](_0x25026a,_0xc7b671);});});}catch(_0x28a42d){this[_0x220dbb(0x16d)][_0x220dbb(0x103)](_0x220dbb(0x19a)+util[_0x220dbb(0x197)](_0x28a42d));throw _0x28a42d;}}async[a69_0x3acb58(0x11a)](_0x89b0c4){const _0x2d5b28=a69_0x3acb58,_0x498c12={'NxMDZ':function(_0x1a8453,_0x27fdb7){return _0x1a8453(_0x27fdb7);},'nRZEA':_0x2d5b28(0x155),'xiPJo':_0x2d5b28(0x10d),'zznus':'No\x20gRPC\x20client\x20not\x20initialized.'};this['logger']['info'](_0x498c12[_0x2d5b28(0x111)]);try{!this['client']&&this[_0x2d5b28(0x16d)][_0x2d5b28(0x1c8)](_0x498c12[_0x2d5b28(0x198)]);const {platformIndex:_0x4d0682,ref:_0x41c267,userInputParams:_0x1c43ba}=_0x89b0c4,_0x2ac129=new messages[(_0x2d5b28(0x145))]();return _0x2ac129[_0x2d5b28(0x12b)](this[_0x2d5b28(0x184)]),_0x2ac129[_0x2d5b28(0x194)](_0x4d0682),_0x2ac129[_0x2d5b28(0x1a5)](_0x41c267),_0x2ac129[_0x2d5b28(0x1b2)](_0x1c43ba),new Promise((_0x4e99dc,_0x35fae9)=>{const _0x4d367c=_0x2d5b28;this[_0x4d367c(0x1e6)][_0x4d367c(0x11a)](_0x2ac129,(_0xbf86cc,_0x15449a)=>{const _0x27d421=_0x4d367c;if(_0xbf86cc){this['logger'][_0x27d421(0x103)](_0x27d421(0x1c1)+_0xbf86cc[_0x27d421(0x131)]),_0x498c12[_0x27d421(0x15c)](_0x35fae9,_0xbf86cc);return;}this[_0x27d421(0x16d)][_0x27d421(0x1c8)](_0x498c12[_0x27d421(0x123)]),_0x498c12['NxMDZ'](_0x4e99dc,_0x15449a);});});}catch(_0x3c2d2f){this['logger'][_0x2d5b28(0x103)](_0x2d5b28(0x188)+util[_0x2d5b28(0x197)](_0x3c2d2f));throw _0x3c2d2f;}}async[a69_0x3acb58(0x1c0)](_0x59f61b){const _0x21af27=a69_0x3acb58,_0x23dcc4={'VFIbT':function(_0x35a72d,_0x49eff2){return _0x35a72d===_0x49eff2;},'hcBIH':function(_0x31a3ac,_0x150d9f){return _0x31a3ac(_0x150d9f);},'mnUUt':_0x21af27(0x19b),'XWIOP':'Sending\x20LogCreatedEvent','ohjcq':'No\x20gRPC\x20client\x20not\x20initialized.'};this['logger'][_0x21af27(0x1c8)](_0x23dcc4[_0x21af27(0x1e9)]);try{!this[_0x21af27(0x1e6)]&&this['logger'][_0x21af27(0x1c8)](_0x23dcc4[_0x21af27(0x142)]);const {platformIndex:_0x32cb68,logs:_0x4ad10e}=_0x59f61b,_0x1299f0=new messages[(_0x21af27(0x1a1))]();_0x1299f0[_0x21af27(0x12b)](this['binSessionId']),_0x1299f0[_0x21af27(0x194)](_0x32cb68);const _0x36b37c=_0x59f61b[_0x21af27(0x11d)],_0x37f761=_0x59f61b[_0x21af27(0x158)],_0x45b068=_0x59f61b[_0x21af27(0x1df)];return _0x4ad10e[_0x21af27(0x1cf)](_0x3169a5=>{const _0xf751ce=_0x21af27,_0x13e8e5=new messages['LogCreatedEventRequest'][(_0xf751ce(0x176))]();_0x13e8e5[_0xf751ce(0x170)](_0x36b37c),_0x13e8e5[_0xf751ce(0x16c)](_0x37f761),_0x13e8e5[_0xf751ce(0x1c4)](_0x45b068),_0x13e8e5[_0xf751ce(0x18c)](_0x3169a5[_0xf751ce(0x1bc)]),_0x13e8e5[_0xf751ce(0x1eb)](_0x3169a5[_0xf751ce(0x148)]),_0x13e8e5[_0xf751ce(0x17a)](_0x3169a5[_0xf751ce(0x1d8)]),_0x23dcc4[_0xf751ce(0x1d9)](_0x3169a5[_0xf751ce(0x128)],PLAYWRIGHT_TRACE_LOGS)?(_0x13e8e5[_0xf751ce(0x1eb)](_0x3169a5['test_run_uuid']),_0x13e8e5[_0xf751ce(0x178)](new TextEncoder()[_0xf751ce(0x183)](JSON[_0xf751ce(0x138)](_0x3169a5)))):_0x13e8e5[_0xf751ce(0x178)](new TextEncoder()[_0xf751ce(0x183)](_0x3169a5[_0xf751ce(0x131)])),_0x13e8e5[_0xf751ce(0x15a)](_0x3169a5['level']),_0x13e8e5[_0xf751ce(0x1ab)](_0x3169a5?.[_0xf751ce(0x133)]||''),_0x13e8e5['setFilePath'](_0x3169a5?.[_0xf751ce(0x1b8)]||''),_0x13e8e5['setFileSize'](_0x3169a5?.[_0xf751ce(0x171)]||0x0),_0x13e8e5[_0xf751ce(0x165)](_0x3169a5?.[_0xf751ce(0x128)]||''),_0x1299f0[_0xf751ce(0x126)](_0x13e8e5);}),new Promise((_0x4e2ddf,_0x24a8a2)=>{const _0x33bc8f=_0x21af27;this['client'][_0x33bc8f(0x1c0)](_0x1299f0,(_0x3f034a,_0x307e92)=>{const _0x4c5bc2=_0x33bc8f;if(_0x3f034a){this[_0x4c5bc2(0x16d)][_0x4c5bc2(0x103)](_0x4c5bc2(0x17d)+_0x3f034a[_0x4c5bc2(0x131)]),_0x23dcc4[_0x4c5bc2(0x19f)](_0x24a8a2,_0x3f034a);return;}this[_0x4c5bc2(0x16d)]['info'](_0x23dcc4[_0x4c5bc2(0x1da)]),_0x23dcc4[_0x4c5bc2(0x19f)](_0x4e2ddf,_0x307e92);});});}catch(_0x34855f){this[_0x21af27(0x16d)][_0x21af27(0x103)]('Error\x20in\x20LogCreatedEvent:\x20'+util['format'](_0x34855f));throw _0x34855f;}}[a69_0x3acb58(0x1a3)](){return this['client'];}[a69_0x3acb58(0x130)](){const _0x273064=a69_0x3acb58;return this[_0x273064(0x1e2)];}}module[a69_0x3acb58(0x19d)]=GrpcClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a70_0x1c52c8=a70_0x2cf0;(function(_0x2089bd,_0x207599){const _0x32e9c1=a70_0x2cf0,_0x585359=_0x2089bd();while(!![]){try{const _0x15233e=parseInt(_0x32e9c1(0x1fa))/0x1*(-parseInt(_0x32e9c1(0x1fc))/0x2)+-parseInt(_0x32e9c1(0x204))/0x3*(-parseInt(_0x32e9c1(0x201))/0x4)+-parseInt(_0x32e9c1(0x20c))/0x5*(-parseInt(_0x32e9c1(0x208))/0x6)+-parseInt(_0x32e9c1(0x1f8))/0x7+-parseInt(_0x32e9c1(0x20b))/0x8*(parseInt(_0x32e9c1(0x1fe))/0x9)+-parseInt(_0x32e9c1(0x1f7))/0xa*(parseInt(_0x32e9c1(0x1f4))/0xb)+-parseInt(_0x32e9c1(0x1f5))/0xc*(-parseInt(_0x32e9c1(0x20d))/0xd);if(_0x15233e===_0x207599)break;else _0x585359['push'](_0x585359['shift']());}catch(_0x213e29){_0x585359['push'](_0x585359['shift']());}}}(a70_0x20f5,0xb09f9));const AutomationFrameworkState=require(a70_0x1c52c8(0x20a)),TrackedInstance=require(a70_0x1c52c8(0x1ff)),now=new Date();class AutomationFrameworkInstance extends TrackedInstance{constructor(_0x46566b,_0x36a8ea,_0x48f77c,_0xfcf3d0){const _0x75998a=a70_0x1c52c8,_0x33d4f9={};_0x33d4f9['SXTjg']=_0x75998a(0x207);const _0x3cf2a8=_0x33d4f9,_0x4f262e=_0x3cf2a8[_0x75998a(0x203)][_0x75998a(0x1fd)]('|');let _0x4cdbbd=0x0;while(!![]){switch(_0x4f262e[_0x4cdbbd++]){case'0':this['lastState']=AutomationFrameworkState[_0x75998a(0x205)];continue;case'1':this[_0x75998a(0x20e)]=_0x36a8ea;continue;case'2':this[_0x75998a(0x209)]=_0xfcf3d0;continue;case'3':this['createdAt']=now['toLocaleString']();continue;case'4':this['frameworkVersion']=_0x48f77c;continue;case'5':super(_0x46566b);continue;}break;}}[a70_0x1c52c8(0x206)](){const _0x662fc5=a70_0x1c52c8;return this[_0x662fc5(0x20e)];}[a70_0x1c52c8(0x1fb)](){return this['frameworkVersion'];}[a70_0x1c52c8(0x1f9)](){return this['state'];}[a70_0x1c52c8(0x202)](_0x4796b8){const _0x3dd604=a70_0x1c52c8;this[_0x3dd604(0x1f6)]=this[_0x3dd604(0x209)],this[_0x3dd604(0x209)]=_0x4796b8;}}module[a70_0x1c52c8(0x200)]=AutomationFrameworkInstance;function a70_0x2cf0(_0x3be829,_0x3c85a6){const _0x20f58a=a70_0x20f5();return a70_0x2cf0=function(_0x2cf06f,_0x2c2b2c){_0x2cf06f=_0x2cf06f-0x1f4;let _0x16ab58=_0x20f58a[_0x2cf06f];return _0x16ab58;},a70_0x2cf0(_0x3be829,_0x3c85a6);}function a70_0x20f5(){const _0x2ec04e=['split','5337IDmxrr','./trackedInstance','exports','470692OjMZIA','setState','SXTjg','9IuyNxp','NONE','getFrameworkName','5|1|4|2|0|3','18YzOyUF','state','../state/automationFrameworkState','11728udDlmt','270965zOyKZx','13353119gSMuaF','frameworkName','2995806FLTfZE','36CGjVeb','lastState','20SkSOpr','1332009XZctiN','getState','1269321omRRXZ','getFrameworkVersion','2lKSCQm'];a70_0x20f5=function(){return _0x2ec04e;};return a70_0x20f5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x2144af=a71_0x390f;function a71_0x5e5c(){const _0x5e8043=['349804yVUCAc','setCurrentTestState','setLastHookState','setLastTestState','currentTestState','8UcLibH','testFrameworksVersions','5|3|4|2|7|6|0|1','exports','302266YZroTY','toLocaleString','getCurrentTestState','split','setCurrentHookState','./trackedContext','testFrameworks','960fnBJXm','2468910NidYTc','getLastHookState','sNewe','currentHookState','2172010RbjlHv','57636AHVOiN','lastTestState','createdAt','../../../helpers/classLogger','98156UfQsmy','9FcPfts','../state/hookState','getCreatedAt','1070573eRyexK','NONE'];a71_0x5e5c=function(){return _0x5e8043;};return a71_0x5e5c();}(function(_0x234994,_0x9cf97e){const _0x2d8461=a71_0x390f,_0x35b375=_0x234994();while(!![]){try{const _0x11a62b=-parseInt(_0x2d8461(0xb7))/0x1+parseInt(_0x2d8461(0xc0))/0x2+parseInt(_0x2d8461(0xb2))/0x3*(parseInt(_0x2d8461(0xb1))/0x4)+parseInt(_0x2d8461(0xcc))/0x5+parseInt(_0x2d8461(0xc8))/0x6+parseInt(_0x2d8461(0xb5))/0x7*(parseInt(_0x2d8461(0xbc))/0x8)+-parseInt(_0x2d8461(0xad))/0x9*(parseInt(_0x2d8461(0xc7))/0xa);if(_0x11a62b===_0x9cf97e)break;else _0x35b375['push'](_0x35b375['shift']());}catch(_0x499830){_0x35b375['push'](_0x35b375['shift']());}}}(a71_0x5e5c,0x3f3ac));const {createClassLogger}=require(a71_0x2144af(0xb0)),logger=createClassLogger('TrackedInstance'),HookState=require(a71_0x2144af(0xb3)),TestFrameworkState=require('../state/testFrameworkState'),TrackedContext=require(a71_0x2144af(0xc5)),TrackedInstance=require('./trackedInstance'),now=new Date();class TestFrameworkInstance extends TrackedInstance{constructor(_0xfe21c3,_0x460513,_0x97171f,_0x32fdb4,_0x4351c4){const _0x35ea1a=a71_0x2144af,_0x28d938={};_0x28d938[_0x35ea1a(0xca)]=_0x35ea1a(0xbe);const _0x37351b=_0x28d938,_0x2cfdf1=_0x37351b[_0x35ea1a(0xca)][_0x35ea1a(0xc3)]('|');let _0x10dcc5=0x0;while(!![]){switch(_0x2cfdf1[_0x10dcc5++]){case'0':this['lastHookState']=HookState[_0x35ea1a(0xb6)];continue;case'1':this[_0x35ea1a(0xaf)]=now[_0x35ea1a(0xc1)]();continue;case'2':this[_0x35ea1a(0xbb)]=_0x32fdb4;continue;case'3':this[_0x35ea1a(0xc6)]=_0x460513;continue;case'4':this[_0x35ea1a(0xbd)]=_0x97171f;continue;case'5':super(_0xfe21c3);continue;case'6':this[_0x35ea1a(0xae)]=TestFrameworkState['NONE'];continue;case'7':this[_0x35ea1a(0xcb)]=_0x4351c4;continue;}break;}}[a71_0x2144af(0xc2)](){const _0x5cdc76=a71_0x2144af;return this[_0x5cdc76(0xbb)];}[a71_0x2144af(0xb8)](_0x217963){const _0x3f576a=a71_0x2144af;this['setLastTestState'](this[_0x3f576a(0xbb)]),this[_0x3f576a(0xbb)]=_0x217963;}['getCurrentHookState'](){const _0x2ee847=a71_0x2144af;return this[_0x2ee847(0xcb)];}[a71_0x2144af(0xc4)](_0x56ac2c){const _0x564fc3=a71_0x2144af;this[_0x564fc3(0xb9)](this[_0x564fc3(0xcb)]),this[_0x564fc3(0xcb)]=_0x56ac2c;}['getLastTestState'](){return this['lastTestState'];}[a71_0x2144af(0xba)](_0x3c7f16){const _0x1adee3=a71_0x2144af;this[_0x1adee3(0xae)]=_0x3c7f16;}[a71_0x2144af(0xc9)](){return this['lastHookState'];}[a71_0x2144af(0xb9)](_0xe4851e){this['lastHookState']=_0xe4851e;}[a71_0x2144af(0xb4)](){const _0x21cd0c=a71_0x2144af;return this[_0x21cd0c(0xaf)];}}function a71_0x390f(_0x5c8ca6,_0x3f4356){const _0x5e5cbc=a71_0x5e5c();return a71_0x390f=function(_0x390ff4,_0x529f94){_0x390ff4=_0x390ff4-0xad;let _0x3ab50f=_0x5e5cbc[_0x390ff4];return _0x3ab50f;},a71_0x390f(_0x5c8ca6,_0x3f4356);}module[a71_0x2144af(0xbf)]=TestFrameworkInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x3b9eab=a72_0x2fee;function a72_0x4f22(){const _0x47fbb8=['8DNGEpa','getThreadId','9011295xzNgqw','3bSwSRZ','getType','../../../helpers/classLogger','163385Oyzdoj','getProcessId','threadId','type','16233980uTGjku','3238742VkqmyM','12dDMImn','processId','10356830aoJfZZ','780lwnXxT','getId','54515InNSPn','10787fQIWNx','228WDAFVX'];a72_0x4f22=function(){return _0x47fbb8;};return a72_0x4f22();}function a72_0x2fee(_0x31253c,_0x327bc0){const _0x4f22da=a72_0x4f22();return a72_0x2fee=function(_0x2fee11,_0x593278){_0x2fee11=_0x2fee11-0x130;let _0x2b18c5=_0x4f22da[_0x2fee11];return _0x2b18c5;},a72_0x2fee(_0x31253c,_0x327bc0);}(function(_0x3139cb,_0x4968a8){const _0x234f4d=a72_0x2fee,_0x4ffdea=_0x3139cb();while(!![]){try{const _0x1a1e47=parseInt(_0x234f4d(0x13b))/0x1+-parseInt(_0x234f4d(0x140))/0x2*(-parseInt(_0x234f4d(0x138))/0x3)+parseInt(_0x234f4d(0x134))/0x4*(parseInt(_0x234f4d(0x132))/0x5)+parseInt(_0x234f4d(0x130))/0x6*(parseInt(_0x234f4d(0x133))/0x7)+-parseInt(_0x234f4d(0x135))/0x8*(parseInt(_0x234f4d(0x137))/0x9)+-parseInt(_0x234f4d(0x13f))/0xa+-parseInt(_0x234f4d(0x143))/0xb*(-parseInt(_0x234f4d(0x141))/0xc);if(_0x1a1e47===_0x4968a8)break;else _0x4ffdea['push'](_0x4ffdea['shift']());}catch(_0xac43a8){_0x4ffdea['push'](_0x4ffdea['shift']());}}}(a72_0x4f22,0xe0f5a));const {createClassLogger}=require(a72_0x3b9eab(0x13a)),logger=createClassLogger('TrackedContext');class TrackedContext{constructor(_0x592c7e,_0x5676f2,_0x3acc77,_0xbb3505){const _0x1b1e7b=a72_0x3b9eab;this['id']=_0x592c7e,this[_0x1b1e7b(0x13d)]=_0x5676f2,this[_0x1b1e7b(0x142)]=_0x3acc77,this[_0x1b1e7b(0x13e)]=_0xbb3505;}[a72_0x3b9eab(0x136)](){const _0x5412d2=a72_0x3b9eab;return this[_0x5412d2(0x13d)];}[a72_0x3b9eab(0x13c)](){const _0xc84c81=a72_0x3b9eab;return this[_0xc84c81(0x142)];}[a72_0x3b9eab(0x131)](){return this['id'];}[a72_0x3b9eab(0x139)](){return this['type'];}}module['exports']=TrackedContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a73_0x1784cb=a73_0x54b7;function a73_0x264f(){const _0xe69a8e=['9lBVdeL','context','crypto','1414140yJLltu','101429pqFXrX','createHash','updateData','set','createContext','10299030qjaxFs','464HoJTDH','getId','pid','data','exports','updateMultipleEntries','1253013zTaWCr','getData','4oASxQm','yYYLi','156639LXejJt','getContext','addMultipleEntries','forEach','get','7142910qoPJTq','18965705iENwiF','iPzRh','isBrowserstackAutomationSession','entries','worker_threads','./trackedContext','KEY_IS_BROWSERSTACK_AUTOMATION_SESSION','18DXlmzl','xJYfL','getAllData','getRef'];a73_0x264f=function(){return _0xe69a8e;};return a73_0x264f();}(function(_0x137abb,_0x4227a8){const _0x441aba=a73_0x54b7,_0x1f027f=_0x137abb();while(!![]){try{const _0x1bea6c=parseInt(_0x441aba(0x96))/0x1*(parseInt(_0x441aba(0x8e))/0x2)+-parseInt(_0x441aba(0xa2))/0x3*(parseInt(_0x441aba(0x7f))/0x4)+-parseInt(_0x441aba(0x86))/0x5+parseInt(_0x441aba(0x95))/0x6+-parseInt(_0x441aba(0x81))/0x7*(parseInt(_0x441aba(0x9c))/0x8)+parseInt(_0x441aba(0x92))/0x9*(parseInt(_0x441aba(0x9b))/0xa)+parseInt(_0x441aba(0x87))/0xb;if(_0x1bea6c===_0x4227a8)break;else _0x1f027f['push'](_0x1f027f['shift']());}catch(_0x4d9803){_0x1f027f['push'](_0x1f027f['shift']());}}}(a73_0x264f,0xb92da));const TrackedContext=require(a73_0x1784cb(0x8c)),crypto=require(a73_0x1784cb(0x94)),{threadId}=require(a73_0x1784cb(0x8b));class TrackedInstance{static [a73_0x1784cb(0x8d)]=a73_0x1784cb(0x89);constructor(_0x326b00){const _0xc8360c=a73_0x1784cb;this[_0xc8360c(0x93)]=_0x326b00,this[_0xc8360c(0x9f)]=new Map();}[a73_0x1784cb(0x91)](){const _0x125fbc=a73_0x1784cb;return this[_0x125fbc(0x93)][_0x125fbc(0x9d)]();}[a73_0x1784cb(0x82)](){const _0x2a2b6a=a73_0x1784cb;return this[_0x2a2b6a(0x93)];}[a73_0x1784cb(0x90)](){const _0x1cad73=a73_0x1784cb;return this[_0x1cad73(0x9f)];}[a73_0x1784cb(0xa1)](_0x2adafa){Object['keys'](_0x2adafa)['forEach'](_0x3bc7df=>{const _0x270da5=a73_0x54b7;this['data'][_0x270da5(0x99)](_0x3bc7df,_0x2adafa[_0x3bc7df]);});}[a73_0x1784cb(0x83)](_0x4ed763){const _0x4e7d27=a73_0x1784cb;Object[_0x4e7d27(0x8a)](_0x4ed763)[_0x4e7d27(0x84)](([_0x43ec17,_0x561cd7])=>{const _0x42d861=_0x4e7d27,_0x2778e4=this[_0x42d861(0x9f)]['get'](_0x43ec17)||{},_0x41099e={..._0x2778e4,..._0x561cd7},_0x450c3a=_0x41099e;this['data']['set'](_0x43ec17,_0x450c3a);});}[a73_0x1784cb(0x7e)](_0x134ea9){const _0xfc0482=a73_0x1784cb;return this['data'][_0xfc0482(0x85)](_0x134ea9);}[a73_0x1784cb(0x98)](_0x3122b3,_0x2d7b0e){const _0x288a31=a73_0x1784cb;this['data'][_0x288a31(0x99)](_0x3122b3,_0x2d7b0e);}static[a73_0x1784cb(0x9a)](_0x3a6e40){const _0x48ec81=a73_0x1784cb,_0x2012c6={};_0x2012c6[_0x48ec81(0x88)]='sha256',_0x2012c6['xJYfL']='hex',_0x2012c6[_0x48ec81(0x80)]=function(_0x2ed84d,_0x2ca313){return _0x2ed84d||_0x2ca313;};const _0x59c7e2=_0x2012c6;return new TrackedContext(crypto[_0x48ec81(0x97)](_0x59c7e2['iPzRh'])['update'](_0x3a6e40)['digest'](_0x59c7e2[_0x48ec81(0x8f)]),_0x59c7e2[_0x48ec81(0x80)](threadId,0x0),process[_0x48ec81(0x9e)],typeof _0x3a6e40);}}function a73_0x54b7(_0x3e8334,_0x7a7538){const _0x264f9d=a73_0x264f();return a73_0x54b7=function(_0x54b725,_0x31abba){_0x54b725=_0x54b725-0x7e;let _0x29d01f=_0x264f9d[_0x54b725];return _0x29d01f;},a73_0x54b7(_0x3e8334,_0x7a7538);}module[a73_0x1784cb(0xa0)]=TrackedInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x1d546e=a74_0x50b9;(function(_0x2b9a15,_0x50a596){const _0x5db753=a74_0x50b9,_0x47d5f0=_0x2b9a15();while(!![]){try{const _0x11fb80=parseInt(_0x5db753(0x220))/0x1+parseInt(_0x5db753(0x231))/0x2+parseInt(_0x5db753(0x200))/0x3+-parseInt(_0x5db753(0x233))/0x4*(-parseInt(_0x5db753(0x213))/0x5)+parseInt(_0x5db753(0x22c))/0x6+-parseInt(_0x5db753(0x219))/0x7*(parseInt(_0x5db753(0x211))/0x8)+-parseInt(_0x5db753(0x22e))/0x9*(parseInt(_0x5db753(0x222))/0xa);if(_0x11fb80===_0x50a596)break;else _0x47d5f0['push'](_0x47d5f0['shift']());}catch(_0x400fc7){_0x47d5f0['push'](_0x47d5f0['shift']());}}}(a74_0x1edb,0x7ce37));const BaseModule=require(a74_0x1d546e(0x241)),{createClassLogger}=require('../../../helpers/classLogger'),CLIUtils=require('../cliUtils'),AutomationFramework=require(a74_0x1d546e(0x204)),AutomationFrameworkState=require('../state/automationFrameworkState'),HookState=require(a74_0x1d546e(0x23c)),GrpcClient=require(a74_0x1d546e(0x1fb)),scripts=require(a74_0x1d546e(0x1f9)),logger=createClassLogger(a74_0x1d546e(0x203)),PerformanceTester=require(a74_0x1d546e(0x1eb)),{EVENTS}=require(a74_0x1d546e(0x20c));function a74_0x50b9(_0x1071be,_0x43f6e0){const _0x1edb8f=a74_0x1edb();return a74_0x50b9=function(_0x50b91a,_0x5aff71){_0x50b91a=_0x50b91a-0x1eb;let _0x496446=_0x1edb8f[_0x50b91a];return _0x496446;},a74_0x50b9(_0x1071be,_0x43f6e0);}class AccessibilityModule extends BaseModule{static [a74_0x1d546e(0x201)]=AccessibilityModule['name'];constructor(_0x406aba){const _0x5f1fe3=a74_0x1d546e,_0x2fb063={};_0x2fb063['LqOxH']=_0x5f1fe3(0x205);const _0x56c5b6=_0x2fb063,_0x5bdc18=_0x56c5b6[_0x5f1fe3(0x218)][_0x5f1fe3(0x240)]('|');let _0x2e3e42=0x0;while(!![]){switch(_0x5bdc18[_0x2e3e42++]){case'0':this[_0x5f1fe3(0x23b)]=new Map();continue;case'1':this[_0x5f1fe3(0x1f2)]=new Map();continue;case'2':this[_0x5f1fe3(0x21b)]=![];continue;case'3':AutomationFramework[_0x5f1fe3(0x237)](AutomationFrameworkState[_0x5f1fe3(0x1f4)],HookState[_0x5f1fe3(0x238)],this[_0x5f1fe3(0x1fa)][_0x5f1fe3(0x23d)](this));continue;case'4':this[_0x5f1fe3(0x217)](_0x406aba[_0x5f1fe3(0x226)]()[_0x5f1fe3(0x232)]());continue;case'5':super();continue;case'6':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x5f1fe3(0x21f)],HookState[_0x5f1fe3(0x238)],this[_0x5f1fe3(0x212)][_0x5f1fe3(0x23d)](this));continue;case'7':this[_0x5f1fe3(0x1ef)]=[];continue;case'8':this[_0x5f1fe3(0x236)]=_0x406aba[_0x5f1fe3(0x235)]();continue;case'9':this[_0x5f1fe3(0x215)]=!![];continue;case'10':AutomationFramework[_0x5f1fe3(0x237)](AutomationFrameworkState[_0x5f1fe3(0x210)],HookState[_0x5f1fe3(0x238)],this[_0x5f1fe3(0x20a)][_0x5f1fe3(0x23d)](this));continue;}break;}}['isEnabled'](){const _0xc89d60=a74_0x1d546e;return this[_0xc89d60(0x215)];}[a74_0x1d546e(0x207)](){const _0x3706ca=a74_0x1d546e;return AccessibilityModule[_0x3706ca(0x201)];}['getCurrentAccessibilityStatus'](){const _0x5cc1bf=a74_0x1d546e;return this['accessibility'][_0x5cc1bf(0x1f0)](CLIUtils[_0x5cc1bf(0x22a)](),![]);}[a74_0x1d546e(0x209)](){const _0x2148fd=a74_0x1d546e;return this['LOG_DISABLED_SHOWN'][_0x2148fd(0x1f0)](CLIUtils['getCurrentInstanceName'](),![]);}[a74_0x1d546e(0x22f)](_0x362c2c){const _0x4ca63f=a74_0x1d546e;this[_0x4ca63f(0x23b)]['put'](CLIUtils[_0x4ca63f(0x22a)](),_0x362c2c);}async[a74_0x1d546e(0x212)](_0x15e2c9){const _0x1961df=a74_0x1d546e;try{PerformanceTester['start'](EVENTS[_0x1961df(0x1f1)]);const _0x21070f=await GrpcClient['getInstance']()[_0x1961df(0x1f3)](_0x15e2c9);_0x21070f&&_0x21070f[_0x1961df(0x23f)]()&&_0x21070f[_0x1961df(0x23f)]()['getSuccess']()&&(global[_0x1961df(0x1fc)]=!![],process[_0x1961df(0x227)][_0x1961df(0x230)]=!![],this[_0x1961df(0x1f5)](_0x21070f,_0x15e2c9)),PerformanceTester[_0x1961df(0x206)](EVENTS[_0x1961df(0x1f1)]);}catch(_0x280708){PerformanceTester[_0x1961df(0x206)](EVENTS['SDK_ACCESSIBILITY_CONFIG'],![],_0x280708[_0x1961df(0x1f8)]),logger[_0x1961df(0x1ee)]('Error\x20while\x20setting\x20accessibility\x20config:\x20'+(_0x280708[_0x1961df(0x221)]||_0x280708[_0x1961df(0x1f8)]));}}[a74_0x1d546e(0x225)](){const _0x2e986c=a74_0x1d546e;return this['capabilities'][_0x2e986c(0x20e)](_0x101d02=>_0x101d02[_0x2e986c(0x1fe)]()===_0x2e986c(0x1ed))?.[_0x2e986c(0x228)]()||'';}async['setAccessibilityConfig'](_0x30d414,_0x1d7ff4){const _0x55b650=a74_0x1d546e,_0x1f470a=_0x30d414[_0x55b650(0x23f)]()[_0x55b650(0x226)](),_0x50ac6c=_0x1f470a['getScriptsList'](),_0x3e2cae=_0x1f470a[_0x55b650(0x214)]()?.[_0x55b650(0x229)]();scripts[_0x55b650(0x202)](_0x50ac6c,_0x3e2cae),scripts[_0x55b650(0x22d)]();const _0x220b27=_0x1f470a['getCapabilitiesList']();this['capabilities']=_0x1f470a[_0x55b650(0x232)](),await this['setAccessibilityToken'](_0x220b27,_0x1d7ff4['launchCaps']);}async[a74_0x1d546e(0x217)](_0x2bec31,_0x17df57={}){const _0x2a318c=a74_0x1d546e,_0x26e0a8={};_0x26e0a8[_0x2a318c(0x1fd)]=function(_0x216083,_0xe57227){return _0x216083===_0xe57227;},_0x26e0a8[_0x2a318c(0x20b)]=_0x2a318c(0x1ec),_0x26e0a8[_0x2a318c(0x242)]=_0x2a318c(0x23e),_0x26e0a8[_0x2a318c(0x23a)]=_0x2a318c(0x239),_0x26e0a8[_0x2a318c(0x20d)]=_0x2a318c(0x1ff),_0x26e0a8[_0x2a318c(0x216)]=function(_0x369c7b,_0x5df543){return _0x369c7b===_0x5df543;},_0x26e0a8[_0x2a318c(0x224)]=_0x2a318c(0x21d),_0x26e0a8['xVnib']=_0x2a318c(0x1f6),_0x26e0a8['PJwuP']=_0x2a318c(0x234),_0x26e0a8[_0x2a318c(0x20f)]=_0x2a318c(0x21e);const _0x26e843=_0x26e0a8;for(const _0xf2e64b of _0x2bec31){logger[_0x2a318c(0x21c)](_0x2a318c(0x208)+_0xf2e64b[_0x2a318c(0x1fe)]()+'\x20value='+_0xf2e64b[_0x2a318c(0x228)]());if(_0x26e843[_0x2a318c(0x1fd)](_0xf2e64b[_0x2a318c(0x1fe)](),_0x26e843['aLKoh']))process[_0x2a318c(0x227)][_0x2a318c(0x1f7)]=_0xf2e64b[_0x2a318c(0x228)](),_0x17df57[_0x26e843[_0x2a318c(0x242)]]=_0xf2e64b['getValue']();else{if(_0x26e843['KskAt'](_0xf2e64b['getName'](),_0x26e843['tRzKU']))_0x17df57[_0x26e843['DzRIs']]=_0xf2e64b[_0x2a318c(0x228)]();else{if(_0x26e843[_0x2a318c(0x216)](_0xf2e64b[_0x2a318c(0x1fe)](),_0x26e843[_0x2a318c(0x224)]))_0x17df57[_0x26e843[_0x2a318c(0x21a)]]=_0xf2e64b[_0x2a318c(0x228)]();else _0x26e843[_0x2a318c(0x1fd)](_0xf2e64b[_0x2a318c(0x1fe)](),_0x26e843[_0x2a318c(0x223)])&&(_0x17df57[_0x26e843[_0x2a318c(0x20f)]]=_0xf2e64b[_0x2a318c(0x228)]());}}}}['onAfterTest'](_0x5aff14){logger['info']('onAfterTest:\x20event='+_0x5aff14);}[a74_0x1d546e(0x20a)](_0x383ac9){const _0x5599b4=a74_0x1d546e;logger[_0x5599b4(0x21c)](_0x5599b4(0x22b)+_0x383ac9);}};module['exports']=AccessibilityModule;function a74_0x1edb(){const _0x15c794=['wcagVersion','tRzKU','LOG_DISABLED_SHOWN','../state/hookState','bind','browserstack.accessibilityOptions.authToken','getAccessibility','split','./baseModule','PMtEK','../../../helpers/performance/performance-tester.js','accessibilityToken','goog:chromeOptions','error','capabilities','get','SDK_ACCESSIBILITY_CONFIG','accessibility','getAccessibilityConfig','QUIT','setAccessibilityConfig','browserstack.accessibilityOptions.scannerVersion','BS_A11Y_JWT','message','../../../helpers/accessibility-automation/scripts','onAfterTest','../grpcClient','accessibilityPlatform','KskAt','getName','browserstack.accessibilityOptions.wcagVersion','2753910ZxglQk','MODULE_NAME','parseFromProto','TrackedInstance','../framework/automationFramework','5|10|6|3|9|8|1|0|2|7|4','end','getModuleName','name:\x20','getLogDisabledShown','onBeforeExecute','aLKoh','../../../helpers/performance/constants.js','DzRIs','find','ffcTe','EXECUTE','8jNuCeA','onBeforeTest','125705uilHJc','getCommandsToWrap','isEnabled','OGiRF','setAccessibilityToken','LqOxH','6282997VqwEnf','xVnib','isAppAccessibility','info','scannerVersion','browserstack.accessibilityOptions.scannerProcessingTimeout','CREATE','630423lJVAxZ','stack','1170040gFkomA','PJwuP','LSNWa','getGoogleChromeOptions','getOptions','env','getValue','getCommandsList','getCurrentInstanceName','onBeforeExecute:\x20event=','3132096GKJvNq','toJson','144FVKehT','setLogDisabledShown','BROWSERSTACK_TEST_ACCESSIBILITY_YML','1868436ACeWTa','getCapabilitiesList','44RZGSaa','scannerProcessingTimeout','toObject','accessibilityConfig','registerObserver','PRE'];a74_0x1edb=function(){return _0x15c794;};return a74_0x1edb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a75_0x1daf(){const _0xff7916=['binSessionId','14080WtuiKr','config','bQcmV','7860232ZieMZg','jqmMq','8765127jMjqan','1380bEufFs','platformIndex','ensureBinSession','Configured\x20module\x20','749320AAGdBC','0|3|1|4|2','getModuleName','BaseModule','split','debug','../../../helpers/logger.js','188502OKWcYE','7sFplcF','client','yOYxq','2361450RiXbrw','winstonLogger','configure','name','754489GMGmnm','exports','Missing\x20binSessionId'];a75_0x1daf=function(){return _0xff7916;};return a75_0x1daf();}const a75_0x4e1f08=a75_0x319b;(function(_0x4791c2,_0x41fff2){const _0x5bcb96=a75_0x319b,_0x508747=_0x4791c2();while(!![]){try{const _0x315b8e=parseInt(_0x5bcb96(0x168))/0x1+-parseInt(_0x5bcb96(0x159))/0x2+-parseInt(_0x5bcb96(0x164))/0x3+-parseInt(_0x5bcb96(0x172))/0x4*(-parseInt(_0x5bcb96(0x16c))/0x5)+-parseInt(_0x5bcb96(0x160))/0x6*(parseInt(_0x5bcb96(0x161))/0x7)+parseInt(_0x5bcb96(0x16f))/0x8+-parseInt(_0x5bcb96(0x171))/0x9;if(_0x315b8e===_0x41fff2)break;else _0x508747['push'](_0x508747['shift']());}catch(_0x5e6e91){_0x508747['push'](_0x508747['shift']());}}}(a75_0x1daf,0x842e0));const logger=require(a75_0x4e1f08(0x15f))[a75_0x4e1f08(0x165)];function a75_0x319b(_0x59966f,_0x25c3f4){const _0x1dafb4=a75_0x1daf();return a75_0x319b=function(_0x319b76,_0x40c2a4){_0x319b76=_0x319b76-0x156;let _0x3e6a67=_0x1dafb4[_0x319b76];return _0x3e6a67;},a75_0x319b(_0x59966f,_0x25c3f4);}class BaseModule{constructor(){const _0x2fd41c=a75_0x4e1f08,_0x2cca3d={};_0x2cca3d['BlIcA']=_0x2fd41c(0x15a),_0x2cca3d[_0x2fd41c(0x170)]=_0x2fd41c(0x15c);const _0xcd7afa=_0x2cca3d,_0x1c180b=_0xcd7afa['BlIcA']['split']('|');let _0x45039b=0x0;while(!![]){switch(_0x1c180b[_0x45039b++]){case'0':this['name']=_0xcd7afa[_0x2fd41c(0x170)];continue;case'1':this['platformIndex']=0x0;continue;case'2':this[_0x2fd41c(0x162)]=null;continue;case'3':this[_0x2fd41c(0x16b)]=null;continue;case'4':this[_0x2fd41c(0x16d)]={};continue;}break;}}[a75_0x4e1f08(0x157)](){const _0x19e881=a75_0x4e1f08,_0x339a16={};_0x339a16[_0x19e881(0x16e)]=_0x19e881(0x16a);const _0x2de048=_0x339a16;if(!this[_0x19e881(0x16b)])throw new Error(_0x2de048['bQcmV']);}[a75_0x4e1f08(0x15b)](){const _0x2c52de=a75_0x4e1f08;return this[_0x2c52de(0x167)];}[a75_0x4e1f08(0x166)](_0x316868,_0x5d0887,_0x1209d6,_0x5e190d={}){const _0x15ed9c=a75_0x4e1f08,_0x25e694={};_0x25e694[_0x15ed9c(0x163)]='1|4|3|0|2';const _0x1f0576=_0x25e694,_0x3a0000=_0x1f0576['yOYxq'][_0x15ed9c(0x15d)]('|');let _0x3d9b73=0x0;while(!![]){switch(_0x3a0000[_0x3d9b73++]){case'0':this[_0x15ed9c(0x16d)]=_0x5e190d;continue;case'1':this[_0x15ed9c(0x16b)]=_0x316868;continue;case'2':logger[_0x15ed9c(0x15e)](_0x15ed9c(0x158)+this[_0x15ed9c(0x15b)]()+'\x20with\x20binSessionId='+_0x316868+',\x20platformIndex='+_0x5d0887);continue;case'3':this['client']=_0x1209d6;continue;case'4':this[_0x15ed9c(0x156)]=_0x5d0887;continue;}break;}}}module[a75_0x4e1f08(0x169)]=BaseModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x14e503=a76_0x5369;(function(_0x56444b,_0x23dea0){const _0x5eb9a4=a76_0x5369,_0x279227=_0x56444b();while(!![]){try{const _0x3d4dc0=-parseInt(_0x5eb9a4(0x1a8))/0x1+parseInt(_0x5eb9a4(0x187))/0x2+parseInt(_0x5eb9a4(0x191))/0x3+parseInt(_0x5eb9a4(0x196))/0x4+parseInt(_0x5eb9a4(0x194))/0x5+-parseInt(_0x5eb9a4(0x19e))/0x6*(parseInt(_0x5eb9a4(0x19d))/0x7)+-parseInt(_0x5eb9a4(0x198))/0x8;if(_0x3d4dc0===_0x23dea0)break;else _0x279227['push'](_0x279227['shift']());}catch(_0x428ac1){_0x279227['push'](_0x279227['shift']());}}}(a76_0x3ea5,0x80e45));const BaseModule=require(a76_0x14e503(0x1a0)),{createClassLogger}=require('../../../helpers/classLogger.js'),AutomationFramework=require(a76_0x14e503(0x186)),AutomationFrameworkState=require(a76_0x14e503(0x18e)),HookState=require(a76_0x14e503(0x189)),{playwrightAnnotate}=require(a76_0x14e503(0x1a5)),PerformanceTester=require(a76_0x14e503(0x1a4)),{O11y_EVENTS}=require('../../../helpers/performance/constants.js'),constants=require(a76_0x14e503(0x1a7));class ObservabilityModule extends BaseModule{['logger']=createClassLogger(a76_0x14e503(0x1a9));constructor(_0x297d4e){const _0x95f15=a76_0x14e503,_0x4bda3d={};_0x4bda3d['ESLLd']=_0x95f15(0x1a9);const _0x58718c=_0x4bda3d;super(),this[_0x95f15(0x197)]=_0x58718c['ESLLd'],this[_0x95f15(0x18a)]=_0x297d4e,AutomationFramework['registerObserver'](AutomationFrameworkState[_0x95f15(0x18c)],HookState['POST'],this[_0x95f15(0x199)][_0x95f15(0x19c)](this));}[a76_0x14e503(0x1a1)](){const _0x1609b8=a76_0x14e503;return ObservabilityModule[_0x1609b8(0x19b)];}async[a76_0x14e503(0x199)](_0x5822d0){const _0x562915=a76_0x14e503,_0x2ab14e={'AWeyu':function(_0x2b8fcf,_0x2d61f7){return _0x2b8fcf+_0x2d61f7;},'tkXeL':'ObservabilitySync:','cviRW':function(_0x26e38a,_0x2d3589,_0x3abdef,_0x5343ce){return _0x26e38a(_0x2d3589,_0x3abdef,_0x5343ce);},'tVcQS':'debug','vkZUZ':'onBeforeTest:\x20page\x20is\x20not\x20defined'};if(_0x5822d0[_0x562915(0x190)]){const _0x3c31f7=_0x5822d0['page'],_0x35ff2d=Date[_0x562915(0x18b)](),_0x3f84bb=_0x2ab14e[_0x562915(0x19f)](_0x2ab14e[_0x562915(0x193)],_0x35ff2d);PerformanceTester[_0x562915(0x1a6)](O11y_EVENTS[_0x562915(0x1a2)]),await _0x2ab14e['cviRW'](playwrightAnnotate,_0x3c31f7,_0x3f84bb,_0x2ab14e['tVcQS']),PerformanceTester[_0x562915(0x19a)](O11y_EVENTS[_0x562915(0x1a2)]),this[_0x562915(0x18f)][_0x562915(0x192)](_0x562915(0x1a3)+constants[_0x562915(0x1aa)]+'\x20sync\x20done');}else this[_0x562915(0x18f)][_0x562915(0x188)](_0x2ab14e[_0x562915(0x195)]);}}function a76_0x5369(_0x44c649,_0x3c5f50){const _0x3ea51e=a76_0x3ea5();return a76_0x5369=function(_0x5369aa,_0x10f3f8){_0x5369aa=_0x5369aa-0x186;let _0x23a7c2=_0x3ea51e[_0x5369aa];return _0x23a7c2;},a76_0x5369(_0x44c649,_0x3c5f50);}ObservabilityModule[a76_0x14e503(0x19b)]=a76_0x14e503(0x1a9),module[a76_0x14e503(0x18d)]=ObservabilityModule;function a76_0x3ea5(){const _0x54f46d=['AWeyu','./baseModule','getModuleName','SYNC','onBeforeTest:\x20','../../../helpers/performance/performance-tester.js','../../../helpers/helper.js','start','../../utils/constants.js','1052824oRwdlE','ObservabilityModule','TEST_REPORTING_ANALYTICS','../framework/automationFramework.js','2020898ddhcoc','debug','../state/hookState.js','observabilityConfig','now','CREATE','exports','../state/automationFrameworkState.js','logger','page','1946100TTAVGi','info','tkXeL','5278930zrXcOQ','vkZUZ','3771436ANfmwa','name','16157128XNIdSo','onBeforeTest','end','MODULE_NAME','bind','401716XSgjXn','6xmJFKx'];a76_0x3ea5=function(){return _0x54f46d;};return a76_0x3ea5();}
|