Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 111714 - AutoGUIRunner doesn't capture keyboard shortcuts
Summary: AutoGUIRunner doesn't capture keyboard shortcuts
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: amehrega CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-05 20:35 EDT by Allan Pratt CLA
Modified: 2016-05-05 11:07 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Pratt CLA 2005-10-05 20:35:07 EDT
The test recording system does not seem to capture keyboard shortcuts - at least
not control-S for "Save."

To reproduce:

  1. Start recording.
  2. Choose File > New > File
  3. Specify the file's location (your testsuite project will do) and name
  4. Type some contents into the file.
  5. Press control-S to save the file.
  6. Click the "close" box on the file's editor tab.
  7. Stop recording.

You will see that the captured test script does not contain anything about the
control-S action.

If this is a limitation of the recording technology, we should document it
("Always use menu items like File > Save, never use keyboard shortcuts") so
people aren't quite so surprised later.
Comment 1 amehrega CLA 2005-10-06 09:37:27 EDT
Yes, this is a limitation of the tool.  I'll mark this as an enhancement to 
support keyboard binding.

I will update 111391 to include this limitation in the userguide document
Comment 2 amehrega CLA 2005-10-07 19:27:13 EDT
Setting the version to 4.2 and the target milestone to unspecified.  I will wait
for the plan until this is approved for 4.2.
Comment 3 Valentina Popescu CLA 2005-10-11 15:12:03 EDT
Update version to 4.2
Comment 4 amehrega CLA 2005-10-18 16:11:55 EDT
Note that keyboard events can be captured if position-based recording is turned
on.  There are some issues with position-based recording that I will be fixing
in defect 110726.

Ctrl+S can be simulated with something like:

<macro version="0.1" >
   <shell id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
      <command type="key-down" detail="262144" ischarset="false"/>
      <command type="key-down" detail="19" ischarset="true"/>
      <command type="key-up" detail="19" ischarset="true"/>
      <command type="key-up" detail="262144" ischarset="false"/>
   </shell>
</macro>
Comment 5 amehrega CLA 2006-01-25 15:35:41 EST
Capturing keyboard shortcuts is focus dependent (i.e. the editor needs to have focus for the shortcut to have an affect).  Any focus dependent command is considered to fall under position-based recording.

If position-based recording is enabled, then keyboard shortcuts will be captured as mentioned in the previous command.  

I'm marking this as won't fix.
Comment 6 Paul Slauenwhite CLA 2006-11-16 09:02:06 EST
ACTION: Please verify/close this defect.
Comment 7 Paul Slauenwhite CLA 2007-02-12 12:58:14 EST
Closing by default since not closed by the originator in the 7+ months since being resolved.  

Please reopen if the issue is still present in the latest TPTP release or the resolution is not correct.