Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!

# Duplicate Sequence diagram flows (vs referencing)

Alex Belisle Turcot
Ranch Hand
Posts: 516
Hi ranchers,

I've been a silent reader on this board for this certification.. I've been working on Part2 for a few weeks now and I'm almost done.
At this point, the only thing I'm struggling with is the idea of duplicating identical flows in 3 sequence diagrams.
I keep going over this and can't get my mind straight.
My goal here is to have some of your input, opinions, comments...

--------------------------------------------------------
Imagine you have the 2 following use cases :
• View oranges and pick the nicest
• View apples, pick the nicest and make juice

• [SOLUTION 1]
I could create 2 supports Sequence diagram:
• (A) View "fruit"
• (B) Pick nicest "fruit"

• Then the 2 Sequence Diagrams would be as follow
• View oranges and pick the nicest (entirely referring to A and B)
• View apples, pick the nicest and make juice (referring to A, B and adding the juice flow)

• [SOLUTION 2]
• Create both Sequence Diagrams from scratch and duplicate the flows in both.

• --------------------------------------------------------
By duplicating, it gives me the opportunity to use "getApples()" and "getOranges()" instead of "getFruits(String: fruitName)".
When reusing sequence diagram, I'm not sure I like the fact that I would have to use generic words (such as fruit)..

Do you think SUN would mind that I duplicate flows ?
Or do you think they would mind that they have to look for referenced diagrams ?

Alex

Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35095
380
Alex,
In real life, I would absolutely go with approach #1. I find myself doing a few things in part 2 that I would never do in real life though to meet what I think Sun wants. I'm under the impression they want the duplication.

Arpit Kumar Jain
Ranch Hand
Posts: 41
Hi Feel, Referencing another sequence diagram is a better idea.

Thanks
Arpit Jain