Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
15 years ago

Custom test steps in soapUI ?

Hello,
I saw this post on /Ole's blog
http://www.eviware.com/blog/?p=196

Is it possible to create custom teststeps in soapUI ? Here is what I am trying to do.

We have a set of webservices that power some embedded devices like TVs, Blue Ray players etc. The testing of these devices is very manual at the moment. However, it is possible to issue commands to these devices via telnet or some other interface. these commands would correspond to a user pressing some button on the remote. Each event has some output like generating a menu layout file, going to next screen, populating content etc. These are currently visually inspected but should really be automated.

Here comes in soapUI custom test step.

I would like to create/register a soapui teststeps (ex: Menu Command, Playback command, photo slide command). soapUI already has manual teststeps which are really helping out. The ability to create custom teststep would allow automation teams to create functionality for manual testers so that they can semi-automate use cases directly on soapui without actually interacting with the device.

Let me know if this made sense and if you would like more explanation.

Thanks as always

Ali

1 Reply

  • Hi Ali,

    yes, it is actually possible to create your own teststeps in soapUI, but it ain't as straight forward as it is in loadUI. You'll have to create at least two classes; one being a WsdlTestStepFactory and one being a WsdlTestStep, the first needs to be registered with the WsdlTestStepRegistry when soapUI starts (since there is no hook for this happening yet you can add it from the project OnLoad event instead) and the seconds is the actual teststep that needs to run, etc. Then there is quite a lot of plumbing required to get right-button menus, editor windows, etc in place. Can you elaborate on the scope of your components so I can prepare an example?

    regards!

    /Ole
    eviware.com