Forum Discussion

Defender's avatar
Defender
Contributor
14 years ago

Add ability to copy & paste assertions between test steps

For example, I have a couple of requests from several parameters. I need to test some similar things in them, for example, return status code, headers etc. I wrote several script assertions for the first step to do it. The rest of steps needs the same. Now I need to create another set of script assertions & move my code from the 1-st step for each assertion manually. It is slightly inconvenient. Could you please add a possibility to copy & paste assertion (and also group of assertions) from one step to another?

5 Replies

  • AHo's avatar
    AHo
    Occasional Contributor
    Hi,

    i have a similar problem / request.
    I have to add five basic assertions to all of my 840 TestSteps.
    Is there an easy way to do this right now?

    If not here are two ideas:
    * copy&paste for assertions and group of assertions (as Defender requested)
    * "global assertions" which can be placed in a TestCase and then are available in all TestSteps


    so long,

    AHo
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    Cloning assertions already exists in soapUI Pro.

    Regards,
    Dragica
    /eviware.com
  • Hi,

    Yep, I installed the trial & found it. Thanks for your reply!

    Can you please clarify should this feature appear in a free version or it will be available in Pro versions only?
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    Well, for now we have no intention of moving it to free version.

    Regards,
    Dragica
    /eviware.com
  • If you wanted to add a set of assertions to all your tests then you could simply to a bit of find and replace magic on the raw SoapUI xml project file.