是否有支持GraphQL,Web应用程序测试和移动设备的测试框架?

时间:2018-04-19 19:13:13

标签: selenium web-applications automated-tests graphql karate

我已经开始使用Karate来测试我们使用GraphQL的移动应用程序,到目前为止它运行良好,虽然对我来说有点学习曲线,因为我不是贸易程序员,但我需要进一步了解展望未来并确保找到一个框架,该框架也将支持我们对自定义Web应用程序的自动化测试的需求。我认为Selenium将成为可行的方式,所以我正在寻找一个测试框架,我不仅可以测试我们的微服务/ API编写的GraphQL查询,还可以测试我们的Web应用程序和移动应用程序。我们是一家MS商店,但如果需要,就像空手道一样,我们可以冒险进入另一个堆栈。谢谢!

1 个答案:

答案 0 :(得分:3)

Disclaimer: dev of Karate here.

I don't know about mobile, but teams have been successful mixing Karate and Selenium / WebDriver into a single integrated script, which is possible because of Karate's Java inter-op.

This is a Stack Overflow answer recommending the above approach and this answer is an update from the same team reporting success.

One more reason you may want to consider Karate is that it may be the only framework that allows you to re-use functional test scripts as performance tests, via Gatling integration (still in development).

Karate in my opinion is a "safe" choice as a testing framework, because it is technically Gherkin and "language neutral". This may be a surprise for those new to Karate, but it actually leans towards using JavaScript for scripting instead of Java.

Of course, it is worth mentioning that I have yet to find a framework that makes testing GraphQL as easy as how Karate does.