StepCoverage

29 views
Skip to first unread message

Tamás Kende

unread,
May 15, 2013, 4:23:50 AM5/15/13
to osmo...@googlegroups.com
Hi,

maybe I am wrong but I thought the StepCoverage gets a list of transition (or test step) names and only ends the test if all was executed. I planned to use it to cover all test steps once, but in the init method it gets the defined list, removes every transition what it gets from the suite from it and check for something to remain, but of course in my case nothing is left... 

What do I wrong?

Cheers

Tamas

Teemu Kanstrén

unread,
May 15, 2013, 10:28:01 AM5/15/13
to osmo...@googlegroups.com
Hi Tamas,

 Not sure what you mean. You can give StepCoverage a list of steps to cover. The check for ending is then to see if the given list has been covered or not. This is done by taking a copy of the list, removing all covered steps, and checking if there remains anything to cover. Maybe you got confused in looking at the endSuite() method whereas if you use it as a test end condition (not suite end condition) you need to look at the endTest() method.

Teemu


--
You received this message because you are subscribed to the Google Groups "osmo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmo-mbt+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Tamás Kende

unread,
May 15, 2013, 10:48:58 AM5/15/13
to osmo...@googlegroups.com
Sorry, it seems I sent the response in a direct email to you...

Tamás Kende

unread,
May 15, 2013, 10:59:39 AM5/15/13
to osmo...@googlegroups.com
Ok now I know what it does, I have overseen the not empty thing...
This is the exception I get:

java.lang.IllegalStateException: Impossible coverage requirements, defined steps [] not found.
at osmo.tester.generator.endcondition.structure.StepCoverage.init(StepCoverage.java:109)
at osmo.tester.generator.MainGenerator.beforeTest(MainGenerator.java:335)
at osmo.tester.generator.MainGenerator.nextTest(MainGenerator.java:104)
at osmo.tester.generator.MainGenerator.generate(MainGenerator.java:70)

the list has an empty string... sorry :D

2013. május 15., szerda 10:23:50 UTC+2 időpontban Tamás Kende a következőt írta:

Teemu Kanstrén

unread,
May 15, 2013, 11:06:58 AM5/15/13
to osmo...@googlegroups.com
OK :) Well, glad you found the cause..


--
Reply all
Reply to author
Forward
0 new messages