今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Testing GET calls
- [Instructor] You know how to call a GET request but how do you go about testing one? At first glance, it seems like they'd be pretty easy to test, right? You just send a request to the server and check that you get back what you asked for but right there is one of the challenges already. How do you know what you should get back? What if you get back something unexpected? Did you send the request in the wrong format or did the service or API do something wrong? Well, there are many heuristics that we can use to help answer these questions. One that I want to look at is consistency. There's a lot of different ways to look at consistency. One way is to check if different parts of the API return the same data in the same format. So for example, in the ToDo API that I've made, if I call the /user endpoint, you can see that we get back the username, along with some other information, like the email address, et cetera. But…
内容
-
-
-
-
-
-
(已锁定)
Testing GET calls3 分钟 42 秒
-
(已锁定)
Testing PUT calls3 分钟 25 秒
-
(已锁定)
Testing DELETE calls2 分钟 46 秒
-
(已锁定)
Challenge: Break the API1 分钟 43 秒
-
(已锁定)
Solution: Break the API2 分钟 31 秒
-
(已锁定)
Understanding POST calls3 分钟 55 秒
-
(已锁定)
Testing POST calls4 分钟 27 秒
-
(已锁定)
Challenge: Access protected endpoints1 分钟 32 秒
-
(已锁定)
Solution: Access protected endpoints2 分钟 36 秒
-
(已锁定)
-
-