browserstack-node-sdk 1.42.7 → 1.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/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
|
-
const a67_0xf8218=a67_0x2503;function a67_0x2503(_0x411509,_0x5ce9e3){const _0x5936ad=a67_0x5936();return a67_0x2503=function(_0x2503e8,_0x2a8a3f){_0x2503e8=_0x2503e8-0x165;let _0xc11b7e=_0x5936ad[_0x2503e8];return _0xc11b7e;},a67_0x2503(_0x411509,_0x5ce9e3);}function a67_0x5936(){const _0xb455bc=['passed','logCreatedEvent','toISOString','length','sendLogCreatedEvent','gcCHG','250200uWsKbZ','timedOut','CYzBz','WBDOy','annotations','KEY_TEST_ENDED_AT','JYgJe','KEY_TEST_FAILURE_TYPE','KEY_HOOK_FAILURE_REASON','getTestFrameworks','../../utils/constants','getInstance','concat','getAllData','getTestDetails','PlaywrightTestFramework','\x20and\x20args\x20=\x20','trackEvent:\x20found\x20instance,\x20testFrameworkState=','SjvFi','dNjhM','NQvWL','resolveInstance','error','stack','Error\x20processing\x20direct\x20trace\x20file\x20','POST','statSync','KcECl','err','ZfrcA','expectedStatus','KEY_HOOK_LAST_FINISHED','xBkPM','pop','startTime','filter','TGqnR','KEY_TEST_NAME','ceil','trackPlaywrightInstance','KEY_HOOK_LAST_STARTED','XwhTE','setTestDetails','status','ElxLh','result','stZmp','field_type','getTraceFilePaths','mRUkO','UJyit','slice','KEY_HOOKS_STARTED','ljQic','./testFramework','KEY_HOOK_RESULT','../instances/testFrameworkInstance.js','KEY_TEST_STARTED_AT','sendLogCreatedEvent:\x20testId=','Fsbxg','KEY_TEST_SCOPES','inspect','KEY_TEST_FRAMEWORK_VERSION','Hook\x20List\x20in\x20Post\x20','sendLogCreatedEvent\x20for\x20testId:\x20','toString','VWVFB','parsePlaywrightTest','\x20hookState=','bKCOw','cyXvX','title','TEST','message','getTrackedInstance','KEY_TEST_RESULT','\x20payload=','\x20response=','split','kEwCG','../instances/trackedInstance.js','\x20instance=','KEY_HOOK_NAME','TEST_ATTACHMENT','7faIZIE','Expected\x20to\x20fail,\x20but\x20passed.','runHooks','380413IaYUNv','TWKZe','KEY_TEST_FAILURE_REASON','KEY_EVENT_ENDED_AT','199395dbPgEi','get','values','SwfsH','INIT_TEST','KEY_TEST_LOCATION','parsePlaywrightTestResult:\x20testId=','\x20&\x20hook\x20=\x20','GJcqH','hHwAZ','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','../../playwright/reporter/pwUtils','format','retry','KEY_TEST_ATTACHMENTS','KEY_TEST_TAGS','size','hook','getId','\x20testHookState=','QXakN','step','info','../state/testFrameworkState.js','test','../grpcClient','map','hTYLy','ytIQG','KEY_HOOKS_FINISHED','kPeGf','1126228qRSJuc','RtlkO','KEY_TEST_SCOPE','jnAvW','forEach','IvCvQ','push','KEY_TEST_UUID','EAnyx','LWnkm','../../../helpers/helper.js','duration','\x20result=','filePath','basename','./constants/testFrameworkConstants.js','1141038bDjAve','getCurrentInstanceName','KEY_TEST_CODE','KEY_EVENT_STARTED_AT','failed','bQdph','errors','KEY_TEST_FAILURE','uUGSb','eXOWW','MgkBP','Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','attachments','some','QQKEj','ljsql','1409176YoVZbW','dhrhA','ZiNyR','DEFAULT_HOOK_RESULT','uOhDy','KEY_TEST_LOGS','../TestInfo.js','rWmAe','trackHookEvent','Error\x20in\x20sendLogCreatedEvent:\x20','tOvOQ','getTestFrameworksVersions','YaBtG','\x20batch\x20','addMultipleEntries','gUhxI','gzBEA','path','KEY_TEST_ID','KEY_LOGS','bibeF','../cliUtils.js','1126892aKaYUL',',\x20testFrameworkState=','DEFAULT_TEST_RESULT','../state/hookState.js','10XDGyqB','WCmzR','KEY_AUTOMATE_SESSION_NAME','FkZDK','zvTEY','skipped','GHxrj','PRE','results','steps','getTestUUID','MVZoU','KEY_HOOK_LOGS','description','AXGEI','uuid','MKNAO','getTime','../../../../src/helpers/helper','KEY_TEST_FRAMEWORK_NAME','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','OWISd','getTestIdentifierFromTestInfo','matchHookRegex','TGsAO','RXSAQ','KEY_TEST_FILE_PATH','xMNqs','trackEvent','debug','parsePlaywrightTestResult','UUJkB','KEY_CUSTOM_TAGS','oQYpV','testUId'];a67_0x5936=function(){return _0xb455bc;};return a67_0x5936();}(function(_0x417ed6,_0xe98593){const _0x564daa=a67_0x2503,_0x1083a1=_0x417ed6();while(!![]){try{const _0x57b035=parseInt(_0x564daa(0x1e3))/0x1+-parseInt(_0x564daa(0x206))/0x2+parseInt(_0x564daa(0x18c))/0x3+parseInt(_0x564daa(0x23c))/0x4*(parseInt(_0x564daa(0x240))/0x5)+parseInt(_0x564daa(0x216))/0x6+-parseInt(_0x564daa(0x1e0))/0x7*(parseInt(_0x564daa(0x226))/0x8)+-parseInt(_0x564daa(0x1e7))/0x9;if(_0x57b035===_0xe98593)break;else _0x1083a1['push'](_0x1083a1['shift']());}catch(_0x5658be){_0x1083a1['push'](_0x1083a1['shift']());}}}(a67_0x5936,0x6f550));const TestFramework=require(a67_0xf8218(0x1c2)),TestFrameworkState=require(a67_0xf8218(0x1fe)),HookState=require(a67_0xf8218(0x23f)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a67_0xf8218(0x1c4)),CLIUtils=require(a67_0xf8218(0x23b)),TrackedInstance=require(a67_0xf8218(0x1dc)),TestFrameworkConstants=require(a67_0xf8218(0x215)),logger=createClassLogger(a67_0xf8218(0x19b)),{v4:uuidv4}=require(a67_0xf8218(0x172)),util=require('util'),{getPlaywrightSessionName,getPlaywrightTestFilePath,getPlaywrightTestId,getPlaywrightTestTitle,getPlaywrightTestLocation,getPlaywrightTestTags,getPlaywrightTestCode,getPlaywrightTestScope,getPlaywrightTestScopes,getStepsAndLogs,getScreenshots,getVideos,getPlaywrightCustomRerunParam,getMediaArtifactsLogs,getManualUploadLogs,updatePayloadForTraceLogs}=require(a67_0xf8218(0x210)),TestInfo=require(a67_0xf8218(0x22c)),GrpcClient=require(a67_0xf8218(0x200)),{removeAnsiColors,getFailureType,failureData}=require('../../../helpers/test-observability/utils'),{getFailureData,getTestTags,getTestRunIdentifier}=require(a67_0xf8218(0x1f2)),{findNestedKey,sendTraceZip,validateFilePath}=require(a67_0xf8218(0x1f2)),path=require('path'),fs=require('fs'),helper=require(a67_0xf8218(0x175)),{PLAYWRIGHT_TRACE_LOGS}=require(a67_0xf8218(0x196));class PlaywrightTestFramework extends TestFramework{constructor(_0xc0998b,_0x56652f,_0x4a3206){super(_0xc0998b,_0x56652f,_0x4a3206);}async[a67_0xf8218(0x17f)](_0x2347a8,_0x21adde,_0x3b14ab={}){const _0x43b2c2=a67_0xf8218,_0x21d4d5={'jnAvW':function(_0x190e5e,_0xe11678){return _0x190e5e===_0xe11678;},'QrEDm':function(_0x43caa6,_0x536500){return _0x43caa6===_0x536500;},'VnEXz':function(_0x140389,_0x598eca){return _0x140389===_0x598eca;},'dhrhA':function(_0x73e56a,_0x403ac3,_0x4caf81){return _0x73e56a(_0x403ac3,_0x4caf81);},'PjOwf':'test','UUJkB':'trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s'};super[_0x43b2c2(0x17f)](_0x2347a8,_0x21adde,_0x3b14ab);if(_0x21d4d5[_0x43b2c2(0x209)](_0x2347a8,TestFrameworkState['TEST_SCREENSHOT'])){const _0x28655a=TestInfo[_0x43b2c2(0x179)](_0x3b14ab['test'],_0x3b14ab[_0x43b2c2(0x1ff)][_0x43b2c2(0x1f4)]);TestInfo['setTestDetails'](_0x28655a,_0x3b14ab['result'],!![]);}const _0xf5d154=this['resolveInstance'](_0x2347a8,_0x21adde,_0x3b14ab);if(!_0xf5d154)return;logger[_0x43b2c2(0x180)](_0x43b2c2(0x19d)+_0x2347a8+_0x43b2c2(0x1d0)+_0x21adde+'\x20instanceId='+_0xf5d154['getRef']());try{if(_0x21d4d5['QrEDm'](_0x21adde,HookState[_0x43b2c2(0x16a)])&&_0x21d4d5['VnEXz'](_0x2347a8,TestFrameworkState[_0x43b2c2(0x1d4)])){const _0x2062e1=_0x3b14ab[_0x43b2c2(0x1ff)];logger[_0x43b2c2(0x180)](_0x43b2c2(0x177)+_0x2062e1['id']+'}');const _0x2f60cf=TestInfo[_0x43b2c2(0x16d)](_0x21d4d5[_0x43b2c2(0x227)](getTestRunIdentifier,_0x2062e1,_0x3b14ab[_0x43b2c2(0x1b9)][_0x43b2c2(0x1f4)]));_0xf5d154[_0x43b2c2(0x234)](this[_0x43b2c2(0x1cf)](_0x2f60cf,_0x2062e1,_0x3b14ab[_0x43b2c2(0x1b9)])),logger[_0x43b2c2(0x180)](_0x43b2c2(0x1f1)+_0x2062e1['id']+_0x43b2c2(0x23d)+_0x2347a8+_0x43b2c2(0x1fa)+_0x21adde+_0x43b2c2(0x1dd)+_0xf5d154['getRef']());}if(_0x21d4d5['VnEXz'](_0x21adde,HookState[_0x43b2c2(0x1a5)])&&_0x21d4d5['QrEDm'](_0x2347a8,TestFrameworkState['TEST'])){const _0x2b3d5c=_0x3b14ab[_0x43b2c2(0x1ff)],_0x1fcfea=_0x3b14ab[_0x43b2c2(0x1b9)];logger[_0x43b2c2(0x180)]('trackEvent\x20loading\x20testResults\x20for\x20testId:\x20'+_0x2b3d5c['id']),_0xf5d154[_0x43b2c2(0x234)](this[_0x43b2c2(0x181)](_0x2b3d5c['id'],_0x1fcfea,_0x2b3d5c)),await this[_0x43b2c2(0x18a)](_0xf5d154,_0x2347a8,_0x21adde,_0x21d4d5['PjOwf'],_0x3b14ab);}if(CLIUtils[_0x43b2c2(0x17a)](_0x2347a8[_0x43b2c2(0x1cd)]()[_0x43b2c2(0x1da)]('.')[0x1])){const _0x5b9cb8=await this['trackHookEvent'](_0xf5d154,_0x2347a8,_0x21adde,_0x3b14ab);_0xf5d154[_0x43b2c2(0x234)](_0x5b9cb8);}}catch(_0x502033){logger[_0x43b2c2(0x1a2)](util[_0x43b2c2(0x1f3)](_0x21d4d5[_0x43b2c2(0x182)],_0x2347a8,_0x21adde,_0x3b14ab['length'],_0x502033));}_0x3b14ab['instance']=_0xf5d154,await this[_0x43b2c2(0x1e2)](_0xf5d154,_0x2347a8,_0x21adde,_0x3b14ab);}['resolveInstance'](_0x2879e5,_0x97ff89,_0x103dc9={}){const _0x54e374=a67_0xf8218,_0x5f2605={};_0x5f2605[_0x54e374(0x1db)]=function(_0x404dc0,_0x5c035e){return _0x404dc0===_0x5c035e;},_0x5f2605[_0x54e374(0x241)]=function(_0x10a0ee,_0x199bc3){return _0x10a0ee===_0x199bc3;};const _0x182a47=_0x5f2605;let _0x27f58a=null;return(_0x182a47[_0x54e374(0x1db)](_0x2879e5,TestFrameworkState[_0x54e374(0x1eb)])||_0x182a47['WCmzR'](_0x2879e5,TestFrameworkState['NONE']))&&this[_0x54e374(0x1b3)](_0x2879e5,_0x103dc9),_0x27f58a=TestFramework[_0x54e374(0x1d6)](),_0x27f58a;}[a67_0xf8218(0x1b3)](_0x12a38b,_0x49260c){const _0x5d5963=a67_0xf8218,_0xa4d91d=CLIUtils[_0x5d5963(0x217)](),_0xf7a757=TrackedInstance['createContext'](_0xa4d91d);let _0x55c07e=null;logger[_0x5d5963(0x1fd)]('trackPlaywrightInstance:\x20created\x20instance\x20for\x20target='+_0xa4d91d+',\x20state='+_0x12a38b),_0x55c07e=new TestFrameworkInstance(_0xf7a757,this[_0x5d5963(0x195)](),this[_0x5d5963(0x231)](),_0x12a38b,HookState['NONE']),TestFramework['setTrackedInstance'](_0xf7a757,_0x55c07e),logger[_0x5d5963(0x1fd)]('trackPlaywrightInstance:\x20saved\x20instance\x20contextId='+_0xf7a757[_0x5d5963(0x1f9)]()+'\x20target='+_0xa4d91d);}[a67_0xf8218(0x1cf)](_0x2a6a23,_0x4bbbfd,_0x337cc1){const _0x13fb00=a67_0xf8218,_0xac682c={'EAnyx':function(_0x47ebb3,_0x207df9){return _0x47ebb3(_0x207df9);},'zvTEY':function(_0x4ad0d6,_0x2d4380){return _0x4ad0d6(_0x2d4380);},'rWmAe':function(_0x2163ba,_0x5ca258){return _0x2163ba(_0x5ca258);},'MVZoU':function(_0x12229b,_0x3c4e61){return _0x12229b(_0x3c4e61);},'uUGSb':function(_0x3a8163,_0x22fba0){return _0x3a8163(_0x22fba0);},'zagdP':function(_0x12b5c3,_0x22e5ff,_0x3b598a){return _0x12b5c3(_0x22e5ff,_0x3b598a);}},_0x14e29c=_0xac682c['EAnyx'](getPlaywrightTestId,_0x4bbbfd),_0x4035ce=_0xac682c[_0x13fb00(0x20e)](getPlaywrightTestTitle,_0x4bbbfd),_0x2dcfa9=_0xac682c[_0x13fb00(0x20e)](getTestTags,_0x4bbbfd),_0x567978=_0xac682c[_0x13fb00(0x167)](getPlaywrightTestCode,_0x4bbbfd),_0x4651b4=_0xac682c[_0x13fb00(0x20e)](getPlaywrightTestFilePath,_0x4bbbfd),_0xe5b8cf=_0x4651b4+':'+_0xac682c[_0x13fb00(0x22d)](getPlaywrightTestLocation,_0x4bbbfd),_0x1d820d=_0xac682c['EAnyx'](getPlaywrightTestScope,_0x4bbbfd),_0x1ae13e=_0xac682c[_0x13fb00(0x16e)](getPlaywrightTestScopes,_0x4bbbfd),_0x2c881d=_0xac682c[_0x13fb00(0x21e)](getPlaywrightSessionName,_0x4bbbfd),_0x4497ef=this['getTestFrameworks']()[0x0],_0x28f458=_0xac682c['zagdP'](getTestRunIdentifier,_0x4bbbfd,_0x337cc1[_0x13fb00(0x1f4)]),_0x5badd4={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x4497ef,[TestFrameworkConstants[_0x13fb00(0x1ca)]]:this[_0x13fb00(0x231)]()[_0x4497ef],[TestFrameworkConstants[_0x13fb00(0x22b)]]:[],[TestFrameworkConstants[_0x13fb00(0x204)]]:{},[TestFrameworkConstants[_0x13fb00(0x1c0)]]:{},[TestFrameworkConstants[_0x13fb00(0x20d)]]:_0x2a6a23,[TestFrameworkConstants[_0x13fb00(0x1d7)]]:TestFrameworkConstants[_0x13fb00(0x23e)],[TestFrameworkConstants[_0x13fb00(0x165)]]:_0x2c881d,[TestFrameworkConstants[_0x13fb00(0x17d)]]:_0x4651b4,[TestFrameworkConstants[_0x13fb00(0x238)]]:_0x14e29c,[TestFrameworkConstants[_0x13fb00(0x1b1)]]:_0x4035ce,[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0xe5b8cf,[TestFrameworkConstants[_0x13fb00(0x218)]]:_0x567978,[TestFrameworkConstants[_0x13fb00(0x1f6)]]:_0x2dcfa9,[TestFrameworkConstants[_0x13fb00(0x1c5)]]:_0x4bbbfd[_0x13fb00(0x16b)][0x0][_0x13fb00(0x1ae)],[TestFrameworkConstants[_0x13fb00(0x208)]]:_0x1d820d,[TestFrameworkConstants[_0x13fb00(0x1c8)]]:_0x1ae13e,[TestFrameworkConstants['KEY_TEST_RERUN_NAME']]:_0xac682c['MVZoU'](getPlaywrightCustomRerunParam,_0x4bbbfd)};TestInfo[_0x13fb00(0x1b6)](_0x28f458,_0x5badd4);const _0x2da9e1={};return _0x2da9e1[_0x28f458]=_0x5badd4,_0x2da9e1;}[a67_0xf8218(0x181)](_0x34b89c,_0x47295e,_0x2b88cf){const _0x381f7b=a67_0xf8218,_0x19cf93={'ZiNyR':function(_0x52a2ed,_0x57f620){return _0x52a2ed(_0x57f620);},'stZmp':_0x381f7b(0x1df),'GHxrj':function(_0x4f907b,_0xd35f0c){return _0x4f907b===_0xd35f0c;},'OWISd':function(_0x481b04,_0x59384a){return _0x481b04===_0x59384a;},'bQdph':'No\x20reason\x20provided','gUhxI':'multi_dropdown','eXOWW':function(_0x19258b,_0x5d87f4){return _0x19258b(_0x5d87f4);},'xMNqs':function(_0xb35885,_0x199910,_0x8fd64c){return _0xb35885(_0x199910,_0x8fd64c);},'SwfsH':function(_0x3ceb1b,_0x299289){return _0x3ceb1b+_0x299289;},'FkZDK':function(_0x48d036,_0x1db0a){return _0x48d036===_0x1db0a;},'AXGEI':function(_0x442af7,_0x1fa3b8){return _0x442af7===_0x1fa3b8;},'IvCvQ':_0x381f7b(0x168),'xBkPM':'passed','gzBEA':function(_0x2287cd,_0x2e58bd){return _0x2287cd===_0x2e58bd;},'WBDOy':_0x381f7b(0x21a),'CYzBz':_0x381f7b(0x18d),'oQYpV':_0x381f7b(0x1e1),'TGsAO':function(_0x502f7f,_0x178112){return _0x502f7f||_0x178112;},'cyXvX':function(_0x1974b3,_0x4f01d5){return _0x1974b3>_0x4f01d5;},'TGqnR':function(_0xe8a0dd,_0x1b47ee){return _0xe8a0dd-_0x1b47ee;},'VWVFB':function(_0x428e32,_0x1db58f,_0x353829){return _0x428e32(_0x1db58f,_0x353829);},'KULSW':_0x381f7b(0x237),'XwhTE':function(_0x234c3b,_0x4046da){return _0x234c3b(_0x4046da);},'ZfrcA':function(_0x1a8c11,_0x3ceac2){return _0x1a8c11>_0x3ceac2;},'uOhDy':function(_0x4a15e0,_0x41282a,_0x35a968){return _0x4a15e0(_0x41282a,_0x35a968);}};logger[_0x381f7b(0x180)](_0x381f7b(0x1ed)+_0x34b89c);const _0x341f2a=_0x19cf93[_0x381f7b(0x17e)](getTestRunIdentifier,_0x2b88cf,_0x47295e[_0x381f7b(0x1f4)]),_0x1b7d32=new Date(_0x47295e[_0x381f7b(0x1ae)]),_0x285092=_0x47295e[_0x381f7b(0x211)],_0x58614e=new Date(_0x19cf93[_0x381f7b(0x1ea)](_0x1b7d32[_0x381f7b(0x174)](),_0x285092)),_0x4d466d=_0x47295e[_0x381f7b(0x1b7)],_0x242379=TestInfo[_0x381f7b(0x19a)](_0x341f2a)[TestFrameworkConstants[_0x381f7b(0x183)]]||{};let _0x51bf6b=_0x4d466d;if(_0x19cf93[_0x381f7b(0x166)](_0x47295e[_0x381f7b(0x1b7)],_0x2b88cf[_0x381f7b(0x1aa)]))_0x51bf6b=_0x19cf93[_0x381f7b(0x171)](_0x47295e[_0x381f7b(0x1b7)],_0x19cf93[_0x381f7b(0x20b)])?_0x19cf93['IvCvQ']:_0x19cf93['xBkPM'];else{(_0x19cf93[_0x381f7b(0x166)](_0x51bf6b,_0x19cf93[_0x381f7b(0x1ac)])||_0x19cf93[_0x381f7b(0x236)](_0x51bf6b,_0x19cf93['WBDOy'])||_0x19cf93['AXGEI'](_0x51bf6b,_0x19cf93[_0x381f7b(0x18e)]))&&(_0x51bf6b=_0x19cf93[_0x381f7b(0x18f)]);if(_0x19cf93[_0x381f7b(0x166)](_0x47295e[_0x381f7b(0x1b7)],_0x19cf93[_0x381f7b(0x1ac)])&&_0x19cf93['AXGEI'](_0x2b88cf[_0x381f7b(0x1aa)],_0x19cf93['WBDOy'])){const _0xe3d3a4={};_0xe3d3a4['message']=_0x19cf93[_0x381f7b(0x184)],_0xe3d3a4[_0x381f7b(0x1a3)]=_0x19cf93[_0x381f7b(0x184)],_0x47295e[_0x381f7b(0x1a2)]=_0xe3d3a4,_0x47295e[_0x381f7b(0x21c)]=[_0x47295e[_0x381f7b(0x1a2)]];}}const {failureData:_0x8bf5f1,logs:_0x32d0fe}=_0x19cf93[_0x381f7b(0x17e)](getFailureData,_0x47295e?.[_0x381f7b(0x21c)],{}),_0x51ea37={[TestFrameworkConstants[_0x381f7b(0x21d)]]:_0x19cf93[_0x381f7b(0x17b)](_0x8bf5f1,null),[TestFrameworkConstants[_0x381f7b(0x193)]]:_0x47295e?.[_0x381f7b(0x1a2)]&&_0x19cf93[_0x381f7b(0x228)](getFailureType,_0x47295e[_0x381f7b(0x1a2)][_0x381f7b(0x1d5)]),[TestFrameworkConstants[_0x381f7b(0x1e5)]]:_0x47295e?.[_0x381f7b(0x1a2)]&&_0x19cf93[_0x381f7b(0x228)](removeAnsiColors,_0x47295e['error'][_0x381f7b(0x1d5)]),[TestFrameworkConstants[_0x381f7b(0x239)]]:[],[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x51bf6b,[TestFrameworkConstants[_0x381f7b(0x191)]]:_0x58614e[_0x381f7b(0x188)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x381f7b(0x188)](),[TestFrameworkConstants[_0x381f7b(0x183)]]:_0x242379};if(_0x47295e&&_0x19cf93[_0x381f7b(0x1d2)](_0x47295e[_0x381f7b(0x1f4)],0x0)){const _0x5d7474=TestInfo['getTestUUID'](_0x19cf93[_0x381f7b(0x17e)](getTestRunIdentifier,_0x2b88cf,_0x19cf93[_0x381f7b(0x1b0)](_0x47295e['retry'],0x1)));_0x51ea37[TestFrameworkConstants['KEY_TEST_RETRY_OF']]=_0x5d7474;}const _0x137b33={};_0x137b33[_0x381f7b(0x1ff)]=_0x2b88cf;const _0x3a8e8e=this[_0x381f7b(0x1a1)](TestFrameworkState[_0x381f7b(0x1d4)],HookState[_0x381f7b(0x1a5)],_0x137b33),_0x2189ce=_0x3a8e8e[_0x381f7b(0x199)]()[_0x381f7b(0x1e8)](_0x341f2a)[TestFrameworkConstants[_0x381f7b(0x20d)]],_0x1b01b8=[],_0xf2ca5a=_0x19cf93[_0x381f7b(0x1ce)](findNestedKey,_0x47295e,_0x19cf93['KULSW']);if(_0xf2ca5a&&_0x19cf93[_0x381f7b(0x1b5)](validateFilePath,_0xf2ca5a))try{_0x1b01b8[_0x381f7b(0x20c)]({'kind':_0x19cf93[_0x381f7b(0x1ba)],'timestamp':new Date()[_0x381f7b(0x188)](),'test_run_uuid':_0x2189ce,'file_name':path[_0x381f7b(0x214)](_0xf2ca5a),'file_size':fs['statSync'](_0xf2ca5a)['size'],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x55fac5){logger[_0x381f7b(0x1a2)](_0x381f7b(0x1a4)+_0xf2ca5a+':\x20'+_0x55fac5[_0x381f7b(0x1d5)]);}const _0x2f6306=TestInfo[_0x381f7b(0x1bc)](),_0x52f32a=_0x2f6306[_0x381f7b(0x1af)](_0x293387=>_0x293387[_0x381f7b(0x185)]===_0x2189ce);_0x52f32a[_0x381f7b(0x20a)](_0x1a17cc=>{const _0x1e23d6=_0x381f7b;if(_0x1a17cc['filePath']&&_0x19cf93[_0x1e23d6(0x228)](validateFilePath,_0x1a17cc['filePath'])&&!_0x1b01b8[_0x1e23d6(0x223)](_0x5a8d44=>_0x5a8d44['file_name']===path[_0x1e23d6(0x214)](_0x1a17cc[_0x1e23d6(0x213)])))try{_0x1b01b8[_0x1e23d6(0x20c)]({'kind':_0x19cf93['stZmp'],'timestamp':new Date()[_0x1e23d6(0x188)](),'test_run_uuid':_0x2189ce,'file_name':path[_0x1e23d6(0x214)](_0x1a17cc[_0x1e23d6(0x213)]),'file_size':fs[_0x1e23d6(0x1a6)](_0x1a17cc['filePath'])[_0x1e23d6(0x1f7)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x20de62){logger[_0x1e23d6(0x1a2)]('Error\x20processing\x20trace\x20file\x20'+_0x1a17cc['filePath']+'\x20from\x20TestDetails:\x20'+_0x20de62[_0x1e23d6(0x1d5)]);}});if(_0x19cf93[_0x381f7b(0x1a9)](_0x1b01b8[_0x381f7b(0x189)],0x0)){const _0x47aa6a=_0x51ea37[TestFrameworkConstants[_0x381f7b(0x239)]]||[];_0x51ea37[TestFrameworkConstants['KEY_LOGS']]=[..._0x47aa6a,..._0x1b01b8];}const _0x35d1c0=TestInfo[_0x381f7b(0x19a)](_0x341f2a)[TestFrameworkConstants[_0x381f7b(0x1f5)]]||{},_0x4c159a=_0x19cf93[_0x381f7b(0x22a)](getManualUploadLogs,_0x35d1c0,_0x3a8e8e['getAllData']()[_0x381f7b(0x1e8)](_0x341f2a)[TestFrameworkConstants[_0x381f7b(0x20d)]]);if(_0x19cf93[_0x381f7b(0x1d2)](_0x4c159a[_0x381f7b(0x189)],0x0)){const _0x216f10=_0x51ea37[TestFrameworkConstants[_0x381f7b(0x239)]]||[];_0x51ea37[TestFrameworkConstants['KEY_LOGS']]=[..._0x216f10,..._0x4c159a];}const _0xdbe9d9=_0x2b88cf[_0x381f7b(0x190)]||[],_0x1b0e52=_0x51ea37[TestFrameworkConstants[_0x381f7b(0x183)]]||{};_0xdbe9d9[_0x381f7b(0x20a)](_0x5015f2=>{const _0x5c1d8c=_0x381f7b,{type:_0x599540}=_0x5015f2;let _0x1bc93a=_0x5015f2[_0x5c1d8c(0x170)];if(!_0x599540)return;(_0x19cf93[_0x5c1d8c(0x169)](_0x1bc93a,undefined)||_0x19cf93[_0x5c1d8c(0x169)](_0x1bc93a,null)||_0x19cf93[_0x5c1d8c(0x178)](_0x19cf93['ZiNyR'](String,_0x1bc93a)['trim'](),''))&&(_0x1bc93a=_0x19cf93[_0x5c1d8c(0x21b)]);if(!_0x1b0e52[_0x599540]){const _0x174a64={};_0x174a64['field_type']=_0x19cf93[_0x5c1d8c(0x235)],_0x174a64[_0x5c1d8c(0x1e9)]=[],_0x1b0e52[_0x599540]=_0x174a64;}else!_0x1b0e52[_0x599540]['field_type']&&(_0x1b0e52[_0x599540][_0x5c1d8c(0x1bb)]=_0x19cf93[_0x5c1d8c(0x235)]),!Array['isArray'](_0x1b0e52[_0x599540][_0x5c1d8c(0x1e9)])&&(_0x1b0e52[_0x599540][_0x5c1d8c(0x1e9)]=[]);const _0x940417=_0x19cf93[_0x5c1d8c(0x21f)](String,_0x1bc93a)[_0x5c1d8c(0x1da)](',')[_0x5c1d8c(0x201)](_0x1ab16e=>_0x1ab16e['trim']());_0x1b0e52[_0x599540][_0x5c1d8c(0x1e9)]=[...new Set([..._0x1b0e52[_0x599540][_0x5c1d8c(0x1e9)],..._0x940417])];}),_0x51ea37[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x1b0e52,TestInfo[_0x381f7b(0x1b6)](_0x341f2a,_0x51ea37);const _0x3b4002={};return _0x3b4002[_0x341f2a]=_0x51ea37,_0x3b4002;}async[a67_0xf8218(0x22e)](_0x434fff,_0x27d23e,_0x5a07eb,_0x560d10){const _0xcc16c8=a67_0xf8218,_0x372e44={'GoNVg':function(_0x269e83,_0x4b7382,_0x520d58){return _0x269e83(_0x4b7382,_0x520d58);},'hHwAZ':function(_0x3831a2,_0x412821){return _0x3831a2 in _0x412821;},'bibeF':function(_0x22e236,_0x26ae97){return _0x22e236 in _0x26ae97;},'ElxLh':function(_0xff58e2,_0x39d1e6){return _0xff58e2(_0x39d1e6);},'MgkBP':function(_0x132fab,_0x285f91){return _0x132fab(_0x285f91);},'qaWIX':function(_0xd574d7,_0x560fd5){return _0xd574d7===_0x560fd5;},'KcECl':function(_0x3e49bc){return _0x3e49bc();},'LWnkm':function(_0xa40fec,_0x3b445d){return _0xa40fec===_0x3b445d;},'NQvWL':function(_0x5ad58e,_0x2c67ea){return _0x5ad58e>_0x2c67ea;},'RXSAQ':function(_0x1a266a,_0x11f015,_0x2be044){return _0x1a266a(_0x11f015,_0x2be044);},'MKNAO':_0xcc16c8(0x1a8),'TWKZe':function(_0x5124bc,_0x1c2a69){return _0x5124bc(_0x1c2a69);},'bKCOw':function(_0x299cca,_0x39ae20){return _0x299cca(_0x39ae20);},'QQKEj':_0xcc16c8(0x21a),'hTYLy':_0xcc16c8(0x186),'kPeGf':function(_0x42cbd4,_0x1a9d9d){return _0x42cbd4!==_0x1a9d9d;},'gcCHG':function(_0x568907,_0x429eaa){return _0x568907+_0x429eaa;},'ytIQG':_0xcc16c8(0x1f8)},_0x5101e9=_0x560d10[_0xcc16c8(0x1ff)],_0x2565eb=_0x560d10[_0xcc16c8(0x1fc)],_0x14bb5a=_0x372e44['GoNVg'](getTestRunIdentifier,_0x5101e9,_0x560d10[_0xcc16c8(0x1b9)][_0xcc16c8(0x1f4)]),_0x2b5f18=_0x27d23e[_0xcc16c8(0x1cd)]()[_0xcc16c8(0x1da)]('.')[0x1];let _0x5a0daf=_0x434fff['getAllData']()[_0xcc16c8(0x1e8)](_0x14bb5a)[TestFrameworkConstants[_0xcc16c8(0x1c0)]];!_0x5a0daf&&(_0x5a0daf={});!_0x372e44[_0xcc16c8(0x1f0)](_0x2b5f18,_0x5a0daf)&&(_0x5a0daf[_0x2b5f18]=[]);let _0x3c737c=_0x434fff['getAllData']()[_0xcc16c8(0x1e8)](_0x14bb5a)[TestFrameworkConstants[_0xcc16c8(0x204)]];!_0x3c737c&&(_0x3c737c={});!_0x372e44[_0xcc16c8(0x23a)](_0x2b5f18,_0x3c737c)&&(_0x3c737c[_0x2b5f18]=[]);const _0x3416fe={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x5a0daf,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x3c737c},_0x42ac0d={};_0x42ac0d[_0x14bb5a]=_0x3416fe;const _0x587154=_0x42ac0d,_0x3d5cb8=_0x372e44[_0xcc16c8(0x1b8)](getPlaywrightTestFilePath,_0x5101e9),_0x466cf5=_0x3d5cb8+':'+_0x372e44[_0xcc16c8(0x220)](getPlaywrightTestLocation,_0x5101e9),_0x151a22=TestInfo[_0xcc16c8(0x19a)](_0x14bb5a)[TestFrameworkConstants[_0xcc16c8(0x183)]]||{};if(_0x372e44['qaWIX'](_0x5a07eb,HookState[_0xcc16c8(0x16a)])){const _0x8a01f4={'key':_0x2b5f18,[TestFrameworkConstants['KEY_HOOK_ID']]:_0x372e44[_0xcc16c8(0x1a7)](uuidv4),[TestFrameworkConstants[_0xcc16c8(0x1c3)]]:TestFrameworkConstants[_0xcc16c8(0x229)],[TestFrameworkConstants[_0xcc16c8(0x219)]]:_0x2565eb[_0xcc16c8(0x1ae)],[TestFrameworkConstants[_0xcc16c8(0x16f)]]:[],[TestFrameworkConstants[_0xcc16c8(0x1de)]]:_0x2565eb[_0xcc16c8(0x1d3)],[TestFrameworkConstants[_0xcc16c8(0x17d)]]:_0x3d5cb8,[TestFrameworkConstants[_0xcc16c8(0x1ec)]]:_0x466cf5,[TestFrameworkConstants[_0xcc16c8(0x183)]]:_0x151a22};_0x5a0daf[_0x2b5f18][_0xcc16c8(0x20c)](_0x8a01f4),_0x587154[_0x14bb5a][TestFrameworkConstants[_0xcc16c8(0x1b4)]]=_0x2b5f18,logger[_0xcc16c8(0x180)](_0xcc16c8(0x221)+_0x2b5f18+_0xcc16c8(0x1ee)+_0x8a01f4+'\x20\x20and\x20args\x20=\x20'+_0x560d10);}else{if(_0x372e44[_0xcc16c8(0x20f)](_0x5a07eb,HookState[_0xcc16c8(0x1a5)])){const _0x30d5f5=await _0x560d10[_0xcc16c8(0x1b9)],_0x1e3c2d=_0x5a0daf[_0x2b5f18]||[],_0x37c58d=_0x560d10[_0xcc16c8(0x1fc)];logger['debug'](_0xcc16c8(0x1cb)+_0x1e3c2d+_0xcc16c8(0x19c)+_0x560d10);if(_0x372e44[_0xcc16c8(0x1a0)](_0x1e3c2d['length'],0x0)){const _0x39f927=_0x1e3c2d[_0xcc16c8(0x1ad)]();if(_0x37c58d['error']){const _0xfd85c=_0x372e44[_0xcc16c8(0x17c)](failureData,_0x37c58d[_0xcc16c8(0x1a2)],_0x372e44[_0xcc16c8(0x173)]);_0x39f927[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x372e44[_0xcc16c8(0x1e4)](getFailureType,_0x37c58d?.[_0xcc16c8(0x1a2)][_0xcc16c8(0x1d5)]),_0x39f927[TestFrameworkConstants[_0xcc16c8(0x194)]]=_0x372e44[_0xcc16c8(0x1d1)](removeAnsiColors,_0x37c58d?.[_0xcc16c8(0x1a2)][_0xcc16c8(0x1d5)]),_0x39f927[TestFrameworkConstants[_0xcc16c8(0x1c3)]]=_0x372e44['QQKEj'],_0x39f927[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0xfd85c;}else _0x39f927[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x372e44[_0xcc16c8(0x202)];_0x372e44[_0xcc16c8(0x205)](_0x30d5f5,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x39f927[TestFrameworkConstants['KEY_HOOK_RESULT']]=!_0x37c58d[_0xcc16c8(0x1a2)]?_0x372e44[_0xcc16c8(0x202)]:_0x372e44[_0xcc16c8(0x224)]);const _0x136249=new Date(_0x37c58d[_0xcc16c8(0x1ae)]),_0xfe71d7=new Date(_0x372e44[_0xcc16c8(0x18b)](_0x136249['getTime'](),_0x37c58d[_0xcc16c8(0x211)]));_0x39f927[TestFrameworkConstants[_0xcc16c8(0x1e6)]]=_0xfe71d7[_0xcc16c8(0x188)](),_0x39f927[TestFrameworkConstants[_0xcc16c8(0x183)]]=_0x151a22;const _0x181ea9=_0x39f927[TestFrameworkConstants['KEY_HOOK_ID']];await this[_0xcc16c8(0x18a)](_0x434fff,_0x27d23e,_0x181ea9,_0x372e44[_0xcc16c8(0x203)],_0x560d10),!_0x3c737c[_0x2b5f18]&&(_0x3c737c[_0x2b5f18]=[]),_0x3c737c[_0x2b5f18][_0xcc16c8(0x20c)](_0x39f927),_0x587154[_0x14bb5a][TestFrameworkConstants[_0xcc16c8(0x1ab)]]=_0x2b5f18;}}}return _0x587154;}async[a67_0xf8218(0x18a)](_0x5562ad,_0x3a3f90,_0xb2cd4a,_0x1a87fa,_0x461e65){const _0x2713a2=a67_0xf8218,_0x518639={'tOvOQ':function(_0x4ab095,_0x58deb7){return _0x4ab095===_0x58deb7;},'JYgJe':_0x2713a2(0x1ff),'RtlkO':function(_0x1b6e48,_0x232560,_0x5d819b){return _0x1b6e48(_0x232560,_0x5d819b);},'jjMSp':function(_0x11943b,_0x53efaf,_0x1f68af){return _0x11943b(_0x53efaf,_0x1f68af);},'iaief':'attachments','GJcqH':function(_0x2dbcc6,_0x223051,_0x17adb1,_0x328aae){return _0x2dbcc6(_0x223051,_0x17adb1,_0x328aae);},'Fsbxg':function(_0x41db68,_0x2aeb2e,_0x59dc6d){return _0x41db68(_0x2aeb2e,_0x59dc6d);},'QXakN':function(_0x4788a1,_0x4db3ef,_0x41428b){return _0x4788a1(_0x4db3ef,_0x41428b);},'EERsp':function(_0x25081a,_0x4e6c18){return _0x25081a/_0x4e6c18;},'YaBtG':function(_0x386867,_0x191d0e){return _0x386867<_0x191d0e;},'ljQic':function(_0x23d37b,_0x2c7d23){return _0x23d37b*_0x2c7d23;},'UJyit':function(_0x76689f,_0x3692b6){return _0x76689f+_0x3692b6;},'mRUkO':function(_0x327a88,_0x156610,_0x4f9e94,_0x46c6c9,_0xc3b14f){return _0x327a88(_0x156610,_0x4f9e94,_0x46c6c9,_0xc3b14f);},'YYDXF':function(_0x55e550,_0x57669e){return _0x55e550+_0x57669e;},'ljsql':function(_0x22b80b,_0x2dc341,_0x58d76b,_0x581afa){return _0x22b80b(_0x2dc341,_0x58d76b,_0x581afa);},'WHYgu':_0x2713a2(0x1f8),'SjvFi':function(_0x4028fe,_0x56b45e,_0x50620a){return _0x4028fe(_0x56b45e,_0x50620a);},'dNjhM':function(_0xa963bc,_0x144998,_0x44da27,_0x1e1346,_0x3afd13){return _0xa963bc(_0x144998,_0x44da27,_0x1e1346,_0x3afd13);}};try{if(_0x518639[_0x2713a2(0x230)](_0x1a87fa,_0x518639[_0x2713a2(0x192)])){const _0x68a8dc=await _0x461e65[_0x2713a2(0x1b9)],_0x491aca=_0x518639[_0x2713a2(0x207)](getTestRunIdentifier,_0x461e65[_0x2713a2(0x1ff)],_0x461e65[_0x2713a2(0x1b9)]['retry']),_0x31b36b=_0x461e65[_0x2713a2(0x1ff)];logger[_0x2713a2(0x180)]('sendLogCreatedEvent:\x20testId='+_0x491aca+_0x2713a2(0x212)+util[_0x2713a2(0x1c9)](_0x68a8dc));const _0x4c0e95=_0x5562ad[_0x2713a2(0x199)]()[_0x2713a2(0x1e8)](_0x491aca)[TestFrameworkConstants[_0x2713a2(0x20d)]];await _0x518639['jjMSp'](sendTraceZip,_0x68a8dc,_0x4c0e95);const _0x42fe2d=TestInfo[_0x2713a2(0x19a)](_0x491aca)[_0x518639['iaief']];let _0x1d2199={};if(_0x42fe2d){!_0x68a8dc[_0x2713a2(0x222)]&&(_0x68a8dc[_0x2713a2(0x222)]=[]);_0x1d2199[_0x2713a2(0x222)]=_0x68a8dc[_0x2713a2(0x222)]['concat'](_0x42fe2d||[]);const _0x22c7db=TestInfo[_0x2713a2(0x19a)](_0x491aca);delete _0x22c7db[_0x518639['iaief']],TestInfo[_0x2713a2(0x1b6)](_0x491aca,_0x22c7db);}const {steps:_0x3075e6,logs:_0x266dc8}=_0x518639[_0x2713a2(0x1ef)](getStepsAndLogs,_0x68a8dc[_0x2713a2(0x16c)],_0x5562ad[_0x2713a2(0x199)]()[_0x2713a2(0x1e8)](_0x491aca)[TestFrameworkConstants[_0x2713a2(0x20d)]],_0x518639[_0x2713a2(0x192)]),_0x3d1730=_0x518639[_0x2713a2(0x1c7)](getScreenshots,_0x1d2199,_0x5562ad['getAllData']()['get'](_0x491aca)[TestFrameworkConstants[_0x2713a2(0x20d)]]),_0x429374=_0x518639[_0x2713a2(0x1fb)](getVideos,_0x68a8dc,_0x5562ad['getAllData']()[_0x2713a2(0x1e8)](_0x491aca)[TestFrameworkConstants[_0x2713a2(0x20d)]]),{_:_0x286570,logs:_0x4b1d0d}=_0x518639[_0x2713a2(0x207)](getFailureData,_0x68a8dc[_0x2713a2(0x21c)],{'test_run_uuid':_0x5562ad[_0x2713a2(0x199)]()[_0x2713a2(0x1e8)](_0x491aca)[TestFrameworkConstants[_0x2713a2(0x20d)]]}),_0x5a6f34=TestInfo['getTestDetails'](_0x491aca)[TestFrameworkConstants[_0x2713a2(0x1f5)]]||{},_0x24b91f=_0x518639['Fsbxg'](getMediaArtifactsLogs,_0x5a6f34,_0x5562ad[_0x2713a2(0x199)]()[_0x2713a2(0x1e8)](_0x491aca)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x247ea8=_0x5562ad['getAllData']()[_0x2713a2(0x1e8)](_0x491aca),{[TestFrameworkConstants[_0x2713a2(0x176)]]:_0x125ba1='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x532bb4=''}=_0x247ea8,_0xa35f60=(_0x266dc8||[])[_0x2713a2(0x198)](_0x3d1730||[])[_0x2713a2(0x198)](_0x4b1d0d||[])[_0x2713a2(0x198)](_0x429374||[])[_0x2713a2(0x198)](_0x24b91f||[]),_0x31be7d=0x28,_0x58e66d=Math[_0x2713a2(0x1b2)](_0x518639['EERsp'](_0xa35f60[_0x2713a2(0x189)],_0x31be7d));for(let _0x50d3ec=0x0;_0x518639[_0x2713a2(0x232)](_0x50d3ec,_0x58e66d);_0x50d3ec++){const _0x2dd4c7=_0x518639[_0x2713a2(0x1c1)](_0x50d3ec,_0x31be7d),_0xa94c16=_0x518639[_0x2713a2(0x1be)](_0x2dd4c7,_0x31be7d),_0x1f9443=_0xa35f60[_0x2713a2(0x1bf)](_0x2dd4c7,_0xa94c16),_0x4cccde={'platformIndex':'0','logs':_0x1f9443,'testFrameworkName':_0x125ba1,'testFrameworkVersion':_0x532bb4,'testFrameworkState':_0x3a3f90[_0x2713a2(0x1cd)]()[_0x2713a2(0x1da)]('.')[0x1]};_0x518639[_0x2713a2(0x1bd)](updatePayloadForTraceLogs,_0x4cccde,_0x461e65,_0x491aca,_0x5562ad),logger['debug'](_0x2713a2(0x1cc)+_0x491aca+_0x2713a2(0x233)+_0x518639[_0x2713a2(0x1be)](_0x50d3ec,0x1)+'/'+_0x58e66d+_0x2713a2(0x1d8)+util['inspect'](_0x4cccde));const _0x3a7939=await GrpcClient[_0x2713a2(0x197)]()[_0x2713a2(0x187)](_0x4cccde);logger['debug']('sendLogCreatedEvent\x20for\x20testId:\x20'+_0x491aca+'\x20batch\x20'+_0x518639['YYDXF'](_0x50d3ec,0x1)+'/'+_0x58e66d+_0x2713a2(0x1d9)+util[_0x2713a2(0x1c9)](_0x3a7939));}}else{const {steps:_0x15d3e1,logs:_0x2ae73c}=_0x518639[_0x2713a2(0x225)](getStepsAndLogs,_0x461e65[_0x2713a2(0x1fc)][_0x2713a2(0x16c)],_0xb2cd4a,_0x518639['WHYgu']),_0x516347=_0x518639[_0x2713a2(0x19e)](getTestRunIdentifier,_0x461e65[_0x2713a2(0x1ff)],_0x461e65[_0x2713a2(0x1b9)]['retry']);logger['debug'](_0x2713a2(0x1c6)+_0x516347);const _0x237ee5=_0x5562ad[_0x2713a2(0x199)]()[_0x2713a2(0x1e8)](_0x516347),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x2a5222='',[TestFrameworkConstants[_0x2713a2(0x1ca)]]:_0x38798d=''}=_0x237ee5,_0x36220f={'platformIndex':'0','logs':_0x2ae73c,'testFrameworkName':_0x2a5222,'testFrameworkVersion':_0x38798d,'testFrameworkState':_0x3a3f90[_0x2713a2(0x1cd)]()['split']('.')[0x1]};_0x518639[_0x2713a2(0x19f)](updatePayloadForTraceLogs,_0x36220f,_0x461e65,_0x516347,_0x5562ad),logger[_0x2713a2(0x180)](_0x2713a2(0x1cc)+_0x516347+_0x2713a2(0x1d8)+util[_0x2713a2(0x1c9)](_0x36220f));const _0x94c78c=await GrpcClient[_0x2713a2(0x197)]()[_0x2713a2(0x187)](_0x36220f);}}catch(_0x3b1c65){logger[_0x2713a2(0x1a2)](_0x2713a2(0x22f)+util[_0x2713a2(0x1f3)](_0x3b1c65));}}}module['exports']=PlaywrightTestFramework;
|
|
1
|
+
const a67_0x5e1bc6=a67_0x3d8c;(function(_0x42aea1,_0x447fd2){const _0x53387d=a67_0x3d8c,_0x26818c=_0x42aea1();while(!![]){try{const _0x26ab85=-parseInt(_0x53387d(0xfe))/0x1*(parseInt(_0x53387d(0xc0))/0x2)+parseInt(_0x53387d(0x11e))/0x3*(parseInt(_0x53387d(0x10b))/0x4)+-parseInt(_0x53387d(0xad))/0x5+parseInt(_0x53387d(0xd4))/0x6*(parseInt(_0x53387d(0x162))/0x7)+parseInt(_0x53387d(0x9c))/0x8+parseInt(_0x53387d(0x161))/0x9+parseInt(_0x53387d(0xba))/0xa;if(_0x26ab85===_0x447fd2)break;else _0x26818c['push'](_0x26818c['shift']());}catch(_0x5f0647){_0x26818c['push'](_0x26818c['shift']());}}}(a67_0x7345,0xe6593));function a67_0x7345(){const _0x35553d=['../../playwright/reporter/pwUtils','getTrackedInstance','iRTJH','KEY_TEST_SCOPE','lcUMl','LMBlu','1910943stRaUQ','KEY_EVENT_STARTED_AT','CRLCA','trackEvent','results','KEY_TEST_STARTED_AT','tmwfq','POST','ceil','forEach','sbZlG','dOuIL','QWjgx','errors','nHbYb','annotations','getTraceFilePaths','concat','size','values','getTestFrameworks','mESSf','KEY_HOOK_ID','split','KEY_TEST_FAILURE_TYPE','vBhVU','field_type','AISzz','YzpWr','createContext','CRIqy','getRef','PRE','KEY_TEST_RESULT_AT','iIuVQ','KEY_HOOKS_FINISHED','KEY_HOOK_FAILURE','RJRpB','KEY_TEST_FRAMEWORK_VERSION','xPXPz','trackPlaywrightInstance','KEY_TEST_RESULT','toString','OrHKB','\x20hookState=','uodWT','EsVHC','Expected\x20to\x20fail,\x20but\x20passed.','KEY_TEST_FRAMEWORK_NAME','ekIGn','KEY_TEST_FILE_PATH','MHvru','aBZTt','isArray','STVIS','../state/hookState.js','filePath','statSync','debug','getTestIdentifierFromTestInfo','Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','retry','trackHookEvent','push','format','xNvre','getInstance','6375267UnSeaT','555653RfxqYI','testUId','Error\x20in\x20sendLogCreatedEvent:\x20','UNjKD','QgsWQ','../state/testFrameworkState.js','message','getAllData','\x20payload=','setTestDetails','parsePlaywrightTest','map','get','length','afBSo','matchHookRegex','../../../../src/helpers/helper','pLUYg','vAIkV','raJyH','KEY_EVENT_ENDED_AT','lZzav','DEFAULT_HOOK_RESULT','addMultipleEntries','../../../helpers/helper.js','mjRbl','instance','yTedK','resolveInstance','../../utils/constants','8645136ZpzVFd','MysfU','KEY_HOOK_RESULT','TEST_ATTACHMENT','KEY_HOOK_LAST_FINISHED','\x20result=','GYFlc','HiPjS','trim','\x20and\x20args\x20=\x20','status','../TestInfo.js','KEY_TEST_RETRY_OF','fDEfD','aNubn','KEY_TEST_FAILURE_REASON','result','2788860GxyEca','XPBoq','KEY_HOOK_LAST_STARTED','rrZgc','\x20instanceId=','step','jOGuC','../../../helpers/classLogger.js','sendLogCreatedEvent:\x20testId=','rmZRJ','lLBli','uuid','eCViS','3003560ljyFuL','getCurrentInstanceName','rOWsX','wEEjp','hook','sendLogCreatedEvent\x20for\x20testId:\x20','3243916guEwPT','KEY_TEST_ATTACHMENTS','passed','Aijca','oFNRU','KEY_TEST_LOGS','trackPlaywrightInstance:\x20saved\x20instance\x20contextId=','KEY_TEST_LOCATION','error','wUfpz','parsePlaywrightTestResult:\x20testId=','\x20response=','KEY_LOGS','KEY_TEST_ID','KEY_TEST_FAILURE','title','KEY_HOOK_LOGS','DEFAULT_TEST_RESULT','attachments','FHeLl','30epDKmt','uruLf','DdZui','exports','KEY_TEST_SCOPES','KEY_HOOK_FAILURE_TYPE','RRLMw','NONE','toISOString','info','path','KEY_AUTOMATE_SESSION_NAME','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','KEY_TEST_ENDED_AT','duration','\x20testHookState=','KEY_CUSTOM_TAGS','KEY_HOOKS_STARTED','vCszA','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','INIT_TEST','Error\x20processing\x20trace\x20file\x20','\x20batch\x20','getTestFrameworksVersions','nJIMC','./constants/testFrameworkConstants.js',',\x20state=','failed','getTestUUID','runHooks','slice','dIyGe','setTrackedInstance','TEST','getTime','../instances/testFrameworkInstance.js','../cliUtils.js','./testFramework','hpXMS','\x20\x20and\x20args\x20=\x20','NwUiJ','logCreatedEvent','1ECeZqf','filter','getTestDetails','inspect','util','KEY_TEST_RERUN_NAME','oIlBg','../../../helpers/test-observability/utils','../grpcClient',',\x20testFrameworkState=','test','steps','startTime','4CNwpMY','multi_dropdown','expectedStatus','parsePlaywrightTestResult','basename','\x20from\x20TestDetails:\x20','KEY_TEST_NAME','NNJrg','gtMWk','KEY_TEST_TAGS','XEJaX','Hook\x20List\x20in\x20Post\x20','KEY_TEST_UUID'];a67_0x7345=function(){return _0x35553d;};return a67_0x7345();}const TestFramework=require(a67_0x5e1bc6(0xf9)),TestFrameworkState=require(a67_0x5e1bc6(0x167)),HookState=require(a67_0x5e1bc6(0x155)),{createClassLogger}=require(a67_0x5e1bc6(0xb4)),TestFrameworkInstance=require(a67_0x5e1bc6(0xf7)),CLIUtils=require(a67_0x5e1bc6(0xf8)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a67_0x5e1bc6(0xed)),logger=createClassLogger('PlaywrightTestFramework'),{v4:uuidv4}=require(a67_0x5e1bc6(0xb8)),util=require(a67_0x5e1bc6(0x102)),{getPlaywrightSessionName,getPlaywrightTestFilePath,getPlaywrightTestId,getPlaywrightTestTitle,getPlaywrightTestLocation,getPlaywrightTestTags,getPlaywrightTestCode,getPlaywrightTestScope,getPlaywrightTestScopes,getStepsAndLogs,getScreenshots,getVideos,getPlaywrightCustomRerunParam,getMediaArtifactsLogs,getManualUploadLogs,updatePayloadForTraceLogs}=require(a67_0x5e1bc6(0x96)),TestInfo=require(a67_0x5e1bc6(0xa7)),GrpcClient=require(a67_0x5e1bc6(0x106)),{removeAnsiColors,getFailureType,failureData}=require(a67_0x5e1bc6(0x105)),{getFailureData,getTestTags,getTestRunIdentifier}=require(a67_0x5e1bc6(0x118)),{findNestedKey,sendTraceZip,validateFilePath}=require(a67_0x5e1bc6(0x118)),path=require(a67_0x5e1bc6(0xde)),fs=require('fs'),helper=require(a67_0x5e1bc6(0x8e)),{PLAYWRIGHT_TRACE_LOGS}=require(a67_0x5e1bc6(0x9b));function a67_0x3d8c(_0x5837ee,_0xa9c3a0){const _0x734515=a67_0x7345();return a67_0x3d8c=function(_0x3d8c72,_0x4830e5){_0x3d8c72=_0x3d8c72-0x8a;let _0x3254aa=_0x734515[_0x3d8c72];return _0x3254aa;},a67_0x3d8c(_0x5837ee,_0xa9c3a0);}class PlaywrightTestFramework extends TestFramework{constructor(_0x56e881,_0x41c974,_0x52e609){super(_0x56e881,_0x41c974,_0x52e609);}async['trackEvent'](_0x38b6d5,_0x49ee62,_0x55e748={}){const _0x4fa58e=a67_0x5e1bc6,_0x27f615={'CRIqy':function(_0x38ad75,_0x236bd9){return _0x38ad75===_0x236bd9;},'YzpWr':function(_0x14a4c4,_0x16c403,_0x11707b){return _0x14a4c4(_0x16c403,_0x11707b);},'wUfpz':function(_0x181df1,_0x477279){return _0x181df1===_0x477279;},'mbleg':_0x4fa58e(0x108),'vCszA':_0x4fa58e(0xe0)};super[_0x4fa58e(0x121)](_0x38b6d5,_0x49ee62,_0x55e748);if(_0x27f615[_0x4fa58e(0x13c)](_0x38b6d5,TestFrameworkState['TEST_SCREENSHOT'])){const _0x36d10c=TestInfo[_0x4fa58e(0x159)](_0x55e748['test'],_0x55e748[_0x4fa58e(0x108)][_0x4fa58e(0x15b)]);TestInfo[_0x4fa58e(0x16b)](_0x36d10c,_0x55e748[_0x4fa58e(0xac)],!![]);}const _0x2ad32a=this['resolveInstance'](_0x38b6d5,_0x49ee62,_0x55e748);if(!_0x2ad32a)return;logger['debug']('trackEvent:\x20found\x20instance,\x20testFrameworkState='+_0x38b6d5+_0x4fa58e(0x14a)+_0x49ee62+_0x4fa58e(0xb1)+_0x2ad32a[_0x4fa58e(0x13d)]());try{if(_0x27f615['CRIqy'](_0x49ee62,HookState['PRE'])&&_0x27f615[_0x4fa58e(0x13c)](_0x38b6d5,TestFrameworkState['TEST'])){const _0x172571=_0x55e748[_0x4fa58e(0x108)];logger[_0x4fa58e(0x158)](_0x4fa58e(0xe7)+_0x172571['id']+'}');const _0x599001=TestInfo[_0x4fa58e(0xf0)](_0x27f615[_0x4fa58e(0x13a)](getTestRunIdentifier,_0x172571,_0x55e748[_0x4fa58e(0xac)][_0x4fa58e(0x15b)]));_0x2ad32a[_0x4fa58e(0x95)](this[_0x4fa58e(0x16c)](_0x599001,_0x172571,_0x55e748[_0x4fa58e(0xac)])),logger[_0x4fa58e(0x158)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x172571['id']+_0x4fa58e(0x107)+_0x38b6d5+_0x4fa58e(0xe3)+_0x49ee62+'\x20instance='+_0x2ad32a[_0x4fa58e(0x13d)]());}if(_0x27f615['CRIqy'](_0x49ee62,HookState[_0x4fa58e(0x125)])&&_0x27f615[_0x4fa58e(0xc9)](_0x38b6d5,TestFrameworkState[_0x4fa58e(0xf5)])){const _0x37707c=_0x55e748[_0x4fa58e(0x108)],_0x537773=_0x55e748['result'];logger['debug']('trackEvent\x20loading\x20testResults\x20for\x20testId:\x20'+_0x37707c['id']),_0x2ad32a[_0x4fa58e(0x95)](this[_0x4fa58e(0x10e)](_0x37707c['id'],_0x537773,_0x37707c)),await this['sendLogCreatedEvent'](_0x2ad32a,_0x38b6d5,_0x49ee62,_0x27f615['mbleg'],_0x55e748);}if(CLIUtils[_0x4fa58e(0x8d)](_0x38b6d5['toString']()[_0x4fa58e(0x135)]('.')[0x1])){const _0x2c2415=await this[_0x4fa58e(0x15c)](_0x2ad32a,_0x38b6d5,_0x49ee62,_0x55e748);_0x2ad32a[_0x4fa58e(0x95)](_0x2c2415);}}catch(_0x4c6568){logger[_0x4fa58e(0xc8)](util[_0x4fa58e(0x15e)](_0x27f615[_0x4fa58e(0xe6)],_0x38b6d5,_0x49ee62,_0x55e748[_0x4fa58e(0x8b)],_0x4c6568));}_0x55e748[_0x4fa58e(0x98)]=_0x2ad32a,await this[_0x4fa58e(0xf1)](_0x2ad32a,_0x38b6d5,_0x49ee62,_0x55e748);}[a67_0x5e1bc6(0x9a)](_0x27e362,_0x435968,_0xca1555={}){const _0x4c619f=a67_0x5e1bc6,_0xc457d6={};_0xc457d6[_0x4c619f(0x151)]=function(_0x4f5ad5,_0x253e0f){return _0x4f5ad5===_0x253e0f;},_0xc457d6[_0x4c619f(0x143)]=function(_0x4b32cf,_0x187b49){return _0x4b32cf===_0x187b49;};const _0x32b425=_0xc457d6;let _0x1b945b=null;return(_0x32b425['MHvru'](_0x27e362,TestFrameworkState[_0x4c619f(0xe8)])||_0x32b425['RJRpB'](_0x27e362,TestFrameworkState[_0x4c619f(0xdb)]))&&this[_0x4c619f(0x146)](_0x27e362,_0xca1555),_0x1b945b=TestFramework[_0x4c619f(0x119)](),_0x1b945b;}[a67_0x5e1bc6(0x146)](_0x2ef162,_0x1eaed7){const _0x1eb6e9=a67_0x5e1bc6,_0x20439a=CLIUtils[_0x1eb6e9(0xbb)](),_0xce7452=TrackedInstance[_0x1eb6e9(0x13b)](_0x20439a);let _0x2d3edb=null;logger[_0x1eb6e9(0xdd)]('trackPlaywrightInstance:\x20created\x20instance\x20for\x20target='+_0x20439a+_0x1eb6e9(0xee)+_0x2ef162),_0x2d3edb=new TestFrameworkInstance(_0xce7452,this[_0x1eb6e9(0x132)](),this[_0x1eb6e9(0xeb)](),_0x2ef162,HookState[_0x1eb6e9(0xdb)]),TestFramework[_0x1eb6e9(0xf4)](_0xce7452,_0x2d3edb),logger[_0x1eb6e9(0xdd)](_0x1eb6e9(0xc6)+_0xce7452['getId']()+'\x20target='+_0x20439a);}['parsePlaywrightTest'](_0x5662ec,_0x1de756,_0x2712d4){const _0x38d877=a67_0x5e1bc6,_0x165e90={'rrZgc':function(_0x192c22,_0x297d63){return _0x192c22(_0x297d63);},'Aijca':function(_0x185a21,_0x54f582){return _0x185a21(_0x54f582);},'EcNND':function(_0x59348e,_0x205f55){return _0x59348e(_0x205f55);},'nePTJ':function(_0x1b7700,_0x13a438){return _0x1b7700(_0x13a438);},'dOuIL':function(_0x5051a4,_0x19641f){return _0x5051a4(_0x19641f);},'mjRbl':function(_0x557da1,_0x35f71f,_0x587285){return _0x557da1(_0x35f71f,_0x587285);}},_0x47306f=_0x165e90[_0x38d877(0xb0)](getPlaywrightTestId,_0x1de756),_0x1ac242=_0x165e90[_0x38d877(0xc3)](getPlaywrightTestTitle,_0x1de756),_0x502d88=_0x165e90[_0x38d877(0xb0)](getTestTags,_0x1de756),_0x4704cc=_0x165e90['EcNND'](getPlaywrightTestCode,_0x1de756),_0x166121=_0x165e90[_0x38d877(0xb0)](getPlaywrightTestFilePath,_0x1de756),_0x24c3ee=_0x166121+':'+_0x165e90[_0x38d877(0xc3)](getPlaywrightTestLocation,_0x1de756),_0x2e178d=_0x165e90['nePTJ'](getPlaywrightTestScope,_0x1de756),_0xea432a=_0x165e90[_0x38d877(0xc3)](getPlaywrightTestScopes,_0x1de756),_0x536f01=_0x165e90[_0x38d877(0x129)](getPlaywrightSessionName,_0x1de756),_0x588aaf=this[_0x38d877(0x132)]()[0x0],_0x363c19=_0x165e90[_0x38d877(0x97)](getTestRunIdentifier,_0x1de756,_0x2712d4[_0x38d877(0x15b)]),_0x5bc8e1={[TestFrameworkConstants[_0x38d877(0x14e)]]:_0x588aaf,[TestFrameworkConstants[_0x38d877(0x144)]]:this[_0x38d877(0xeb)]()[_0x588aaf],[TestFrameworkConstants[_0x38d877(0xc5)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x38d877(0xe5)]]:{},[TestFrameworkConstants[_0x38d877(0x117)]]:_0x5662ec,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x38d877(0xd1)],[TestFrameworkConstants[_0x38d877(0xdf)]]:_0x536f01,[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x166121,[TestFrameworkConstants[_0x38d877(0xcd)]]:_0x47306f,[TestFrameworkConstants[_0x38d877(0x111)]]:_0x1ac242,[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x24c3ee,[TestFrameworkConstants['KEY_TEST_CODE']]:_0x4704cc,[TestFrameworkConstants[_0x38d877(0x114)]]:_0x502d88,[TestFrameworkConstants[_0x38d877(0x123)]]:_0x1de756[_0x38d877(0x122)][0x0][_0x38d877(0x10a)],[TestFrameworkConstants[_0x38d877(0x11b)]]:_0x2e178d,[TestFrameworkConstants[_0x38d877(0xd8)]]:_0xea432a,[TestFrameworkConstants[_0x38d877(0x103)]]:_0x165e90[_0x38d877(0xb0)](getPlaywrightCustomRerunParam,_0x1de756)};TestInfo[_0x38d877(0x16b)](_0x363c19,_0x5bc8e1);const _0x413d60={};return _0x413d60[_0x363c19]=_0x5bc8e1,_0x413d60;}[a67_0x5e1bc6(0x10e)](_0x2488c0,_0x104da1,_0x5dc701){const _0x5dd362=a67_0x5e1bc6,_0x16b616={'raJyH':function(_0x932fd0,_0x335c62){return _0x932fd0(_0x335c62);},'NwUiJ':_0x5dd362(0x9f),'wEEjp':function(_0x562997,_0x94f655){return _0x562997===_0x94f655;},'XPBoq':function(_0x453bbe,_0x1fb563){return _0x453bbe===_0x1fb563;},'CRLCA':function(_0x4405fc,_0x3afd46){return _0x4405fc===_0x3afd46;},'nHbYb':function(_0x26cdba,_0x65d5ff){return _0x26cdba(_0x65d5ff);},'mESSf':'No\x20reason\x20provided','aBZTt':_0x5dd362(0x10c),'EsVHC':function(_0x447811,_0x34110c,_0x3df727){return _0x447811(_0x34110c,_0x3df727);},'oFNRU':function(_0x5ddf06,_0x4351b9){return _0x5ddf06+_0x4351b9;},'lBGeF':function(_0x471d85,_0x37835d){return _0x471d85===_0x37835d;},'vAIkV':'skipped','QWjgx':_0x5dd362(0xc2),'lcUMl':function(_0x283db6,_0x10eb52){return _0x283db6===_0x10eb52;},'AISzz':'failed','MysfU':'timedOut','YPYIQ':function(_0x35f5b2,_0x8c3b8f){return _0x35f5b2===_0x8c3b8f;},'NNJrg':_0x5dd362(0x14d),'lZzav':function(_0x3db05b,_0x1956f0,_0x437b5a){return _0x3db05b(_0x1956f0,_0x437b5a);},'GTBBs':function(_0xcbd316,_0x41669c){return _0xcbd316||_0x41669c;},'LrmlC':function(_0x31f331,_0x2fb9b2){return _0x31f331(_0x2fb9b2);},'afBSo':function(_0x58342d,_0x4e462f){return _0x58342d>_0x4e462f;},'ekIGn':function(_0x35f2e9,_0xd42cf4){return _0x35f2e9-_0xd42cf4;},'dIyGe':function(_0x396a77,_0x3e36ed,_0x2a5816){return _0x396a77(_0x3e36ed,_0x2a5816);},'jOGuC':'path','rmZRJ':function(_0x1ff15e,_0x43f488){return _0x1ff15e(_0x43f488);},'OrHKB':function(_0x43ceb5,_0x13a672){return _0x43ceb5>_0x13a672;},'rOWsX':function(_0x2f1ccb,_0x2f6e45,_0x3d0240){return _0x2f1ccb(_0x2f6e45,_0x3d0240);},'GYFlc':function(_0x382696,_0x438a12){return _0x382696>_0x438a12;}};logger[_0x5dd362(0x158)](_0x5dd362(0xca)+_0x2488c0);const _0x149c62=_0x16b616[_0x5dd362(0x14c)](getTestRunIdentifier,_0x5dc701,_0x104da1[_0x5dd362(0x15b)]),_0x5321bb=new Date(_0x104da1['startTime']),_0x50a18d=_0x104da1[_0x5dd362(0xe2)],_0x591cbc=new Date(_0x16b616[_0x5dd362(0xc4)](_0x5321bb[_0x5dd362(0xf6)](),_0x50a18d)),_0x118f7d=_0x104da1[_0x5dd362(0xa6)],_0x248c9c=TestInfo[_0x5dd362(0x100)](_0x149c62)[TestFrameworkConstants[_0x5dd362(0xe4)]]||{};let _0x298943=_0x118f7d;if(_0x16b616[_0x5dd362(0x120)](_0x104da1['status'],_0x5dc701['expectedStatus']))_0x298943=_0x16b616['lBGeF'](_0x104da1[_0x5dd362(0xa6)],_0x16b616[_0x5dd362(0x90)])?_0x16b616[_0x5dd362(0x90)]:_0x16b616[_0x5dd362(0x12a)];else{(_0x16b616[_0x5dd362(0xbd)](_0x298943,_0x16b616[_0x5dd362(0x12a)])||_0x16b616[_0x5dd362(0x11c)](_0x298943,_0x16b616[_0x5dd362(0x139)])||_0x16b616[_0x5dd362(0xbd)](_0x298943,_0x16b616[_0x5dd362(0x9d)]))&&(_0x298943=_0x16b616[_0x5dd362(0x139)]);if(_0x16b616[_0x5dd362(0xbd)](_0x104da1[_0x5dd362(0xa6)],_0x16b616[_0x5dd362(0x12a)])&&_0x16b616['YPYIQ'](_0x5dc701[_0x5dd362(0x10d)],_0x16b616['AISzz'])){const _0x24194c={};_0x24194c['message']=_0x16b616[_0x5dd362(0x112)],_0x24194c['stack']=_0x16b616['NNJrg'],_0x104da1[_0x5dd362(0xc8)]=_0x24194c,_0x104da1['errors']=[_0x104da1[_0x5dd362(0xc8)]];}}const {failureData:_0x40baa2,logs:_0x390d8e}=_0x16b616[_0x5dd362(0x93)](getFailureData,_0x104da1?.[_0x5dd362(0x12b)],{}),_0x441987={[TestFrameworkConstants[_0x5dd362(0xce)]]:_0x16b616['GTBBs'](_0x40baa2,null),[TestFrameworkConstants[_0x5dd362(0x136)]]:_0x104da1?.[_0x5dd362(0xc8)]&&_0x16b616['LrmlC'](getFailureType,_0x104da1[_0x5dd362(0xc8)][_0x5dd362(0x168)]),[TestFrameworkConstants[_0x5dd362(0xab)]]:_0x104da1?.[_0x5dd362(0xc8)]&&_0x16b616['LrmlC'](removeAnsiColors,_0x104da1[_0x5dd362(0xc8)][_0x5dd362(0x168)]),[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants[_0x5dd362(0x147)]]:_0x298943,[TestFrameworkConstants[_0x5dd362(0xe1)]]:_0x591cbc[_0x5dd362(0xdc)](),[TestFrameworkConstants[_0x5dd362(0x13f)]]:new Date()[_0x5dd362(0xdc)](),[TestFrameworkConstants[_0x5dd362(0xe4)]]:_0x248c9c};if(_0x104da1&&_0x16b616[_0x5dd362(0x8c)](_0x104da1[_0x5dd362(0x15b)],0x0)){const _0x39e03c=TestInfo[_0x5dd362(0xf0)](_0x16b616[_0x5dd362(0x93)](getTestRunIdentifier,_0x5dc701,_0x16b616[_0x5dd362(0x14f)](_0x104da1[_0x5dd362(0x15b)],0x1)));_0x441987[TestFrameworkConstants[_0x5dd362(0xa8)]]=_0x39e03c;}const _0x1995f3={};_0x1995f3[_0x5dd362(0x108)]=_0x5dc701;const _0x47434b=this[_0x5dd362(0x9a)](TestFrameworkState['TEST'],HookState[_0x5dd362(0x125)],_0x1995f3),_0x2622d1=_0x47434b['getAllData']()[_0x5dd362(0x8a)](_0x149c62)[TestFrameworkConstants['KEY_TEST_UUID']],_0x568522=[],_0x53ae5f=_0x16b616[_0x5dd362(0xf3)](findNestedKey,_0x104da1,_0x16b616[_0x5dd362(0xb3)]);if(_0x53ae5f&&_0x16b616[_0x5dd362(0xb6)](validateFilePath,_0x53ae5f))try{_0x568522[_0x5dd362(0x15d)]({'kind':_0x16b616[_0x5dd362(0xfc)],'timestamp':new Date()[_0x5dd362(0xdc)](),'test_run_uuid':_0x2622d1,'file_name':path[_0x5dd362(0x10f)](_0x53ae5f),'file_size':fs[_0x5dd362(0x157)](_0x53ae5f)[_0x5dd362(0x130)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x5ee6dc){logger[_0x5dd362(0xc8)]('Error\x20processing\x20direct\x20trace\x20file\x20'+_0x53ae5f+':\x20'+_0x5ee6dc['message']);}const _0x3bf54e=TestInfo[_0x5dd362(0x12e)](),_0x2eec38=_0x3bf54e[_0x5dd362(0xff)](_0x175107=>_0x175107[_0x5dd362(0x163)]===_0x2622d1);_0x2eec38[_0x5dd362(0x127)](_0x5468c5=>{const _0x54048e=_0x5dd362;if(_0x5468c5[_0x54048e(0x156)]&&_0x16b616[_0x54048e(0x91)](validateFilePath,_0x5468c5[_0x54048e(0x156)])&&!_0x568522['some'](_0x1ac314=>_0x1ac314['file_name']===path[_0x54048e(0x10f)](_0x5468c5[_0x54048e(0x156)])))try{_0x568522[_0x54048e(0x15d)]({'kind':_0x16b616[_0x54048e(0xfc)],'timestamp':new Date()[_0x54048e(0xdc)](),'test_run_uuid':_0x2622d1,'file_name':path[_0x54048e(0x10f)](_0x5468c5[_0x54048e(0x156)]),'file_size':fs[_0x54048e(0x157)](_0x5468c5[_0x54048e(0x156)])[_0x54048e(0x130)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});}catch(_0x58939a){logger[_0x54048e(0xc8)](_0x54048e(0xe9)+_0x5468c5[_0x54048e(0x156)]+_0x54048e(0x110)+_0x58939a[_0x54048e(0x168)]);}});if(_0x16b616[_0x5dd362(0x149)](_0x568522['length'],0x0)){const _0x8dab0a=_0x441987[TestFrameworkConstants['KEY_LOGS']]||[];_0x441987[TestFrameworkConstants['KEY_LOGS']]=[..._0x8dab0a,..._0x568522];}const _0x16da61=TestInfo['getTestDetails'](_0x149c62)[TestFrameworkConstants[_0x5dd362(0xc1)]]||{},_0x3407a6=_0x16b616[_0x5dd362(0xbc)](getManualUploadLogs,_0x16da61,_0x47434b[_0x5dd362(0x169)]()[_0x5dd362(0x8a)](_0x149c62)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x16b616[_0x5dd362(0xa2)](_0x3407a6['length'],0x0)){const _0x36129a=_0x441987[TestFrameworkConstants[_0x5dd362(0xcc)]]||[];_0x441987[TestFrameworkConstants[_0x5dd362(0xcc)]]=[..._0x36129a,..._0x3407a6];}const _0x942a80=_0x5dc701[_0x5dd362(0x12d)]||[],_0x1f0811=_0x441987[TestFrameworkConstants[_0x5dd362(0xe4)]]||{};_0x942a80[_0x5dd362(0x127)](_0x4b893e=>{const _0x1b9b7c=_0x5dd362,{type:_0x4189db}=_0x4b893e;let _0x23b3a8=_0x4b893e['description'];if(!_0x4189db)return;(_0x16b616[_0x1b9b7c(0xbd)](_0x23b3a8,undefined)||_0x16b616[_0x1b9b7c(0xae)](_0x23b3a8,null)||_0x16b616[_0x1b9b7c(0x120)](_0x16b616[_0x1b9b7c(0x12c)](String,_0x23b3a8)[_0x1b9b7c(0xa4)](),''))&&(_0x23b3a8=_0x16b616[_0x1b9b7c(0x133)]);if(!_0x1f0811[_0x4189db]){const _0x4a25e5={};_0x4a25e5[_0x1b9b7c(0x138)]=_0x16b616[_0x1b9b7c(0x152)],_0x4a25e5[_0x1b9b7c(0x131)]=[],_0x1f0811[_0x4189db]=_0x4a25e5;}else!_0x1f0811[_0x4189db][_0x1b9b7c(0x138)]&&(_0x1f0811[_0x4189db]['field_type']=_0x16b616[_0x1b9b7c(0x152)]),!Array[_0x1b9b7c(0x153)](_0x1f0811[_0x4189db][_0x1b9b7c(0x131)])&&(_0x1f0811[_0x4189db]['values']=[]);const _0x5c96dc=_0x16b616[_0x1b9b7c(0x91)](String,_0x23b3a8)[_0x1b9b7c(0x135)](',')[_0x1b9b7c(0x16d)](_0x3297b6=>_0x3297b6[_0x1b9b7c(0xa4)]());_0x1f0811[_0x4189db][_0x1b9b7c(0x131)]=[...new Set([..._0x1f0811[_0x4189db][_0x1b9b7c(0x131)],..._0x5c96dc])];}),_0x441987[TestFrameworkConstants[_0x5dd362(0xe4)]]=_0x1f0811,TestInfo['setTestDetails'](_0x149c62,_0x441987);const _0x7bfbae={};return _0x7bfbae[_0x149c62]=_0x441987,_0x7bfbae;}async[a67_0x5e1bc6(0x15c)](_0x501e41,_0x16afae,_0x77e54b,_0x33547c){const _0x2f883b=a67_0x5e1bc6,_0x53d854={'tmwfq':function(_0x17cd1a,_0x5ae416,_0x2b4c15){return _0x17cd1a(_0x5ae416,_0x2b4c15);},'gtMWk':function(_0xa7f2ab,_0x57661c){return _0xa7f2ab in _0x57661c;},'vBhVU':function(_0x2624ce,_0x2b5a37){return _0x2624ce(_0x2b5a37);},'FHeLl':function(_0x5d8be9,_0x37faed){return _0x5d8be9(_0x37faed);},'uodWT':function(_0x2c7bfd,_0x5d7ca6){return _0x2c7bfd===_0x5d7ca6;},'nJIMC':function(_0x427c2b){return _0x427c2b();},'fDEfD':function(_0x3d5c68,_0x492d57){return _0x3d5c68===_0x492d57;},'iRTJH':function(_0x2592f9,_0x1c8224){return _0x2592f9>_0x1c8224;},'LMBlu':'err','pLUYg':function(_0x3ceedc,_0x4037f0){return _0x3ceedc(_0x4037f0);},'oIlBg':_0x2f883b(0xef),'RRLMw':'passed','aNubn':function(_0x146bf5,_0x3016b2){return _0x146bf5!==_0x3016b2;},'XEJaX':function(_0x4f516,_0x1ad342){return _0x4f516+_0x1ad342;},'UNjKD':_0x2f883b(0xbe)},_0x3dd1b6=_0x33547c[_0x2f883b(0x108)],_0x2e8501=_0x33547c[_0x2f883b(0xb2)],_0x230079=_0x53d854[_0x2f883b(0x124)](getTestRunIdentifier,_0x3dd1b6,_0x33547c[_0x2f883b(0xac)][_0x2f883b(0x15b)]),_0xb1dbf1=_0x16afae[_0x2f883b(0x148)]()[_0x2f883b(0x135)]('.')[0x1];let _0x44f0de=_0x501e41[_0x2f883b(0x169)]()[_0x2f883b(0x8a)](_0x230079)[TestFrameworkConstants[_0x2f883b(0xe5)]];!_0x44f0de&&(_0x44f0de={});!_0x53d854[_0x2f883b(0x113)](_0xb1dbf1,_0x44f0de)&&(_0x44f0de[_0xb1dbf1]=[]);let _0x280681=_0x501e41[_0x2f883b(0x169)]()[_0x2f883b(0x8a)](_0x230079)[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x280681&&(_0x280681={});!_0x53d854['gtMWk'](_0xb1dbf1,_0x280681)&&(_0x280681[_0xb1dbf1]=[]);const _0x100bdd={[TestFrameworkConstants[_0x2f883b(0xe5)]]:_0x44f0de,[TestFrameworkConstants[_0x2f883b(0x141)]]:_0x280681},_0x39a560={};_0x39a560[_0x230079]=_0x100bdd;const _0x5328d9=_0x39a560,_0x55064a=_0x53d854[_0x2f883b(0x137)](getPlaywrightTestFilePath,_0x3dd1b6),_0x5b7983=_0x55064a+':'+_0x53d854[_0x2f883b(0xd3)](getPlaywrightTestLocation,_0x3dd1b6),_0xb19064=TestInfo['getTestDetails'](_0x230079)[TestFrameworkConstants[_0x2f883b(0xe4)]]||{};if(_0x53d854[_0x2f883b(0x14b)](_0x77e54b,HookState[_0x2f883b(0x13e)])){const _0x372d98={'key':_0xb1dbf1,[TestFrameworkConstants[_0x2f883b(0x134)]]:_0x53d854[_0x2f883b(0xec)](uuidv4),[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x2f883b(0x94)],[TestFrameworkConstants[_0x2f883b(0x11f)]]:_0x2e8501[_0x2f883b(0x10a)],[TestFrameworkConstants[_0x2f883b(0xd0)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x2e8501[_0x2f883b(0xcf)],[TestFrameworkConstants[_0x2f883b(0x150)]]:_0x55064a,[TestFrameworkConstants[_0x2f883b(0xc7)]]:_0x5b7983,[TestFrameworkConstants[_0x2f883b(0xe4)]]:_0xb19064};_0x44f0de[_0xb1dbf1]['push'](_0x372d98),_0x5328d9[_0x230079][TestFrameworkConstants[_0x2f883b(0xaf)]]=_0xb1dbf1,logger['debug'](_0x2f883b(0x15a)+_0xb1dbf1+'\x20&\x20hook\x20=\x20'+_0x372d98+_0x2f883b(0xfb)+_0x33547c);}else{if(_0x53d854[_0x2f883b(0xa9)](_0x77e54b,HookState['POST'])){const _0x326bf0=await _0x33547c['result'],_0x4d91a9=_0x44f0de[_0xb1dbf1]||[],_0x2f20e3=_0x33547c['step'];logger['debug'](_0x2f883b(0x116)+_0x4d91a9+_0x2f883b(0xa5)+_0x33547c);if(_0x53d854[_0x2f883b(0x11a)](_0x4d91a9[_0x2f883b(0x8b)],0x0)){const _0x1c9577=_0x4d91a9['pop']();if(_0x2f20e3[_0x2f883b(0xc8)]){const _0x536e35=_0x53d854[_0x2f883b(0x124)](failureData,_0x2f20e3['error'],_0x53d854[_0x2f883b(0x11d)]);_0x1c9577[TestFrameworkConstants[_0x2f883b(0xd9)]]=_0x53d854[_0x2f883b(0xd3)](getFailureType,_0x2f20e3?.[_0x2f883b(0xc8)]['message']),_0x1c9577[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x53d854[_0x2f883b(0x8f)](removeAnsiColors,_0x2f20e3?.[_0x2f883b(0xc8)][_0x2f883b(0x168)]),_0x1c9577[TestFrameworkConstants[_0x2f883b(0x9e)]]=_0x53d854['oIlBg'],_0x1c9577[TestFrameworkConstants[_0x2f883b(0x142)]]=_0x536e35;}else _0x1c9577[TestFrameworkConstants[_0x2f883b(0x9e)]]=_0x53d854[_0x2f883b(0xda)];_0x53d854[_0x2f883b(0xaa)](_0x326bf0,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x1c9577[TestFrameworkConstants[_0x2f883b(0x9e)]]=!_0x2f20e3[_0x2f883b(0xc8)]?_0x53d854['RRLMw']:_0x53d854[_0x2f883b(0x104)]);const _0x4013fb=new Date(_0x2f20e3['startTime']),_0x4e8af1=new Date(_0x53d854[_0x2f883b(0x115)](_0x4013fb['getTime'](),_0x2f20e3[_0x2f883b(0xe2)]));_0x1c9577[TestFrameworkConstants[_0x2f883b(0x92)]]=_0x4e8af1['toISOString'](),_0x1c9577[TestFrameworkConstants[_0x2f883b(0xe4)]]=_0xb19064;const _0x53826e=_0x1c9577[TestFrameworkConstants[_0x2f883b(0x134)]];await this['sendLogCreatedEvent'](_0x501e41,_0x16afae,_0x53826e,_0x53d854[_0x2f883b(0x165)],_0x33547c),!_0x280681[_0xb1dbf1]&&(_0x280681[_0xb1dbf1]=[]),_0x280681[_0xb1dbf1][_0x2f883b(0x15d)](_0x1c9577),_0x5328d9[_0x230079][TestFrameworkConstants[_0x2f883b(0xa0)]]=_0xb1dbf1;}}}return _0x5328d9;}async['sendLogCreatedEvent'](_0x4a10cc,_0x529abf,_0x883746,_0x5ab5d3,_0x37f1f0){const _0xa20cd=a67_0x5e1bc6,_0x1ad30b={'HiPjS':function(_0x1167c7,_0x2ac192){return _0x1167c7===_0x2ac192;},'xPXPz':_0xa20cd(0x108),'QgsWQ':function(_0xa424fd,_0x29a5b4,_0x3a21bb){return _0xa424fd(_0x29a5b4,_0x3a21bb);},'uruLf':function(_0x55a4e8,_0x106352,_0x6aaaf4){return _0x55a4e8(_0x106352,_0x6aaaf4);},'DdZui':_0xa20cd(0xd2),'lLBli':function(_0x11ce7a,_0x1992ef,_0xd818b2,_0x220eb8){return _0x11ce7a(_0x1992ef,_0xd818b2,_0x220eb8);},'hpXMS':function(_0x19ec25,_0x5d8cb7,_0x37984e){return _0x19ec25(_0x5d8cb7,_0x37984e);},'iIuVQ':function(_0x58d509,_0x4ff30e,_0x51b519){return _0x58d509(_0x4ff30e,_0x51b519);},'sbZlG':function(_0x5f082f,_0x3cc370){return _0x5f082f/_0x3cc370;},'xNvre':function(_0x478c9c,_0x5089c0){return _0x478c9c<_0x5089c0;},'yTedK':function(_0x5c5ec7,_0x4a0c1b){return _0x5c5ec7*_0x4a0c1b;},'eCViS':function(_0x5b298c,_0x2174a4){return _0x5b298c+_0x2174a4;},'zOibE':function(_0x2f8ee1,_0xcb6460,_0x308dc2,_0x45039e,_0x1271b1){return _0x2f8ee1(_0xcb6460,_0x308dc2,_0x45039e,_0x1271b1);},'GZWni':function(_0x234f9c,_0xb83ec){return _0x234f9c+_0xb83ec;},'hDNZj':_0xa20cd(0xbe),'STVIS':function(_0xbff150,_0x2480c5,_0x5957b6){return _0xbff150(_0x2480c5,_0x5957b6);},'msgPj':function(_0xd0c03d,_0x3536c7,_0x2662fc,_0x5329b0,_0x34d190){return _0xd0c03d(_0x3536c7,_0x2662fc,_0x5329b0,_0x34d190);}};try{if(_0x1ad30b[_0xa20cd(0xa3)](_0x5ab5d3,_0x1ad30b[_0xa20cd(0x145)])){const _0x2bc16d=await _0x37f1f0[_0xa20cd(0xac)],_0x14ab3b=_0x1ad30b[_0xa20cd(0x166)](getTestRunIdentifier,_0x37f1f0[_0xa20cd(0x108)],_0x37f1f0[_0xa20cd(0xac)][_0xa20cd(0x15b)]),_0x169e12=_0x37f1f0[_0xa20cd(0x108)];logger[_0xa20cd(0x158)](_0xa20cd(0xb5)+_0x14ab3b+_0xa20cd(0xa1)+util[_0xa20cd(0x101)](_0x2bc16d));const _0x3e9395=_0x4a10cc[_0xa20cd(0x169)]()[_0xa20cd(0x8a)](_0x14ab3b)[TestFrameworkConstants[_0xa20cd(0x117)]];await _0x1ad30b[_0xa20cd(0xd5)](sendTraceZip,_0x2bc16d,_0x3e9395);const _0x578cb3=TestInfo[_0xa20cd(0x100)](_0x14ab3b)[_0x1ad30b['DdZui']],_0x552dfb={};if(_0x578cb3){!_0x2bc16d[_0xa20cd(0xd2)]&&(_0x2bc16d['attachments']=[]);_0x552dfb['attachments']=_0x2bc16d['attachments']['concat'](_0x578cb3||[]);const _0x44f70d=TestInfo[_0xa20cd(0x100)](_0x14ab3b);delete _0x44f70d[_0x1ad30b[_0xa20cd(0xd6)]],TestInfo[_0xa20cd(0x16b)](_0x14ab3b,_0x44f70d);}const {steps:_0x5623ac,logs:_0x3d03c3}=_0x1ad30b[_0xa20cd(0xb7)](getStepsAndLogs,_0x2bc16d[_0xa20cd(0x109)],_0x4a10cc[_0xa20cd(0x169)]()[_0xa20cd(0x8a)](_0x14ab3b)[TestFrameworkConstants[_0xa20cd(0x117)]],_0x1ad30b[_0xa20cd(0x145)]),_0x1c5b88=_0x1ad30b['hpXMS'](getScreenshots,_0x552dfb,_0x4a10cc[_0xa20cd(0x169)]()['get'](_0x14ab3b)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x19a50e=_0x1ad30b[_0xa20cd(0xfa)](getVideos,_0x2bc16d,_0x4a10cc[_0xa20cd(0x169)]()[_0xa20cd(0x8a)](_0x14ab3b)[TestFrameworkConstants[_0xa20cd(0x117)]]),{_:_0x312d40,logs:_0x576531}=_0x1ad30b[_0xa20cd(0x140)](getFailureData,_0x2bc16d[_0xa20cd(0x12b)],{'test_run_uuid':_0x4a10cc[_0xa20cd(0x169)]()['get'](_0x14ab3b)[TestFrameworkConstants[_0xa20cd(0x117)]]}),_0x3e20b9=TestInfo[_0xa20cd(0x100)](_0x14ab3b)[TestFrameworkConstants[_0xa20cd(0xc1)]]||{},_0x1b0a42=_0x1ad30b[_0xa20cd(0x166)](getMediaArtifactsLogs,_0x3e20b9,_0x4a10cc[_0xa20cd(0x169)]()[_0xa20cd(0x8a)](_0x14ab3b)[TestFrameworkConstants[_0xa20cd(0x117)]]),_0x4a0ab7=_0x4a10cc[_0xa20cd(0x169)]()[_0xa20cd(0x8a)](_0x14ab3b),{[TestFrameworkConstants[_0xa20cd(0x14e)]]:_0x5f5b39='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x512676=''}=_0x4a0ab7,_0x2b9e2f=(_0x3d03c3||[])[_0xa20cd(0x12f)](_0x1c5b88||[])['concat'](_0x576531||[])[_0xa20cd(0x12f)](_0x19a50e||[])[_0xa20cd(0x12f)](_0x1b0a42||[]),_0xbc88b=0x28,_0x3e5211=Math[_0xa20cd(0x126)](_0x1ad30b[_0xa20cd(0x128)](_0x2b9e2f[_0xa20cd(0x8b)],_0xbc88b));for(let _0x5465ac=0x0;_0x1ad30b[_0xa20cd(0x15f)](_0x5465ac,_0x3e5211);_0x5465ac++){const _0x5a1339=_0x1ad30b[_0xa20cd(0x99)](_0x5465ac,_0xbc88b),_0x3b8661=_0x1ad30b[_0xa20cd(0xb9)](_0x5a1339,_0xbc88b),_0x368299=_0x2b9e2f[_0xa20cd(0xf2)](_0x5a1339,_0x3b8661),_0x28abdb={'platformIndex':'0','logs':_0x368299,'testFrameworkName':_0x5f5b39,'testFrameworkVersion':_0x512676,'testFrameworkState':_0x529abf[_0xa20cd(0x148)]()['split']('.')[0x1]};_0x1ad30b['zOibE'](updatePayloadForTraceLogs,_0x28abdb,_0x37f1f0,_0x14ab3b,_0x4a10cc),logger[_0xa20cd(0x158)](_0xa20cd(0xbf)+_0x14ab3b+_0xa20cd(0xea)+_0x1ad30b['GZWni'](_0x5465ac,0x1)+'/'+_0x3e5211+_0xa20cd(0x16a)+util['inspect'](_0x28abdb));const _0x28f2c1=await GrpcClient[_0xa20cd(0x160)]()[_0xa20cd(0xfd)](_0x28abdb);logger[_0xa20cd(0x158)](_0xa20cd(0xbf)+_0x14ab3b+_0xa20cd(0xea)+_0x1ad30b[_0xa20cd(0xb9)](_0x5465ac,0x1)+'/'+_0x3e5211+_0xa20cd(0xcb)+util[_0xa20cd(0x101)](_0x28f2c1));}}else{const {steps:_0x1e90b1,logs:_0x1c1962}=_0x1ad30b[_0xa20cd(0xb7)](getStepsAndLogs,_0x37f1f0['step'][_0xa20cd(0x109)],_0x883746,_0x1ad30b['hDNZj']),_0x1c810b=_0x1ad30b[_0xa20cd(0x154)](getTestRunIdentifier,_0x37f1f0[_0xa20cd(0x108)],_0x37f1f0[_0xa20cd(0xac)][_0xa20cd(0x15b)]);logger['debug'](_0xa20cd(0xb5)+_0x1c810b);const _0x170bd7=_0x4a10cc[_0xa20cd(0x169)]()[_0xa20cd(0x8a)](_0x1c810b),{[TestFrameworkConstants[_0xa20cd(0x14e)]]:_0x258623='',[TestFrameworkConstants[_0xa20cd(0x144)]]:_0x3cfe39=''}=_0x170bd7,_0x34ac08={'platformIndex':'0','logs':_0x1c1962,'testFrameworkName':_0x258623,'testFrameworkVersion':_0x3cfe39,'testFrameworkState':_0x529abf[_0xa20cd(0x148)]()['split']('.')[0x1]};_0x1ad30b['msgPj'](updatePayloadForTraceLogs,_0x34ac08,_0x37f1f0,_0x1c810b,_0x4a10cc),logger['debug']('sendLogCreatedEvent\x20for\x20testId:\x20'+_0x1c810b+'\x20payload='+util[_0xa20cd(0x101)](_0x34ac08));const _0x3bef82=await GrpcClient[_0xa20cd(0x160)]()[_0xa20cd(0xfd)](_0x34ac08);}}catch(_0x1c8cb2){logger[_0xa20cd(0xc8)](_0xa20cd(0x164)+util['format'](_0x1c8cb2));}}}module[a67_0x5e1bc6(0xd7)]=PlaywrightTestFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x4602ce=a68_0x402c;(function(_0x5034d9,_0x361455){const _0x10d0b2=a68_0x402c,_0x52428f=_0x5034d9();while(!![]){try{const _0x181b54=parseInt(_0x10d0b2(0x7c))/0x1+-parseInt(_0x10d0b2(0x8c))/0x2*(parseInt(_0x10d0b2(0x74))/0x3)+parseInt(_0x10d0b2(0x6f))/0x4*(parseInt(_0x10d0b2(0x96))/0x5)+parseInt(_0x10d0b2(0x8a))/0x6*(parseInt(_0x10d0b2(0x75))/0x7)+-parseInt(_0x10d0b2(0x71))/0x8+-parseInt(_0x10d0b2(0x78))/0x9+-parseInt(_0x10d0b2(0x88))/0xa*(-parseInt(_0x10d0b2(0x83))/0xb);if(_0x181b54===_0x361455)break;else _0x52428f['push'](_0x52428f['shift']());}catch(_0xad34f){_0x52428f['push'](_0x52428f['shift']());}}}(a68_0x3469,0x2660d));const CLIUtils=require('../cliUtils'),eventDispatcher=require(a68_0x4602ce(0x8b)),TestFrameworkInstance=require(a68_0x4602ce(0x89)),TrackedContext=require('../instances/trackedContext'),TestFrameworkState=require(a68_0x4602ce(0x91)),HookState=require(a68_0x4602ce(0x73)),{createClassLogger}=require('../../../helpers/classLogger'),TrackedInstance=require(a68_0x4602ce(0x76)),logger=createClassLogger('TestFramework');function a68_0x402c(_0x382702,_0x172558){const _0x3469cd=a68_0x3469();return a68_0x402c=function(_0x402c53,_0x16e08e){_0x402c53=_0x402c53-0x6d;let _0x4167da=_0x3469cd[_0x402c53];return _0x4167da;},a68_0x402c(_0x382702,_0x172558);}class TestFramework{static [a68_0x4602ce(0x79)]=new Map();[a68_0x4602ce(0x93)]=[];[a68_0x4602ce(0x6e)]={};[a68_0x4602ce(0x81)]=null;constructor(_0x4d71ed,_0x33281c,_0x161da5){const _0x6947a5=a68_0x4602ce;this[_0x6947a5(0x93)]=_0x4d71ed,this['testFrameworkVersions']=_0x33281c,this['binSessionId']=_0x161da5;}[a68_0x4602ce(0x8d)](){const _0x4d7b47=a68_0x4602ce;return TestFramework[_0x4d7b47(0x79)];}[a68_0x4602ce(0x80)](_0x476f3d,_0x403af1){const _0x5a76cb=a68_0x4602ce;TestFramework[_0x5a76cb(0x79)][_0x5a76cb(0x85)](_0x476f3d[_0x5a76cb(0x87)],_0x403af1);}static[a68_0x4602ce(0x82)](){const _0x35f1bc=a68_0x4602ce,_0x33820a=TrackedInstance[_0x35f1bc(0x95)](CLIUtils[_0x35f1bc(0x70)]());return TestFramework['instances'][_0x35f1bc(0x7d)](_0x33820a['getId']());}static['setTrackedInstance'](_0x5f3e7c,_0x33f7e8){const _0x5b9b2f=a68_0x4602ce;TestFramework[_0x5b9b2f(0x79)][_0x5b9b2f(0x85)](_0x5f3e7c['getId'](),_0x33f7e8);}[a68_0x4602ce(0x77)](){const _0xda4c94=a68_0x4602ce;return this[_0xda4c94(0x6e)];}[a68_0x4602ce(0x94)](){const _0x1cf8cc=a68_0x4602ce;return this[_0x1cf8cc(0x93)];}[a68_0x4602ce(0x72)](_0x218c5c,_0x27a8e2,_0x569644={}){const _0x1054a3=a68_0x4602ce;logger[_0x1054a3(0x7b)](_0x1054a3(0x90)+_0x218c5c+_0x1054a3(0x84)+_0x27a8e2);}async['runHooks'](_0x185d4d,_0x268af9,_0x493e4a,_0x1d5fe1={}){const _0xa3f909=a68_0x4602ce,_0x5a3513=CLIUtils[_0xa3f909(0x8e)](_0x268af9,_0x493e4a);_0x185d4d[_0xa3f909(0x7a)](_0x268af9),_0x185d4d['setCurrentHookState'](_0x493e4a),await eventDispatcher[_0xa3f909(0x6d)](_0x5a3513,_0x1d5fe1);}static[a68_0x4602ce(0x7f)](_0xa96ef6,_0x574a7f,_0xb91d66){const _0x5dac5a=a68_0x4602ce;eventDispatcher[_0x5dac5a(0x7f)](CLIUtils['getHookRegistryKey'](_0xa96ef6,_0x574a7f),_0xb91d66);}static['getState'](_0x35222e,_0x575ad0){const _0x3d07d9=a68_0x4602ce;return _0x35222e[_0x3d07d9(0x86)]()[_0x3d07d9(0x7d)](_0x575ad0);}static['setState'](_0x4a5f26,_0x395203,_0xe1a15b){const _0x201a7a=a68_0x4602ce;_0x4a5f26[_0x201a7a(0x86)]()[_0x201a7a(0x85)](_0x395203,_0xe1a15b);}static[a68_0x4602ce(0x92)](_0x53bf16,_0x3a8b90){const _0x1627f9=a68_0x4602ce;return _0x53bf16[_0x1627f9(0x86)]()[_0x1627f9(0x7e)](_0x3a8b90);}}module[a68_0x4602ce(0x8f)]=TestFramework;function a68_0x3469(){const _0x3d1de3=['binSessionId','getTrackedInstance','246378ezDcOL',';\x20hookState=','set','getAllData','getId','50SghYky','../instances/testFrameworkInstance','20508hJAFEA','../eventDispatcher','62prOAOu','getInstances','getHookRegistryKey','exports','trackEvent:\x20testFrameworkState=','../state/testFrameworkState','hasState','testFrameworks','getTestFrameworks','createContext','5vFgVnU','notifyObserver','testFrameworkVersions','973916chnwcC','getCurrentInstanceName','1641976mdeYEF','trackEvent','../state/hookState','15978zBLIYX','203NRzRHs','../instances/trackedInstance','getTestFrameworksVersions','1370358ovhueF','instances','setCurrentTestState','debug','225221QZZGFL','get','has','registerObserver','setInstance'];a68_0x3469=function(){return _0x3d1de3;};return a68_0x3469();}
|
package/src/bin/v2/grpcClient.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a69_0x4b9d5e=a69_0xb91b;function a69_0xb91b(_0x7a7e44,_0x490b56){const _0x539fac=a69_0x539f();return a69_0xb91b=function(_0xb91b82,_0x14a49d){_0xb91b82=_0xb91b82-0x1d4;let _0x1471d1=_0x539fac[_0xb91b82];return _0x1471d1;},a69_0xb91b(_0x7a7e44,_0x490b56);}(function(_0x26cfef,_0x510084){const _0x4fe359=a69_0xb91b,_0x475b46=_0x26cfef();while(!![]){try{const _0x449e9f=parseInt(_0x4fe359(0x228))/0x1*(parseInt(_0x4fe359(0x230))/0x2)+-parseInt(_0x4fe359(0x211))/0x3+parseInt(_0x4fe359(0x241))/0x4*(parseInt(_0x4fe359(0x283))/0x5)+-parseInt(_0x4fe359(0x220))/0x6*(-parseInt(_0x4fe359(0x29c))/0x7)+-parseInt(_0x4fe359(0x2b6))/0x8*(-parseInt(_0x4fe359(0x2b0))/0x9)+-parseInt(_0x4fe359(0x223))/0xa+parseInt(_0x4fe359(0x210))/0xb;if(_0x449e9f===_0x510084)break;else _0x475b46['push'](_0x475b46['shift']());}catch(_0x38205e){_0x475b46['push'](_0x475b46['shift']());}}}(a69_0x539f,0xd3834));const util=require('util'),logger=require(a69_0x4b9d5e(0x23f))[a69_0x4b9d5e(0x296)],grpc=require(a69_0x4b9d5e(0x212)),services=require(a69_0x4b9d5e(0x2b7)),messages=require('../../../generated/sdk-messages_pb'),path=require('path'),CLIUtils=require('./cliUtils.js'),{createClassLogger}=require(a69_0x4b9d5e(0x1f4)),PerformanceTester=require(a69_0x4b9d5e(0x281)),{EVENTS:PerformanceEvents}=require(a69_0x4b9d5e(0x279)),{PLAYWRIGHT_TRACE_LOGS}=require(a69_0x4b9d5e(0x28a)),helper=require('../../helpers/helper.js');class GrpcClient{static #instance=null;[a69_0x4b9d5e(0x2ab)]=null;[a69_0x4b9d5e(0x262)]=null;[a69_0x4b9d5e(0x1db)]=null;[a69_0x4b9d5e(0x1f1)]=null;[a69_0x4b9d5e(0x2ae)]=createClassLogger('GrpcClient');constructor(){}static[a69_0x4b9d5e(0x25c)](){return!GrpcClient.#instance&&(GrpcClient.#instance=new GrpcClient()),GrpcClient.#instance;}[a69_0x4b9d5e(0x207)](_0x1c0f53){const _0x39c608=a69_0x4b9d5e,_0x27c743={};_0x27c743[_0x39c608(0x284)]=function(_0x457eff,_0x2af139){return _0x457eff||_0x2af139;};const _0x5d7f38=_0x27c743,{id:_0x23ab1d,listen:_0x4e3d07}=_0x1c0f53;if(_0x5d7f38[_0x39c608(0x284)](!_0x23ab1d,!_0x4e3d07))throw new Error('Unable\x20to\x20find\x20listen\x20addr\x20or\x20bin\x20session\x20id\x20binSessionId:\x20'+_0x23ab1d+_0x39c608(0x24b)+_0x4e3d07);this[_0x39c608(0x2ab)]=_0x23ab1d,this['listenAddress']=_0x4e3d07,process['env']['BROWSERSTACK_CLI_BIN_SESSION_ID']=this[_0x39c608(0x2ab)],process['env']['BROWSERSTACK_CLI_BIN_LISTEN_ADDR']=this['listenAddress'],this['connect'](),this[_0x39c608(0x2ae)]['info'](_0x39c608(0x26f)+this[_0x39c608(0x2ab)]+_0x39c608(0x248)+this['listenAddress']);}[a69_0x4b9d5e(0x253)](){const _0x26b4c1=a69_0x4b9d5e,_0x6b77b1={};_0x6b77b1[_0x26b4c1(0x257)]=_0x26b4c1(0x2b1);const _0x200f0e=_0x6b77b1;let _0x4e3828=this[_0x26b4c1(0x262)];!_0x4e3828&&(_0x4e3828=process[_0x26b4c1(0x201)][_0x26b4c1(0x22a)]);!this['binSessionId']&&(this['binSessionId']=this[_0x26b4c1(0x2ab)]||process[_0x26b4c1(0x201)][_0x26b4c1(0x217)]);if(!_0x4e3828)throw new Error(_0x200f0e[_0x26b4c1(0x257)]);const _0x298327={};_0x298327[_0x26b4c1(0x203)]=0x2710,this[_0x26b4c1(0x1db)]=new grpc[(_0x26b4c1(0x1de))](_0x4e3828,grpc[_0x26b4c1(0x1d7)][_0x26b4c1(0x2a4)](),_0x298327),this[_0x26b4c1(0x1f1)]=new services[(_0x26b4c1(0x2a5))](_0x4e3828,grpc[_0x26b4c1(0x1d7)][_0x26b4c1(0x2a4)]()),this['logger'][_0x26b4c1(0x288)]('Connected\x20to\x20gRPC\x20server\x20at\x20'+_0x4e3828);}async[a69_0x4b9d5e(0x24e)](){const _0x397967=a69_0x4b9d5e,_0x52bd0e={'LlKVl':function(_0x28dab1,_0x36e2b1){return _0x28dab1!==_0x36e2b1;},'tSLYP':function(_0x509351,_0x5310db){return _0x509351(_0x5310db);},'cSrmX':_0x397967(0x1ff),'JvQIK':'startBinSession:\x20Calling\x20startBinSession','eFrvs':_0x397967(0x1f7),'XEMKi':function(_0x4e91f8,_0x9ec653){return _0x4e91f8(_0x9ec653);},'jdxYP':_0x397967(0x2a8),'joxro':function(_0x43fbc2,_0x45a9f0){return _0x43fbc2 instanceof _0x45a9f0;},'rAVRa':function(_0x30473a,_0x53c1a9){return _0x30473a===_0x53c1a9;},'cgVIU':'browserstackConfigFile','bmHoM':_0x397967(0x1fd),'MJWAf':_0x397967(0x1e7),'vGSXp':function(_0x4b3cdf,_0x58af80){return _0x4b3cdf||_0x58af80;}};PerformanceTester[_0x397967(0x298)](PerformanceEvents[_0x397967(0x1f3)]),this[_0x397967(0x2ae)]['info'](_0x52bd0e[_0x397967(0x2ac)]);try{!this[_0x397967(0x1f1)]&&this['logger'][_0x397967(0x288)](_0x52bd0e[_0x397967(0x255)]);const _0x59d28e=CLIUtils[_0x397967(0x1d4)](),_0xe65c21=CLIUtils['getAutomationFrameworkDetail'](),_0x27d40b=_0xe65c21['name'],_0x1f2394=_0xe65c21['version'],_0x213f0c=new messages[(_0x397967(0x280))]();_0x213f0c['setBinSessionId'](this[_0x397967(0x2ab)]),_0x213f0c[_0x397967(0x1e0)](CLIUtils[_0x397967(0x22d)]()),_0x213f0c[_0x397967(0x27a)](_0x59d28e),_0x213f0c[_0x397967(0x22c)](process[_0x397967(0x276)]());const _0xe5b85c=_0x213f0c[_0x397967(0x1fb)]();Object[_0x397967(0x282)](process[_0x397967(0x201)])['forEach'](([_0x25fa0e,_0x369be6])=>{const _0x1aba38=_0x397967;_0x52bd0e[_0x1aba38(0x2af)](_0x369be6,undefined)&&_0x52bd0e[_0x1aba38(0x2af)](_0x369be6,null)&&_0xe5b85c['set'](_0x25fa0e,_0x369be6);});const _0x48ef31=_0x52bd0e[_0x397967(0x289)](require,_0x52bd0e[_0x397967(0x266)]),_0x305a0f=_0x48ef31[_0x397967(0x25c)]()[_0x397967(0x23e)](),_0x53c9c1=[];_0x305a0f&&_0x52bd0e[_0x397967(0x238)](_0x305a0f,Map)&&_0x305a0f['forEach']((_0xa338f2,_0x2241d8)=>{const _0x2331ab=_0x397967;_0x53c9c1[_0x2331ab(0x245)](_0x2241d8+'='+_0xa338f2);});const _0x57adeb=process['argv'][_0x397967(0x2a6)](0x2);_0x213f0c[_0x397967(0x1d9)]([..._0x57adeb,..._0x53c9c1]);let _0xd40117=null;if(_0x305a0f)for(const [_0x32c5ef,_0x5a6bc1]of _0x305a0f){if(_0x52bd0e[_0x397967(0x22b)](_0x32c5ef,_0x52bd0e[_0x397967(0x26e)])){_0xd40117=_0x5a6bc1;break;}}if(_0xd40117)_0x213f0c['setPathConfig'](_0xd40117);else process[_0x397967(0x201)][_0x397967(0x1ee)]?_0x213f0c[_0x397967(0x20d)](process[_0x397967(0x201)][_0x397967(0x1ee)]):_0x213f0c[_0x397967(0x20d)](path[_0x397967(0x261)](process[_0x397967(0x276)](),_0x52bd0e[_0x397967(0x20c)]));this['logger'][_0x397967(0x288)](_0x397967(0x213)+JSON['stringify'](_0x57adeb)+',\x20parsedConfig='+(_0x305a0f?JSON[_0x397967(0x226)]([..._0x305a0f]):_0x52bd0e[_0x397967(0x21b)])),_0x213f0c[_0x397967(0x200)](CLIUtils[_0x397967(0x22d)]()),_0x213f0c[_0x397967(0x26a)](_0x27d40b);const _0xe1f4c0=_0x213f0c[_0x397967(0x225)]();return _0xe1f4c0[_0x397967(0x24d)](_0x27d40b,_0x52bd0e[_0x397967(0x1ec)](_0x1f2394,'')),_0x213f0c[_0x397967(0x28f)](_0x27d40b,_0x1f2394),_0x213f0c[_0x397967(0x2a2)]([_0x27d40b]),new Promise((_0xe6c681,_0x204e03)=>{const _0x2dcdd0=_0x397967;this['client'][_0x2dcdd0(0x24e)](_0x213f0c,(_0x24c915,_0x4ef1da)=>{const _0x56c222=_0x2dcdd0;if(_0x24c915){this[_0x56c222(0x2ae)][_0x56c222(0x204)]('StartBinSession\x20error:\x20'+_0x24c915['message']),_0x52bd0e[_0x56c222(0x236)](_0x204e03,_0x24c915),PerformanceTester[_0x56c222(0x251)](PerformanceEvents[_0x56c222(0x1f3)],![],util[_0x56c222(0x205)](_0x24c915));return;}this[_0x56c222(0x2ae)]['info'](_0x52bd0e[_0x56c222(0x206)]),PerformanceTester[_0x56c222(0x251)](PerformanceEvents[_0x56c222(0x1f3)]),_0x52bd0e[_0x56c222(0x236)](_0xe6c681,_0x4ef1da);});});}catch(_0x24a37a){this[_0x397967(0x2ae)][_0x397967(0x204)](_0x397967(0x272)+util[_0x397967(0x205)](_0x24a37a)),PerformanceTester['end'](PerformanceEvents[_0x397967(0x1f3)],![],util['format'](_0x24a37a));throw _0x24a37a;}}async[a69_0x4b9d5e(0x269)](){const _0xedb2fe=a69_0x4b9d5e,_0x18c1cc={'WApWD':function(_0x2077d6,_0x48b8e1){return _0x2077d6(_0x48b8e1);},'lRJZB':'ConnectBinSession\x20successful','HVfvk':function(_0x3936a5,_0x5d49f4){return _0x3936a5(_0x5d49f4);},'rvNkC':'Connecting\x20bin\x20session','MdUgn':_0xedb2fe(0x1f7)};PerformanceTester[_0xedb2fe(0x298)](PerformanceEvents[_0xedb2fe(0x1e9)]),this[_0xedb2fe(0x2ae)][_0xedb2fe(0x288)](_0x18c1cc[_0xedb2fe(0x25b)]);try{!this['client']&&this[_0xedb2fe(0x2ae)][_0xedb2fe(0x288)](_0x18c1cc['MdUgn']);const _0x1b8921=new messages['ConnectBinSessionRequest']();_0x1b8921[_0xedb2fe(0x259)](this[_0xedb2fe(0x2ab)]);const _0x5d06f7=await new Promise((_0xc00f31,_0x1efb2f)=>{const _0x3f6d61=_0xedb2fe;this[_0x3f6d61(0x1f1)][_0x3f6d61(0x269)](_0x1b8921,(_0x3b8b6e,_0x5d55cf)=>{const _0x5230a1=_0x3f6d61;if(_0x3b8b6e){this['logger'][_0x5230a1(0x204)]('ConnectBinSession\x20error:\x20'+_0x3b8b6e[_0x5230a1(0x2a3)]),_0x18c1cc[_0x5230a1(0x2a0)](_0x1efb2f,_0x3b8b6e),PerformanceTester['end'](PerformanceEvents[_0x5230a1(0x1e9)],![],util[_0x5230a1(0x205)](_0x3b8b6e));return;}this['logger']['info'](_0x18c1cc[_0x5230a1(0x24c)]),PerformanceTester[_0x5230a1(0x251)](PerformanceEvents['SDK_CONNECT_BIN_SESSION']),_0x18c1cc[_0x5230a1(0x21a)](_0xc00f31,_0x5d55cf);});});return this[_0xedb2fe(0x2ae)][_0xedb2fe(0x2b4)]('connect-bin-session\x20response:\x20'+util['format'](_0x5d06f7)),_0x5d06f7;}catch(_0x38c0ad){PerformanceTester[_0xedb2fe(0x251)](PerformanceEvents['SDK_CONNECT_BIN_SESSION'],![],util['format'](_0x38c0ad)),this[_0xedb2fe(0x2ae)][_0xedb2fe(0x204)]('Error\x20in\x20connectBinSession:\x20'+util[_0xedb2fe(0x205)](_0x38c0ad));throw _0x38c0ad;}}async['stopBinSession'](_0x178852={},_0x22cace=null){const _0x46e683=a69_0x4b9d5e,_0x4dd59d={'EHklw':function(_0x9d762a,_0x255448){return _0x9d762a(_0x255448);},'spVkO':_0x46e683(0x291),'WkTpD':function(_0x2d650d,_0x5d8567){return _0x2d650d(_0x5d8567);},'xaUxo':'Stopping\x20bin\x20session','bRzaJ':_0x46e683(0x2b2),'Bqzza':_0x46e683(0x1f7),'zzXgl':_0x46e683(0x1ed)};PerformanceTester['start'](PerformanceEvents[_0x46e683(0x270)]),this[_0x46e683(0x2ae)][_0x46e683(0x288)](_0x4dd59d['xaUxo']);try{if(!this[_0x46e683(0x2ab)])throw new Error(_0x4dd59d['bRzaJ']);!this[_0x46e683(0x1f1)]&&this[_0x46e683(0x2ae)]['info'](_0x4dd59d[_0x46e683(0x20f)]);const _0x782fd9=new messages['StopBinSessionRequest']();this['logger'][_0x46e683(0x2b4)](_0x46e683(0x235)+JSON[_0x46e683(0x226)](_0x22cace)),_0x782fd9[_0x46e683(0x259)](this[_0x46e683(0x2ab)]),_0x782fd9[_0x46e683(0x233)](_0x178852),_0x782fd9['setExitSignal'](_0x22cace?_0x22cace:null),_0x782fd9[_0x46e683(0x260)](_0x22cace?_0x4dd59d[_0x46e683(0x23b)]:null),_0x782fd9[_0x46e683(0x277)](_0x22cace?0x1:0x0);const _0x159edc=await new Promise((_0x1359f1,_0x5de10f)=>{const _0x5db0a6=_0x46e683;this[_0x5db0a6(0x1f1)][_0x5db0a6(0x29e)](_0x782fd9,(_0x53c866,_0x2724ad)=>{const _0x1bf212=_0x5db0a6;if(_0x53c866){this['logger']['error'](_0x1bf212(0x287)+_0x53c866[_0x1bf212(0x2a3)]),_0x4dd59d[_0x1bf212(0x256)](_0x5de10f,_0x53c866),PerformanceTester[_0x1bf212(0x251)](PerformanceEvents[_0x1bf212(0x270)],![],util[_0x1bf212(0x205)](_0x53c866));return;}this[_0x1bf212(0x2ae)][_0x1bf212(0x288)](_0x4dd59d[_0x1bf212(0x274)]),PerformanceTester[_0x1bf212(0x251)](PerformanceEvents[_0x1bf212(0x270)]),_0x4dd59d[_0x1bf212(0x1df)](_0x1359f1,_0x2724ad);});});return this[_0x46e683(0x2ae)][_0x46e683(0x2b4)](_0x46e683(0x27e)+util['format'](_0x159edc)),_0x159edc;}catch(_0x46203d){PerformanceTester['end'](PerformanceEvents[_0x46e683(0x270)],![],util['format'](_0x46203d)),this[_0x46e683(0x2ae)][_0x46e683(0x204)]('Error\x20in\x20stopBinSession:\x20'+util['format'](_0x46203d));}}async[a69_0x4b9d5e(0x263)](_0x517869){const _0x1db03a=a69_0x4b9d5e,_0x4ca806={'vYQBQ':function(_0x32d0b7,_0x328d6e){return _0x32d0b7(_0x328d6e);},'yyCtc':_0x1db03a(0x264),'HvvgM':'Getting\x20Playwright\x20config','CSGqx':_0x1db03a(0x1f7)};PerformanceTester['start'](PerformanceEvents[_0x1db03a(0x26b)]),this['logger'][_0x1db03a(0x288)](_0x4ca806['HvvgM']);try{!this[_0x1db03a(0x1f1)]&&this['logger'][_0x1db03a(0x288)](_0x4ca806[_0x1db03a(0x1fa)]);const _0xd66dbf=new messages[(_0x1db03a(0x249))]();return _0xd66dbf[_0x1db03a(0x259)](this[_0x1db03a(0x2ab)]),_0xd66dbf[_0x1db03a(0x250)](JSON[_0x1db03a(0x226)](_0x517869)),new Promise((_0x264f72,_0x53ad40)=>{const _0x113b27=_0x1db03a,_0x4f7a66={'wyXOY':function(_0x58173e,_0x313082){return _0x4ca806['vYQBQ'](_0x58173e,_0x313082);},'jUKee':_0x4ca806['yyCtc']};this[_0x113b27(0x1f1)][_0x113b27(0x1e5)](_0xd66dbf,(_0x522a69,_0x5b83fa)=>{const _0x275c54=_0x113b27;if(_0x522a69){this[_0x275c54(0x2ae)]['error'](_0x275c54(0x1f5)+_0x522a69[_0x275c54(0x2a3)]),_0x4f7a66['wyXOY'](_0x53ad40,_0x522a69),PerformanceTester['end'](PerformanceEvents['SDK_AUTOMATION_FRAMEWORK_INIT'],![],util[_0x275c54(0x205)](_0x522a69));return;}this[_0x275c54(0x2ae)][_0x275c54(0x288)](_0x4f7a66['jUKee']),PerformanceTester['end'](PerformanceEvents['SDK_AUTOMATION_FRAMEWORK_INIT']),_0x4f7a66['wyXOY'](_0x264f72,_0x5b83fa);});});}catch(_0x4610ed){PerformanceTester[_0x1db03a(0x251)](PerformanceEvents['SDK_AUTOMATION_FRAMEWORK_INIT'],![],util[_0x1db03a(0x205)](_0x4610ed)),this[_0x1db03a(0x2ae)]['error'](_0x1db03a(0x20e)+util[_0x1db03a(0x205)](_0x4610ed));throw _0x4610ed;}}async[a69_0x4b9d5e(0x244)](_0x1c1224){const _0x1050fc=a69_0x4b9d5e,_0x40ebe5={'Zbnnn':function(_0x49e63c,_0x51c2c4){return _0x49e63c(_0x51c2c4);},'lVkpS':'AccessibilityConfig\x20request\x20successful','GyHdU':_0x1050fc(0x232),'NMVot':_0x1050fc(0x28c)};this['logger']['info'](_0x40ebe5[_0x1050fc(0x22e)]);try{const _0x549f0e=Buffer[_0x1050fc(0x224)](JSON['stringify'](_0x1c1224[_0x1050fc(0x1f0)]),_0x40ebe5['NMVot']),_0x12c1b7=new messages[(_0x1050fc(0x246))](),_0xab4bf1=CLIUtils[_0x1050fc(0x29f)](),_0xaf954c=_0xab4bf1['name'],_0x5060d0=_0xab4bf1[_0x1050fc(0x29a)];return _0x12c1b7['setBinSessionId'](this[_0x1050fc(0x2ab)]),_0x12c1b7[_0x1050fc(0x24a)](0x0),_0x12c1b7[_0x1050fc(0x215)](_0xaf954c),_0x12c1b7[_0x1050fc(0x23a)](_0x5060d0),_0x12c1b7[_0x1050fc(0x237)](_0x1c1224[_0x1050fc(0x275)]),_0x12c1b7[_0x1050fc(0x1e3)](_0x549f0e),new Promise((_0x3f5d99,_0x4164a6)=>{const _0x4ce491=_0x1050fc;this[_0x4ce491(0x1f1)][_0x4ce491(0x27d)](_0x12c1b7,(_0x3c78e8,_0x7abffa)=>{const _0x3b10c9=_0x4ce491;if(_0x3c78e8){this['logger'][_0x3b10c9(0x204)](_0x3b10c9(0x242)+_0x3c78e8[_0x3b10c9(0x2a3)]),_0x40ebe5[_0x3b10c9(0x2ad)](_0x4164a6,_0x3c78e8);return;}this[_0x3b10c9(0x2ae)][_0x3b10c9(0x288)](_0x40ebe5['lVkpS']),_0x40ebe5['Zbnnn'](_0x3f5d99,_0x7abffa);});});}catch(_0x588f59){this[_0x1050fc(0x2ae)]['error'](_0x1050fc(0x227)+util[_0x1050fc(0x205)](_0x588f59));}}async[a69_0x4b9d5e(0x25a)](_0x12caae){const _0x1f5298=a69_0x4b9d5e,_0x6eb5a={'WHTnY':function(_0xab2e18,_0xaeff6c){return _0xab2e18(_0xaeff6c);},'aizxo':'TestSessionEvent\x20request\x20successful','MoxuK':_0x1f5298(0x1e4),'LMigE':_0x1f5298(0x1f7)};this[_0x1f5298(0x2ae)][_0x1f5298(0x288)](_0x6eb5a[_0x1f5298(0x1e1)]);try{!this[_0x1f5298(0x1f1)]&&this[_0x1f5298(0x2ae)][_0x1f5298(0x288)](_0x6eb5a['LMigE']);const {platformIndex:_0x4d56b1,testFrameworkName:_0x2667ec,testFrameworkVersion:_0xc0f756,testFrameworkState:_0x3cdcd9,testHookState:_0x1a46c6,testUuid:_0x4f1219,automationSession:_0x4de2b9,capabilities:_0x207f07,executionContext:_0x439b75}=_0x12caae,_0x1ddcc9=new messages[(_0x1f5298(0x29b))]();_0x1ddcc9['setBinSessionId'](this[_0x1f5298(0x2ab)]),_0x1ddcc9[_0x1f5298(0x24a)](_0x4d56b1),_0x1ddcc9[_0x1f5298(0x1dd)](_0x2667ec),_0x1ddcc9[_0x1f5298(0x229)](_0xc0f756),_0x1ddcc9[_0x1f5298(0x1f9)](_0x3cdcd9),_0x1ddcc9[_0x1f5298(0x294)](_0x1a46c6),_0x1ddcc9[_0x1f5298(0x231)](_0x4f1219);const _0x16c3c6=new messages[(_0x1f5298(0x29b))][(_0x1f5298(0x1ea))]();_0x16c3c6[_0x1f5298(0x23d)](_0x4de2b9[_0x1f5298(0x299)]),_0x16c3c6[_0x1f5298(0x215)](_0x4de2b9[_0x1f5298(0x273)]),_0x16c3c6['setFrameworkVersion'](_0x4de2b9[_0x1f5298(0x23c)]),_0x16c3c6[_0x1f5298(0x271)](_0x4de2b9['frameworkSessionId']),_0x16c3c6[_0x1f5298(0x28b)](_0x4de2b9[_0x1f5298(0x21c)]),_0x16c3c6['setHubUrl'](_0x4de2b9[_0x1f5298(0x275)]),_0x1ddcc9['addAutomationSessions'](_0x16c3c6),_0x1ddcc9['setCapabilities'](_0x207f07);const _0x455ec5=new messages[(_0x1f5298(0x295))]();return _0x455ec5[_0x1f5298(0x209)](_0x439b75['processId']),_0x455ec5[_0x1f5298(0x293)](_0x439b75['threadId']),_0x455ec5[_0x1f5298(0x26d)](_0x439b75[_0x1f5298(0x243)]),_0x1ddcc9[_0x1f5298(0x1d6)](_0x455ec5),new Promise((_0x33145e,_0x4a443c)=>{const _0x34701c=_0x1f5298;this[_0x34701c(0x1f1)]['testSessionEvent'](_0x1ddcc9,(_0x3ffe0b,_0x4ca291)=>{const _0x289f64=_0x34701c;if(_0x3ffe0b){this[_0x289f64(0x2ae)][_0x289f64(0x204)](_0x289f64(0x2b3)+_0x3ffe0b[_0x289f64(0x2a3)]),_0x6eb5a['WHTnY'](_0x4a443c,_0x3ffe0b);return;}this[_0x289f64(0x2ae)][_0x289f64(0x288)](_0x6eb5a[_0x289f64(0x20a)]),_0x6eb5a['WHTnY'](_0x33145e,_0x4ca291);});});}catch(_0x2ab38e){this['logger']['error'](_0x1f5298(0x252)+util[_0x1f5298(0x205)](_0x2ab38e));throw _0x2ab38e;}}async[a69_0x4b9d5e(0x2a7)](_0x52ce0d){const _0x484b14=a69_0x4b9d5e,_0x43a92d={'Gzbmq':function(_0x259df3,_0x1f0b37){return _0x259df3(_0x1f0b37);},'EHIPo':_0x484b14(0x290),'zfnHu':function(_0x52c9f6,_0x45a445){return _0x52c9f6(_0x45a445);},'dvqOG':_0x484b14(0x286),'UALEy':_0x484b14(0x1f7)};this['logger'][_0x484b14(0x288)](_0x43a92d[_0x484b14(0x1e8)]);try{!this[_0x484b14(0x1f1)]&&this[_0x484b14(0x2ae)][_0x484b14(0x288)](_0x43a92d[_0x484b14(0x240)]);const {platfromIndex:_0x58d290,testFrameworkName:_0x406553,testFrameworkVersion:_0x3bf9de,testFrameworkState:_0x2c8b17,hookState:_0x20f891,startedAt:_0x422a46,endedAt:_0x30d767,uuid:_0x4813ad,eventJson:_0x1ad063,executionContext:_0x4fbcce}=_0x52ce0d,_0x2d5bcc=new messages['TestFrameworkEventRequest']();_0x2d5bcc['setBinSessionId'](this[_0x484b14(0x2ab)]),_0x2d5bcc[_0x484b14(0x24a)](_0x58d290),_0x2d5bcc['setTestFrameworkName'](_0x406553),_0x2d5bcc['setTestFrameworkVersion'](_0x3bf9de),_0x2d5bcc[_0x484b14(0x1f9)](_0x2c8b17),_0x2d5bcc[_0x484b14(0x294)](_0x20f891),_0x2d5bcc[_0x484b14(0x1f8)](_0x422a46),_0x2d5bcc['setEndedAt'](_0x30d767),_0x2d5bcc[_0x484b14(0x1eb)](_0x4813ad),_0x2d5bcc['setEventJson'](_0x1ad063);const _0x33a667=new messages['ExecutionContext']();return _0x33a667[_0x484b14(0x209)](_0x4fbcce[_0x484b14(0x1dc)]),_0x33a667['setThreadId'](_0x4fbcce[_0x484b14(0x1ef)]),_0x33a667[_0x484b14(0x26d)](_0x4fbcce[_0x484b14(0x243)]),_0x2d5bcc[_0x484b14(0x1d6)](_0x33a667),new Promise((_0x4a1b94,_0x580a74)=>{const _0x56d517=_0x484b14;this[_0x56d517(0x1f1)]['testFrameworkEvent'](_0x2d5bcc,(_0x530eda,_0x57ad15)=>{const _0x48c86a=_0x56d517;if(_0x530eda){this['logger']['error'](_0x48c86a(0x25e)+_0x530eda[_0x48c86a(0x2a3)]),_0x43a92d[_0x48c86a(0x1da)](_0x580a74,_0x530eda);return;}this[_0x48c86a(0x2ae)][_0x48c86a(0x288)](_0x43a92d['EHIPo']),_0x43a92d[_0x48c86a(0x258)](_0x4a1b94,_0x57ad15);});});}catch(_0xce88df){this['logger'][_0x484b14(0x204)](_0x484b14(0x218)+util['format'](_0xce88df));throw _0xce88df;}}async[a69_0x4b9d5e(0x1d5)](_0x438aec){const _0x3df100=a69_0x4b9d5e,_0x36a481={'BuUDq':function(_0x4f1492,_0x14fc9b){return _0x4f1492(_0x14fc9b);},'uDnOc':_0x3df100(0x27b),'avGZO':_0x3df100(0x21f),'mhYBG':'No\x20gRPC\x20client\x20not\x20initialized.'};this[_0x3df100(0x2ae)][_0x3df100(0x288)](_0x36a481[_0x3df100(0x1f6)]);try{!this['client']&&this[_0x3df100(0x2ae)][_0x3df100(0x288)](_0x36a481['mhYBG']);const {platformIndex:_0x45f582,ref:_0xa55b92,userInputParams:_0x4d8fce}=_0x438aec,_0x580be6=new messages[(_0x3df100(0x2b8))]();return _0x580be6[_0x3df100(0x259)](this[_0x3df100(0x2ab)]),_0x580be6['setPlatformIndex'](_0x45f582),_0x580be6[_0x3df100(0x28b)](_0xa55b92),_0x580be6[_0x3df100(0x2aa)](_0x4d8fce),new Promise((_0x285bd0,_0x32a523)=>{const _0x3fd04f=_0x3df100,_0x3e68af={'SBQTI':function(_0x3d34cc,_0x17b1a7){const _0x48faba=a69_0xb91b;return _0x36a481[_0x48faba(0x265)](_0x3d34cc,_0x17b1a7);},'vcCLt':_0x36a481[_0x3fd04f(0x292)],'zmkJZ':function(_0x1cc257,_0x35f089){const _0x35c31a=_0x3fd04f;return _0x36a481[_0x35c31a(0x265)](_0x1cc257,_0x35f089);}};this[_0x3fd04f(0x1f1)][_0x3fd04f(0x1d5)](_0x580be6,(_0x46b6d9,_0xcd8b8b)=>{const _0x4d370b=_0x3fd04f;if(_0x46b6d9){this[_0x4d370b(0x2ae)][_0x4d370b(0x204)](_0x4d370b(0x1fc)+_0x46b6d9[_0x4d370b(0x2a3)]),_0x3e68af[_0x4d370b(0x221)](_0x32a523,_0x46b6d9);return;}this['logger'][_0x4d370b(0x288)](_0x3e68af[_0x4d370b(0x267)]),_0x3e68af[_0x4d370b(0x27c)](_0x285bd0,_0xcd8b8b);});});}catch(_0x513cca){this[_0x3df100(0x2ae)]['error']('Error\x20in\x20DriverInit:\x20'+util['format'](_0x513cca));throw _0x513cca;}}async[a69_0x4b9d5e(0x1fe)](_0x424cf9){const _0x2aaeae=a69_0x4b9d5e,_0x595ff8={'ygFrV':function(_0x58e7e8,_0x4a9766){return _0x58e7e8===_0x4a9766;},'wnKcT':function(_0x1f2742,_0x3a4549){return _0x1f2742(_0x3a4549);},'czgHj':'LogCreatedEvent\x20request\x20successful','sKemW':'Sending\x20LogCreatedEvent','pDjom':_0x2aaeae(0x1f7)};this[_0x2aaeae(0x2ae)][_0x2aaeae(0x288)](_0x595ff8[_0x2aaeae(0x234)]);try{!this['client']&&this[_0x2aaeae(0x2ae)][_0x2aaeae(0x288)](_0x595ff8[_0x2aaeae(0x247)]);const {platformIndex:_0x551c78,logs:_0x5557f6}=_0x424cf9,_0x4f6a86=new messages[(_0x2aaeae(0x22f))]();_0x4f6a86[_0x2aaeae(0x259)](this[_0x2aaeae(0x2ab)]),_0x4f6a86[_0x2aaeae(0x24a)](_0x551c78);const _0x45ad0b=_0x424cf9['testFrameworkName'],_0x44d97b=_0x424cf9[_0x2aaeae(0x1f2)],_0x56cb29=_0x424cf9[_0x2aaeae(0x1e2)];return _0x5557f6[_0x2aaeae(0x21d)](_0x244078=>{const _0x494ad1=_0x2aaeae,_0x2b6692=new messages['LogCreatedEventRequest'][(_0x494ad1(0x25d))]();_0x2b6692['setTestFrameworkName'](_0x45ad0b),_0x2b6692[_0x494ad1(0x229)](_0x44d97b),_0x2b6692['setTestFrameworkState'](_0x56cb29),_0x2b6692[_0x494ad1(0x2a1)](_0x244078[_0x494ad1(0x278)]),_0x2b6692[_0x494ad1(0x1eb)](_0x244078[_0x494ad1(0x222)]),_0x2b6692[_0x494ad1(0x214)](_0x244078[_0x494ad1(0x297)]),_0x595ff8[_0x494ad1(0x24f)](_0x244078['attachment_type'],PLAYWRIGHT_TRACE_LOGS)?(_0x2b6692[_0x494ad1(0x1eb)](_0x244078[_0x494ad1(0x2b5)]),_0x2b6692[_0x494ad1(0x216)](new TextEncoder()[_0x494ad1(0x202)](JSON['stringify'](_0x244078)))):_0x2b6692[_0x494ad1(0x216)](new TextEncoder()[_0x494ad1(0x202)](_0x244078[_0x494ad1(0x2a3)])),_0x2b6692[_0x494ad1(0x285)](_0x244078['level']),_0x2b6692[_0x494ad1(0x239)](_0x244078?.['fileName']||''),_0x2b6692[_0x494ad1(0x28d)](_0x244078?.['filePath']||''),_0x2b6692[_0x494ad1(0x268)](_0x244078?.[_0x494ad1(0x20b)]||0x0),_0x2b6692[_0x494ad1(0x254)](_0x244078?.[_0x494ad1(0x26c)]||''),_0x4f6a86[_0x494ad1(0x208)](_0x2b6692);}),new Promise((_0x5a8097,_0x596924)=>{const _0x3ff4b6=_0x2aaeae,_0x55cae7={'XvwoB':function(_0x374d7b,_0x1ad227){const _0x21fb05=a69_0xb91b;return _0x595ff8[_0x21fb05(0x1d8)](_0x374d7b,_0x1ad227);},'cXHFv':_0x595ff8[_0x3ff4b6(0x1e6)]};this[_0x3ff4b6(0x1f1)][_0x3ff4b6(0x1fe)](_0x4f6a86,(_0x1779f9,_0x3ebf1d)=>{const _0x361993=_0x3ff4b6;if(_0x1779f9){this[_0x361993(0x2ae)][_0x361993(0x204)](_0x361993(0x27f)+_0x1779f9[_0x361993(0x2a3)]),_0x55cae7[_0x361993(0x28e)](_0x596924,_0x1779f9);return;}this[_0x361993(0x2ae)][_0x361993(0x288)](_0x55cae7[_0x361993(0x219)]),_0x55cae7[_0x361993(0x28e)](_0x5a8097,_0x3ebf1d);});});}catch(_0x3a8d5b){this[_0x2aaeae(0x2ae)][_0x2aaeae(0x204)](_0x2aaeae(0x29d)+util['format'](_0x3a8d5b));throw _0x3a8d5b;}}[a69_0x4b9d5e(0x25f)](){const _0x400833=a69_0x4b9d5e;return this[_0x400833(0x1f1)];}[a69_0x4b9d5e(0x21e)](){const _0x166058=a69_0x4b9d5e;return this[_0x166058(0x1db)];}}module[a69_0x4b9d5e(0x2a9)]=GrpcClient;function a69_0x539f(){const _0x42995a=['joxro','setFileName','setFrameworkVersion','zzXgl','frameworkVersion','setProvider','getBrowserstackCliConfig','../../helpers/logger.js','UALEy','28fuxxEn','AccessibilityConfig\x20error:\x20','hash','getAccessibilityConfig','push','AccessibilityConfigRequest','pDjom','\x20and\x20listen\x20address:\x20','PlaywrightConfigRequest','setPlatformIndex','\x20listenAddr:\x20','lRJZB','set','startBinSession','ygFrV','setConfig','end','Error\x20in\x20TestSessionEvent:\x20','connect','setAttachmentType','eFrvs','EHklw','EWqdy','zfnHu','setBinSessionId','testSessionEvent','rvNkC','getInstance','LogEntry','TestFrameworkEvent\x20error:\x20','getClient','setExitReason','resolve','listenAddress','getPlaywrightConfig','PlaywrightConfig\x20request\x20successful','BuUDq','jdxYP','vcCLt','setFileSize','connectBinSession','setTestFramework','SDK_AUTOMATION_FRAMEWORK_INIT','attachment_type','setHash','cgVIU','Initialized\x20gRPC\x20client\x20with\x20bin\x20session\x20id:\x20','SDK_CLI_ON_STOP','setFrameworkSessionId','Error\x20in\x20startBinSession:\x20','frameworkName','spVkO','hubUrl','cwd','setExitCode','timestamp','../../helpers/performance/constants','setSdkVersion','DriverInit\x20request\x20successful','zmkJZ','accessibilityConfig','stop-bin-session\x20response:\x20','LogCreatedEvent\x20error:\x20','StartBinSessionRequest','../../helpers/performance/performance-tester.js','entries','525865dcCgTP','ISWCQ','setLevel','Sending\x20TestFrameworkEvent','StopBinSession\x20error:\x20','info','XEMKi','../utils/constants','setRef','utf-8','setFilePath','XvwoB','addFrameworks','TestFrameworkEvent\x20request\x20successful','StopBinSession\x20successful','uDnOc','setThreadId','setTestHookState','ExecutionContext','winstonLogger','kind','start','provider','version','TestSessionEventRequest','1036dsqcIS','Error\x20in\x20LogCreatedEvent:\x20','stopBinSession','getAutomationFrameworkDetail','WApWD','setTimestamp','setFrameworksList','message','createInsecure','SDKClient','slice','testFrameworkEvent','./browserstackCLI.js','exports','setUserInputParams','binSessionId','JvQIK','Zbnnn','logger','LlKVl','4810572AZFyGV','Unable\x20to\x20determine\x20gRPC\x20server\x20listen\x20address','Missing\x20binSessionId','TestSessionEvent\x20error:\x20','debug','test_run_uuid','8zFBYVm','../../../generated/sdk_grpc_pb','DriverInitRequest','getSdkVersion','driverInit','setExecutionContext','credentials','wnKcT','setCliArgsList','Gzbmq','channel','processId','setTestFrameworkName','Channel','WkTpD','setSdkLanguage','MoxuK','testFrameworkState','setCapabilities','Sending\x20TestSessionEvent','playwrightConfig','czgHj','null','dvqOG','SDK_CONNECT_BIN_SESSION','AutomationSession','setUuid','vGSXp','user_killed','BROWSERSTACK_CONFIG_FILE_PATH','threadId','launchcaps','client','testFrameworkVersion','SDK_START_BIN_SESSION','../../helpers/classLogger.js','PlaywrightConfig\x20error:\x20','avGZO','No\x20gRPC\x20client\x20not\x20initialized.','setStartedAt','setTestFrameworkState','CSGqx','getEnvVarsMap','DriverInit\x20error:\x20','browserstack.yml','logCreatedEvent','StartBinSession\x20successful','setLanguage','env','encode','grpc.keepalive_time_ms','error','format','cSrmX','init','addLogs','setProcessId','aizxo','fileSize','bmHoM','setPathConfig','Error\x20in\x20getPlaywrightConfig:\x20','Bqzza','20572706alhKKt','3962757ktVgsR','@grpc/grpc-js','setCliArgs:\x20cliArgs=','setKind','setFrameworkName','setMessage','BROWSERSTACK_CLI_BIN_SESSION_ID','Error\x20in\x20TestFrameworkEvent:\x20','cXHFv','HVfvk','MJWAf','ref','forEach','getChannel','Sending\x20DriverInit','528rEXtTk','SBQTI','uuid','16339620WtTmGA','from','getFrameworkVersionsMap','stringify','Error\x20in\x20getAccessibilityConfig:\x20','333624Amxmsc','setTestFrameworkVersion','BROWSERSTACK_CLI_BIN_LISTEN_ADDR','rAVRa','setPathProject','getSdkLanguage','GyHdU','LogCreatedEventRequest','4tMHXqe','setTestUuid','Getting\x20Accessibility\x20config','setCustomMetadata','sKemW','Stopping\x20signal\x20','tSLYP','setHubUrl'];a69_0x539f=function(){return _0x42995a;};return a69_0x539f();}
|
|
1
|
+
function a69_0x4c3b(_0x5b5fea,_0x4fd499){const _0x2f33c5=a69_0x2f33();return a69_0x4c3b=function(_0x4c3b6a,_0x5cd1d4){_0x4c3b6a=_0x4c3b6a-0xfe;let _0x31f688=_0x2f33c5[_0x4c3b6a];return _0x31f688;},a69_0x4c3b(_0x5b5fea,_0x4fd499);}function a69_0x2f33(){const _0x5658b1=['uuid','HImie','ccrcH','Riqzc','BROWSERSTACK_CLI_BIN_LISTEN_ADDR','setFrameworkVersion','./browserstackCLI.js','fileName','StopBinSession\x20error:\x20','AccessibilityConfig\x20request\x20successful','winstonLogger','Sending\x20TestSessionEvent','start','../../helpers/performance/performance-tester.js','No\x20gRPC\x20client\x20not\x20initialized.','level','setTestUuid','setProcessId','../../../generated/sdk-messages_pb','setThreadId','testFrameworkName','QmuWF','qaGVy','setHubUrl','Sending\x20DriverInit','setPathConfig','connect-bin-session\x20response:\x20','getFrameworkVersionsMap','setFileName','mrVNW','user_killed','zPxNm','utf-8','entries','setFrameworkName','arNRm','channel','PlaywrightConfig\x20error:\x20','frameworkName','Error\x20in\x20getPlaywrightConfig:\x20','Stopping\x20signal\x20','746865OgcZbr','ajzUj','hash','./cliUtils.js','addFrameworks','\x20and\x20listen\x20address:\x20','HTaFl','getAutomationFrameworkDetail','Connected\x20to\x20gRPC\x20server\x20at\x20','gHAXt','RFHBk','RHAKQ','ExecutionContext','setTestHookState','wuXcE','PhpSP','slice','LogCreatedEventRequest','setFileSize',',\x20parsedConfig=','cwd','zzePf','setPathProject','Nmzro','GBkZF','setExitReason','TestFrameworkEventRequest','gVyxJ','Unable\x20to\x20find\x20listen\x20addr\x20or\x20bin\x20session\x20id\x20binSessionId:\x20','testSessionEvent','AutomationSession','stop-bin-session\x20response:\x20','set','\x20listenAddr:\x20','pvlvE','zcWaG','GfYne','provider','setCapabilities','XjONc','grpc.keepalive_time_ms','DriverInit\x20error:\x20','createInsecure','6936300OjOSnB','ydwYU','error','OrHbW','startBinSession:\x20Calling\x20startBinSession','Error\x20in\x20stopBinSession:\x20','setLanguage','BROWSERSTACK_CONFIG_FILE_PATH','logger','SDK_CONNECT_BIN_SESSION','stringify','setMessage','processId','TestFrameworkEvent\x20request\x20successful','../../../generated/sdk_grpc_pb','logCreatedEvent','setCliArgs:\x20cliArgs=','setTestFrameworkState','binSessionId','setHash','SDK_AUTOMATION_FRAMEWORK_INIT','TKxZM','from','MlOUo','setEndedAt','EGKDC','RdBsR','LogCreatedEvent\x20error:\x20','exports','env','Error\x20in\x20TestSessionEvent:\x20','GrpcClient','setExecutionContext','TestSessionEventRequest','getBrowserstackCliConfig','Blvfp','setBinSessionId','SDK_CLI_ON_STOP','ePflJ','name','Qyree','setLevel','resolve','../utils/constants','setFilePath','BROWSERSTACK_CLI_BIN_SESSION_ID','getInstance','testFrameworkEvent','Unable\x20to\x20determine\x20gRPC\x20server\x20listen\x20address','Error\x20in\x20TestFrameworkEvent:\x20','../../helpers/performance/constants','StartBinSession\x20successful','Connecting\x20bin\x20session','ConnectBinSession\x20successful','test_run_uuid','ihQtu','Sending\x20TestFrameworkEvent','ConnectBinSessionRequest','AccessibilityConfig\x20error:\x20','message','2385980kQABOE','8VoZtBm','getChannel','584ByJAFW','Stopping\x20bin\x20session','setSdkLanguage','Error\x20in\x20getAccessibilityConfig:\x20','init','setConfig','kind','271788enUIYh','TestSessionEvent\x20error:\x20','setUserInputParams','connectBinSession','setEventJson','info','hubUrl','getClient','LogEntry','TestSessionEvent\x20request\x20successful','setRef','../../helpers/helper.js','setPlatformIndex','rBlvN','hImyY','92817PhyDoN','SIRnS','setTestFrameworkName','debug','../../helpers/logger.js','getEnvVarsMap','encode','UjKAz','setTestFrameworkVersion','util','AccessibilityConfigRequest','testFrameworkState','Missing\x20binSessionId','dbVCL','end','eWCyQ','eiNqW','setSdkVersion','StopBinSessionRequest','kHbFV','PlaywrightConfig\x20request\x20successful','AQkrR','startBinSession','setFrameworksList','frameworkVersion','threadId','client','wQvfv','EyYxr','3278545lNqOad','eBbQw','setUuid','browserstackConfigFile','setExitSignal','ref','path','StartBinSession\x20error:\x20','listenAddress','kNmCe','attachment_type','oKFKk','Initialized\x20gRPC\x20client\x20with\x20bin\x20session\x20id:\x20','8533945HRAiNR','credentials','setCliArgsList','piejv','format','setAttachmentType','connect','Error\x20in\x20startBinSession:\x20','getSdkVersion','SDK_START_BIN_SESSION','version','playwrightConfig','stopBinSession','forEach'];a69_0x2f33=function(){return _0x5658b1;};return a69_0x2f33();}const a69_0x9d774b=a69_0x4c3b;(function(_0x576907,_0x29a4c1){const _0x3f059a=a69_0x4c3b,_0x5182bd=_0x576907();while(!![]){try{const _0x4c4f88=parseInt(_0x3f059a(0x1c2))/0x1+parseInt(_0x3f059a(0x1b8))/0x2+-parseInt(_0x3f059a(0x151))/0x3+-parseInt(_0x3f059a(0x1b9))/0x4*(parseInt(_0x3f059a(0x10d))/0x5)+-parseInt(_0x3f059a(0x17c))/0x6+parseInt(_0x3f059a(0x11a))/0x7+-parseInt(_0x3f059a(0x1bb))/0x8*(-parseInt(_0x3f059a(0x1d1))/0x9);if(_0x4c4f88===_0x29a4c1)break;else _0x5182bd['push'](_0x5182bd['shift']());}catch(_0x3fd4ab){_0x5182bd['push'](_0x5182bd['shift']());}}}(a69_0x2f33,0xafdd3));const util=require(a69_0x9d774b(0x1da)),logger=require(a69_0x9d774b(0x1d5))[a69_0x9d774b(0x132)],grpc=require('@grpc/grpc-js'),services=require(a69_0x9d774b(0x18a)),messages=require(a69_0x9d774b(0x13a)),path=require(a69_0x9d774b(0x113)),CLIUtils=require(a69_0x9d774b(0x154)),{createClassLogger}=require('../../helpers/classLogger.js'),PerformanceTester=require(a69_0x9d774b(0x135)),{EVENTS:PerformanceEvents}=require(a69_0x9d774b(0x1ae)),{PLAYWRIGHT_TRACE_LOGS}=require(a69_0x9d774b(0x1a7)),helper=require(a69_0x9d774b(0x1cd));class GrpcClient{static #instance=null;[a69_0x9d774b(0x18e)]=null;[a69_0x9d774b(0x115)]=null;[a69_0x9d774b(0x14c)]=null;[a69_0x9d774b(0x10a)]=null;[a69_0x9d774b(0x184)]=createClassLogger(a69_0x9d774b(0x19b));constructor(){}static[a69_0x9d774b(0x1aa)](){return!GrpcClient.#instance&&(GrpcClient.#instance=new GrpcClient()),GrpcClient.#instance;}[a69_0x9d774b(0x1bf)](_0x2e7962){const _0x2c197e=a69_0x9d774b,_0x4b8cf9={};_0x4b8cf9['MlOUo']=function(_0x2a2b68,_0x5c8347){return _0x2a2b68||_0x5c8347;};const _0x180d42=_0x4b8cf9,{id:_0xc9c926,listen:_0x2e57b7}=_0x2e7962;if(_0x180d42[_0x2c197e(0x193)](!_0xc9c926,!_0x2e57b7))throw new Error(_0x2c197e(0x16d)+_0xc9c926+_0x2c197e(0x172)+_0x2e57b7);this[_0x2c197e(0x18e)]=_0xc9c926,this[_0x2c197e(0x115)]=_0x2e57b7,process[_0x2c197e(0x199)]['BROWSERSTACK_CLI_BIN_SESSION_ID']=this[_0x2c197e(0x18e)],process['env'][_0x2c197e(0x12c)]=this[_0x2c197e(0x115)],this[_0x2c197e(0x120)](),this[_0x2c197e(0x184)][_0x2c197e(0x1c7)](_0x2c197e(0x119)+this['binSessionId']+_0x2c197e(0x156)+this[_0x2c197e(0x115)]);}['connect'](){const _0x524ab2=a69_0x9d774b,_0x393023={};_0x393023[_0x524ab2(0x178)]=_0x524ab2(0x1ac);const _0xc427c9=_0x393023;let _0x4d74aa=this[_0x524ab2(0x115)];!_0x4d74aa&&(_0x4d74aa=process[_0x524ab2(0x199)][_0x524ab2(0x12c)]);!this[_0x524ab2(0x18e)]&&(this[_0x524ab2(0x18e)]=this[_0x524ab2(0x18e)]||process[_0x524ab2(0x199)][_0x524ab2(0x1a9)]);if(!_0x4d74aa)throw new Error(_0xc427c9['XjONc']);const _0x4fcd18={};_0x4fcd18[_0x524ab2(0x179)]=0x2710,this[_0x524ab2(0x14c)]=new grpc['Channel'](_0x4d74aa,grpc[_0x524ab2(0x11b)][_0x524ab2(0x17b)](),_0x4fcd18),this['client']=new services['SDKClient'](_0x4d74aa,grpc[_0x524ab2(0x11b)][_0x524ab2(0x17b)]()),this[_0x524ab2(0x184)]['info'](_0x524ab2(0x159)+_0x4d74aa);}async[a69_0x9d774b(0x106)](){const _0x35102c=a69_0x9d774b,_0x58bd4e={'eWCyQ':function(_0x175690,_0x11bdba){return _0x175690!==_0x11bdba;},'eBbQw':function(_0xd7f93,_0x378d2d){return _0xd7f93(_0x378d2d);},'wQvfv':_0x35102c(0x1af),'kNmCe':_0x35102c(0x180),'AQkrR':'No\x20gRPC\x20client\x20not\x20initialized.','wyhXn':_0x35102c(0x12e),'qaGVy':function(_0x3526f4,_0x429d51){return _0x3526f4 instanceof _0x429d51;},'ePflJ':function(_0x57263d,_0x3a649c){return _0x57263d===_0x3a649c;},'KVhfO':_0x35102c(0x110),'gHAXt':'browserstack.yml','kHbFV':'null','QmuWF':function(_0x5a34d4,_0x36f25a){return _0x5a34d4||_0x36f25a;}};PerformanceTester['start'](PerformanceEvents[_0x35102c(0x123)]),this[_0x35102c(0x184)]['info'](_0x58bd4e[_0x35102c(0x116)]);try{!this[_0x35102c(0x10a)]&&this[_0x35102c(0x184)][_0x35102c(0x1c7)](_0x58bd4e[_0x35102c(0x105)]);const _0x1a99c6=CLIUtils[_0x35102c(0x122)](),_0x94dc27=CLIUtils['getAutomationFrameworkDetail'](),_0x4b5014=_0x94dc27[_0x35102c(0x1a3)],_0x323ccf=_0x94dc27[_0x35102c(0x124)],_0x572f0a=new messages['StartBinSessionRequest']();_0x572f0a[_0x35102c(0x1a0)](this['binSessionId']),_0x572f0a[_0x35102c(0x1bd)](CLIUtils['getSdkLanguage']()),_0x572f0a[_0x35102c(0x101)](_0x1a99c6),_0x572f0a[_0x35102c(0x167)](process['cwd']());const _0x4f9e7d=_0x572f0a[_0x35102c(0x1d6)]();Object[_0x35102c(0x149)](process[_0x35102c(0x199)])[_0x35102c(0x127)](([_0x45ee98,_0x1fc1bb])=>{const _0x2d76db=_0x35102c;_0x58bd4e[_0x2d76db(0xff)](_0x1fc1bb,undefined)&&_0x58bd4e[_0x2d76db(0xff)](_0x1fc1bb,null)&&_0x4f9e7d[_0x2d76db(0x171)](_0x45ee98,_0x1fc1bb);});const _0x4f178e=_0x58bd4e[_0x35102c(0x10e)](require,_0x58bd4e['wyhXn']),_0x194d5f=_0x4f178e[_0x35102c(0x1aa)]()[_0x35102c(0x19e)](),_0xa058a2=[];_0x194d5f&&_0x58bd4e[_0x35102c(0x13e)](_0x194d5f,Map)&&_0x194d5f[_0x35102c(0x127)]((_0x3c36c2,_0x47e476)=>{_0xa058a2['push'](_0x47e476+'='+_0x3c36c2);});const _0x32c74d=process['argv'][_0x35102c(0x161)](0x2);_0x572f0a[_0x35102c(0x11c)]([..._0x32c74d,..._0xa058a2]);let _0x1fc999=null;if(_0x194d5f)for(const [_0x302999,_0x2c7c5e]of _0x194d5f){if(_0x58bd4e[_0x35102c(0x1a2)](_0x302999,_0x58bd4e['KVhfO'])){_0x1fc999=_0x2c7c5e;break;}}if(_0x1fc999)_0x572f0a['setPathConfig'](_0x1fc999);else process[_0x35102c(0x199)][_0x35102c(0x183)]?_0x572f0a[_0x35102c(0x141)](process[_0x35102c(0x199)]['BROWSERSTACK_CONFIG_FILE_PATH']):_0x572f0a[_0x35102c(0x141)](path[_0x35102c(0x1a6)](process[_0x35102c(0x165)](),_0x58bd4e[_0x35102c(0x15a)]));this[_0x35102c(0x184)]['info'](_0x35102c(0x18c)+JSON[_0x35102c(0x186)](_0x32c74d)+_0x35102c(0x164)+(_0x194d5f?JSON[_0x35102c(0x186)]([..._0x194d5f]):_0x58bd4e[_0x35102c(0x103)])),_0x572f0a[_0x35102c(0x182)](CLIUtils['getSdkLanguage']()),_0x572f0a['setTestFramework'](_0x4b5014);const _0x4e1d3c=_0x572f0a[_0x35102c(0x143)]();return _0x4e1d3c[_0x35102c(0x171)](_0x4b5014,_0x58bd4e[_0x35102c(0x13d)](_0x323ccf,'')),_0x572f0a[_0x35102c(0x155)](_0x4b5014,_0x323ccf),_0x572f0a[_0x35102c(0x107)]([_0x4b5014]),new Promise((_0x4c4464,_0xabfba3)=>{const _0x405d79=_0x35102c,_0x3072d5={'EGKDC':function(_0x56dccd,_0x4a33be){const _0xb7b36e=a69_0x4c3b;return _0x58bd4e[_0xb7b36e(0x10e)](_0x56dccd,_0x4a33be);},'gjLYU':_0x58bd4e[_0x405d79(0x10b)],'RHAKQ':function(_0x509f8a,_0xd0d7c1){const _0x3b2e3e=_0x405d79;return _0x58bd4e[_0x3b2e3e(0x10e)](_0x509f8a,_0xd0d7c1);}};this[_0x405d79(0x10a)]['startBinSession'](_0x572f0a,(_0x3a8af8,_0x4d8db4)=>{const _0xceafe=_0x405d79;if(_0x3a8af8){this[_0xceafe(0x184)][_0xceafe(0x17e)](_0xceafe(0x114)+_0x3a8af8['message']),_0x3072d5[_0xceafe(0x195)](_0xabfba3,_0x3a8af8),PerformanceTester[_0xceafe(0xfe)](PerformanceEvents['SDK_START_BIN_SESSION'],![],util[_0xceafe(0x11e)](_0x3a8af8));return;}this[_0xceafe(0x184)]['info'](_0x3072d5['gjLYU']),PerformanceTester['end'](PerformanceEvents[_0xceafe(0x123)]),_0x3072d5[_0xceafe(0x15c)](_0x4c4464,_0x4d8db4);});});}catch(_0x25112d){this[_0x35102c(0x184)]['error'](_0x35102c(0x121)+util['format'](_0x25112d)),PerformanceTester[_0x35102c(0xfe)](PerformanceEvents['SDK_START_BIN_SESSION'],![],util['format'](_0x25112d));throw _0x25112d;}}async[a69_0x9d774b(0x1c5)](){const _0x2d10d9=a69_0x9d774b,_0x5aae58={'oKFKk':function(_0x3eda4f,_0x209717){return _0x3eda4f(_0x209717);},'OrHbW':_0x2d10d9(0x1b1),'GfYne':_0x2d10d9(0x1b0),'zcWaG':_0x2d10d9(0x136)};PerformanceTester[_0x2d10d9(0x134)](PerformanceEvents['SDK_CONNECT_BIN_SESSION']),this['logger'][_0x2d10d9(0x1c7)](_0x5aae58[_0x2d10d9(0x175)]);try{!this['client']&&this[_0x2d10d9(0x184)][_0x2d10d9(0x1c7)](_0x5aae58[_0x2d10d9(0x174)]);const _0x10832c=new messages[(_0x2d10d9(0x1b5))]();_0x10832c[_0x2d10d9(0x1a0)](this['binSessionId']);const _0x16b030=await new Promise((_0x4ab3fc,_0x102f4e)=>{const _0x2bba12=_0x2d10d9,_0x263f07={'iPGWl':function(_0x1ea7ad,_0x1be39b){const _0x5116c6=a69_0x4c3b;return _0x5aae58[_0x5116c6(0x118)](_0x1ea7ad,_0x1be39b);},'nvqaS':_0x5aae58[_0x2bba12(0x17f)],'GBkZF':function(_0x3e1800,_0x5d3f58){const _0x149cba=_0x2bba12;return _0x5aae58[_0x149cba(0x118)](_0x3e1800,_0x5d3f58);}};this['client'][_0x2bba12(0x1c5)](_0x10832c,(_0x59fb6a,_0x4d24e0)=>{const _0x3df901=_0x2bba12;if(_0x59fb6a){this[_0x3df901(0x184)][_0x3df901(0x17e)]('ConnectBinSession\x20error:\x20'+_0x59fb6a[_0x3df901(0x1b7)]),_0x263f07['iPGWl'](_0x102f4e,_0x59fb6a),PerformanceTester[_0x3df901(0xfe)](PerformanceEvents['SDK_CONNECT_BIN_SESSION'],![],util[_0x3df901(0x11e)](_0x59fb6a));return;}this['logger'][_0x3df901(0x1c7)](_0x263f07['nvqaS']),PerformanceTester['end'](PerformanceEvents[_0x3df901(0x185)]),_0x263f07[_0x3df901(0x169)](_0x4ab3fc,_0x4d24e0);});});return this['logger']['debug'](_0x2d10d9(0x142)+util[_0x2d10d9(0x11e)](_0x16b030)),_0x16b030;}catch(_0x21bc1e){PerformanceTester['end'](PerformanceEvents[_0x2d10d9(0x185)],![],util[_0x2d10d9(0x11e)](_0x21bc1e)),this[_0x2d10d9(0x184)][_0x2d10d9(0x17e)]('Error\x20in\x20connectBinSession:\x20'+util[_0x2d10d9(0x11e)](_0x21bc1e));throw _0x21bc1e;}}async[a69_0x9d774b(0x126)](_0x17b08c={},_0x26f31e=null){const _0x5d671f=a69_0x9d774b,_0x1462c9={'gVyxJ':function(_0x394f32,_0x27c85f){return _0x394f32(_0x27c85f);},'ASRAj':'StopBinSession\x20successful','arNRm':_0x5d671f(0x1bc),'KEWKa':_0x5d671f(0x1dd),'zPxNm':_0x5d671f(0x136),'PhpSP':_0x5d671f(0x146)};PerformanceTester[_0x5d671f(0x134)](PerformanceEvents[_0x5d671f(0x1a1)]),this['logger'][_0x5d671f(0x1c7)](_0x1462c9[_0x5d671f(0x14b)]);try{if(!this[_0x5d671f(0x18e)])throw new Error(_0x1462c9['KEWKa']);!this[_0x5d671f(0x10a)]&&this[_0x5d671f(0x184)][_0x5d671f(0x1c7)](_0x1462c9[_0x5d671f(0x147)]);const _0x11122f=new messages[(_0x5d671f(0x102))]();this[_0x5d671f(0x184)][_0x5d671f(0x1d4)](_0x5d671f(0x150)+JSON[_0x5d671f(0x186)](_0x26f31e)),_0x11122f[_0x5d671f(0x1a0)](this[_0x5d671f(0x18e)]),_0x11122f['setCustomMetadata'](_0x17b08c),_0x11122f[_0x5d671f(0x111)](_0x26f31e?_0x26f31e:null),_0x11122f[_0x5d671f(0x16a)](_0x26f31e?_0x1462c9[_0x5d671f(0x160)]:null),_0x11122f['setExitCode'](_0x26f31e?0x1:0x0);const _0x4e0cc8=await new Promise((_0x3c7a78,_0xf37aa3)=>{const _0x22318c=_0x5d671f;this[_0x22318c(0x10a)][_0x22318c(0x126)](_0x11122f,(_0xc9ee5d,_0x46734e)=>{const _0x5ccaaf=_0x22318c;if(_0xc9ee5d){this['logger']['error'](_0x5ccaaf(0x130)+_0xc9ee5d[_0x5ccaaf(0x1b7)]),_0x1462c9[_0x5ccaaf(0x16c)](_0xf37aa3,_0xc9ee5d),PerformanceTester[_0x5ccaaf(0xfe)](PerformanceEvents['SDK_CLI_ON_STOP'],![],util[_0x5ccaaf(0x11e)](_0xc9ee5d));return;}this[_0x5ccaaf(0x184)][_0x5ccaaf(0x1c7)](_0x1462c9['ASRAj']),PerformanceTester[_0x5ccaaf(0xfe)](PerformanceEvents['SDK_CLI_ON_STOP']),_0x1462c9['gVyxJ'](_0x3c7a78,_0x46734e);});});return this[_0x5d671f(0x184)][_0x5d671f(0x1d4)](_0x5d671f(0x170)+util['format'](_0x4e0cc8)),_0x4e0cc8;}catch(_0x422b3e){PerformanceTester['end'](PerformanceEvents[_0x5d671f(0x1a1)],![],util['format'](_0x422b3e)),this['logger'][_0x5d671f(0x17e)](_0x5d671f(0x181)+util['format'](_0x422b3e));}}async['getPlaywrightConfig'](_0x45ebcb){const _0x37f781=a69_0x9d774b,_0x5a2ee5={'HImie':function(_0x4c304e,_0x2e08ae){return _0x4c304e(_0x2e08ae);},'RdBsR':_0x37f781(0x104),'xfkTl':'Getting\x20Playwright\x20config','Riqzc':_0x37f781(0x136)};PerformanceTester[_0x37f781(0x134)](PerformanceEvents[_0x37f781(0x190)]),this[_0x37f781(0x184)][_0x37f781(0x1c7)](_0x5a2ee5['xfkTl']);try{!this['client']&&this['logger'][_0x37f781(0x1c7)](_0x5a2ee5[_0x37f781(0x12b)]);const _0x5e7ff8=new messages['PlaywrightConfigRequest']();return _0x5e7ff8['setBinSessionId'](this[_0x37f781(0x18e)]),_0x5e7ff8[_0x37f781(0x1c0)](JSON[_0x37f781(0x186)](_0x45ebcb)),new Promise((_0x505c25,_0x5217f9)=>{const _0x2eb0c4=_0x37f781,_0x221f62={'EyYxr':function(_0x3c3207,_0x1889fa){const _0x483d1b=a69_0x4c3b;return _0x5a2ee5[_0x483d1b(0x129)](_0x3c3207,_0x1889fa);},'wuXcE':_0x5a2ee5[_0x2eb0c4(0x196)],'TKxZM':function(_0x3bbf10,_0x3a1c1c){const _0x333947=_0x2eb0c4;return _0x5a2ee5[_0x333947(0x129)](_0x3bbf10,_0x3a1c1c);}};this[_0x2eb0c4(0x10a)][_0x2eb0c4(0x125)](_0x5e7ff8,(_0x23d6ec,_0x4e8155)=>{const _0x5a42f0=_0x2eb0c4;if(_0x23d6ec){this[_0x5a42f0(0x184)][_0x5a42f0(0x17e)](_0x5a42f0(0x14d)+_0x23d6ec[_0x5a42f0(0x1b7)]),_0x221f62[_0x5a42f0(0x10c)](_0x5217f9,_0x23d6ec),PerformanceTester[_0x5a42f0(0xfe)](PerformanceEvents[_0x5a42f0(0x190)],![],util[_0x5a42f0(0x11e)](_0x23d6ec));return;}this[_0x5a42f0(0x184)]['info'](_0x221f62[_0x5a42f0(0x15f)]),PerformanceTester[_0x5a42f0(0xfe)](PerformanceEvents[_0x5a42f0(0x190)]),_0x221f62[_0x5a42f0(0x191)](_0x505c25,_0x4e8155);});});}catch(_0x43c169){PerformanceTester[_0x37f781(0xfe)](PerformanceEvents[_0x37f781(0x190)],![],util[_0x37f781(0x11e)](_0x43c169)),this[_0x37f781(0x184)][_0x37f781(0x17e)](_0x37f781(0x14f)+util[_0x37f781(0x11e)](_0x43c169));throw _0x43c169;}}async['getAccessibilityConfig'](_0x1fee3f){const _0x47e2e8=a69_0x9d774b,_0x1e1d9b={'dbVCL':function(_0x5f40db,_0x34149d){return _0x5f40db(_0x34149d);},'ydwYU':_0x47e2e8(0x131),'ihQtu':function(_0x229bbb,_0x152f75){return _0x229bbb(_0x152f75);},'UjKAz':'Getting\x20Accessibility\x20config','TNdbe':_0x47e2e8(0x148)};this[_0x47e2e8(0x184)][_0x47e2e8(0x1c7)](_0x1e1d9b[_0x47e2e8(0x1d8)]);try{const _0x110b5c=Buffer[_0x47e2e8(0x192)](JSON[_0x47e2e8(0x186)](_0x1fee3f['launchcaps']),_0x1e1d9b['TNdbe']),_0x34e293=new messages[(_0x47e2e8(0x1db))](),_0x4745dd=CLIUtils[_0x47e2e8(0x158)](),_0x387fb9=_0x4745dd[_0x47e2e8(0x1a3)],_0x2db1eb=_0x4745dd['version'];return _0x34e293['setBinSessionId'](this[_0x47e2e8(0x18e)]),_0x34e293[_0x47e2e8(0x1ce)](0x0),_0x34e293[_0x47e2e8(0x14a)](_0x387fb9),_0x34e293[_0x47e2e8(0x12d)](_0x2db1eb),_0x34e293[_0x47e2e8(0x13f)](_0x1fee3f[_0x47e2e8(0x1c8)]),_0x34e293[_0x47e2e8(0x177)](_0x110b5c),new Promise((_0x4a3004,_0x4e7b13)=>{const _0x3d355c=_0x47e2e8,_0x3ef19f={'GsuVd':function(_0x37ae59,_0x185af2){const _0x18cb4c=a69_0x4c3b;return _0x1e1d9b[_0x18cb4c(0x1de)](_0x37ae59,_0x185af2);},'rBlvN':_0x1e1d9b[_0x3d355c(0x17d)],'zzePf':function(_0x9300b6,_0x429438){const _0x53296e=_0x3d355c;return _0x1e1d9b[_0x53296e(0x1b3)](_0x9300b6,_0x429438);}};this[_0x3d355c(0x10a)]['accessibilityConfig'](_0x34e293,(_0x21078d,_0x41c61e)=>{const _0x238b8d=_0x3d355c;if(_0x21078d){this[_0x238b8d(0x184)]['error'](_0x238b8d(0x1b6)+_0x21078d['message']),_0x3ef19f['GsuVd'](_0x4e7b13,_0x21078d);return;}this[_0x238b8d(0x184)]['info'](_0x3ef19f[_0x238b8d(0x1cf)]),_0x3ef19f[_0x238b8d(0x166)](_0x4a3004,_0x41c61e);});});}catch(_0x57feb7){this['logger'][_0x47e2e8(0x17e)](_0x47e2e8(0x1be)+util[_0x47e2e8(0x11e)](_0x57feb7));}}async[a69_0x9d774b(0x16e)](_0xa74cc){const _0x234ecd=a69_0x9d774b,_0x357a42={'midHA':function(_0x5ebd3b,_0xe0bde9){return _0x5ebd3b(_0xe0bde9);},'Blvfp':_0x234ecd(0x1cb),'ltqGY':_0x234ecd(0x133),'SIRnS':_0x234ecd(0x136)};this[_0x234ecd(0x184)][_0x234ecd(0x1c7)](_0x357a42['ltqGY']);try{!this[_0x234ecd(0x10a)]&&this[_0x234ecd(0x184)]['info'](_0x357a42[_0x234ecd(0x1d2)]);const {platformIndex:_0x15d2cd,testFrameworkName:_0x57b154,testFrameworkVersion:_0x47dae2,testFrameworkState:_0x5a3122,testHookState:_0x54b1e3,testUuid:_0xee26cd,automationSession:_0x1e0207,capabilities:_0x5a3857,executionContext:_0x4e15a3}=_0xa74cc,_0x31d30c=new messages[(_0x234ecd(0x19d))]();_0x31d30c[_0x234ecd(0x1a0)](this[_0x234ecd(0x18e)]),_0x31d30c['setPlatformIndex'](_0x15d2cd),_0x31d30c[_0x234ecd(0x1d3)](_0x57b154),_0x31d30c['setTestFrameworkVersion'](_0x47dae2),_0x31d30c['setTestFrameworkState'](_0x5a3122),_0x31d30c[_0x234ecd(0x15e)](_0x54b1e3),_0x31d30c[_0x234ecd(0x138)](_0xee26cd);const _0xe9ac5=new messages[(_0x234ecd(0x19d))][(_0x234ecd(0x16f))]();_0xe9ac5['setProvider'](_0x1e0207[_0x234ecd(0x176)]),_0xe9ac5[_0x234ecd(0x14a)](_0x1e0207[_0x234ecd(0x14e)]),_0xe9ac5[_0x234ecd(0x12d)](_0x1e0207[_0x234ecd(0x108)]),_0xe9ac5['setFrameworkSessionId'](_0x1e0207['frameworkSessionId']),_0xe9ac5[_0x234ecd(0x1cc)](_0x1e0207[_0x234ecd(0x112)]),_0xe9ac5['setHubUrl'](_0x1e0207[_0x234ecd(0x1c8)]),_0x31d30c['addAutomationSessions'](_0xe9ac5),_0x31d30c['setCapabilities'](_0x5a3857);const _0x19988f=new messages[(_0x234ecd(0x15d))]();return _0x19988f[_0x234ecd(0x139)](_0x4e15a3['processId']),_0x19988f[_0x234ecd(0x13b)](_0x4e15a3['threadId']),_0x19988f[_0x234ecd(0x18f)](_0x4e15a3[_0x234ecd(0x153)]),_0x31d30c[_0x234ecd(0x19c)](_0x19988f),new Promise((_0xddb36f,_0x43f722)=>{const _0x33ba39=_0x234ecd,_0x442225={'ANZGR':function(_0x1c9627,_0x261d61){return _0x357a42['midHA'](_0x1c9627,_0x261d61);},'mrVNW':_0x357a42[_0x33ba39(0x19f)],'RFHBk':function(_0x1fe90e,_0x4a7ed6){return _0x357a42['midHA'](_0x1fe90e,_0x4a7ed6);}};this['client'][_0x33ba39(0x16e)](_0x31d30c,(_0x39a291,_0x5cf89a)=>{const _0x394b10=_0x33ba39;if(_0x39a291){this[_0x394b10(0x184)][_0x394b10(0x17e)](_0x394b10(0x1c3)+_0x39a291['message']),_0x442225['ANZGR'](_0x43f722,_0x39a291);return;}this['logger']['info'](_0x442225[_0x394b10(0x145)]),_0x442225[_0x394b10(0x15b)](_0xddb36f,_0x5cf89a);});});}catch(_0x14ddff){this[_0x234ecd(0x184)][_0x234ecd(0x17e)](_0x234ecd(0x19a)+util['format'](_0x14ddff));throw _0x14ddff;}}async[a69_0x9d774b(0x1ab)](_0x4970b0){const _0x420784=a69_0x9d774b,_0x48d047={'hImyY':function(_0x313cb9,_0x20838e){return _0x313cb9(_0x20838e);},'ROLwO':_0x420784(0x189),'ccrcH':function(_0x52e3f6,_0x34ab10){return _0x52e3f6(_0x34ab10);},'ZhUYs':_0x420784(0x1b4),'piejv':_0x420784(0x136)};this[_0x420784(0x184)][_0x420784(0x1c7)](_0x48d047['ZhUYs']);try{!this[_0x420784(0x10a)]&&this['logger'][_0x420784(0x1c7)](_0x48d047[_0x420784(0x11d)]);const {platfromIndex:_0x2d7e4f,testFrameworkName:_0x36ae11,testFrameworkVersion:_0x557141,testFrameworkState:_0x1613a2,hookState:_0x3eab7e,startedAt:_0x47a549,endedAt:_0x4212f2,uuid:_0x2a68f0,eventJson:_0x2c6e9f,executionContext:_0x2195fe}=_0x4970b0,_0x42a1b4=new messages[(_0x420784(0x16b))]();_0x42a1b4[_0x420784(0x1a0)](this[_0x420784(0x18e)]),_0x42a1b4[_0x420784(0x1ce)](_0x2d7e4f),_0x42a1b4[_0x420784(0x1d3)](_0x36ae11),_0x42a1b4[_0x420784(0x1d9)](_0x557141),_0x42a1b4[_0x420784(0x18d)](_0x1613a2),_0x42a1b4[_0x420784(0x15e)](_0x3eab7e),_0x42a1b4['setStartedAt'](_0x47a549),_0x42a1b4[_0x420784(0x194)](_0x4212f2),_0x42a1b4['setUuid'](_0x2a68f0),_0x42a1b4[_0x420784(0x1c6)](_0x2c6e9f);const _0x23453f=new messages[(_0x420784(0x15d))]();return _0x23453f[_0x420784(0x139)](_0x2195fe[_0x420784(0x188)]),_0x23453f[_0x420784(0x13b)](_0x2195fe[_0x420784(0x109)]),_0x23453f[_0x420784(0x18f)](_0x2195fe[_0x420784(0x153)]),_0x42a1b4[_0x420784(0x19c)](_0x23453f),new Promise((_0x440505,_0x9e4e17)=>{const _0x1bf7a1=_0x420784;this['client'][_0x1bf7a1(0x1ab)](_0x42a1b4,(_0x463020,_0x1ac843)=>{const _0xc0a19=_0x1bf7a1;if(_0x463020){this[_0xc0a19(0x184)][_0xc0a19(0x17e)]('TestFrameworkEvent\x20error:\x20'+_0x463020['message']),_0x48d047[_0xc0a19(0x1d0)](_0x9e4e17,_0x463020);return;}this[_0xc0a19(0x184)]['info'](_0x48d047['ROLwO']),_0x48d047[_0xc0a19(0x12a)](_0x440505,_0x1ac843);});});}catch(_0x473c0a){this[_0x420784(0x184)]['error'](_0x420784(0x1ad)+util[_0x420784(0x11e)](_0x473c0a));throw _0x473c0a;}}async['driverInit'](_0xa4fdf7){const _0x57477c=a69_0x9d774b,_0x1b52f3={'WjNhB':function(_0x31f90f,_0x22a076){return _0x31f90f(_0x22a076);},'kybUt':'DriverInit\x20request\x20successful','Nmzro':function(_0x9c0c33,_0x299512){return _0x9c0c33(_0x299512);},'ajzUj':_0x57477c(0x140),'vLIQa':_0x57477c(0x136)};this[_0x57477c(0x184)][_0x57477c(0x1c7)](_0x1b52f3[_0x57477c(0x152)]);try{!this[_0x57477c(0x10a)]&&this['logger'][_0x57477c(0x1c7)](_0x1b52f3['vLIQa']);const {platformIndex:_0xfccab8,ref:_0x3fe364,userInputParams:_0x4666c9}=_0xa4fdf7,_0x4f4e2e=new messages['DriverInitRequest']();return _0x4f4e2e[_0x57477c(0x1a0)](this['binSessionId']),_0x4f4e2e['setPlatformIndex'](_0xfccab8),_0x4f4e2e[_0x57477c(0x1cc)](_0x3fe364),_0x4f4e2e[_0x57477c(0x1c4)](_0x4666c9),new Promise((_0x21983a,_0x19dcda)=>{this['client']['driverInit'](_0x4f4e2e,(_0x389650,_0x55bd24)=>{const _0x5998dd=a69_0x4c3b;if(_0x389650){this['logger']['error'](_0x5998dd(0x17a)+_0x389650[_0x5998dd(0x1b7)]),_0x1b52f3['WjNhB'](_0x19dcda,_0x389650);return;}this[_0x5998dd(0x184)]['info'](_0x1b52f3['kybUt']),_0x1b52f3[_0x5998dd(0x168)](_0x21983a,_0x55bd24);});});}catch(_0xba9b62){this[_0x57477c(0x184)][_0x57477c(0x17e)]('Error\x20in\x20DriverInit:\x20'+util[_0x57477c(0x11e)](_0xba9b62));throw _0xba9b62;}}async[a69_0x9d774b(0x18b)](_0x29a3e4){const _0x45d98b=a69_0x9d774b,_0x3c4226={'Qyree':function(_0x4d86e7,_0x2abc73){return _0x4d86e7===_0x2abc73;},'pvlvE':function(_0x2337fa,_0x18ebd5){return _0x2337fa(_0x18ebd5);},'eiNqW':'LogCreatedEvent\x20request\x20successful','HTaFl':function(_0x3b8fa8,_0x1e8949){return _0x3b8fa8(_0x1e8949);},'Rgezj':'Sending\x20LogCreatedEvent','Nhudl':'No\x20gRPC\x20client\x20not\x20initialized.'};this[_0x45d98b(0x184)]['info'](_0x3c4226['Rgezj']);try{!this['client']&&this['logger'][_0x45d98b(0x1c7)](_0x3c4226['Nhudl']);const {platformIndex:_0x431453,logs:_0x59bc8e}=_0x29a3e4,_0x5e51d9=new messages[(_0x45d98b(0x162))]();_0x5e51d9[_0x45d98b(0x1a0)](this[_0x45d98b(0x18e)]),_0x5e51d9[_0x45d98b(0x1ce)](_0x431453);const _0x5e932a=_0x29a3e4[_0x45d98b(0x13c)],_0x98add3=_0x29a3e4['testFrameworkVersion'],_0x1345dc=_0x29a3e4[_0x45d98b(0x1dc)];return _0x59bc8e['forEach'](_0xf319c6=>{const _0x530f0d=_0x45d98b,_0x2137db=new messages[(_0x530f0d(0x162))][(_0x530f0d(0x1ca))]();_0x2137db[_0x530f0d(0x1d3)](_0x5e932a),_0x2137db[_0x530f0d(0x1d9)](_0x98add3),_0x2137db[_0x530f0d(0x18d)](_0x1345dc),_0x2137db['setTimestamp'](_0xf319c6['timestamp']),_0x2137db[_0x530f0d(0x10f)](_0xf319c6[_0x530f0d(0x128)]),_0x2137db['setKind'](_0xf319c6[_0x530f0d(0x1c1)]),_0x3c4226[_0x530f0d(0x1a4)](_0xf319c6[_0x530f0d(0x117)],PLAYWRIGHT_TRACE_LOGS)?(_0x2137db['setUuid'](_0xf319c6[_0x530f0d(0x1b2)]),_0x2137db[_0x530f0d(0x187)](new TextEncoder()[_0x530f0d(0x1d7)](JSON[_0x530f0d(0x186)](_0xf319c6)))):_0x2137db[_0x530f0d(0x187)](new TextEncoder()['encode'](_0xf319c6['message'])),_0x2137db[_0x530f0d(0x1a5)](_0xf319c6[_0x530f0d(0x137)]),_0x2137db[_0x530f0d(0x144)](_0xf319c6?.[_0x530f0d(0x12f)]||''),_0x2137db[_0x530f0d(0x1a8)](_0xf319c6?.['filePath']||''),_0x2137db[_0x530f0d(0x163)](_0xf319c6?.['fileSize']||0x0),_0x2137db[_0x530f0d(0x11f)](_0xf319c6?.[_0x530f0d(0x117)]||''),_0x5e51d9['addLogs'](_0x2137db);}),new Promise((_0x20e644,_0x4a4016)=>{const _0x169ecf=_0x45d98b;this[_0x169ecf(0x10a)]['logCreatedEvent'](_0x5e51d9,(_0x2a3e68,_0x2d2a4a)=>{const _0x4dc8d0=_0x169ecf;if(_0x2a3e68){this[_0x4dc8d0(0x184)][_0x4dc8d0(0x17e)](_0x4dc8d0(0x197)+_0x2a3e68[_0x4dc8d0(0x1b7)]),_0x3c4226[_0x4dc8d0(0x173)](_0x4a4016,_0x2a3e68);return;}this[_0x4dc8d0(0x184)][_0x4dc8d0(0x1c7)](_0x3c4226[_0x4dc8d0(0x100)]),_0x3c4226[_0x4dc8d0(0x157)](_0x20e644,_0x2d2a4a);});});}catch(_0x46f29a){this[_0x45d98b(0x184)]['error']('Error\x20in\x20LogCreatedEvent:\x20'+util[_0x45d98b(0x11e)](_0x46f29a));throw _0x46f29a;}}[a69_0x9d774b(0x1c9)](){const _0x4c7bbd=a69_0x9d774b;return this[_0x4c7bbd(0x10a)];}[a69_0x9d774b(0x1ba)](){const _0x355fbb=a69_0x9d774b;return this[_0x355fbb(0x14c)];}}module[a69_0x9d774b(0x198)]=GrpcClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x45509c=a70_0x46d4;function a70_0x491d(){const _0x2b6e9b=['328sqROVX','271642LEmkfN','4303755lNaDVl','frameworkName','split','createdAt','getFrameworkName','lastState','5ROCMzt','getFrameworkVersion','frameworkVersion','./trackedInstance','../state/automationFrameworkState','toLocaleString','getState','yhUmM','1449248WZIqAu','1896913RnKMcT','NONE','4LSXTug','1414810iTeiuj','9639690yZccmg','state','exports','648441EIJRHw','setState'];a70_0x491d=function(){return _0x2b6e9b;};return a70_0x491d();}(function(_0x223ae6,_0x27ed93){const _0x2210fc=a70_0x46d4,_0x3923c5=_0x223ae6();while(!![]){try{const _0x2d3b7b=parseInt(_0x2210fc(0x13f))/0x1+parseInt(_0x2210fc(0x13e))/0x2+parseInt(_0x2210fc(0x130))/0x3*(-parseInt(_0x2210fc(0x141))/0x4)+-parseInt(_0x2210fc(0x136))/0x5*(parseInt(_0x2210fc(0x143))/0x6)+parseInt(_0x2210fc(0x12f))/0x7*(parseInt(_0x2210fc(0x12e))/0x8)+-parseInt(_0x2210fc(0x12c))/0x9+-parseInt(_0x2210fc(0x142))/0xa;if(_0x2d3b7b===_0x27ed93)break;else _0x3923c5['push'](_0x3923c5['shift']());}catch(_0x30e431){_0x3923c5['push'](_0x3923c5['shift']());}}}(a70_0x491d,0xe9d9d));function a70_0x46d4(_0x46af93,_0xd485da){const _0x491d6e=a70_0x491d();return a70_0x46d4=function(_0x46d4be,_0x410976){_0x46d4be=_0x46d4be-0x12b;let _0x29ff8a=_0x491d6e[_0x46d4be];return _0x29ff8a;},a70_0x46d4(_0x46af93,_0xd485da);}const AutomationFrameworkState=require(a70_0x45509c(0x13a)),TrackedInstance=require(a70_0x45509c(0x139)),now=new Date();class AutomationFrameworkInstance extends TrackedInstance{constructor(_0x52f33f,_0x5965bd,_0x29f5c3,_0x547b86){const _0x405055=a70_0x45509c,_0xd0ce64={};_0xd0ce64['yhUmM']='2|3|0|5|4|1';const _0x488d86=_0xd0ce64,_0x59dea7=_0x488d86[_0x405055(0x13d)][_0x405055(0x132)]('|');let _0x52c27c=0x0;while(!![]){switch(_0x59dea7[_0x52c27c++]){case'0':this[_0x405055(0x138)]=_0x29f5c3;continue;case'1':this[_0x405055(0x133)]=now[_0x405055(0x13b)]();continue;case'2':super(_0x52f33f);continue;case'3':this[_0x405055(0x131)]=_0x5965bd;continue;case'4':this[_0x405055(0x135)]=AutomationFrameworkState[_0x405055(0x140)];continue;case'5':this['state']=_0x547b86;continue;}break;}}[a70_0x45509c(0x134)](){const _0x430e48=a70_0x45509c;return this[_0x430e48(0x131)];}[a70_0x45509c(0x137)](){const _0x458bca=a70_0x45509c;return this[_0x458bca(0x138)];}[a70_0x45509c(0x13c)](){return this['state'];}[a70_0x45509c(0x12d)](_0x5f1cfa){const _0x3c11b6=a70_0x45509c;this[_0x3c11b6(0x135)]=this[_0x3c11b6(0x144)],this[_0x3c11b6(0x144)]=_0x5f1cfa;}}module[a70_0x45509c(0x12b)]=AutomationFrameworkInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x1cea30=a71_0x48f1;(function(_0x4fe24a,_0x438da1){const _0x10e1f1=a71_0x48f1,_0x15b363=_0x4fe24a();while(!![]){try{const _0x1c0ac3=parseInt(_0x10e1f1(0xdf))/0x1+-parseInt(_0x10e1f1(0xfc))/0x2*(parseInt(_0x10e1f1(0xe8))/0x3)+parseInt(_0x10e1f1(0xe6))/0x4*(-parseInt(_0x10e1f1(0xe5))/0x5)+parseInt(_0x10e1f1(0xf3))/0x6*(-parseInt(_0x10e1f1(0xf8))/0x7)+-parseInt(_0x10e1f1(0xfb))/0x8+-parseInt(_0x10e1f1(0xe3))/0x9+-parseInt(_0x10e1f1(0xe9))/0xa*(-parseInt(_0x10e1f1(0xf9))/0xb);if(_0x1c0ac3===_0x438da1)break;else _0x15b363['push'](_0x15b363['shift']());}catch(_0x431f0c){_0x15b363['push'](_0x15b363['shift']());}}}(a71_0xe1b7,0x556c8));const {createClassLogger}=require('../../../helpers/classLogger'),logger=createClassLogger(a71_0x1cea30(0xe0)),HookState=require(a71_0x1cea30(0xea)),TestFrameworkState=require(a71_0x1cea30(0xf4)),TrackedContext=require(a71_0x1cea30(0xe2)),TrackedInstance=require(a71_0x1cea30(0xef)),now=new Date();class TestFrameworkInstance extends TrackedInstance{constructor(_0x5eb79c,_0x23964a,_0x314fb4,_0x3ebd1c,_0x3dbd72){const _0x123bd7=a71_0x1cea30,_0x19aeb6={};_0x19aeb6[_0x123bd7(0xde)]='5|0|4|2|3|7|6|1';const _0x144c13=_0x19aeb6,_0x4aa118=_0x144c13['eLyHx'][_0x123bd7(0xee)]('|');let _0x4d8683=0x0;while(!![]){switch(_0x4aa118[_0x4d8683++]){case'0':this[_0x123bd7(0xf5)]=_0x23964a;continue;case'1':this[_0x123bd7(0xf0)]=now['toLocaleString']();continue;case'2':this[_0x123bd7(0xe1)]=_0x3ebd1c;continue;case'3':this[_0x123bd7(0xfa)]=_0x3dbd72;continue;case'4':this[_0x123bd7(0xe4)]=_0x314fb4;continue;case'5':super(_0x5eb79c);continue;case'6':this[_0x123bd7(0xdc)]=HookState[_0x123bd7(0xf1)];continue;case'7':this['lastTestState']=TestFrameworkState['NONE'];continue;}break;}}[a71_0x1cea30(0xdd)](){return this['currentTestState'];}[a71_0x1cea30(0xe7)](_0x2c6276){const _0x148ff0=a71_0x1cea30;this[_0x148ff0(0xf6)](this[_0x148ff0(0xe1)]),this[_0x148ff0(0xe1)]=_0x2c6276;}['getCurrentHookState'](){const _0x862f6e=a71_0x1cea30;return this[_0x862f6e(0xfa)];}[a71_0x1cea30(0xf7)](_0x1cc549){const _0x4be14f=a71_0x1cea30;this['setLastHookState'](this[_0x4be14f(0xfa)]),this[_0x4be14f(0xfa)]=_0x1cc549;}['getLastTestState'](){return this['lastTestState'];}[a71_0x1cea30(0xf6)](_0x16d8d6){this['lastTestState']=_0x16d8d6;}[a71_0x1cea30(0xeb)](){return this['lastHookState'];}[a71_0x1cea30(0xec)](_0x131aa2){const _0x3a65a4=a71_0x1cea30;this[_0x3a65a4(0xdc)]=_0x131aa2;}[a71_0x1cea30(0xf2)](){const _0x1082fd=a71_0x1cea30;return this[_0x1082fd(0xf0)];}}module[a71_0x1cea30(0xed)]=TestFrameworkInstance;function a71_0x48f1(_0x2f7a39,_0x445df4){const _0xe1b7fc=a71_0xe1b7();return a71_0x48f1=function(_0x48f1db,_0x32ea7a){_0x48f1db=_0x48f1db-0xdc;let _0x4e6cf8=_0xe1b7fc[_0x48f1db];return _0x4e6cf8;},a71_0x48f1(_0x2f7a39,_0x445df4);}function a71_0xe1b7(){const _0x17d2fa=['5782338pOtDal','testFrameworksVersions','10AHnXbJ','921896CYeFwQ','setCurrentTestState','406743mqfhSQ','117920AWMxOa','../state/hookState','getLastHookState','setLastHookState','exports','split','./trackedInstance','createdAt','NONE','getCreatedAt','138imIEEi','../state/testFrameworkState','testFrameworks','setLastTestState','setCurrentHookState','85666OPizgu','2134GjHqhS','currentHookState','5518616MRkeiV','4dZcZqG','lastHookState','getCurrentTestState','eLyHx','408141tJmwCA','TrackedInstance','currentTestState','./trackedContext'];a71_0xe1b7=function(){return _0x17d2fa;};return a71_0xe1b7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x5a0b84=a72_0x52b8;function a72_0x52b8(_0x234c8a,_0x16eab2){const _0x1a7eaa=a72_0x1a7e();return a72_0x52b8=function(_0x52b80a,_0x139b03){_0x52b80a=_0x52b80a-0x86;let _0x3a5436=_0x1a7eaa[_0x52b80a];return _0x3a5436;},a72_0x52b8(_0x234c8a,_0x16eab2);}(function(_0x24a9cd,_0x16aa49){const _0x1bf073=a72_0x52b8,_0xfaa2a9=_0x24a9cd();while(!![]){try{const _0x5d0d27=parseInt(_0x1bf073(0x8d))/0x1*(parseInt(_0x1bf073(0x91))/0x2)+-parseInt(_0x1bf073(0x95))/0x3*(-parseInt(_0x1bf073(0x86))/0x4)+-parseInt(_0x1bf073(0x8c))/0x5+parseInt(_0x1bf073(0x89))/0x6*(-parseInt(_0x1bf073(0x90))/0x7)+-parseInt(_0x1bf073(0x8a))/0x8*(parseInt(_0x1bf073(0x8b))/0x9)+parseInt(_0x1bf073(0x92))/0xa*(-parseInt(_0x1bf073(0x98))/0xb)+parseInt(_0x1bf073(0x97))/0xc*(parseInt(_0x1bf073(0x9a))/0xd);if(_0x5d0d27===_0x16aa49)break;else _0xfaa2a9['push'](_0xfaa2a9['shift']());}catch(_0x7959e9){_0xfaa2a9['push'](_0xfaa2a9['shift']());}}}(a72_0x1a7e,0xa5bcd));const {createClassLogger}=require(a72_0x5a0b84(0x87)),logger=createClassLogger('TrackedContext');class TrackedContext{constructor(_0x2545f4,_0x5bdebe,_0x1585f3,_0x400d08){const _0x320153=a72_0x5a0b84;this['id']=_0x2545f4,this['threadId']=_0x5bdebe,this[_0x320153(0x9b)]=_0x1585f3,this['type']=_0x400d08;}[a72_0x5a0b84(0x94)](){const _0x411057=a72_0x5a0b84;return this[_0x411057(0x8e)];}[a72_0x5a0b84(0x93)](){const _0x1feea6=a72_0x5a0b84;return this[_0x1feea6(0x9b)];}[a72_0x5a0b84(0x96)](){return this['id'];}[a72_0x5a0b84(0x8f)](){const _0x52506b=a72_0x5a0b84;return this[_0x52506b(0x88)];}}function a72_0x1a7e(){const _0x5f3197=['7785496xVcqiF','9VIfSmc','5480615CYHAjn','3hqqCIO','threadId','getType','140hYnVSx','680222PDaTlF','558990IRmhKC','getProcessId','getThreadId','6lXRvHd','getId','48DRdguw','132SpNtcZ','exports','6069947WtCiKh','processId','1346740cJXvUB','../../../helpers/classLogger','type','42726joBsGZ'];a72_0x1a7e=function(){return _0x5f3197;};return a72_0x1a7e();}module[a72_0x5a0b84(0x99)]=TrackedContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x5448bb=a73_0x2a7c;(function(_0x3c883b,_0x3801aa){const _0x203fc1=a73_0x2a7c,_0x33b8f3=_0x3c883b();while(!![]){try{const _0x1efb61=parseInt(_0x203fc1(0x1f9))/0x1+-parseInt(_0x203fc1(0x1f3))/0x2+-parseInt(_0x203fc1(0x1f8))/0x3*(parseInt(_0x203fc1(0x201))/0x4)+parseInt(_0x203fc1(0x1fa))/0x5+parseInt(_0x203fc1(0x1eb))/0x6+parseInt(_0x203fc1(0x1f7))/0x7+-parseInt(_0x203fc1(0x1f1))/0x8;if(_0x1efb61===_0x3801aa)break;else _0x33b8f3['push'](_0x33b8f3['shift']());}catch(_0x5bce10){_0x33b8f3['push'](_0x33b8f3['shift']());}}}(a73_0xe3df,0x2e2ee));function a73_0x2a7c(_0x138c55,_0x200c5a){const _0xe3df2f=a73_0xe3df();return a73_0x2a7c=function(_0x2a7cf5,_0x4d0799){_0x2a7cf5=_0x2a7cf5-0x1e9;let _0x281d23=_0xe3df2f[_0x2a7cf5];return _0x281d23;},a73_0x2a7c(_0x138c55,_0x200c5a);}const TrackedContext=require(a73_0x5448bb(0x20b)),crypto=require('crypto'),{threadId}=require(a73_0x5448bb(0x1fc));class TrackedInstance{static [a73_0x5448bb(0x1fb)]=a73_0x5448bb(0x203);constructor(_0x572394){const _0x23a0fa=a73_0x5448bb;this[_0x23a0fa(0x208)]=_0x572394,this['data']=new Map();}[a73_0x5448bb(0x1fd)](){const _0x105a11=a73_0x5448bb;return this[_0x105a11(0x208)]['getId']();}[a73_0x5448bb(0x1fe)](){return this['context'];}[a73_0x5448bb(0x207)](){return this['data'];}[a73_0x5448bb(0x1f5)](_0x53320a){const _0x942097=a73_0x5448bb;Object[_0x942097(0x206)](_0x53320a)['forEach'](_0x3f3e05=>{const _0x3f7533=_0x942097;this[_0x3f7533(0x1ee)]['set'](_0x3f3e05,_0x53320a[_0x3f3e05]);});}[a73_0x5448bb(0x1ea)](_0x2e845e){const _0x43809b=a73_0x5448bb;Object[_0x43809b(0x1e9)](_0x2e845e)[_0x43809b(0x205)](([_0x4b2eaf,_0x245d74])=>{const _0xfdf7d6=_0x43809b,_0x242836=this[_0xfdf7d6(0x1ee)][_0xfdf7d6(0x1ff)](_0x4b2eaf)||{},_0x4a4552={..._0x242836,..._0x245d74},_0x1d296f=_0x4a4552;this['data'][_0xfdf7d6(0x1f0)](_0x4b2eaf,_0x1d296f);});}[a73_0x5448bb(0x1ef)](_0x2bfa24){const _0x19a6bf=a73_0x5448bb;return this[_0x19a6bf(0x1ee)]['get'](_0x2bfa24);}['updateData'](_0x95575d,_0x197d48){const _0x5261ab=a73_0x5448bb;this['data'][_0x5261ab(0x1f0)](_0x95575d,_0x197d48);}static[a73_0x5448bb(0x20a)](_0x3a90fa){const _0x1ad2f2=a73_0x5448bb,_0x55b036={};_0x55b036[_0x1ad2f2(0x209)]=_0x1ad2f2(0x1f6),_0x55b036[_0x1ad2f2(0x202)]='hex',_0x55b036[_0x1ad2f2(0x1ec)]=function(_0x5d93e7,_0x566f42){return _0x5d93e7||_0x566f42;};const _0x1f76a3=_0x55b036;return new TrackedContext(crypto[_0x1ad2f2(0x1f2)](_0x1f76a3[_0x1ad2f2(0x209)])[_0x1ad2f2(0x1f4)](_0x3a90fa)[_0x1ad2f2(0x200)](_0x1f76a3[_0x1ad2f2(0x202)]),_0x1f76a3[_0x1ad2f2(0x1ec)](threadId,0x0),process[_0x1ad2f2(0x1ed)],typeof _0x3a90fa);}}module[a73_0x5448bb(0x204)]=TrackedInstance;function a73_0xe3df(){const _0x47ede0=['pMlWN','pid','data','getData','set','1711368EoKITx','createHash','107372cjEQGv','update','updateMultipleEntries','sha256','1185198vLwnak','778380vsWbCg','192385sNQJvi','547095ZoaHYq','KEY_IS_BROWSERSTACK_AUTOMATION_SESSION','worker_threads','getRef','getContext','get','digest','4kTmTYx','OWZDl','isBrowserstackAutomationSession','exports','forEach','keys','getAllData','context','pSipA','createContext','./trackedContext','entries','addMultipleEntries','1470690CRonWc'];a73_0xe3df=function(){return _0x47ede0;};return a73_0xe3df();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a74_0x3809(){const _0x2e6d45=['10pOieSs','onBeforeExecute:\x20event=','browserstack.accessibilityOptions.wcagVersion','QUIT','isEnabled','getName','YVZWM','browserstack.accessibilityOptions.authToken','getGoogleChromeOptions','getInstance','setLogDisabledShown','5288YelSaR','LEDua','getScriptsList','launchCaps','../state/automationFrameworkState','LOG_DISABLED_SHOWN','accessibilityPlatform','bind','getModuleName','scannerVersion','../../../helpers/classLogger','accessibilityToken','695991sdlPUD','end','rvvwA','getAccessibility','462miMsYY','PRE','GNEhq','zKUKE','stack','name','981712GAmSMW','EXECUTE','setAccessibilityToken','getValue','exports','getCommandsToWrap','put','getLogDisabledShown','27648434osxVPG','gfFzW','Error\x20while\x20setting\x20accessibility\x20config:\x20','env','8|2|1|6|5|4|9|7|10|0|3','name:\x20','getCurrentAccessibilityStatus','error','28427zcmgaq','getCurrentInstanceName','../cliUtils','BS_A11Y_JWT','info','EpAjC','3251750vwMDFt','browserstack.accessibilityOptions.scannerProcessingTimeout','registerObserver','getCapabilitiesList','capabilities','IyWqB','setAccessibilityConfig','message','onBeforeTest','SDK_ACCESSIBILITY_CONFIG','1722933zSJAPs','../state/hookState','split','24iNvLtM','wCosw','BROWSERSTACK_TEST_ACCESSIBILITY_YML','onBeforeExecute','parseFromProto','getOptions','MODULE_NAME','start','get','onAfterTest','find','bGFfg','getAccessibilityConfig','2148qMuEEA','wcagVersion','accessibility','dHBiL','getSuccess'];a74_0x3809=function(){return _0x2e6d45;};return a74_0x3809();}const a74_0x501df4=a74_0x461e;(function(_0x24d6f5,_0x2282b3){const _0x20e049=a74_0x461e,_0x502708=_0x24d6f5();while(!![]){try{const _0x26c7fa=parseInt(_0x20e049(0xa9))/0x1+parseInt(_0x20e049(0xb3))/0x2+-parseInt(_0x20e049(0xe3))/0x3*(-parseInt(_0x20e049(0xf3))/0x4)+parseInt(_0x20e049(0xc9))/0x5+-parseInt(_0x20e049(0xad))/0x6*(parseInt(_0x20e049(0xc3))/0x7)+parseInt(_0x20e049(0xd6))/0x8*(parseInt(_0x20e049(0xd3))/0x9)+-parseInt(_0x20e049(0xe8))/0xa*(parseInt(_0x20e049(0xbb))/0xb);if(_0x26c7fa===_0x2282b3)break;else _0x502708['push'](_0x502708['shift']());}catch(_0x435d70){_0x502708['push'](_0x502708['shift']());}}}(a74_0x3809,0x81d9d));const BaseModule=require('./baseModule'),{createClassLogger}=require(a74_0x501df4(0xa7)),CLIUtils=require(a74_0x501df4(0xc5)),AutomationFramework=require('../framework/automationFramework'),AutomationFrameworkState=require(a74_0x501df4(0xa1)),HookState=require(a74_0x501df4(0xd4)),GrpcClient=require('../grpcClient'),scripts=require('../../../helpers/accessibility-automation/scripts'),logger=createClassLogger('TrackedInstance'),PerformanceTester=require('../../../helpers/performance/performance-tester.js'),{EVENTS}=require('../../../helpers/performance/constants.js');function a74_0x461e(_0x585cf7,_0x2cae7c){const _0x380976=a74_0x3809();return a74_0x461e=function(_0x461e03,_0x18262e){_0x461e03=_0x461e03-0xa0;let _0x341876=_0x380976[_0x461e03];return _0x341876;},a74_0x461e(_0x585cf7,_0x2cae7c);}class AccessibilityModule extends BaseModule{static ['MODULE_NAME']=AccessibilityModule[a74_0x501df4(0xb2)];constructor(_0xf3d008){const _0x3accfc=a74_0x501df4,_0xec4f52={};_0xec4f52['bGFfg']=_0x3accfc(0xbf);const _0x2feb7d=_0xec4f52,_0xd52bb4=_0x2feb7d[_0x3accfc(0xe1)][_0x3accfc(0xd5)]('|');let _0x241005=0x0;while(!![]){switch(_0xd52bb4[_0x241005++]){case'0':this[_0x3accfc(0xcd)]=[];continue;case'1':AutomationFramework[_0x3accfc(0xcb)](AutomationFrameworkState['CREATE'],HookState[_0x3accfc(0xae)],this[_0x3accfc(0xd1)]['bind'](this));continue;case'2':AutomationFramework[_0x3accfc(0xcb)](AutomationFrameworkState[_0x3accfc(0xb4)],HookState['PRE'],this['onBeforeExecute'][_0x3accfc(0xa4)](this));continue;case'3':this[_0x3accfc(0xb5)](_0xf3d008['getOptions']()[_0x3accfc(0xcc)]());continue;case'4':this['accessibilityConfig']=_0xf3d008['toObject']();continue;case'5':this[_0x3accfc(0xec)]=!![];continue;case'6':AutomationFramework[_0x3accfc(0xcb)](AutomationFrameworkState[_0x3accfc(0xeb)],HookState['PRE'],this[_0x3accfc(0xdf)]['bind'](this));continue;case'7':this[_0x3accfc(0xa2)]=new Map();continue;case'8':super();continue;case'9':this['accessibility']=new Map();continue;case'10':this['isAppAccessibility']=![];continue;}break;}}[a74_0x501df4(0xec)](){const _0x4c87c4=a74_0x501df4;return this[_0x4c87c4(0xec)];}[a74_0x501df4(0xa5)](){const _0x595ab1=a74_0x501df4;return AccessibilityModule[_0x595ab1(0xdc)];}[a74_0x501df4(0xc1)](){const _0x105cd1=a74_0x501df4;return this[_0x105cd1(0xe5)][_0x105cd1(0xde)](CLIUtils[_0x105cd1(0xc4)](),![]);}[a74_0x501df4(0xba)](){const _0x38b1f4=a74_0x501df4;return this[_0x38b1f4(0xa2)][_0x38b1f4(0xde)](CLIUtils['getCurrentInstanceName'](),![]);}[a74_0x501df4(0xf2)](_0x460335){const _0x517a3d=a74_0x501df4;this[_0x517a3d(0xa2)][_0x517a3d(0xb9)](CLIUtils[_0x517a3d(0xc4)](),_0x460335);}async['onBeforeTest'](_0x5f1e33){const _0x2a8435=a74_0x501df4;try{PerformanceTester[_0x2a8435(0xdd)](EVENTS['SDK_ACCESSIBILITY_CONFIG']);const _0x2585e9=await GrpcClient[_0x2a8435(0xf1)]()[_0x2a8435(0xe2)](_0x5f1e33);_0x2585e9&&_0x2585e9['getAccessibility']()&&_0x2585e9[_0x2a8435(0xac)]()[_0x2a8435(0xe7)]()&&(global[_0x2a8435(0xa3)]=!![],process[_0x2a8435(0xbe)][_0x2a8435(0xd8)]=!![],this[_0x2a8435(0xcf)](_0x2585e9,_0x5f1e33)),PerformanceTester[_0x2a8435(0xaa)](EVENTS[_0x2a8435(0xd2)]);}catch(_0x477512){PerformanceTester[_0x2a8435(0xaa)](EVENTS['SDK_ACCESSIBILITY_CONFIG'],![],_0x477512[_0x2a8435(0xd0)]),logger[_0x2a8435(0xc2)](_0x2a8435(0xbd)+(_0x477512[_0x2a8435(0xb1)]||_0x477512[_0x2a8435(0xd0)]));}}[a74_0x501df4(0xf0)](){const _0x2e73e7=a74_0x501df4;return this[_0x2e73e7(0xcd)][_0x2e73e7(0xe0)](_0x178254=>_0x178254[_0x2e73e7(0xed)]()==='goog:chromeOptions')?.['getValue']()||'';}async[a74_0x501df4(0xcf)](_0x407489,_0x1d07c3){const _0x4a8661=a74_0x501df4,_0x4030bd=_0x407489[_0x4a8661(0xac)]()[_0x4a8661(0xdb)](),_0x43ceae=_0x4030bd[_0x4a8661(0xf5)](),_0x58d3f4=_0x4030bd[_0x4a8661(0xb8)]()?.['getCommandsList']();scripts[_0x4a8661(0xda)](_0x43ceae,_0x58d3f4),scripts['toJson']();const _0x1d331d=_0x4030bd[_0x4a8661(0xcc)]();this[_0x4a8661(0xcd)]=_0x4030bd[_0x4a8661(0xcc)](),await this['setAccessibilityToken'](_0x1d331d,_0x1d07c3[_0x4a8661(0xa0)]);}async['setAccessibilityToken'](_0x1dc22b,_0x110dd1={}){const _0x322b09=a74_0x501df4,_0x503916={};_0x503916[_0x322b09(0xaf)]=function(_0x83103b,_0x32c466){return _0x83103b===_0x32c466;},_0x503916[_0x322b09(0xab)]=_0x322b09(0xa8),_0x503916[_0x322b09(0xb0)]=_0x322b09(0xef),_0x503916[_0x322b09(0xd7)]=_0x322b09(0xe4),_0x503916[_0x322b09(0xc8)]=_0x322b09(0xea),_0x503916[_0x322b09(0xce)]=function(_0x1a41f3,_0x58a231){return _0x1a41f3===_0x58a231;},_0x503916['gfFzW']=_0x322b09(0xa6),_0x503916[_0x322b09(0xf4)]='browserstack.accessibilityOptions.scannerVersion',_0x503916[_0x322b09(0xe6)]=function(_0x4ec13e,_0x2ae02c){return _0x4ec13e===_0x2ae02c;},_0x503916[_0x322b09(0xee)]='scannerProcessingTimeout',_0x503916['TUuks']=_0x322b09(0xca);const _0x424c29=_0x503916;for(const _0x44a9b6 of _0x1dc22b){logger[_0x322b09(0xc7)](_0x322b09(0xc0)+_0x44a9b6['getName']()+'\x20value='+_0x44a9b6['getValue']());if(_0x424c29[_0x322b09(0xaf)](_0x44a9b6[_0x322b09(0xed)](),_0x424c29['rvvwA']))process[_0x322b09(0xbe)][_0x322b09(0xc6)]=_0x44a9b6[_0x322b09(0xb6)](),_0x110dd1[_0x424c29[_0x322b09(0xb0)]]=_0x44a9b6[_0x322b09(0xb6)]();else{if(_0x424c29[_0x322b09(0xaf)](_0x44a9b6[_0x322b09(0xed)](),_0x424c29[_0x322b09(0xd7)]))_0x110dd1[_0x424c29['EpAjC']]=_0x44a9b6[_0x322b09(0xb6)]();else{if(_0x424c29[_0x322b09(0xce)](_0x44a9b6[_0x322b09(0xed)](),_0x424c29[_0x322b09(0xbc)]))_0x110dd1[_0x424c29['LEDua']]=_0x44a9b6[_0x322b09(0xb6)]();else _0x424c29[_0x322b09(0xe6)](_0x44a9b6['getName'](),_0x424c29['YVZWM'])&&(_0x110dd1[_0x424c29['TUuks']]=_0x44a9b6[_0x322b09(0xb6)]());}}}}[a74_0x501df4(0xdf)](_0x17fad1){const _0x3b93ff=a74_0x501df4;logger[_0x3b93ff(0xc7)]('onAfterTest:\x20event='+_0x17fad1);}[a74_0x501df4(0xd9)](_0x25ee1c){const _0x4e1cd9=a74_0x501df4;logger[_0x4e1cd9(0xc7)](_0x4e1cd9(0xe9)+_0x25ee1c);}};module[a74_0x501df4(0xb7)]=AccessibilityModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a75_0x591b58=a75_0x3aef;function a75_0x3aef(_0x327724,_0x2e6b02){const _0x30dc6a=a75_0x30dc();return a75_0x3aef=function(_0x3aef51,_0x805d4){_0x3aef51=_0x3aef51-0x1d9;let _0xd4ba13=_0x30dc6a[_0x3aef51];return _0xd4ba13;},a75_0x3aef(_0x327724,_0x2e6b02);}(function(_0x3d17f3,_0x313d72){const _0x15b582=a75_0x3aef,_0x1b3426=_0x3d17f3();while(!![]){try{const _0x3147ae=-parseInt(_0x15b582(0x1f0))/0x1+-parseInt(_0x15b582(0x1d9))/0x2*(parseInt(_0x15b582(0x1e1))/0x3)+-parseInt(_0x15b582(0x1e4))/0x4*(-parseInt(_0x15b582(0x1f2))/0x5)+-parseInt(_0x15b582(0x1e0))/0x6+parseInt(_0x15b582(0x1f6))/0x7+-parseInt(_0x15b582(0x1dd))/0x8*(parseInt(_0x15b582(0x1ee))/0x9)+parseInt(_0x15b582(0x1ef))/0xa;if(_0x3147ae===_0x313d72)break;else _0x1b3426['push'](_0x1b3426['shift']());}catch(_0x38957a){_0x1b3426['push'](_0x1b3426['shift']());}}}(a75_0x30dc,0x3f904));function a75_0x30dc(){const _0x6ebcc3=['3|2|4|1|0','UoKBp','debug','config','binSessionId','winstonLogger',',\x20platformIndex=','9kbtZak','6705890tnDlIM','183249DMVOPb','getModuleName','15cQJYlC','rzfhZ','BaseModule','ensureBinSession','3192546clUebu','12270GYJHEO','client','platformIndex','KmNQU','2851672XOulhf','exports','split','2526780nRMwjZ','102IUCpBm','KRake','configure','404156odzwGV','../../../helpers/logger.js','name'];a75_0x30dc=function(){return _0x6ebcc3;};return a75_0x30dc();}const logger=require(a75_0x591b58(0x1e5))[a75_0x591b58(0x1ec)];class BaseModule{constructor(){const _0x235c3a=a75_0x591b58,_0x255868={};_0x255868['KmNQU']=_0x235c3a(0x1e7),_0x255868[_0x235c3a(0x1e8)]=_0x235c3a(0x1f4);const _0x249b00=_0x255868,_0x163ee7=_0x249b00[_0x235c3a(0x1dc)][_0x235c3a(0x1df)]('|');let _0x176549=0x0;while(!![]){switch(_0x163ee7[_0x176549++]){case'0':this[_0x235c3a(0x1da)]=null;continue;case'1':this[_0x235c3a(0x1ea)]={};continue;case'2':this[_0x235c3a(0x1eb)]=null;continue;case'3':this[_0x235c3a(0x1e6)]=_0x249b00[_0x235c3a(0x1e8)];continue;case'4':this[_0x235c3a(0x1db)]=0x0;continue;}break;}}[a75_0x591b58(0x1f5)](){const _0x4eb6a5=a75_0x591b58,_0x50b451={};_0x50b451[_0x4eb6a5(0x1e2)]='Missing\x20binSessionId';const _0x3d3248=_0x50b451;if(!this['binSessionId'])throw new Error(_0x3d3248[_0x4eb6a5(0x1e2)]);}[a75_0x591b58(0x1f1)](){const _0x28ae43=a75_0x591b58;return this[_0x28ae43(0x1e6)];}[a75_0x591b58(0x1e3)](_0x9d2a37,_0x236e8d,_0x17d4d1,_0x5d63b7={}){const _0x3d9b7c=a75_0x591b58,_0x1d9ba9={};_0x1d9ba9[_0x3d9b7c(0x1f3)]='0|3|1|2|4';const _0x461845=_0x1d9ba9,_0x25b1bb=_0x461845[_0x3d9b7c(0x1f3)][_0x3d9b7c(0x1df)]('|');let _0x1ad402=0x0;while(!![]){switch(_0x25b1bb[_0x1ad402++]){case'0':this[_0x3d9b7c(0x1eb)]=_0x9d2a37;continue;case'1':this['client']=_0x17d4d1;continue;case'2':this[_0x3d9b7c(0x1ea)]=_0x5d63b7;continue;case'3':this[_0x3d9b7c(0x1db)]=_0x236e8d;continue;case'4':logger[_0x3d9b7c(0x1e9)]('Configured\x20module\x20'+this['getModuleName']()+'\x20with\x20binSessionId='+_0x9d2a37+_0x3d9b7c(0x1ed)+_0x236e8d);continue;}break;}}}module[a75_0x591b58(0x1de)]=BaseModule;
|