Post

1 follower Follow
0
Avatar

Automatic renumbering of step references

I know that Case Complete will look after the renumbering of step numbers for extensions if the steps of the main scenario change, but I have a slightly different concern.

Often I refer to a step number within a step description, such as to say something like "the use case continues at step 12 ...". Obviously I would like these references to be renumbered automatically as well. I have noticed that sometimes it works and somtimes it does not, in which case I am in danger of losing the integrity of the references.

I have not figured out why it works only sometimes, and would appreciate advice on how to make this work all the time.

Many thanks

Tony Alderson Answered

Please sign in to leave a comment.

1 comment

0
Avatar

Hi Tony,

The algorithm it uses is pretty simple. CaseComplete looks in the steps of an extension. If it sees any numbers that fall within the range of steps in the main success scenario it will assume that the last one that appears in reading order (left to right) refers to a use case step and will do renumbering on it if the referenced step changes. It's not super-complex - if you have an extension that reads "the use case returns to step 5 if there are 4 items on the order" it won't interpret that in the way you want.

Hope that helps - give me a shout if you need more info on this.

Ron

Permanently deleted user 0 votes
Comment actions Permalink