Contexts
Contexts are one of the most powerful RCPTT features. A context is a relevant part of the application state, which is expected to be recreated by the test case. It could be anything, starting from There should be an FTP service available at IP address 192.168.0.10, or as it can be seen from the Eclipse tester perspective: There should be these particular files in the Eclipse Workspace, Java Perspective should be opened, MyJavaClass.java file should be opened in the editor.
The test engineer can group contexts in any combination required for particular test, and it makes a context an important unit for reuse within your test base. RCPTT brings the application to the state required for the test to run properly.
When using most of testing frameworks and tools, you can see that every test case has to take care of its own set-up, verification, and clean-up. In the set-up phase the application should be brought to a state where the actual test can be executed. In the verification phase the actual testing is performed, results are evaluated and marked as a passed or failed test. The clean-up phase should bring the application back to a state preceding the setup - a so-called base state - to make it ready for the next test.
With RCPTT Contexts there is no need to write any set-up and clean-up code; moreover, they represent reusable units of code which can be included in different test cases. It increases test base maintainability, resolving the task of AUT setup
If a test case relies on the results of the preceding test case, then failure of the latter one most likely will cause the failure of the one that runs afterwards. Such cascading errors would make it very difficult to find the core of these failures. It also implies that test cases are run in the strict order which is rarely the case. Inadvertent reordering of the test case execution (e.g. by a tester or a testing framework) could cause a chain of failures in the Test Suite which was executed faultlessly the previous day.
Test cases should be executable in any sequence. This important characteristic would allow a maintainer to choose a subset of test cases to run without having to concern about the interdependencies between test cases. This is quite difficult to be implemented on practice.
RCPTT lets you have Independent test cases, without any efforts. Importantly, RCPTT test cases do not require AUT to be in the base state, letting you to start any test case from any AUT state. Contexts are responsible for bringing an AUT to the state required for the particular test execution.
Moreover, while using other frameworks and tools, the requirement to run each and every test from the zero state would be far too expensive in case of tests that modify a complex global state (e.g. creating or modifying a database). In such situations test cases relying on specific presets can be grouped together but the interdependencies between them should be well documented to help future maintainers with analysis of such a Test Suite.
RCPTT can perform deep analysis of the contexts being used within the test suite and group them together for faster test execution. This would be done by RCPTT automatically without any work on test execution performance required from a tester.
Monday, Jan 1, 0001
Default Contexts
It’s good practice to make test case to be focused on testing functionality itself and all operations for preparing application should be moved out from test case to some place. In case of RCPTT the contexts is the right place for these purposes. RCPTT contexts are applied to application …
Monday, Jan 1, 0001
ECL Script Contexts
ECL Script contexts serve two purposes: Allow to execute any ECL script before running your test. This can be useful for some test setup routines which cannot be performed by other context types but still they need to be separated from the main testing logic and/or re-used in multiple tests. Allow …
Monday, Jan 1, 0001
Folder Contexts
Introduction If you need to prepare your AUT workspace you use a Workspace context Workspace context which places files on a workspace before a test execution. But sometimes you may need to put data somewhere outside your AUT workspace - anywhere on your disc space. Folder Context was coined for …
Monday, Jan 1, 0001
Group Contexts
The Group context represents combined references to contexts of other type which might help in context management. It is possible to group together Workspace, Workbench, Preferences, etc., contexts together and refer to this group as a single Group context in the Test Editor. The Group Context …
Monday, Jan 1, 0001
Launch Contexts
Launch contexts are used to control AUT Launches and Launch Configurations. A searchable name to identify and find the context among others Tags allow arbitrary grouping of contexts. Use Tags view to see the groups. Add tags interactively Make a snapshot of AUT running launches and launch …
Monday, Jan 1, 0001
Parameters Contexts
Context name. This name is automatically synced with file system name. Symbols in name which are not allowed in file names are replaced with underscore character. Comma-separated list of arbitrary hierarchical tags, i.e. resourcePerspective, jira/PC-1352, windows-only Use this button to open tag …
Monday, Jan 1, 0001
Preferences Contexts
Introduction Preferences contexts ensure that correct Application-Under-Test preferences are configured before test execution. This can be particularly useful when preferences which control the behavior of pop-up dialogs are being set in your AUT. The well-known example, while not completely …
Monday, Jan 1, 0001
Super Contexts
Introduction A test case in RCPTT consists of two parts: list of contexts, defining an application state ECL script describing UI actions and validating that application behavior in given state is correct. In some cases it might be required to execute same actions with just a few variances in …
Monday, Jan 1, 0001
Workbench Contexts
Workbench contexts are used to control perspective, views and open editors of application under test Context name. This name is automatically synced with file system name. Symbols in name which are not allowed in file names are replaced with underscore character. Comma-separated list of arbitrary …
Monday, Jan 1, 0001
Workspace Contexts
Workspace contexts are used to control the state of an application workspace. Context name. This name is automatically synced with file system name. Symbols in name which are not allowed in file names are replaced with underscore character. Comma-separated list of arbitrary hierarchical tags, i.e. …