- SoapUI Cookbook
- Rupert Anderson
- 293字
- 2021-07-23 20:19:19
Introduction
This chapter explores how to access and use common types of external data that you are likely to need in SoapUI test scenarios, for example, files, SQL databases, NoSQL databases, and JMS. While there isn't scope to cover every possible type or implementation, the building blocks learned here can be adapted to different situations and used as the basis for later recipes.
In terms of data-driven testing, we'll see how to support the pattern shown in the following image:

In terms of options for reading the test data, we'll look only at those for the open source version of SoapUI. The pro version's data-driven features, for example, DataSource
, DataSink
, and DataLoop
TestSteps
are designed to be straightforward to use and receive adequate coverage in the online help (see http://www.soapui.org/Data-Driven-Testing/functional-tests.html), whereas achieving similar results in the open source version generally requires a little more initial setup, creativity, and often a higher level on technical understanding and/or skills, but that's the fun part, right? A key enabler is the Groovy TestStep
, which is an important part of this chapter and several others. Some more advanced examples of testing with custom Groovy data sources can be found in Chapter 9, Data-driven Load Testing With Custom Datasources.
What you'll learn
You will learn the following topics:
- How to set up basic and parameterized SQL queries using the
JDBC Request TestStep
- How to use SoapUI properties for configuration and reference properties' property expansions
- How to do basic data-driven testing in SoapUI
- How to use Groovy
TestSteps
to access and manipulate custom data sources
What you'll need
Basic Groovy or Java skills, or at least being happy to try a bit of hands-on scripting would be useful. If you've never used Groovy before, take a look at http://groovy.codehaus.org/Beginners+Tutorial.
- 潮流:UI設計必修課
- 新一代通用視頻編碼H.266/VVC:原理、標準與實現
- PyTorch自動駕駛視覺感知算法實戰
- JavaScript Unlocked
- MATLAB for Machine Learning
- WordPress 4.0 Site Blueprints(Second Edition)
- Creating Mobile Apps with jQuery Mobile(Second Edition)
- Regression Analysis with Python
- Mastering Elixir
- Learning Python Data Visualization
- 超簡單:Photoshop+JavaScript+Python智能修圖與圖像自動化處理
- Android 游戲開發大全(第二版)
- Isomorphic Go
- WCF編程(第2版)
- Selenium Essentials