课程: API Test Automation with SoapUI

今天就学习课程吧!

今天就开通帐号,24,100 门业界名师课程任您挑!

Using properties in a test

Using properties in a test

- [Narrator] We've been looking at creating a workflow driven test. And we've seen a few things that are pretty clunky. When we're going through the workflow, we want to use the same data at a bunch of different steps. So we have the deck ID here. And we use that same deck ID, in each of these steps, we use the same deck ID again. And then also, we have the problem of our draw step here gives us some output data, the card value, that we need to use in our discard step. So to do this stuff we need to be able to transfer data or properties, from one test step to another test step. So let's start with the deck ID and see if we can figure this out. So we'll go to shuffle here. And what we'll do for this first one, this is the first step in our test case. And so we'll just replace this with the word new. What this will do, is generate a new shuffled deck for us each time we run this test case. So if we run this, what we want now is to be able to take this deck ID that this generates, and…

内容