Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Test Automation Engineering Handbook

You're reading from  Test Automation Engineering Handbook

Product type Book
Published in Jan 2023
Publisher Packt
ISBN-13 9781804615492
Pages 276 pages
Edition 1st Edition
Languages
Author (1):
Manikandan Sambamurthy Manikandan Sambamurthy
Profile icon Manikandan Sambamurthy

Table of Contents (18) Chapters

Preface 1. Part 1: The Basics
2. Chapter 1: Introduction to Test Automation 3. Chapter 2: Test Automation Strategy 4. Chapter 3: Common Tools and Frameworks 5. Part 2: Practical Affairs
6. Chapter 4: Getting Started with the Basics 7. Chapter 5: Test Automation for Web 8. Chapter 6: Test Automation for Mobile 9. Chapter 7: Test Automation for APIs 10. Chapter 8: Test Automation for Performance 11. Part 3: Continuous Learning
12. Chapter 9: CI/CD and Test Automation 13. Chapter 10: Common Issues and Pitfalls 14. Assessments 15. Index 16. Other Books You May Enjoy Appendix A:Mocking API Calls

Sending GET and POST requests

For creating requests, the user must be within a workspace and click on the + button next to the Overview tab. This is the simplest way to create a new API request. A new tab with various request details opens, as shown in Figure 7.4. This is commonly referred to as a request dashboard in Postman:

Figure 7.4 – New API request

Figure 7.4 – New API request

Now, let us see how to make a GET API request.

Making a GET API request

We will be using the https://www.boredapi.com/api/activity API to get an understanding of GET requests. Bored is a free API that returns some random activities to do when bored. Postman makes it easy to get a simple GET API request without any authorization working. Just paste the API URL in the URL section of the request window and hit the Send button next to it. Every request to the server must be made with a URL to fetch the required response. Figure 7.5 shows the GET request with the response. Here, the Status section...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}