@silasfmartins/testhub 1.0.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/.github/copilot-instructions.md +520 -0
- package/biome.json +37 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +169 -0
- package/dist/scripts/consumer-postinstall.d.ts +15 -0
- package/dist/scripts/consumer-postinstall.js +785 -0
- package/dist/scripts/generate-docs.d.ts +16 -0
- package/dist/scripts/generate-docs.js +1363 -0
- package/dist/scripts/generate-index.d.ts +2 -0
- package/dist/scripts/generate-index.js +314 -0
- package/dist/scripts/init-api.d.ts +2 -0
- package/dist/scripts/init-api.js +525 -0
- package/dist/scripts/init-banco.d.ts +2 -0
- package/dist/scripts/init-banco.js +347 -0
- package/dist/scripts/init-frontend.d.ts +2 -0
- package/dist/scripts/init-frontend.js +627 -0
- package/dist/scripts/init-mobile.d.ts +2 -0
- package/dist/scripts/init-mobile.js +481 -0
- package/dist/scripts/init-scenarios.d.ts +2 -0
- package/dist/scripts/init-scenarios.js +846 -0
- package/dist/scripts/init-ssh.d.ts +2 -0
- package/dist/scripts/init-ssh.js +639 -0
- package/dist/scripts/package-versions.d.ts +57 -0
- package/dist/scripts/package-versions.js +768 -0
- package/dist/scripts/postinstall.d.ts +1 -0
- package/dist/scripts/postinstall.js +527 -0
- package/dist/scripts/robust-build.d.ts +7 -0
- package/dist/scripts/robust-build.js +88 -0
- package/dist/scripts/setup-local-packages.d.ts +31 -0
- package/dist/scripts/setup-local-packages.js +237 -0
- package/dist/scripts/smart-override.d.ts +2 -0
- package/dist/scripts/smart-override.js +1360 -0
- package/dist/scripts/sync-configs.d.ts +27 -0
- package/dist/scripts/sync-configs.js +248 -0
- package/dist/scripts/test-biome-parse.d.ts +5 -0
- package/dist/scripts/test-biome-parse.js +84 -0
- package/dist/scripts/ultracite-setup.d.ts +4 -0
- package/dist/scripts/ultracite-setup.js +310 -0
- package/dist/scripts/update-all-init-scripts.d.ts +2 -0
- package/dist/scripts/update-all-init-scripts.js +52 -0
- package/dist/scripts/update-biome-schema.d.ts +15 -0
- package/dist/scripts/update-biome-schema.js +124 -0
- package/dist/src/AutoCoreFacade.d.ts +145 -0
- package/dist/src/AutoCoreFacade.js +217 -0
- package/dist/src/api/ApiActions.d.ts +297 -0
- package/dist/src/api/ApiActions.js +1905 -0
- package/dist/src/api/Certificate.d.ts +60 -0
- package/dist/src/api/Certificate.js +79 -0
- package/dist/src/api/JsonResponse.d.ts +116 -0
- package/dist/src/api/JsonResponse.js +206 -0
- package/dist/src/appium/DeviceFarmViewer.d.ts +79 -0
- package/dist/src/appium/DeviceFarmViewer.js +1083 -0
- package/dist/src/appium/MobileActions.d.ts +347 -0
- package/dist/src/appium/MobileActions.js +1632 -0
- package/dist/src/appium/MobileConnection.d.ts +160 -0
- package/dist/src/appium/MobileConnection.js +772 -0
- package/dist/src/config/envLoader.d.ts +123 -0
- package/dist/src/config/envLoader.js +361 -0
- package/dist/src/config/jest-safe-setup.d.ts +19 -0
- package/dist/src/config/jest-safe-setup.js +369 -0
- package/dist/src/config/timeouts.d.ts +32 -0
- package/dist/src/config/timeouts.js +38 -0
- package/dist/src/desktop/DesktopActions.d.ts +46 -0
- package/dist/src/desktop/DesktopActions.js +398 -0
- package/dist/src/desktop/DesktopConnection.d.ts +32 -0
- package/dist/src/desktop/DesktopConnection.js +84 -0
- package/dist/src/domain/entities/TestExecution.d.ts +117 -0
- package/dist/src/domain/entities/TestExecution.js +150 -0
- package/dist/src/domain/entities/TestReport.d.ts +114 -0
- package/dist/src/domain/entities/TestReport.js +179 -0
- package/dist/src/domain/repositories/ITestRepository.d.ts +196 -0
- package/dist/src/domain/repositories/ITestRepository.js +14 -0
- package/dist/src/domain/schemas/ValidationSchemas.d.ts +159 -0
- package/dist/src/domain/schemas/ValidationSchemas.js +181 -0
- package/dist/src/functions/errors/BaseError.d.ts +78 -0
- package/dist/src/functions/errors/BaseError.js +245 -0
- package/dist/src/functions/errors/ConfigurationError.d.ts +16 -0
- package/dist/src/functions/errors/ConfigurationError.js +48 -0
- package/dist/src/functions/errors/ErrorCatalog.d.ts +148 -0
- package/dist/src/functions/errors/ErrorCatalog.js +157 -0
- package/dist/src/functions/errors/GlobalErrorHandler.d.ts +101 -0
- package/dist/src/functions/errors/GlobalErrorHandler.js +281 -0
- package/dist/src/functions/errors/IntegrationError.d.ts +17 -0
- package/dist/src/functions/errors/IntegrationError.js +51 -0
- package/dist/src/functions/errors/SecurityError.d.ts +14 -0
- package/dist/src/functions/errors/SecurityError.js +42 -0
- package/dist/src/functions/errors/SystemError.d.ts +12 -0
- package/dist/src/functions/errors/SystemError.js +36 -0
- package/dist/src/functions/errors/ValidationError.d.ts +14 -0
- package/dist/src/functions/errors/ValidationError.js +61 -0
- package/dist/src/functions/errors/index.d.ts +12 -0
- package/dist/src/functions/errors/index.js +13 -0
- package/dist/src/global-setup.d.ts +1 -0
- package/dist/src/global-setup.js +1037 -0
- package/dist/src/helpers/BancoActions.d.ts +188 -0
- package/dist/src/helpers/BancoActions.js +581 -0
- package/dist/src/helpers/EnviromentHelper.d.ts +17 -0
- package/dist/src/helpers/EnviromentHelper.js +66 -0
- package/dist/src/helpers/ParallelExecutionHelper.d.ts +183 -0
- package/dist/src/helpers/ParallelExecutionHelper.js +375 -0
- package/dist/src/helpers/SyncSignal.d.ts +15 -0
- package/dist/src/helpers/SyncSignal.js +44 -0
- package/dist/src/hubdocs/CategoryDetector.d.ts +83 -0
- package/dist/src/hubdocs/CategoryDetector.js +401 -0
- package/dist/src/hubdocs/DirectStatementInterceptor.d.ts +54 -0
- package/dist/src/hubdocs/DirectStatementInterceptor.js +243 -0
- package/dist/src/hubdocs/ExecutionTracker.d.ts +107 -0
- package/dist/src/hubdocs/ExecutionTracker.js +702 -0
- package/dist/src/hubdocs/HubDocs.d.ts +395 -0
- package/dist/src/hubdocs/HubDocs.js +3586 -0
- package/dist/src/hubdocs/StatementMethodFilter.d.ts +71 -0
- package/dist/src/hubdocs/StatementMethodFilter.js +618 -0
- package/dist/src/hubdocs/StatementTracker.d.ts +417 -0
- package/dist/src/hubdocs/StatementTracker.js +2419 -0
- package/dist/src/hubdocs/SwaggerGenerator.d.ts +59 -0
- package/dist/src/hubdocs/SwaggerGenerator.js +405 -0
- package/dist/src/hubdocs/index.d.ts +9 -0
- package/dist/src/hubdocs/index.js +9 -0
- package/dist/src/hubdocs/types.d.ts +114 -0
- package/dist/src/hubdocs/types.js +5 -0
- package/dist/src/infrastructure/DependencyContainer.d.ts +142 -0
- package/dist/src/infrastructure/DependencyContainer.js +250 -0
- package/dist/src/infrastructure/adapters/AppiumAdapter.d.ts +168 -0
- package/dist/src/infrastructure/adapters/AppiumAdapter.js +468 -0
- package/dist/src/infrastructure/adapters/OracleAdapter.d.ts +150 -0
- package/dist/src/infrastructure/adapters/OracleAdapter.js +388 -0
- package/dist/src/infrastructure/adapters/PlaywrightAdapter.d.ts +192 -0
- package/dist/src/infrastructure/adapters/PlaywrightAdapter.js +382 -0
- package/dist/src/infrastructure/adapters/SSHAdapter.d.ts +141 -0
- package/dist/src/infrastructure/adapters/SSHAdapter.js +428 -0
- package/dist/src/interfaces.d.ts +501 -0
- package/dist/src/interfaces.js +25 -0
- package/dist/src/internal/fakes/__fake-actions__.d.ts +17 -0
- package/dist/src/internal/fakes/__fake-actions__.js +21 -0
- package/dist/src/internal/fakes/__forbidden__.d.ts +10 -0
- package/dist/src/internal/fakes/__forbidden__.js +18 -0
- package/dist/src/internal/fakes/__honeypot__.d.ts +15 -0
- package/dist/src/internal/fakes/__honeypot__.js +24 -0
- package/dist/src/octane/OctaneReporter.d.ts +13 -0
- package/dist/src/octane/OctaneReporter.js +61 -0
- package/dist/src/playwright/CryptoActions.d.ts +20 -0
- package/dist/src/playwright/CryptoActions.js +75 -0
- package/dist/src/playwright/EnhancedWebActions.d.ts +7 -0
- package/dist/src/playwright/EnhancedWebActions.js +65 -0
- package/dist/src/playwright/WebActions.d.ts +1599 -0
- package/dist/src/playwright/WebActions.js +11788 -0
- package/dist/src/playwright/actions/ActionTimeline.d.ts +36 -0
- package/dist/src/playwright/actions/ActionTimeline.js +101 -0
- package/dist/src/playwright/actions/RecoveryQueue.d.ts +82 -0
- package/dist/src/playwright/actions/RecoveryQueue.js +130 -0
- package/dist/src/playwright/actions/SelectorCache.d.ts +53 -0
- package/dist/src/playwright/actions/SelectorCache.js +96 -0
- package/dist/src/playwright/actions/index.d.ts +13 -0
- package/dist/src/playwright/actions/index.js +14 -0
- package/dist/src/playwright/actions/types.d.ts +147 -0
- package/dist/src/playwright/actions/types.js +5 -0
- package/dist/src/playwright/fixtures.d.ts +112 -0
- package/dist/src/playwright/fixtures.js +718 -0
- package/dist/src/playwright/network-logs-reporter.d.ts +7 -0
- package/dist/src/playwright/network-logs-reporter.js +66 -0
- package/dist/src/playwright/registerRecoveryWrappers.d.ts +1 -0
- package/dist/src/playwright/registerRecoveryWrappers.js +54 -0
- package/dist/src/security/BuildSecurity.d.ts +12 -0
- package/dist/src/security/BuildSecurity.js +138 -0
- package/dist/src/security/EulaProtection.d.ts +70 -0
- package/dist/src/security/EulaProtection.js +155 -0
- package/dist/src/security/HoneypotManager.d.ts +46 -0
- package/dist/src/security/HoneypotManager.js +234 -0
- package/dist/src/security/KeysManager.d.ts +36 -0
- package/dist/src/security/KeysManager.js +158 -0
- package/dist/src/security/ProofOfWorkIntegration.d.ts +64 -0
- package/dist/src/security/ProofOfWorkIntegration.js +206 -0
- package/dist/src/security/SecurityValidation.d.ts +21 -0
- package/dist/src/security/SecurityValidation.js +163 -0
- package/dist/src/security/SourceMapProtection.d.ts +55 -0
- package/dist/src/security/SourceMapProtection.js +220 -0
- package/dist/src/security/protector.d.ts +1 -0
- package/dist/src/security/protector.js +97 -0
- package/dist/src/ssh/SSHActions.d.ts +262 -0
- package/dist/src/ssh/SSHActions.js +790 -0
- package/dist/src/ssh/SSHClient.d.ts +99 -0
- package/dist/src/ssh/SSHClient.js +409 -0
- package/dist/src/statements/BaseStatement.d.ts +38 -0
- package/dist/src/statements/BaseStatement.js +78 -0
- package/dist/src/testContext/AuthStateManager.d.ts +93 -0
- package/dist/src/testContext/AuthStateManager.js +256 -0
- package/dist/src/testContext/CoverageManager.d.ts +198 -0
- package/dist/src/testContext/CoverageManager.js +917 -0
- package/dist/src/testContext/TestAnnotations.d.ts +476 -0
- package/dist/src/testContext/TestAnnotations.js +2647 -0
- package/dist/src/testContext/TestContext.d.ts +138 -0
- package/dist/src/testContext/TestContext.js +369 -0
- package/dist/src/testContext/UnifiedHtmlGenerator.d.ts +7 -0
- package/dist/src/testContext/UnifiedHtmlGenerator.js +264 -0
- package/dist/src/testContext/UnifiedReportManager.d.ts +211 -0
- package/dist/src/testContext/UnifiedReportManager.js +1206 -0
- package/dist/src/testhub/DynamicConfigManager.d.ts +121 -0
- package/dist/src/testhub/DynamicConfigManager.js +320 -0
- package/dist/src/testhub/SystemsManager.d.ts +119 -0
- package/dist/src/testhub/SystemsManager.js +365 -0
- package/dist/src/testhub/TestHubClient.d.ts +335 -0
- package/dist/src/testhub/TestHubClient.js +1215 -0
- package/dist/src/testhub/TestHubReporter.d.ts +62 -0
- package/dist/src/testhub/TestHubReporter.js +576 -0
- package/dist/src/testhub/TestHubVars.d.ts +116 -0
- package/dist/src/testhub/TestHubVars.js +273 -0
- package/dist/src/utils/ActionInterceptor.d.ts +59 -0
- package/dist/src/utils/ActionInterceptor.js +741 -0
- package/dist/src/utils/ArtifactsCompressor.d.ts +43 -0
- package/dist/src/utils/ArtifactsCompressor.js +181 -0
- package/dist/src/utils/AutoLogsFinal.d.ts +47 -0
- package/dist/src/utils/AutoLogsFinal.js +148 -0
- package/dist/src/utils/CodeGenSession.d.ts +114 -0
- package/dist/src/utils/CodeGenSession.js +264 -0
- package/dist/src/utils/ConfigLogger.d.ts +133 -0
- package/dist/src/utils/ConfigLogger.js +611 -0
- package/dist/src/utils/CustomReporter.d.ts +22 -0
- package/dist/src/utils/CustomReporter.js +352 -0
- package/dist/src/utils/DataStore.d.ts +171 -0
- package/dist/src/utils/DataStore.js +484 -0
- package/dist/src/utils/DatabaseInterceptor.d.ts +19 -0
- package/dist/src/utils/DatabaseInterceptor.js +295 -0
- package/dist/src/utils/DateHelper.d.ts +16 -0
- package/dist/src/utils/DateHelper.js +120 -0
- package/dist/src/utils/DateValidator.d.ts +4 -0
- package/dist/src/utils/DateValidator.js +51 -0
- package/dist/src/utils/DocumentGenerator.d.ts +35 -0
- package/dist/src/utils/DocumentGenerator.js +129 -0
- package/dist/src/utils/EvidenceCapture.d.ts +90 -0
- package/dist/src/utils/EvidenceCapture.js +600 -0
- package/dist/src/utils/EvidenceReportGenerator.d.ts +70 -0
- package/dist/src/utils/EvidenceReportGenerator.js +799 -0
- package/dist/src/utils/FrameManagementUtil.d.ts +42 -0
- package/dist/src/utils/FrameManagementUtil.js +75 -0
- package/dist/src/utils/GlobalStatementsInterceptor.d.ts +1 -0
- package/dist/src/utils/GlobalStatementsInterceptor.js +1 -0
- package/dist/src/utils/HTMLTemplate.d.ts +1 -0
- package/dist/src/utils/HTMLTemplate.js +1034 -0
- package/dist/src/utils/InterceptacaoMagica.d.ts +23 -0
- package/dist/src/utils/InterceptacaoMagica.js +365 -0
- package/dist/src/utils/LogSanitizer.d.ts +35 -0
- package/dist/src/utils/LogSanitizer.js +110 -0
- package/dist/src/utils/Logger.d.ts +65 -0
- package/dist/src/utils/Logger.js +284 -0
- package/dist/src/utils/McpLocalClient.d.ts +141 -0
- package/dist/src/utils/McpLocalClient.js +871 -0
- package/dist/src/utils/PDFEvidenceGenerator.d.ts +20 -0
- package/dist/src/utils/PDFEvidenceGenerator.js +156 -0
- package/dist/src/utils/SpecFileAnalyzer.d.ts +35 -0
- package/dist/src/utils/SpecFileAnalyzer.js +209 -0
- package/dist/src/utils/StatementInterceptor.d.ts +18 -0
- package/dist/src/utils/StatementInterceptor.js +87 -0
- package/dist/src/utils/StatementLogger.d.ts +33 -0
- package/dist/src/utils/StatementLogger.js +113 -0
- package/dist/src/utils/StatementsInterceptor.d.ts +1 -0
- package/dist/src/utils/StatementsInterceptor.js +1 -0
- package/dist/src/utils/TeamsFlushHook.d.ts +17 -0
- package/dist/src/utils/TeamsFlushHook.js +168 -0
- package/dist/src/utils/TerminalLogCapture.d.ts +158 -0
- package/dist/src/utils/TerminalLogCapture.js +531 -0
- package/dist/src/utils/TestMethodLogger.d.ts +70 -0
- package/dist/src/utils/TestMethodLogger.js +95 -0
- package/dist/src/utils/UnifiedTeardown.d.ts +4 -0
- package/dist/src/utils/UnifiedTeardown.js +400 -0
- package/dist/src/utils/XPathCatalog.d.ts +152 -0
- package/dist/src/utils/XPathCatalog.js +350 -0
- package/dist/src/utils/generators.d.ts +90 -0
- package/dist/src/utils/generators.js +167 -0
- package/dist/src/utils/testRecovery/ResilientPlaywright.d.ts +152 -0
- package/dist/src/utils/testRecovery/ResilientPlaywright.js +715 -0
- package/dist/src/utils/testRecovery/TestRecoveryClient.d.ts +801 -0
- package/dist/src/utils/testRecovery/TestRecoveryClient.js +1415 -0
- package/dist/src/utils/testRecovery/autoFixCode.d.ts +65 -0
- package/dist/src/utils/testRecovery/autoFixCode.js +32 -0
- package/dist/vitest.config.d.ts +2 -0
- package/dist/vitest.config.js +59 -0
- package/dist/wdio.conf.d.ts +1 -0
- package/dist/wdio.conf.js +420 -0
- package/package.json +137 -0
- package/protect-loader.mjs +643 -0
- package/scripts/consumer-postinstall.ts +975 -0
- package/scripts/generate-index.ts +343 -0
- package/scripts/init-api.ts +613 -0
- package/scripts/init-banco.ts +437 -0
- package/scripts/init-frontend.ts +727 -0
- package/scripts/init-mobile.ts +558 -0
- package/scripts/init-scenarios.ts +925 -0
- package/scripts/init-ssh.ts +734 -0
- package/scripts/package-versions.ts +978 -0
- package/scripts/postinstall.ts +605 -0
- package/scripts/smart-override.ts +1675 -0
- package/scripts/sync-configs.ts +302 -0
- package/scripts/ultracite-setup.ts +370 -0
- package/src/types/globals.d.ts +48 -0
- package/tsconfig.json +29 -0
- package/types/autocore-sync-signal.d.ts +10 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ✅ MOBILE CAPABILITIES TYPE
|
|
3
|
+
*/
|
|
4
|
+
export interface MobileCapabilities {
|
|
5
|
+
platformName: string;
|
|
6
|
+
platformVersion?: string;
|
|
7
|
+
deviceName: string;
|
|
8
|
+
app?: string;
|
|
9
|
+
appPackage?: string;
|
|
10
|
+
appActivity?: string;
|
|
11
|
+
bundleId?: string;
|
|
12
|
+
automationName?: string;
|
|
13
|
+
noReset?: boolean;
|
|
14
|
+
fullReset?: boolean;
|
|
15
|
+
udid?: string;
|
|
16
|
+
deviceId?: string;
|
|
17
|
+
[key: string]: string | boolean | number | undefined;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* ✅ ULTRA-RADICAL MobileConnection - VERSION 2.0 FIXED
|
|
21
|
+
*
|
|
22
|
+
* MELHORIAS MANTIDAS:
|
|
23
|
+
* - 🔥 Ultra-radical closeSession() com múltiplas estratégias de disconnection
|
|
24
|
+
* - 🔥 Force-kill DeviceFarm sessions via múltiplos endpoints API
|
|
25
|
+
* - 🔥 Aggressive cleanup: garbage collection, timers, global vars, event listeners
|
|
26
|
+
* - 📱 Screenshot integration com DeviceFarmViewer (1s polling)
|
|
27
|
+
* - 🔧 Consumer project detection e cross-project operations
|
|
28
|
+
* - 🌐 Simple connection strategies com proxy/direct fallback
|
|
29
|
+
* - 📋 Playwright report integration
|
|
30
|
+
* - 🛡️ SSL/certificate handling simplificado
|
|
31
|
+
* - ⚡ Optimized WebDriverIO configurations
|
|
32
|
+
* - 🔑 API key interna (usuário não precisa configurar)
|
|
33
|
+
*
|
|
34
|
+
* CORRIGIDO:
|
|
35
|
+
* - ❌ Removido require() - 100% ESModules
|
|
36
|
+
* - ❌ Conectividade simplificada baseada na versão que funcionava
|
|
37
|
+
* - ❌ SSL killer mais simples e efetivo
|
|
38
|
+
* - ❌ Fetch com configurações corretas
|
|
39
|
+
*/
|
|
40
|
+
export declare class MobileConnection {
|
|
41
|
+
private static driver;
|
|
42
|
+
private static remoteHost;
|
|
43
|
+
private static remotePort;
|
|
44
|
+
private static remotePath;
|
|
45
|
+
private static proxyUrl;
|
|
46
|
+
private static apiKey;
|
|
47
|
+
private static activeSessionId;
|
|
48
|
+
private static connectionTimestamp;
|
|
49
|
+
private static forceCleanupExecuted;
|
|
50
|
+
private static _isConnected;
|
|
51
|
+
private static _currentCapabilities;
|
|
52
|
+
/**
|
|
53
|
+
* ✅ MAIN CONNECTION METHOD - Ultra-optimized with simple fallback strategies
|
|
54
|
+
*/
|
|
55
|
+
static connect(capabilities: MobileCapabilities): Promise<WebdriverIO.Browser>;
|
|
56
|
+
/**
|
|
57
|
+
* 🔥 ULTRA-RADICAL SESSION TERMINATION - AGGRESSIVE MULTI-LEVEL DISCONNECTION
|
|
58
|
+
*
|
|
59
|
+
* Estratégias implementadas:
|
|
60
|
+
* 1. Stop DeviceFarmViewer
|
|
61
|
+
* 2. Force-close via DeviceFarm API
|
|
62
|
+
* 3. Driver termination (deleteSession, quit, closeApp) com timeouts
|
|
63
|
+
* 4. HTTP/HTTPS agent destruction
|
|
64
|
+
* 5. Force-kill all DeviceFarm sessions
|
|
65
|
+
* 6. Ultra-aggressive cleanup (GC, timers, globals, listeners)
|
|
66
|
+
*/
|
|
67
|
+
static closeSession(): Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* 🔥 FORCE-CLOSE SESSION VIA DEVICEFARM API
|
|
70
|
+
*/
|
|
71
|
+
private static forceCloseSessionViaAPI;
|
|
72
|
+
/**
|
|
73
|
+
* 💀 FORCE-KILL ALL DEVICEFARM SESSIONS - NUCLEAR OPTION
|
|
74
|
+
*/
|
|
75
|
+
private static forceKillAllDeviceFarmSessions;
|
|
76
|
+
/**
|
|
77
|
+
* 🧹 ULTRA-AGGRESSIVE FORCE CLEANUP - NUCLEAR CLEANUP OPTION (ESModules Fixed)
|
|
78
|
+
*/
|
|
79
|
+
static forceCleanup(): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* ✅ SIMPLE CONNECTION CREATION - Baseado na versão que funcionava
|
|
82
|
+
*/
|
|
83
|
+
private static createSimpleConnection;
|
|
84
|
+
/**
|
|
85
|
+
* ✅ CONNECTIVITY CHECK WITH FALLBACK STRATEGIES - Simplificado
|
|
86
|
+
*/
|
|
87
|
+
private static checkDeviceFarmConnectivityWithFallback;
|
|
88
|
+
/**
|
|
89
|
+
* ✅ BASIC CONNECTIVITY CHECK - Simplificado
|
|
90
|
+
*/
|
|
91
|
+
private static checkConnectivity;
|
|
92
|
+
/**
|
|
93
|
+
* ✅ TEST BASIC ENDPOINT - Simplificado
|
|
94
|
+
*/
|
|
95
|
+
private static testBasicEndpoint;
|
|
96
|
+
/**
|
|
97
|
+
* 🎬 SETUP AUTOMATIC VISUALIZATION - COM 1 SEGUNDO POLLING
|
|
98
|
+
*/
|
|
99
|
+
private static setupAutomaticVisualization;
|
|
100
|
+
/**
|
|
101
|
+
* ✅ SETUP PROXY CONFIGURATION
|
|
102
|
+
*/
|
|
103
|
+
private static setupProxy;
|
|
104
|
+
/**
|
|
105
|
+
* ✅ SETUP SSL AGENT - Simples mas efetivo
|
|
106
|
+
*/
|
|
107
|
+
private static setupSSLAgent;
|
|
108
|
+
/**
|
|
109
|
+
* ✅ INITIALIZE GLOBAL SSL KILLER - Simples mas efetivo
|
|
110
|
+
*/
|
|
111
|
+
static initializeGlobalSSLKiller(): Promise<void>;
|
|
112
|
+
/**
|
|
113
|
+
* ✅ ENHANCED SCREENSHOT CAPTURE WITH EVIDENCE INTEGRATION
|
|
114
|
+
*/
|
|
115
|
+
static captureScreenshot(description?: string): Promise<string | null>;
|
|
116
|
+
/**
|
|
117
|
+
* ✅ VALIDATE CAPABILITIES
|
|
118
|
+
*/
|
|
119
|
+
private static validateCapabilities;
|
|
120
|
+
/**
|
|
121
|
+
* ✅ GET DRIVER INSTANCE
|
|
122
|
+
*/
|
|
123
|
+
static getDriver(): WebdriverIO.Browser | null;
|
|
124
|
+
/**
|
|
125
|
+
* ✅ GET CURRENT DEVICE ID
|
|
126
|
+
*/
|
|
127
|
+
static getCurrentDeviceId(): string;
|
|
128
|
+
/**
|
|
129
|
+
* ✅ GET CURRENT PLATFORM
|
|
130
|
+
*/
|
|
131
|
+
static getCurrentPlatform(): string;
|
|
132
|
+
/**
|
|
133
|
+
* ✅ CAPTURE EVIDENCE (ALIAS FOR SCREENSHOT)
|
|
134
|
+
*/
|
|
135
|
+
static captureEvidence(description?: string): Promise<string | null>;
|
|
136
|
+
/**
|
|
137
|
+
* ✅ IS CONNECTED CHECK
|
|
138
|
+
*/
|
|
139
|
+
static isConnected(): boolean;
|
|
140
|
+
/**
|
|
141
|
+
* ✅ VERIFY DEVICEFARM VISUAL CONNECTION
|
|
142
|
+
*/
|
|
143
|
+
static verifyDeviceFarmVisualConnection(): Promise<boolean>;
|
|
144
|
+
/**
|
|
145
|
+
* ✅ TAKE SCREENSHOT (ALIAS)
|
|
146
|
+
*/
|
|
147
|
+
static takeScreenshot(): Promise<string | null>;
|
|
148
|
+
/**
|
|
149
|
+
* ✅ CAPTURE SCREENSHOT AS BUFFER
|
|
150
|
+
*/
|
|
151
|
+
static captureScreenshotBuffer(description?: string): Promise<Buffer | null>;
|
|
152
|
+
/**
|
|
153
|
+
* ✅ CREATE SESSION (ALIAS FOR CONNECT)
|
|
154
|
+
*/
|
|
155
|
+
static createSession(capabilities: MobileCapabilities): Promise<WebdriverIO.Browser>;
|
|
156
|
+
/**
|
|
157
|
+
* ✅ TROUBLESHOOTING INFO
|
|
158
|
+
*/
|
|
159
|
+
private static logTroubleshootingInfo;
|
|
160
|
+
}
|