Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Scout/Concepts/Testing Support

< Scout‎ | Concepts
Revision as of 05:53, 13 November 2013 by Unnamed Poltroon (Talk) (Created page with "{{ScoutPage|cat=Concepts}} This page describes the support included in Scout to test your Scout Application. == Type of tests == JUnit is probably one of the most well-known...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Scout documentation has been moved to https://eclipsescout.github.io/.

This page describes the support included in Scout to test your Scout Application.

Type of tests

JUnit is probably one of the most well-known tools in the library community. In the context of testing scout application, it is used as base for different kind of test (not only unit tests).

Unit tests

Those tests are plain JUnit tests. They need to be executed quickly and provide immediate feeback on what a method is doing. They are useful for testing small units of code without any other dependencies.

Unit tests with Scout context

Note.png
TODO
ClientTestRunner, ServerTestRunner


Tests with UI interaction

Note.png
TODO
You write code for the model thread and for the UI thread. It is possible to write JUnit assertion.


Test with automated testing tool

These tools (have a look at Jubula if you want to use an open-source eclipse project) are working on a different layer: they consider the whole application as a black box. There is some scripting possibility to execute UI operation but this isn’t coding as a developer understand it. The target users are more Q&A members.

These tools are great for Acceptance testing and Regression testing. It is recommended to test the happy path with these tools, to ensure that the key feature of the application can be used.

Executing your tests

For the tests writen with JUnit (plain JUnit or with some extensions).

With maven tycho surefire

Executing scout tests with maven tycho surefire.png

With an application

Executing scout tests with an application.png

Scout additions to support tests

Note.png
TODO
  • ScoutAssert, ScoutClientAssert
  • Test runners
  • Test executor
  • @DevTestMarker


See also

Back to the top