O'Reilly logo

Web Services Testing with soapUI by Charitha Kankanamge

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

soapUI ModelItems

ModelItems are the preliminary building blocks of a soapUI project. The elements such as projects, test suites, test cases, test steps, mock services, mock responses, and assertions are all implemented as ModelItems. The com.eviware.soapui.model.ModelItem interface (http://www.soapui.org/apidocs/com/eviware/soapui/model/ModelItem.html) is the super interface which defines the general behavior of all soapUI model items.

When you get hold of a ModelItem in your script, you can use the corresponding getters to retrieve values such as id, name, and description of a ModelItem.

getRoomDetailsTestCase.name

Also, ModelItems provide us with various methods to access parent and child entities.

Let's look at some methods in TestCase ModelItem ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required