- 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.
- Python量化投資指南:基礎(chǔ)、數(shù)據(jù)與實戰(zhàn)
- NLTK基礎(chǔ)教程:用NLTK和Python庫構(gòu)建機(jī)器學(xué)習(xí)應(yīng)用
- Python程序設(shè)計(第3版)
- 從0到1:HTML+CSS快速上手
- C#程序設(shè)計教程
- 基于Swift語言的iOS App 商業(yè)實戰(zhàn)教程
- 信息技術(shù)應(yīng)用基礎(chǔ)
- Mastering Drupal 8 Views
- Express Web Application Development
- Java語言程序設(shè)計教程
- C語言程序設(shè)計實訓(xùn)教程與水平考試指導(dǎo)
- Django Design Patterns and Best Practices
- Flink入門與實戰(zhàn)
- Microsoft Dynamics GP 2013 Cookbook
- Java 7 Concurrency Cookbook