课程: API Test Automation with SoapUI
今天就学习课程吧!
今天就开通帐号,24,100 门业界名师课程任您挑!
Request and query parameters in SoapUI - SoapUI教程
课程: API Test Automation with SoapUI
Request and query parameters in SoapUI
- [Instructor] Parameterization is a powerful concept in APIs and SoapUI supports it in a few different ways. To try this out, we'll use the Deck of Cards API. I've already created a request in SoapUI with the shuffle endpoint. And you can see here in the documentation that it has this question mark in it. That indicates that this is what is called a query parameter. So let's go ahead and create a parameter in our request. We can use the little green plus button here to add a new parameter and let's set it to be deck underscore count. And we'll just set the value to one. Now you can see when we do this, you hit Enter, and in the parameters field at the top, it's created this question mark deck count equals one. Which is similar to what we have in the API documentation here, question mark, deck count equals one. So we've created that by adding a parameter here in SoapUI. And you can see the style that we've given this parameter is a query parameter. And now we're ready to use this…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。