如何在 Browserstack-Automate/App-live 上 运行 基于 ReactNative 的应用程序?
How to run ReactNative Based app on Browserstack-Automate/ App-live?
我的测试应用是基于 ReactNative 的原生应用(Android 和 iOS)
为了填充数据,存在对 'Metro Bundler' 的依赖。
当尝试访问 Browserstack 上的开发应用程序时,如何确保 Metro Bundler 依赖项是 运行?
谢谢
如果有人仍在寻找解决方案,请参考 BrowserStack 支持人员的意见:
I understand that you're looking to test your React Native application on App Automate and you're looking to understand how to run the Metro bundler when running tests on App Automate.
You will be unable to run any server on our devices/machines due to restricted access. Plus, we offer real mobile devices so we expect all necessary dependencies to be packaged to the APK file that you upload to our infrastructure.
将 bundleInDebug
设置为 true
来构建您的应用应该会生成一个 .apk
,不需要您在服务器上显式 运行 您的 Metro 捆绑器。按照此处的步骤对我有用:
https://dev.to/nitish173/how-to-generate-a-debug-apk-in-react-native-1gdg
https://celsiusnotes.com/react-native-android-debug-apk-without-development-server/
我的测试应用是基于 ReactNative 的原生应用(Android 和 iOS) 为了填充数据,存在对 'Metro Bundler' 的依赖。 当尝试访问 Browserstack 上的开发应用程序时,如何确保 Metro Bundler 依赖项是 运行?
谢谢
如果有人仍在寻找解决方案,请参考 BrowserStack 支持人员的意见:
I understand that you're looking to test your React Native application on App Automate and you're looking to understand how to run the Metro bundler when running tests on App Automate. You will be unable to run any server on our devices/machines due to restricted access. Plus, we offer real mobile devices so we expect all necessary dependencies to be packaged to the APK file that you upload to our infrastructure.
将 bundleInDebug
设置为 true
来构建您的应用应该会生成一个 .apk
,不需要您在服务器上显式 运行 您的 Metro 捆绑器。按照此处的步骤对我有用:
https://dev.to/nitish173/how-to-generate-a-debug-apk-in-react-native-1gdg
https://celsiusnotes.com/react-native-android-debug-apk-without-development-server/