Create and Run API and back-end integration tests, and export results to test management apps. Endlessly extensible, intuitive and powerful, it's time to try CRANQ!
Learn how to test a simple API endpoint using CRANQ in under 2 minutes. You will use 2 nodes, a Store, and a json request dispatcher to return placeholder data from the https://reqres.in/api/users/2 practice endpoint
Here we will authenticate a user to an API in Cranq and secure a token, before passing back that token and making a request to the endpoint. To do this we will add extra nodes including a JSON request dispatcher (with a POST method), and then feed login credentials into it. The API response comes as a dictionary, from which we can retrieve the token using an Item Getter. We can then use the token to authenticate our original request.
It's time to move to the next level and automate our API test. First, we will tidy up our programme to make it more human-readable, and expose the User Record and the Status. Then we will use an Equality Asserter node and a Has Key Asserter node to explore and check our requested data.
We will prepare the assertions for loading into a reporter, by wrapping your initial assertions in the Case Template component, which will add further data like Timestamp and Description to your User ID and Status test. This will flesh out the results of your test and make those results more useful.
Use a JUnit Reporter node to turn your assertions into an xml report that you can forward to a file or to an API. Well done for completing the course!
Output 'Hello World' to the console by building your first CRANQ program. You will learn basic skills like adding and connecting nodes, storing data and reading it using a Store node, and logging data to the Output by running the program.
Transform your data by taking the output from Store nodes and concatenating them with a string Concatenator node. You will also learn how to move nodes around, pan the canvas, and use the Inspector panel.
Transform your data further by using multiple transformations trained together. In this lesson you will practice using the Concatenator, changing node names and port values. You will learn the importance of providing a Start signal to every node.
The beauty of CRANQ is the ability to create nodes with endlessly customisable behaviours, and to wrap those nodes within others, and easily manipulate them. This lesson will show you how to create your first Structure node, and build functionality inside that node.
Structural Nodes are powerful tools, because once you've made one it's easy to re-use it for other purposes. In this lesson, we will expand our cosmic greeting with a clone of our first structural node.
Use the store to hold a list value, then iterate through that list with an iterator node. Debug your program with a debug node that logs to the console.
"Domain experts have difficulty explaining the fine details of the domain to developers. With CRANQ, they can finally express those details in terms developers understand."
"The flexibility of CRANQ to deal with changing test data is what makes it so powerful for testing booking systems."
"The brilliance of CRANQ is that prototypes prepared by product people can be grown into production systems without a rewrite."
"The technical elegance of it is amazing!"
"It's so important to run tests with different sets of parameters. CRANQ is the first tool I know to do that out-of-the-box."