API Testing Challenge 20 - How To - POST todos to create a TODO using XML
How to complete the challenge `POST /todos XML` to send a POST request to create a todo item with body and response in XML format.
Issue a POST request on the `/todos` end point to create a todo using Content-Type `application/xml`, and Accepting only XML ie. Accept header of `application/xml`
- `POST` request means we will send information in the body of the message
- e.g. `POST /todos` sends to the todos endpoint
- `create a todo` means that we will not include a todo id, so a new todo is created
- `Content-Type` `application/xml` means set the `content-type` header to `application/xml`
- `Accept header` of `application/xml` means set the `accept` header to `application/xml`
- the body of the message will have to be a valid todo item, and we can see the format in the documentation, or by issuing a `GET` request on the `/todos` endpoint
- add the `X-CHALLENGER` header to track progress
- we know it has been created when we receive a `201` response
- the body of the response should contain the full details of the `todo` created
For a write up of this solution, check out the blog post:
https://eviltester.com/apichallenges/howto/20-post-todos-xml
Find the API Challenges here:
https://eviltester.com/apichallenges
---
Remember to subscribe to this YouTube channel.
You can support me on Patreon https://patreon.com/eviltester (watch my videos ad free and receive extra content)
I blog at https://eviltester.com/blog
Learn more about my books and online training at:
- https://eviltester.com
Follow me on:
- https://twitter.com/eviltester
- https://instagram.com/eviltester
- https://facebook.com/eviltester
Видео API Testing Challenge 20 - How To - POST todos to create a TODO using XML канала EvilTester - Software Testing
Issue a POST request on the `/todos` end point to create a todo using Content-Type `application/xml`, and Accepting only XML ie. Accept header of `application/xml`
- `POST` request means we will send information in the body of the message
- e.g. `POST /todos` sends to the todos endpoint
- `create a todo` means that we will not include a todo id, so a new todo is created
- `Content-Type` `application/xml` means set the `content-type` header to `application/xml`
- `Accept header` of `application/xml` means set the `accept` header to `application/xml`
- the body of the message will have to be a valid todo item, and we can see the format in the documentation, or by issuing a `GET` request on the `/todos` endpoint
- add the `X-CHALLENGER` header to track progress
- we know it has been created when we receive a `201` response
- the body of the response should contain the full details of the `todo` created
For a write up of this solution, check out the blog post:
https://eviltester.com/apichallenges/howto/20-post-todos-xml
Find the API Challenges here:
https://eviltester.com/apichallenges
---
Remember to subscribe to this YouTube channel.
You can support me on Patreon https://patreon.com/eviltester (watch my videos ad free and receive extra content)
I blog at https://eviltester.com/blog
Learn more about my books and online training at:
- https://eviltester.com
Follow me on:
- https://twitter.com/eviltester
- https://instagram.com/eviltester
- https://facebook.com/eviltester
Видео API Testing Challenge 20 - How To - POST todos to create a TODO using XML канала EvilTester - Software Testing
Показать
Комментарии отсутствуют
Информация о видео
17 июля 2021 г. 18:26:16
00:02:45
Другие видео канала
DEPRECATED - see description for new video - How to Install Java JDK on WindowsAPI Challenges Simulation Walkthrough using PostmanAPI Testing Challenges 33 - How To - GET authorized secret note 200API Challenges - POST Challenger 201 DebriefAPI Testing Challenges 30 - How To - basic authentication passed 201Automating Tic Tac Toe JavaScript Game from Browser ConsoleExploratory Testing Government Style - The Evil Tester Show PodcastIntroducing The Observatron a new Exploratory Testing Screenshot taking toolEpisode 007 - Finding Tools Special 2019 - The Evil Tester ShowCommonsense Agile - an Agile Coach and Mentor Explains Agile Testing and DevelopmentHow to Use Console 2Selenium WebDriver Sporting Event TributeAPI Testing Challenge 16 - How To - GET todos any 200Which test entities help testing - Test cases, scripts, conditions or scenarios?Overview of the Tools For Selenium WebDriver InstallA short overview of the Postman REST API GUI ClientAutomating Tactically vs Strategically SauceCon 2020 Preview15 Minute Speedrun Install Of Selenium WebDriver With Java And Maven For Windows XPAn essential aspect of Exploratory Testing is the Debrief #ShortsIntroduction to the Java IDEs for Selenium WebdriverBlack Friday Special - The Evil Tester Show 003 - Software Testing Podcast