System Modelling: Optional Extra Home Assignment (Cucumber)

The optional extra home assignment is the functional testing of your own chess clock, that you have modelled in your home assigment.

You have to write test cases (scenarios), that define sequences of inputs (pushes of the buttons), eventually some setting forward the time, and the expected outputs (displays, beeps) for your chess clock. At the end of each test case (and whereever it seems meaningful within the test case) the outputs must be checked. At the end, each test case must run successfully on your chess clock.

During the design of yout test cases, you have consider the structure of your own model to reach a highest possible coverage. The transition coverage of your test suite shall be shown with a tool (EclEmma) that takes the generated source code of your chess clock, and presents the code coverage also graphically. For a maximum of extra points your transition coverage must be complete.

Your test cases have to be specified in the chessclock.feature file in the Gherkin language, and have to be run by the Cucumber tool. The Gherkin language provides a well-readable format for specifying test cases. We provide a Cucumber project to download that implements each required execution step. The same project includes achessclock.feature file with example test cases (that are not necessarily valid tests of your check clock, they may even explicitly contradict to your specification) to demonstrate the Gherkin language and to help you starting your work.

If you plan to do the extra task, please read first our technical support document about installing and using the above mentioned technologies and tools. Prepare your work in the above mentioned Cucumber project.

Conditions:

  • Submission deadline: End of the 14th week of the semester (14th May, 2017, 11:59 PM), The submission portal is the same one, as for the home assignment.
  • You have to submit in a ZIP file:
    • the chessclock.feature file with your test suite
    • a short documentation (in PDF format) of your test suite, with your design approach, and with screen shots (Coverage view of EclEmma) documenting your reached coverage
  • You have to orally defend your work during the 15th week of the semster.
  • You can get a maximum of 10 extra points for your work.