Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
People Directory
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Dashboard
Q7
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
Colour
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Undo
Redo
Keyboard Shortcuts Help
<p>Eclipse RCP applications mostly are cross-platform by its nature. So should be UI tests. Tests created on Windows desktop should replay well on Linux Continuous Integration server. It is important to execute your test base on different operating systems to ensure application quality on all platforms.</p><h3>Hotkeys</h3><p>On Mac OS X, most shortcuts differ from Windows and Linux in the way that they use Command instead of Control. So even a trivial file save operation might be non-portable. To workaround this, Q7 records all shortcuts in terms of abstract SWT modifiers, so this script works on all supported operating systems:</p><table class="wysiwyg-macro" data-macro-name="noformat" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e25vZm9ybWF0fQ&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> get-editor "Program.java" | get-text-viewer | key-type "M1+s" </pre></td></tr></table><h3>Tooltips</h3><p>Buttons without text can be identified by tooltip text. However, if tooltip contains keyboard shortcut, then its text becomes platform-dependent:</p><p><img class="confluence-embedded-image" src="/download/attachments/6095230/platform-dependent-tooltip.png?version=1&modificationDate=1653481222777" data-image-src="/download/attachments/6095230/platform-dependent-tooltip.png?version=1&modificationDate=1653481222777" data-linked-resource-id="6066686" data-linked-resource-type="attachment" data-linked-resource-default-alias="platform-dependent-tooltip.png" data-base-url="http://help.xored.com" data-linked-resource-container-id="6095230" title="platform-dependent-tooltip.png" data-element-title="platform-dependent-tooltip.png"></p><p>Q7 Runtime replaces default shortcut formatter, so that text becomes the same on all platforms:</p><p><img class="confluence-embedded-image" src="/download/attachments/6095230/platform-independent-tooltip.png?version=1&modificationDate=1653481222692" data-image-src="/download/attachments/6095230/platform-independent-tooltip.png?version=1&modificationDate=1653481222692" data-linked-resource-id="6066685" data-linked-resource-type="attachment" data-linked-resource-default-alias="platform-independent-tooltip.png" data-base-url="http://help.xored.com" data-linked-resource-container-id="6095230" title="platform-independent-tooltip.png" data-element-title="platform-independent-tooltip.png"></p><h3>Main Menu</h3><p>While ensuring test portability, we pay attention even to small details. Main menu on Mac OS X differs from Windows and Linux – menu items for preferences and about dialogs are not in <code>Window -> Preferences</code> and <code>Help -> About</code>:</p><p><img class="confluence-embedded-image" src="/download/attachments/6095230/macosx-menu.png?version=1&modificationDate=1653481222862" data-image-src="/download/attachments/6095230/macosx-menu.png?version=1&modificationDate=1653481222862" data-linked-resource-id="6066687" data-linked-resource-type="attachment" data-linked-resource-default-alias="macosx-menu.png" data-base-url="http://help.xored.com" data-linked-resource-container-id="6095230" title="macosx-menu.png" data-element-title="macosx-menu.png"></p><p>To make tests interacting with these menu items portable, we created two special commands – <code>get-preferences-menu</code> and <code>get-about-menu</code>:</p><table class="wysiwyg-macro" data-macro-name="noformat" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e25vZm9ybWF0fQ&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre>get-about-menu | click get-preferences-menu | click </pre></td></tr></table><h3>Native dialogs</h3><p>Q7 supports all platform native dialogs in platform-independent fashion. Instead of dealing with native UIs, Q7 virtualise native dialogs during test execution by providing data, which has been captured during test recoding.</p><h3>Good for Operating Systems, what about Web (RAP)?</h3><p>Q7 tests not only executes well on any supported operating systems. For single sourced RCP and RAP applications you can run the same test against your RCP and RAP deployments without any changes. And yes, all Q7 features work for RAP, just run your RAP application and start recording your tests.</p>
Attachments
Labels
Location
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced