在 wildfly-swarm 上使用 TestNG 进行 Arquillian 测试

Arquillian tests with TestNG on wildfly-swarm

是否可以通过 TestNG 运行 arquillian 测试?我在这里尝试 this tutorial,但它需要 Arquillian testRunner,我只能使用来自 JUnit 的 @RunWith 注释 select。

我的研究表明在 TestNG 中没有等价物 annotation/mechanism。

我一直在将 Arquillian 与 TestNG 结合使用 - 到目前为止我没有发现任何问题。

检查此站点以进行示例测试 - 向下滚动以进行测试。

http://www.testautomationguru.com/arquillian-graphene-page-fragments/

您需要扩展 Arquillian 基础 class 才能将其与 TestNG 一起使用。

@RunAsClient
public class GoogleSearchTest extends Arquillian{

}