| <!DOCTYPE html> | |
| <head> | |
| <title>RCPTT Documentation Center</title> | |
| <meta charset="UTF-8"> | |
| <link rel="stylesheet" href="https://www.eclipse.org/rcptt/shared/css/bootstrap.min.css"> | |
| <link rel="stylesheet" href="https://www.eclipse.org/rcptt/shared/css/main.css"> | |
| <link rel="stylesheet" href="https://www.eclipse.org/rcptt/shared/css/prism.css"> | |
| <link rel="icon" href="https://www.eclipse.org/rcptt/shared/img/favicon.ico"> | |
| <script src="https://www.eclipse.org/rcptt/shared/js/jquery.min.js"></script> | |
| <script src="https://www.eclipse.org/rcptt/shared/js/bootstrap.min.js"></script> | |
| <script src="https://www.eclipse.org/rcptt/shared/js/prism.js"></script> | |
| <script src="https://www.eclipse.org/rcptt/shared/js/ecl.js"></script> | |
| <script> | |
| (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
| (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
| m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
| })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | |
| ga('create', 'UA-39589807-5', 'eclipse.org'); | |
| ga('send', 'pageview'); | |
| </script> | |
| </head> | |
| <body> | |
| <div id="before-footer"> | |
| <header> | |
| <nav class="navbar navbar-default navbar-static-top" role="navigation"> | |
| <div class="container"> | |
| <div class="navbar-header"> | |
| <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> | |
| <span class="sr-only">Toggle navigation</span> | |
| <span class="icon-bar"></span> | |
| <span class="icon-bar"></span> | |
| <span class="icon-bar"></span> | |
| </button> | |
| <span class="navbar-brand">RCPTT Documentation Center</span> | |
| </div> | |
| <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | |
| <ul class="nav navbar-nav"> | |
| <li class="active" > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/getstarted">User Guide</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/faq/">FAQ</a> | |
| </li> | |
| <li> | |
| <a href="http://eclipse.org/rcptt">Back to RCPTT Main Site</a> | |
| </li> | |
| <li> | |
| <a href="http://eclipse.org">Eclipse.org</a> | |
| </li> | |
| </ul> | |
| </div> | |
| </nav> | |
| </header> | |
| <section class="content"> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-sm-3"> | |
| <div class="rcptt-sidebar"> | |
| <ul class="nav"> | |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/userguide/getstarted/">Get Started</a> | |
| </li> | |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/userguide/testeditor/">Test Case Editor</a> | |
| </li> | |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/userguide/controlpanel">Control Panel</a> | |
| </li> | |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/userguide/assertions/">Assertions</a> | |
| </li> | |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/userguide/ecl/">Eclipse Command Language</a> | |
| <ul class="nav"> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/ecl/new-command-guide/">New ECL Command Guide</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/ecl/excel-import-export/">ECL commands for Excel import and export</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/ecl/xml-import-export/">ECL commands for XML import and export</a> | |
| </li> | |
| </ul> | |
| </li> | |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/userguide/contexts/">Contexts</a> | |
| <ul class="nav"> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/contexts/workspace/">Workspace</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/contexts/workbench/">Workbench</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/contexts/launch/">Launch</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/contexts/preferences/">Preferences</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/contexts/parameters/">Parameters</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/contexts/group/">Group</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/contexts/folder/">Folder</a> | |
| </li> | |
| <li class="active" > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/contexts/default/">Default</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/contexts/super/">Super</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/contexts/ecl/">ECL Script</a> | |
| </li> | |
| </ul> | |
| </li> | |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/userguide/verifications/">Verifications</a> | |
| <ul class="nav"> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/verifications/text/">Text</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/verifications/treetable/">Table/Tree</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/verifications/errorlog/">Error Log</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/verifications/time/">Time</a> | |
| </li> | |
| </ul> | |
| </li> | |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/userguide/procedures/">Procedures and Variables</a> | |
| </li> | |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/userguide/runner/">Test Runner</a> | |
| <ul class="nav"> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/runner/arguments/">Arguments</a> | |
| </li> | |
| </ul> | |
| </li> | |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/userguide/maven/">Maven plugin</a> | |
| </li> | |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/userguide/rap/">RAP</a> | |
| <ul class="nav"> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/rap/install/">Install instructions</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/rap/recordReplay/">Record and Replay</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/rap/capability/">Capability Contexts</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/rap/rap-commands/">ECL commands</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/rap/rap-maven/">Maven plugin</a> | |
| </li> | |
| </ul> | |
| </li> | |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/userguide/integration/">Integration</a> | |
| <ul class="nav"> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/integration/test-rail-integration/">TestRail</a> | |
| </li> | |
| <li > | |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/integration/zephyr-integration/">Zephyr</a> | |
| </li> | |
| </ul> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="col-sm-9"> | |
| <h1>Default Contexts</h1> | |
| <p></p> | |
| <p>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 before test case execution. In eclipse there are several groups of | |
| standard mutable configurations/states: preferences, workspace, workbench.</p> | |
| <p>In the process of using RCPTT to create test projects, we came to the conclusion that some contexts should be executed | |
| before each test cases. For example, when testing JDT before each test should be cleared Workspace and Working Set, | |
| and terminated all active launches. Initially for these purpose Group Context is used, this context should be added t | |
| o each test case in RCPTT project. But this practice was uncomfortable, because at the addition of a new test case, it | |
| was necessary not to forget to add the Default Group Context. So we introduced the concept of the | |
| Default Contexts list.</p> | |
| <p>At the creation new RCPTT Project the <span class="uiElement"> <img src="https://www.eclipse.org/rcptt/shared/img/project-settings-icon.png"></img> Project Settings</span> | |
| file is created automatically.</p> | |
| <p>Description of project can be given in "Description" section of the | |
| <span class="uiElement"> <img src="https://www.eclipse.org/rcptt/shared/img/project-settings-icon.png"></img> Project Settings</span> | |
| . | |
| Default Contexts can be set in "Default Contexts" section. Contexts to default contexts | |
| list can be added from this RCPTT project and also from related RCPTT projects.</p> | |
| <div class="screenshot"> | |
| <img src="https://www.eclipse.org/rcptt/shared/img/screenshot-default-context-editor.png"></img> | |
| </div> | |
| <p>These default contexts are displayed in test cases. Sequence contexts defined in the Default Contexts | |
| list can not be changed in the test case and custom contexts can be added to test case only after | |
| default contexts. <span class="uiElement"> <img src="https://www.eclipse.org/rcptt/shared/img/project-settings-icon.png"></img> Project Settings</span> | |
| can be opened | |
| from test case by clicking on <span class="uiElement"> <img src="https://www.eclipse.org/rcptt/shared/img/ui-configure-project-default-contexts.png"></img> </span> | |
| link.</p> | |
| <div class="screenshot"> | |
| <img src="https://www.eclipse.org/rcptt/shared/img/screenshot-default-context-editor-2.png"></img> | |
| </div> | |
| <p>At the replaying test case the default contexts are displayed in <span class="uiElement"> <img src="https://www.eclipse.org/rcptt/shared/img/ui-execution-view.png"></img> Execution View</span> | |
| . | |
| Custom contexts are executed after default contexts execution.</p> | |
| <div class="screenshot"> | |
| <img src="https://www.eclipse.org/rcptt/shared/img/screenshot-default-context-editor-3.png"></img> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <script src="https://www.eclipse.org/rcptt/shared/js/main.js"></script> | |
| </body> |