Forum Discussion

328's avatar
328
Established Member
10 years ago

Outgoing WSS overrides by method/environment

Hi folks,

 

I'm building a regression suite for a service where each of a handful of operations has a different outgoing WSS preset for each of our several environments. E.g. operation1 has presets for op1env1, op1env2, op1env3, operation2 has op2env1, op2env2, etc.

 

I'd like to automate setting the override preset so I can use a single set of test cases across all environments. I'm picturing this happening in one of two ways:

 

1. A groovy test step in each test case that checks the environment and sets the relevant steps' outgoing WSS profile accordingly, or

2. A setup script at a higher level that would run through all the test cases and do the same.

 

Does anyone have any recommendations how I should go about doing this? Any suggestions would be appreciated.

1 Reply

  • Well, you could define an event that triggers on test step (or case or suite) execution that does this. That way you don't have to write a whole bunch of scripts, just the one.