jst j2ee
test plan: Opening files in Editors
WTP LogoWTP Home
Intoduction
 

The test case explains opening of different resources in different editors.

Steps
 

    Opening deployment descriptors

  1. Create an EAR with all the modules
    1. File-->New-->Project
    2. Select Enterprise Application Project under J2EE-->Next
    3. Enter the name as TestEAR-->Next
    4. Click on New Module-->Finish
    5. Finish
  2. Expand the TestEAR-->Double Click on the TestEAR deployment Descriptor
  3. Application.xml file should open up in the xml editor
  4. Expand different modules and double click on the deployment Descriptor's of each module. Deployment descriptor should open in the xml editor.
  5. Change the default editor to text editor by right clicking on the Deployment Descriptor-->Open With-->Text Editor.
  6. File should open up in text editor instead of xml editor.
  7. Close the file and double click on the Deployment Descriptor. Deployment Descriptor should open up in the text editor.

    Opening text files

  1. Enable the filter to display all files.(.* files should be unchecked)
  2. Expand the TestEARClient
  3. Double click on the .j2ee file.
  4. File should open in the text editor.
    Opening Java files

  1. Expand the TestEARClient
  2. Double click on the function main(String[])
  3. The file should open up in Java Editor and the method main should be selected.
  4. Close the Main.java file.
  5. Change the default editor of the .java file by right click on Main.java-->Open With-->Text Editor
  6. The file opens in the text editor. Close the file
  7. Double click on the Main.java file. The file should open in the text editor instead of Java Editor.