课程: API Test Automation with SoapUI
今天就学习课程吧!
今天就开通帐号,24,100 门业界名师课程任您挑!
Create a data-driven test suite
- [Instructor] We've looked at using SoapUI to simulate workflows, but sometimes you want to do something a bit different. Sometimes you want to take one API endpoint and just hit on it with a whole bunch of different inputs. So that's called data-driven testing, and that's something that we can do in SoapUI. So, I've created this test case here to help us get started, and if we take a look at it, it's using the World Time API, and it gives us some data about different timezones based on area and location perimeters. So, I've created a CSV file here that has a few different areas and a few different locations on individual lines like this. So, what we need to do is somehow get that data into SoapUI so we can run this test with each one of those data points. So, the first thing I'll do is actually add a new test case here we'll call it get inputs, and we'll add a groovy test step to it. So, this is just a little scripting language that is kind of built right into SoapUI that lets us do…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。