| <!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 > |
| <a href="https://www.eclipse.org/rcptt/documentation/userguide/getstarted">User Guide</a> |
| </li> |
| <li class="active" > |
| <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/faq/pass-value/">How to pass a value to a test during its execution?</a> |
| </li> |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/faq/install-as-plugin/">Can RCPTT be installed as an Eclipse plugin?</a> |
| </li> |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/faq/resize-window/">How to resize a window?</a> |
| </li> |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/faq/extract-widget/">How to extract an SWT widget from ECL command?</a> |
| </li> |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/faq/verify-control-size/">How to verify changing control sizes?</a> |
| </li> |
| <li class="active" ><a href="https://www.eclipse.org/rcptt/documentation/faq/suite-order/">Is it possible to order tests in a Test Suite?</a> |
| </li> |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/faq/runtime-features/">What does each runtime feature stand for?</a> |
| </li> |
| <li ><a href="https://www.eclipse.org/rcptt/documentation/faq/get-property-raw/">What is the difference between Assert and Verify commands or how to get raw property values?</a> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <div class="col-sm-9"> |
| <h1>Is it possible to order tests in a Test Suite?</h1> |
| <p></p> |
| |
| <div class="panel panel-default"> |
| <div class="panel-body"> |
| <i>Is it possible to change the test case order inside a test suite? Currently it is organized in an alphabetical order...</i> |
| </div> |
| </div> |
| |
| <p>One of core RCPTT principles is test independence (from each other), so you should not rely on test execution order. |
| Test cases independency is one of core principles of testing, and we believe RCPTT plays extremely well to implement |
| this principle with <a href="https://www.eclipse.org/rcptt/documentation/userguide/contexts/">Contexts</a>.</p> |
| |
| <p>However, there is a possibility to change test case order (disabled by defaut).</p> |
| |
| <p>To do this, please open rcptt.ini file and add <b><i>-Dorg.eclipse.rcptt.legacy.testSuite.manualOrdering=true</i></b> line after -vmargs.</p> |
| |
| <p>Once RCPTT is started you can see Move Up/Move Down buttons in Test Suite editor:</p> |
| |
| <p><p>Move a mouse over highlighted areas on a screenshot below to get a documentation regarding UI elements</p> |
| </p> |
| |
| <div class="screenshot"> |
| <img src="https://www.eclipse.org/rcptt/shared/img/screenshot-test-suite-editor.png"></img> |
| |
| <div class="ann" style="top:405px;left:519px;"> |
| <div class="ann-border" style="width:153px;height:80px;"></div> |
| <div class="ann-overlay" style="left:0px;;"> |
| Change order of test cases in a Test Suite (make the Test Suite orderable). |
| |
| </div> |
| </div> |
| |
| </div> |
| |
| <div class="panel panel-warning"> |
| <div class="panel-heading"> |
| <h3 class="panel-title">Important</h3> |
| </div> |
| <div class="panel-body"> |
| <ul> |
| <li>Internally test suites store an option flag - ordered/unordered. By default all test suites are unordered</li> |
| <li>If test suite is ordered OR there's an option in ini-file - test suite editor shows up/down buttons to change test case order.</li> |
| <li>Changing test order automatically converts unordered test suite to ordered.</li> |
| </ul> |
| Therefore, this ini-file option is just a 'hidden' way to convert unordered test suites to ordered. Once a test suite is saved as ordered, any user who opens it should see buttons for changing test order in a test suite disregarding of whether they have this option or not. |
| </div> |
| </div> |
| </div> |
| </div> |
| </div> |
| |
| </section> |
| <script src="https://www.eclipse.org/rcptt/shared/js/main.js"></script> |
| </body> |