官术网_书友最值得收藏!

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:

Introduction

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.

主站蜘蛛池模板: 牟定县| 延边| 大田县| 迭部县| 曲周县| 麻城市| 萨迦县| 麻城市| 思南县| 陵水| 旌德县| 岐山县| 宁强县| 澎湖县| 长兴县| 交口县| 车致| 宾川县| 东乡| 温泉县| 天全县| 颍上县| 商水县| 永定县| 武功县| 名山县| 乐东| 平顺县| 永州市| 曲阳县| 泉州市| 炎陵县| 云南省| 安达市| 安福县| 河池市| 宜宾县| 澳门| 汝南县| 兴山县| 彭山县|