In part 1 and part 2 of this Fiddler how-to series, we covered the basics of the Composer tab and how it makes your life better. Now to the best part – automation.
Manually testing API calls is OK when we're initially developing the service. But what about when we change something? Should we execute all these requests again, one by one, and verify the responses? Or even worse, go through the UI and click every single button again? No! Fiddler Classic and Fiddler Everywhere have got you covered here. Again.
The API Test Fiddler extension greatly enhances its power to execute and validate the behavior of web APIs. Just go to View > Tabs > APITest to show the APITest tab.
You can create a new test by simply dragging and dropping sessions from Fiddler’s Sessions list. You can then use the context menu to specify a Validator and optionally mark it with a Note (comment) or assign it to a group.
With validators you can specify if a test is success or failure. Fiddler tooling supports the following validator types:
Test List is a set of Sessions that contain several specific session flags. They can be easily exported as a SAZ files and their “Test List” functionality will only light up when loaded into the APITest tab. This functionality is available through the contextual menu.
You can temporarily disable one or more tests from running by pressing the spacebar with the desired tests selected.
Fiddler supports two test list events that can be used:
Telerik Fiddler’s APITest tab can help you test your REST APIs with ease, allowing you to make sure you maintain good quality, even when changes are made.
P.S. Don’t forget to follow us on Twitter to get the latest news, tips and tricks and more 😉
Kamen is software developer and manager of the Fiddler team at Progress. He has more than 11 years of professional experience in software development. Programming has always been his passion and he feels lucky to work his hobby. In his free time, he enjoys traveling, motorcycling, freshly-roasted coffee, and trying new experiences. Geek by design. Writing is a new thing to him and he’ll appreciate your feedback and comments.