Forum Discussion

RP5user's avatar
12 years ago

Copy/Paste assertions

Hi!

I'm currently working in a project where response messages can be 10000-20000 lines long and include several hundred assertions. The response message contains similar repeating elements, so there are also many groups of similar assertions.

To keep track on assertions they should always be in the same order with appearance in the response message (preferable grouped if possible). I clone assertions from message to another but they always need to be modified since different test cases include different number of classes.

A a newly created assertion is always the last one. You can move it up one step by klicking the arrow.
In my current project, to place it to the right place can take several hundred klicks! Since this is quite boring I would very appreciate the abilility to copy and paste assertions in a message.

Btw, thanks for the ability to choose and delete several assertions at the same time.

-Timo
  • nmrao's avatar
    nmrao
    Icon for Champion Level 2 rankChampion Level 2
    Hi,

    Not sure i fully understand your requirement.

    You may consider to have a script assertion which will be one place for all your assertions to iterate over repeatable elements using a closure/function, for instance. It may reduce your copy/paste work of assertions.


    Regards,
    Rao.