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

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.

主站蜘蛛池模板: 凌海市| 弥勒县| 靖江市| 嵩明县| 松江区| 嘉峪关市| 呼伦贝尔市| 肥东县| 越西县| 汉川市| 新干县| 陵水| 庄浪县| 东至县| 获嘉县| 汕头市| 阜新| 铜梁县| 石家庄市| 乌拉特中旗| 扬中市| 左贡县| 息烽县| 西华县| 龙川县| 十堰市| 边坝县| 德阳市| 茂名市| 黎平县| 柳河县| 鹤壁市| 阳山县| 海伦市| 南宫市| 晋宁县| 吉木乃县| 峡江县| 黄骅市| 额济纳旗| 宜兴市|