Python REST API Automation


Starts August 10th 2020
Mondays, Thursdays 7pm – 11pm Pacific



Python REST API Automation with performance testing using JMeter and Gatling

Ellie YampolskayaSUMMARY: PYTHON:
• Integrated Development Environment
– Python vs Java/C/C++
– Python 3 vs Python 2
– Running Python code
• Python Data Structures and Objects: Numbers, Stirings, Lists, Tuples, Sets, Dictionaries, etc
– set vs tuple vs list
– xrange vs range
• Python Comparison
– is / not / in / and / or
• Python Statements
– if / elif / else / for loops, etc
• Methods and functions
• Object Oriented Programming
– Attributes and class
– Encapsulation
– Abstraction
– Single Inheritance
– Multiple inheritance
– Abstraction
– Polymorphism
• List comprehensions
• Modules and Packages
– sys / os / json / random modules
• Errors and Exception Handling
• Debugging and troubleshooting API AUTOMATION
• Explanation of http request verbs:
• How to use browser developer tools to determine required headers, parameters and data if there is limited or missing API documentation
• REST API metadata documentation with Swagger
• Using curl and/or Postman to execute http requests
• Overview of different Python packages to handle http requests
• API automation using Python requests package. How to create, read, update, delete
• How to pass various types of data: lists, json, multipart form data, etc.
• Obtaining response to a request. Overview of the Response object content
• Checking response status, and response message
• Working with response data – xml and json
• Storing response content
• Creating a persistent session – for cookie management API PERFORMANCE TESTING WITH JMETER
• Introduction to JMeter
• Creation of workflows, using samplers, controllers, and timers.
• Debugging using listeners
• Generation of test reports – and how to interpret the results.
• Cookie and authentication management
• User defined variables, parameters, and runtime data creation. API PERFORMANCE TESTING WITH GATLING
• Introduction to Gatling
• Creation of business flows
• Creation of scenarios
• Injecting data using feeders
• Checks and assertions
• Generation of reports
• Configuring load distribution to simulate production
All topics include project-based practice with multiple applicationsAFTER THE CLASS YOU WILL:
• Understand REST API basics and concepts
• Get basic knowledge on using curl / Postman for manual tests
• Develop REST API automated tests using Python
• Configure and execute Load and Performance testing with JMeter
• Write Load and Performance tests with GatlingPROPOSED SCHEDULE:
• 40 lecture hours
• Mondays, Thursdays 7pm – 11pm Pacific