CRANQ is the revolutionary new low-code automated testing tool for your APIs. Test and debug REST, RPC and SOAP APIs like a pro with reusable and flexible components that make your life easy.
We made CRANQ because we wanted to give you complete flexibility on how to run your tests, but also just to save you time for other stuff that makes you more productive.
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.