I am a newbie in EA (Enterprise Architect). Could you please help me to solve my problem about unit test generation from activity diagram?
Firstly, let me show more detail about my problem:
My requirement is that generate unit test case from activity diagram or class diagram. Each unit test is included test case name or test case id, test case input& expected output, test case scenario or test case activity diagram (I think too difficult to generate unit test code).
I tried 2 way different:
Transform class to "unit test" class by "right click to class -> advanced -> transform". But unfortunately, the unit test class has only test function without input or output
convert activity diagram -> scenario then convert scenario -> test case. But I can not convert activity diagram to scenario. I searched with google, the information I got that only generated activity from scenario can convert to scenario.
So, could anyone please help me to answer 2 question:
- Could we generate unit test case from activity diagram. Each test case included name, input& expected output and scenario.
- If yes, could you please guide this way to me?
Thanks.