Do you think IIT Guwahati certified course can help you in your career?
No
Introduction
Welcome Ninjas! Are you interested in knowing even the small-scale features of the Katalon Studio?
Well, this blog will give you an overview of Request History and Draft Request in Katalon Studio. But before moving to these concepts, we will acknowledge the basics of the software Katalon Studio. Let us get started!
Katalon Studio
In this fast-growing technology, we cannot afford drawbacks to our project. Hence, any product is launched when it’s fully developed and tested.
Compared to manual testing of the projects (API testing/Mobile testing/Web testing), which proves ineffective, Automated Testing has become very popular these days. Katalon Studio steps in here. Based on Selenium, Katalon is one of the best and most used automated testing software with easy-to-use go-to features.
Why do we use Katalon Studio?
Let's explore some features of the Katalon Studio.
We prefer Katalon due to the following reasons:
Katalon provides an inbuilt API testing module that performs end-to-end API testing.
Katalon has features like snippets, code references, and an effective debugger; hence, we require minimal coding.
In Katalon Studio, we can create easy-to-maintain automated scripts.
Katalon Studio is compatible with third-party testing tools like Postman and Swagger.
Request History
Wouldn't it be convenient if we had a record of all the requests in one place? Well, Katalon Studio's feature Request History helps you with the same.
As the name suggests, Request History saves the history of all the previously created requests. Log of all the APIs/Web Service Objects created or imported into the project is displayed in the left sidebar under the Request History Panel.
It is important to note that Request History can only be viewed for the 'API-only' Projects.
Any Web Service Request present in the Request History Panel can be accessed and retrieved anytime.
When we select any request from the Request History Panel, two options can be viewed:
Save - This option allows us to convert the request into a web service object. (Note that the updates are saved only when we 'Send Request'; otherwise, they are not.)
Remove - This option allows us to remove the selected request from the history panel.
Draft Request
Let's now move on to the next topic of our discussion - Draft Request.
Have you ever written emails you didn't send because they might require changes later? Just like the composed unsent emails, which can be edited later and saved as drafts, there's this feature of Draft Request in Katalon Studio.
Sometimes, we may want to test our request with raw data before finally adding it to our test case.
Katalon Studio's feature of Draft Request allows us to create a Draft request to experiment and test with different data. All sent requests are saved in the 'Request History' panel on the left sidebar, where they can be accessed and retrieved anytime.
Click on the main toolbar's 'New Draft Request' icons to create a new draft request.
Select the Request type. A Draft Request Details view opens up. Enter the required request information.
When the Draft Request is ready to be added to the test case, select the desired request and click on 'Save.'
Specify the name of the request and the folder in the 'Object Repository.'
We can now use this request to run our test case!
Frequently Asked Questions
What features of Katalon make it easy to use for people with no coding background?
Katalon Studio offers features like snippets, code references, and a debugger.
Are the Draft Requests stored in Request History?
Yes, Draft Request are saved in Request History and can be accessed and retrieved from there.
What can be done to a request selected from Request History?
It can either be saved (converted into a web service object) or removed from the Request History Panel.
Conclusion
We hope this blog helped you in understanding the concept of Request History and Draft Request in Katalon Studio. We first discussed Katalon Studio and the need to use this software, followed by a detailed explanation of the Request History and Draft Request in Katalon.
If you found this blog engaging and insightful, you can refer to some similar blogs: