I am looking for some insight on how other people manage their scenarios. I ran into a problem where I am duplicating my code and I am sure it’s unnecessary. For example, I have a scenario that creates a workspace in my application. It’s a simple scenario that looks like this:
I also want to create the same scenario but have it run for a certain duration so I create a separate class like this:
As you can see it’s the same scenario except for the during statement. Is there a better way to do this without having to have separate classes like this? I was thinking of adding another configuration option and adding a doIf statement to choose which to use depending on the value of that but that seems wrong too.