From the course: API Test Automation with SoapUI

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Test suite setup and teardown

Test suite setup and teardown - SoapUI Tutorial

From the course: API Test Automation with SoapUI

Start my 1-month free trial

Test suite setup and teardown

- One interesting feature in SoapUI is the ability to run set up and tear down scrips. So you can find them on Test Suites. If we open this Test Suite, you can see we have a set up script section and a tear down script section, and we also have them on Test Cases as well. Once again the set up script and a tear down script. So the way that these work is they run before each object in it, so we're looking at the Test Case here. Before each test step it's going to run the set up script and then after the Test step completes, it's going to run the tear down script. Now in this case we don't have anything to find so it's not going to run anything. Well let's go ahead and try this out. I'll expand this, make it a bit bigger and let's make this a bit bigger as well just so we have room. And what we'll do is we'll take this data driven test that we have here where we're reading in a file and then we're executing something for each line in the file, and lets imagine that maybe this file is…

Contents