Тема: "Rest-Assured - легкий способ автоматизации тестирования REST".
- REST - это не протокол
- REST Assured и его плюшки
- Практика - наше всё. Пример простой архитектуры
8. What is REST???
It’s not a protocol
It’s a set of architecture principles (according to these principles
server interacts with clients in distributed applications)
9. What is REST???
It’s not a protocol
It’s a set of architecture principles (according to these principles
server interacts with clients in distributed applications)
HTTP protocol is used as communication protocol
10. What is REST???
It’s not a protocol
It’s a set of architecture principles (according to these principles
server interacts with clients in distributed applications)
HTTP protocol is used as communication protocol
It was developed to overcome the limitations of SOAP and make
web services lightweight
17. What to test?
• Business logic (positive and negative cases)
8/30/2017 17
18. What to test?
• Business logic (positive and negative cases)
• Data and it’s format
8/30/2017 18
19. What to test?
• Business logic (positive and negative cases)
• Data and it’s format
• Application’s state
8/30/2017 19
20. What to test?
• Business logic (positive and negative cases)
• Data and it’s format
• Application’s state
• Naming convention
8/30/2017 20
21. Tools for testing
• Postman
8/30/2017 21
Extension for Google Chrome
It allows us:
• send requests
• capture it
• show us history
22. Tools for testing
• Postman
• Advanced Rest Client
8/30/2017 22
More one extension for Google
Chrome
It allows us to send and capture API
requests, view responses etc.
23. Tools for testing
• Postman
• Advanced Rest Client
• SoapUI
8/30/2017 23
Cross browser functional testing
solution which can be used for testing
API
24. Tools for testing
• Postman
• Advanced Rest Client
• SoapUI
• cURL
8/30/2017 24
An application library for downloading
files or performing requests on the
Web
31. Advantages of REST Assured
• JsonPath and XmlPath
• Supports all HTTP methods
8/30/2017 31
32. Advantages of REST Assured
• Response deserialization into objects
8/30/2017 32
33. Other advantages
• Rest mapping
• Validation json according to json schema
• Working with json and xml
• Custom (de)serializers
• Timeouts in tests
• Testing different authentication methods and
SSL
8/30/2017 33