展示HN:DeviceLab – 将各办公室的手机变成一个设备实验室

1作者: omnarayan大约 2 个月前原帖
班加罗尔办公室 + 旧金山办公室 + 家庭 = 一个统一的实验室。 您的 APK/IPA、测试数据、网络调用 - 所有数据通过 WebRTC P2P(DTLS 加密)直接在您的设备之间流动。我们只处理信令(哪个设备在何处)。 设置: ``` # 配备手机的机器 curl -fsSL https://app.devicelab.dev/device-node/KEY | sh # CI 运行器 curl -fsSL https://app.devicelab.dev/test-node/KEY | sh ``` 通过 Google/Cloudflare STUN 进行 NAT 穿越。通过 Cloudflare TURN 进行回退中继(约 15% 的情况) - 仍然是端到端加密,他们只能看到数据包而无法看到内容。 这不是用来做的事情: - “在 100 个模型上测试” - 使用 BrowserStack - 100% 隔离(TURN 会破坏这一点) 与 Appium、Maestro、Espresso、XCUITest 兼容。 同时开源了 Maestro iOS 真实设备支持:github.com/devicelab-dev/maestro-ios-device [https://devicelab.dev](https://devicelab.dev) | 每个设备 $99 | 第一个设备永久免费 还有其他人在运行多地点设备实验室吗?最先出现的问题是什么?
查看原文
Devices in Bangalore office + SF office + home = one unified lab.<p>Your APK&#x2F;IPA, test data, network calls - all flow directly between your machines via WebRTC P2P (DTLS encrypted). We only handle signaling (which device is where).<p>Setup:<p><pre><code> # Machine with phones curl -fsSL https:&#x2F;&#x2F;app.devicelab.dev&#x2F;device-node&#x2F;KEY | sh # CI runner curl -fsSL https:&#x2F;&#x2F;app.devicelab.dev&#x2F;test-node&#x2F;KEY | sh </code></pre> NAT traversal via Google&#x2F;Cloudflare STUN. Fallback relay via Cloudflare TURN (~15% of cases) - still E2E encrypted, they see packets not content.<p>What this isn&#x27;t for: - &quot;Test on 100 models&quot; - use BrowserStack - 100% air-gapped (TURN breaks this)<p>Works with Appium, Maestro, Espresso, XCUITest.<p>Also open sourced Maestro iOS real device support: github.com&#x2F;devicelab-dev&#x2F;maestro-ios-device<p><a href="https:&#x2F;&#x2F;devicelab.dev" rel="nofollow">https:&#x2F;&#x2F;devicelab.dev</a> | $99&#x2F;device | First one free forever<p>Anyone else running multi-location device labs? What broke first?