在Browserstack中执行Espresso测试。

huangapple go评论65阅读模式
英文:

Executing Espresso Tests in Browserstack

问题

我计划在云中的 Browserstack 设备上执行 Android UI 自动化测试。在我的本地开发环境中,测试是使用 ./gradlew connectedMockDebugAndroidTest 命令执行的。我的功能文件和模拟的 JSON 响应文件存放在 assets 文件夹中。它们会被编译并添加到 APK 中。

如何使用 ./gradlew connectedMockDebugAndroidTest 命令在 Browserstack 设备上执行这些测试?

我查看了他们的文档这里,但文档说要上传测试套件。不使用 connectedMockDebugAndroidTest 命令在 browserstack 上执行测试是不可能的吗?

英文:

I am planning to execute Android UI Automation tests on Browserstack device in cloud. In my local dev environment, The test is executed using ./gradlew connectedMockDebugAndroidTest in my local environment. My feature files and mock json response files are kept inside assets folder. And it gets compiled and added to the apk.

How do I execute these tests on a Browserstack device using ./gradlew connectedMockDebugAndroidTest command?

I went through their documentation here, but it says to upload test suite. Is it not possible to execute test on browserstack using connectedMockDebugAndroidTest?

答案1

得分: 1

我不认为目前可以基于这个链接实现:
https://stackoverflow.com/questions/31713525/what-are-list-of-tasks-that-connectedandroidtest-executes

没有办法建立与远程云服务器的连接。

谢谢。

英文:

I don't think this is currently possible based on this:
https://stackoverflow.com/questions/31713525/what-are-list-of-tasks-that-connectedandroidtest-executes

There is no way to establish a connection to a remote cloud server.

Thanks.

答案2

得分: 1

在使用BrowserStack进行Android UI自动化测试时,通常需要将测试套件和相关文件上传到他们基于云的服务中。您提到的connectedMockDebugAndroidTest命令通常用于在本地运行测试或在连接的设备/模拟器上运行。

如您在问题中提到的文档中所述,BrowserStack要求您将测试套件和任何相关文件(如特性文件和模拟JSON响应文件)上传到他们的基于云的服务中。

一旦您的测试套件上传完成,您可以通过调用BrowserStack提供的适当命令或API来触发在BrowserStack设备上执行测试。

英文:

When using BrowserStack for Android UI Automation tests, you typically need to upload your test suite and associated files to their cloud-based service. The connectedMockDebugAndroidTest command you mentioned is typically used for running tests locally or on connected devices/emulators.

BrowserStack requires you to upload your test suite and any associated files (such as feature files and mock JSON response files) to their cloud-based service as mentioned in the doc you have in your question..

Once your test suite is uploaded, you can trigger the execution of the tests on a BrowserStack device by invoking the appropriate command or API provided by BrowserStack.

huangapple
  • 本文由 发表于 2023年6月2日 00:54:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/76384130.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定