Web Services API Testing
This course is ideal for anyone new to testing APIs. It focuses on RESTful Web Services, being the most popular type of Web Service, and particularly around functional testing.
The course helps you understand the technologies involved and the terminology, and then looks at different techniques for testing RESTful APIs including: Command Line Tools, GUI based Tools, and finally programmatically as part of an automated test framework.
Throughout the course practical examples are demonstrated, and the delegates get to practice what they have learned in each chapter against a demo REST API Service.
- Understand what APIs are and the different types
- Explore Web Services and the Clients we can use to access them
- Understand why & what we need to test
- Tools & approaches to testing your Web Services
- Practical introduction to cURL, Postman, and RESTSharp
- How to integrate REST Testing into an existing automation framework such as Cucumber/SpecFlow
This course can be delivered online or on-site (Classroom based). For the Online training, it is live, instructor-led training. We use GoToTraining as our delivery platform which has audio and desktop sharing facilities and can be accessed from anywhere via a web browser.
To discuss your requirements, please contact email@example.com or call +44 (0)333 939 8884
Introduction to APIs & Web Services
What is an API?, What are Web Services? SOAP vs REST, Clients, Requests & Responses, Response Codes, XML, JSON
Testing Web Services
Why Test, What to Test, Functional & Non-Functional Testing, Explore the demo RESTful Service
Installation, sending requests, analysing responses, authentication, POSTing JSON
A look at tools available, basics of using Postman
Writing Tests in Postman
Using templates, checking values, checking response times, collection runner
capturing values and re-using them in other tests, variable scope & types of variables
Using CSV data files in Postman Requests
Using WADL, Open API Files
Importing APIs, WSDL, WADL, Open API formats. Importing Open API into Postman to create collections
Postman Command Line Execution
Executing Postman Collections from the command line
Introduction to BDD Gherkin
What is BDD, What is Gherkin, writing Feature Files, Tools
Setting up BDD in Visual Studio
Setting up SpecFlow, writing our first .feature file, creating boiler-plate step binding code
Writing Test Code in VS
Using RESTSharp to write our step bindings in Visual Studio to test our Web Service