Forum Discussion

CCaulfield's avatar
CCaulfield
New Contributor
13 years ago

Creating a custom test step

Where I work we use Excel data sources as a way of quickly defining dozens or even hundreds of test instances that we can then fire through a set of test steps. It also means we can split the work of the developers and testers: the developers use soapUI to structure the test cases; and the testers, who aren't so familiar with soapUI, use Excel to create the test case scenarios.

But, our WSDLs are getting more complex and representing them in Excel and making sure we don't make simple typos is becoming harder.

So, my plan is to create a new test step called something like "Configure Excel Data Source". It will present the request and reply messages in a Form viewer and the user can fill in their test data and expected results with some guarantee that the data is going through some basic validation (data types, mandatory values, valid enumerations and so on). The end result will be a single line in an Excel spreadsheet. The user will be able to repeat this process to build as many test instances as they want. I'd also display these test instances in a table on a separate tab so they're recorded for audit purposes and can be edited or deleted. When this Excel spreadsheet is complete, it can be used in the usual data source loop.

From this posting (http://www.soapui.org/forum/viewtopic.php?f=3&t=6436&hilit=WsdlTestStepFactory&sid=105110346c1285bdca3aeab81381793e) and http://www.soapui.org/Developers-Corner/custom-factories.html I can see that I need to subclass WsdlTestStep and WsdlTestStepFactory to create my new test step, but I'm not sure how to bolt on the GUI components. Are there any tutorials or examples around that do to this next level?