Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "J2EE Accessibility Smoke Test"

(New page: == Setup == * Configure a Java EE 5 compatible server. * Open the ''Java EE'' perspective. == Scenario == === Create new Web project === * Hit '''Alt+Shift+N, D''' to launch the ''Dyna...)
 
(Deploy and run the application)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
== Overview ==
 +
 +
This test case covers basic Java EE end-to-end scenario with keyboard accessibility.
 +
 +
Accessibility issues are tracked in the Bugzilla: [https://bugs.eclipse.org/bugs/buglist.cgi?keywords=accessibility;query_format=advanced;keywords_type=allwords;target_milestone=3.2%20M5;target_milestone=3.2%20M6;target_milestone=3.2%20M7;target_milestone=3.2%20M5;target_milestone=3.2%20M6;target_milestone=3.2%20M5;target_milestone=3.2%20M6;target_milestone=3.2%20M7;product=Dali%20JPA%20Tools;product=WTP%20Common%20Tools;product=WTP%20EJB%20Tools;product=WTP%20Java%20EE%20Tools;classification=WebTools click]
 +
 
== Setup ==
 
== Setup ==
 
* Configure a Java EE 5 compatible server.
 
* Configure a Java EE 5 compatible server.
Line 31: Line 37:
  
 
=== Create new EJB Session Bean ===
 
=== Create new EJB Session Bean ===
 +
 +
* Hit '''Alt+Shift+N, S, S, S, Enter''' to launch the ''EJB Session Bean'' wizard.
 +
* Hit '''Alt+P''' to move the focus to the ''EJB project'' field.
 +
* Use the '''Down Arrow''' key to navigate to the ''DemoEJB'' project.
 +
* Hit '''Alt+K''' to move the focus to the ''Java package'' field.
 +
* Write '''org.eclipse.demo''' in the text field.
 +
* Hit '''Alt+M''' to move the focus to the ''Class name'' field.
 +
* Write '''DemoBean''' in the text field.
 +
* Hit '''Alt+F''' to finish the wizard.
 +
 +
=== Modify the source code of the EJB Session Bean ===
  
 
* Use '''Ctrl+F7''' to navigate to the ''Project Explorer'' view.  
 
* Use '''Ctrl+F7''' to navigate to the ''Project Explorer'' view.  
Line 47: Line 64:
 
  return "Hello, " + name + "!";
 
  return "Hello, " + name + "!";
  
* Hit '''Ctrl+S''' to save the editor.  
+
* Hit '''Ctrl+S''' to save the editor.
  
=== Move the DemoEJBClient.jar to the EAR library directory ===
+
=== Move the DemoEJBClient.jar to the EAR library directory ===
  
* Use '''Ctrl+F7''' to navigate to the ''Project Explorer'' view.  
+
*Use '''Ctrl+F7''' to navigate to the ''Project Explorer'' view.  
* Use the '''arrow keys''' to navigate to the ''DemoEAR'' project.  
+
*Use the '''arrow keys''' to navigate to the ''DemoEAR'' project.  
* Hit '''Alt+Enter, M''' to show the ''Module Assembly'' property page.  
+
*Hit '''Alt+Enter, Tab, M''' to show the ''Module Assembly'' property page.  
* Change the ''Deploy Path'' of the ''DemoEJBClient'' project to '''/lib/DemoEJBClient.jar''. Accessibility problem!
+
*Change the ''Deploy Path'' of the ''DemoEJBClient'' project to '''/lib/DemoEJBClient.jar''.
* Hit '''Enter''' to close the dialog and apply the changes.  
+
 
 +
'''Accessibility problem!''' [https://bugs.eclipse.org/301969 301969] Module Assembly page entries not editable with keyboard
 +
 
 +
*Hit '''Enter''' to close the dialog and apply the changes.
  
 
=== Create new Servlet ===
 
=== Create new Servlet ===
  
* Hit '''Alt+Shift+N, S, S, S, Enter''' to launch the ''Servlet'' wizard.  
+
* Hit '''Alt+Shift+N, S, S, Enter''' to launch the ''Servlet'' wizard.  
 
* Hit '''Alt+P''' to move the focus to the ''Web project'' field.  
 
* Hit '''Alt+P''' to move the focus to the ''Web project'' field.  
 
* Use the '''Down Arrow''' key to navigate to the ''DemoWeb'' project.  
 
* Use the '''Down Arrow''' key to navigate to the ''DemoWeb'' project.  
Line 70: Line 90:
 
* Hit '''Alt+N''' to advance to the next wizard page.  
 
* Hit '''Alt+N''' to advance to the next wizard page.  
 
* Hit '''Alt+P''' to deselect the ''doPost'' checkbox.  
 
* Hit '''Alt+P''' to deselect the ''doPost'' checkbox.  
* Hit '''Alt+F''' to finish the wizard.  
+
* Hit '''Alt+F''' to finish the wizard.
  
 
=== Modify the source code of the Servlet ===
 
=== Modify the source code of the Servlet ===
Line 87: Line 107:
  
 
* Hit '''Alt+Shift+X, R''' to launch the ''Run On Server'' wizard.  
 
* Hit '''Alt+Shift+X, R''' to launch the ''Run On Server'' wizard.  
 +
 +
'''Accessibility problem!''' [https://bugs.eclipse.org/302257 302257] Run On Server hotkey does not always work
 +
 
* Hit '''Alt+F''' to finish the wizard. The application should now deploy and the servlet should be executed in the internal browser.  
 
* Hit '''Alt+F''' to finish the wizard. The application should now deploy and the servlet should be executed in the internal browser.  
  
[[Category:Eclipse_Web_Tools_Platform_Project]] [[Category:WTP_Testing_Related|WTP_Testing_Related]]
+
[[Category:Eclipse_Web_Tools_Platform_Project]] [[Category:WTP_Testing_Related| WTP_Testing_Related]]

Latest revision as of 15:30, 9 November 2011

Overview

This test case covers basic Java EE end-to-end scenario with keyboard accessibility.

Accessibility issues are tracked in the Bugzilla: click

Setup

  • Configure a Java EE 5 compatible server.
  • Open the Java EE perspective.

Scenario

Create new Web project

  • Hit Alt+Shift+N, D to launch the Dynamic Web Project wizard.
  • Write DemoWeb in the Project name field.
  • Hit Alt+F to finish the wizard.

Create new EAR project

  • Hit Alt+Shift+ N, E, Enter to launch the Enterprise Application Project wizard.
  • Write DemoEAR in the Project name field.
  • Hit Alt+N to advance to the next wizard page.
  • Hit Alt+J to move the focus to the Java EE module dependencies list.
  • Use the Down Arrow key to navigate to the DemoWeb project.
  • Hit Space to select the DemoWeb project.
  • Hit Alt+F to finish the wizard.

Create new EJB project

  • Hit Alt+Shift+ N, E, E, Enter to launch the EJB Project wizard.
  • Write DemoEJB in the Project name field.
  • Hit Alt+P to check the Add project to an EAR checkbox.
  • Hit Alt+R to move the focus to the EAR project name list.
  • Use the Down Arrow key to navigate to the DemoEAR project.
  • Hit Alt+F to finish the wizard.

Create new EJB Session Bean

  • Hit Alt+Shift+N, S, S, S, Enter to launch the EJB Session Bean wizard.
  • Hit Alt+P to move the focus to the EJB project field.
  • Use the Down Arrow key to navigate to the DemoEJB project.
  • Hit Alt+K to move the focus to the Java package field.
  • Write org.eclipse.demo in the text field.
  • Hit Alt+M to move the focus to the Class name field.
  • Write DemoBean in the text field.
  • Hit Alt+F to finish the wizard.

Modify the source code of the EJB Session Bean

  • Use Ctrl+F7 to navigate to the Project Explorer view.
  • Use the arrow keys to expand the metadata of the DemoEJB project and navigate to the DemoBeanLocal node.
  • Hit Enter to open the DemoBeanLocal interface in the Java editor.
  • Use the keyboard to add new business method declaration:
public String sayHello(String name);
  • Hit Ctrl+S to save the editor.
  • Use Ctrl+F6 to switch to the Java editor of the DemoBean class.
  • Use the arrow keys to navigate to the class declaration – should be underlined with red marker.
  • Hit Alt+1, Enter to invoke the Add unimplemented methods quick fix.
  • Use the arrow keys to navigate to the generated method stub and replace the implementation with:
return "Hello, " + name + "!";
  • Hit Ctrl+S to save the editor.

Move the DemoEJBClient.jar to the EAR library directory

  • Use Ctrl+F7 to navigate to the Project Explorer view.
  • Use the arrow keys to navigate to the DemoEAR project.
  • Hit Alt+Enter, Tab, M to show the Module Assembly property page.
  • Change the Deploy Path of the DemoEJBClient project to '/lib/DemoEJBClient.jar.

Accessibility problem! 301969 Module Assembly page entries not editable with keyboard

  • Hit Enter to close the dialog and apply the changes.

Create new Servlet

  • Hit Alt+Shift+N, S, S, Enter to launch the Servlet wizard.
  • Hit Alt+P to move the focus to the Web project field.
  • Use the Down Arrow key to navigate to the DemoWeb project.
  • Hit Alt+K to move the focus to the Java package field.
  • Write org.eclipse.demo in the text field.
  • Hit Alt+M to move the focus to the Class name field.
  • Write DemoServlet in the text field.
  • Hit Alt+N to advance to the next wizard page.
  • Change the text in the Name field to demo.
  • Hit Alt+N to advance to the next wizard page.
  • Hit Alt+P to deselect the doPost checkbox.
  • Hit Alt+F to finish the wizard.

Modify the source code of the Servlet

  • Use the keyboard to add new member variable:
@EJB private DemoBeanLocal bean;
  • Use the keyboard to replace the implementation of the doGet() method with:
response.getOutputStream().println(bean.sayHello("Team"));
  • Hit Ctrl+S to save the editor.

Deploy and run the application

  • Hit Alt+Shift+X, R to launch the Run On Server wizard.

Accessibility problem! 302257 Run On Server hotkey does not always work

  • Hit Alt+F to finish the wizard. The application should now deploy and the servlet should be executed in the internal browser.

Back to the top