Is there a testing framework that will support GraphQL, web app testing, and mobile?


I have started to use Karate to test our mobile app which is using GraphQL and it is working good so far, though a bit of a learning curve for me as I am not a programmer by trade, but I need to look further into the future and be sure to find a framework that will also support our need to automate tests for our custom web applications as well. I would think Selenium would be the way to go so I am looking for a testing framework where I can test not only the GraphQL queries which our micro services/APIs are written, but also our web applications and our mobile app. We are a MS shop but if need be, as with Karate, we can venture into a different stack. Thanks!


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.

Answered By – Peter Thomas

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published