| <!DOCTYPE html> |
| <head> |
| <title>RCPTT Blog</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"> |
| <link rel="alternate" type="application/atom+xml" href="https://www.eclipse.org/rcptt/blog/atom.xml" title="RCP Testing Tool Blog"/> |
| <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> |
| <a href="https://www.eclipse.org/rcptt/blog"><span class="navbar-brand">RCPTT Blog</span></a> |
| </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/blog/">Latest Entries</a> |
| </li> |
| <li > |
| <a href="https://www.eclipse.org/rcptt/blog/categories">Categories</a> |
| </li> |
| <li > |
| <a href="https://www.eclipse.org/rcptt/blog/tags">Tags</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"> |
| <article> |
| <header> |
| <h2>RCPTT 1.5.2 Released</h2> |
| <small>Sep, 15, 2014 by Ivan Inozemtsev</small> </header> |
| <div> |
| <p></p> |
| |
| <p>On September, 12, we released a new bugfix version of RCP Testing Tool. The complete list of fixed issues is savailable on <a href="https://projects.eclipse.org/projects/technology.rcptt/releases/1.5.2/bugs">1.5.2 release page</a>, and the latest version can be downloaded from <a href="https://www.eclipse.org/rcptt/download">Downloads</a> page. In this topic I would like to outline a couple of my favourite improvements.</p> |
| |
| <h3 id="doc-comments-for-ecl-procedures-%23441757">Doc Comments for ECL procedures (<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=441757">#441757</a>)</h3> |
| |
| <p>Now, multiple adjacent single line comments or a single multiline comment exactly above a procedure is considired to be its user-defined description. This description is interpreted as raw HTML and used in autogenerated documentation. So, consider a procedure definition like this:</p> |
| |
| <p></p> |
| <pre ><code class="language-ecl">​// <p>Convenience method to set given <b>text</b> |
| // into a text field, located after a <b>label</b> |
| // in given <b>parent</b></p> |
| // <p>Example:</p> |
| // <pre> |
| // get-window "New Class | set-text-after-label "Name:" "Foo" |
| // </pre> |
| proc "set-text-after-label" [val parent -input] [val label] |
| [val text "text"] { |
| $parent | get-editbox -after [get-label $label] | set-text $text |
| } |
| </code></pre> |
| |
| <p>the resulting doc, which is displayed in documentation hover and completion proposals, would look like this:</p> |
| |
| <p><img src="https://www.eclipse.org/rcptt/shared/img/blog/1.5.2/hover.png" /></p> |
| |
| <!-- break --> |
| |
| <h3 id="folder-context-improvements">Folder context improvements</h3> |
| |
| <p>Two improvements were made:</p> |
| |
| <ul> |
| <li><p>Ability to view file contents in Folder contexts (<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=442326">#442326</a>)</p> |
| |
| <p>Now it is possible to select a file inside a folder context, click "Open File" -- selected file will be opened with a text editor in read-only mode. This might be useful to quickly examinate contents, but in a future we are going to add an option to modify contents in place.</p></li> |
| <li><p>Support for variables in folder context root (<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=442537">#442537</a>)</p> |
| |
| <p>Now when specifying the root folder for Folder context, it is possible to use arbitrary variables, supported by <em>org.eclipse.core.variables</em> plugin. Note: the resolution of these variables is performed inside AUT, hence this feature is available only if AUT does include <em>org.eclipse.core.variables</em> plugin.</p></li> |
| </ul> |
| |
| <p><img src="https://www.eclipse.org/rcptt/shared/img/blog/1.5.2/foldercontext.png" /></p> |
| |
| <h3 id="ecl-improvements">ECL improvements</h3> |
| |
| <h4 id="delete-file-command-%23442660">delete-file command (<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=442660">#442660</a>)</h4> |
| |
| <p>Now it is possible to remove files/folders from a file system: |
| </p> |
| <pre ><code class="language-ecl">​format "%s/.my-app-tmp" [get-java-property "user.home"] | uri-to-file | delete-file |
| </code></pre> |
| |
| <h4 id="improved-switch-command-%23442016">improved switch command (<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=442016">#442016</a>)</h4> |
| |
| <p>Switch command accept an input value and a number of cases to compare value with:</p> |
| |
| <p></p> |
| <pre ><code class="language-ecl">​proc "get-os" { |
| invoke-static -pluginId "org.eclipse.core.runtime" |
| -className "org.eclipse.core.runtime.Platform" |
| -methodName getOS |
| } |
| |
| proc "print-os" [val os] { |
| switch $os |
| [case "win32" { |
| log "current OS is Windows" |
| }] |
| [case "linux" { |
| log "current OS is Linux" |
| }] |
| [case "macosx" { |
| log "current OS is Mac OS X" |
| }] |
| -default { |
| log [format "Unknow os: %s" $os] |
| } |
| } |
| |
| print-os [get-os] |
| </code></pre> |
| |
| <p>Stay tuned!</p> |
| |
| </div> |
| <p class="categories"> |
| Categories: |
| <a href="https://www.eclipse.org/rcptt/blog/categories/news">news</a> </p> |
| |
| <nav class="article"> |
| <ul> |
| <li>Next: <a class="next" href="https://www.eclipse.org/rcptt/blog/2014/09/19/regression-testing.html" title="Regression Testing with RCP Testing Tool"><span class="title">Regression Testing with RCP Testing Tool</span></a></li> |
| </ul> |
| </nav> |
| |
| <p><a href="https://www.eclipse.org/forums/index.php/t/812579/">Discuss</a> this article on forum.</p> |
| </article> |
| </div> |
| |
| </section> |
| <script src="https://www.eclipse.org/rcptt/shared/js/main.js"></script> |
| </body> |