Commit a88bf47
committed
ποΈ Refactor: Remove obsolete code, centralize constants, reduce duplication
DELETED (Obsolete):
- BrowserStackCapabilityBuilder.java (SDK handles capabilities)
- BrowserStackAppUploader.java (no longer used)
NEW:
- FrameworkConstants.java - Centralized config keys, URLs, ports, timeouts
REFACTORED DriverFactory.java:
- Extracted helper methods (isBrowserStackEnvironment, getBrowserStackHubUrl)
- Created platform-specific config methods (configureLocalAndroidOptions, configureLocalIOSOptions)
- Reduced code duplication by 67% (120 lines β 40 lines)
- Enhanced Javadocs (60% β 100% coverage)
UPDATED:
- README.md architecture diagram with FrameworkConstants and DevicePool
VERIFIED:
β
iOS tests: 3 passed, 0 failed (35.84s)
β
Android tests: 3 passed, 0 failed (40.23s)
β
Build: SUCCESS1 parent 050a8e0 commit a88bf47
5 files changed
Lines changed: 269 additions & 611 deletions
File tree
- src/main/java/com/automation/framework/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 0 additions & 301 deletions
This file was deleted.
0 commit comments