Hilary Weaver-Robb
Intermediate
13
0
Learn everything you need to start automating API checks using RestSharp
- Hilary Weaver-RobbAPI testing is very popular right now, and for good reason! APIs hold a lot of the business logic that power the interfaces we’re used to testing, but they’re not as visible to us as testers. There’s a lot of value in automating checks against APIs - they’re faster to write, easier to maintain, and generally run much more quickly than UI checks. And, if you already have some experience with C# and some understanding of APIs, you can use a tool like RestSharp to get up and running quickly.
In this course, you'll learn everything you need to start automating checks of APIs using RestSharp in C#, including figuring out what to automate, using NUnit as the test runner, some neat features of NUnit to help keep our test data clean and to parameterize checks, and of course refactoring our code to make it work better than ever. You’ll be able to get your own framework up and running with checks to start adding valuable feedback for your own applications right away.
Hilary Weaver-Robb
Sr. Software Engineer (in Test)
Hilary Weaver-Robb is a Sr. Software Engineer (in Test) near Detroit. She is a mentor to her fellow testers, makes friends with developers, and focuses a lot on API testing, and diving into the code as a tester. Hilary has always been passionate about improving the relationships between developers and testers, and evangelizes software testing as a rewarding, viable career. She runs the Motor City Software Testers user group, working to build a community of quality advocates. Hilary tweets (a lot) as @g33klady, and you can find her thoughts and experiences in the testing world, at g33klady.com.
By the end of this course, you'll be able to:
- Understand what to automate based on the APIs documentation and the code
- Create an automation plan and understand risks to be mitigated by writing checks
- Understand what NUnit offers as the test runner
- Use setup/teardown to keep tests atomic and the environments under test clean of test data
- Understand and use serialization and deserialization in your automation
- Set up REST checks in C# using RestSharp
- Set up API automation in an existing solution with the production code
- Understand what code smells are, how to spot and remedy them
To successfully complete this course you will need:
- some basic understanding of APIs
- some coding skill in C#
- Some Object Oreintated Programming knowledge
Resources you will use throughout this course:
- Visual Studio 2022 or 2019 Community Edition
- .Net 6.0 SDK, or .Net 5 SDK and .Net Core 2.2 SDK
- Google Sheets