我正在尝试理解一个基于 QAF 的项目。它使用 ANT 和 Apache IVY 来管理依赖关系。在查看 ivy.xml 时,我看到这些依赖项添加到了 ivy.xml 中。
<dependency org="com.qmetry" name="qaf" rev="2.1.14" force="true"/>
<dependency org="com.qmetry" name="qaf-support" rev="2.1.14-RC2" />
<dependency org="com.qmetry" name="qaf-support-ws" rev="latest.integration" />
<dependency org="com.qmetry" name="qaf-support-mobile" rev="latest.integration" />
问题: 在网上搜索“qaf-support-mobile”来查找 Maven 依赖项时,没有相同的搜索结果吗? 但这种依赖关系仍然存在于 ivy.xml 中并且工作正常。这意味着什么?
最佳答案
Qaf 支持移动适用于预定义的移动步骤。它是部署在 GitHub 中的可选依赖项,但不在 Maven Central 中。
对于移动自动化,您需要确保在项目中添加 appium 依赖项(如果不添加 qaf-support-mobile 依赖项)。
<dependency org="io.appium" name="java-client" rev="latest.integration"/>
它将使您能够使用具有所有 qaf 功能的 appium 进行移动应用程序测试自动化。引用【常见问题解答】( https://qmetry.github.io/qaf/latest/how_to_run_on_native_app_on_appium.html )。
关于java - 在 ivy.xml 中为 Qmetry 框架项目添加依赖项的逻辑,以自动化移动 native 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59282107/