RCPTT Documentation Center
  • User Guide
  • FAQ
  • Back to RCPTT Main Site
  • Eclipse.org
  • Get Started
  • Test Case Editor
  • Control Panel
  • Assertions
  • Eclipse Command Language
    • New ECL Command Guide
    • ECL commands for Excel import and export
    • ECL commands for XML import and export
  • Contexts
    • Workspace
    • Workbench
    • Launch
    • Preferences
    • Parameters
    • Group
    • Folder
    • Default
    • Super
    • ECL Script
  • Verifications
    • Text
    • Table/Tree
    • Error Log
    • Time
  • Procedures and Variables
  • Test Runner
    • Arguments
  • Maven plugin
  • RAP
    • Install instructions
    • Record and Replay
    • Capability Contexts
    • ECL commands
    • Maven plugin
  • Integration
    • TestRail
    • Zephyr

Parameters Contexts

Move a mouse over highlighted areas on a screenshot below to get a documentation regarding UI elements

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 selection dialog with list of tags from another test resources.
Disabled for Parameters Context
Add new parameter in a Parameters Context
Remove parameter(s) from a Context
A list of parameters with their values

Introduction

One of the most asked features for RCPTT is to execute a same test with different parameters. I'm going to demonstrate how it is possible to achieve the same effect using Parameters Context. As an example, let's test error messages in JDT New Class Wizard. We start with a Java project with a single class:

At first, let's record an initial script which launches new class wizard, sets package and class name and asserts an error message:

Now, what we really want is to type various values into Package and Name fields and make sure that error message changes accordingly. As a next step, let's parameterize a script using Parameters Context:

Next, let's place a Parameters Context into a Test Case and use $paramName in a script:

Please learn more about more efficient way of script parametrization by using Super Context