During this paper, a very important effort is formed to propose a brand new technique to get the optimized take a look at ways from UML sequence diagram. A tailored algorithmic rule known as as Firefly algorithmic rule is employed to induce the vital ways. Firefly algorithmic rule is met heuristic and impressed from flashing behavior of fireflies. | Functional test case generation and redundancy removal based on model driven testing using uml activity diagram