Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
XSLT Tools/SmokeScenarios
Revision as of 23:04, 30 August 2008 by D a carver.yahoo.com (Talk | contribs) (New page: These tests are based on chapter 17 of the [http://www.cafeconleche.org/books/bible2/chapters/ch17.html XML Bible: XSLT]. This chapter is also a good introduction for those that aren't fa...)
These tests are based on chapter 17 of the XML Bible: XSLT. This chapter is also a good introduction for those that aren't familiar with XSLT and need a primer on getting started.
Contents
Prereqs
- Create a Project to hold the XML and XSL files. This project will also hold the output for the transformations.
- Create an XML file that contains the periodic table from Listing 17-1.
XSL Tools Smoke Test Scenarios
The following scenarios will test the basic functionality of the editor. These scenarios are broken into several sections that will test options of the XSL Tools editor and plugins from end to end.
Scenario 1: Simple XSL Stylesheet Editing Test
- Create a new XSL File by using the New XSL File Wizaard.
- Give the XSL File a name like Scenario1.xsl
- Select a normal XSL Stylesheet.
- Using the XSL Editor, create the styelsheet in Listing 17-2.
- Test Content Assistance for XSLT elements.
- Note that currently that within non-xsl elements there isn't content assistance for the elements until an XSL element is added.
- Test Content Assistance for XSLT elements.
- Save the File.
- Verify that Validation is working as expected.
- Verify that Validation Preferences can be changed.
Launching, Debugging
- Open and Close Editor
- Ensure views are maintained
- Add Tests
- Element (From Design and Outline)
- Complex Type
- Simple Type
- Attribute
- Attribute Group
- Groups
- Modify names
- Attribute Refs and modify refs
- Selection Tests
- Synchronization between views (Properties, Graph, Source, Outline)
- Delete Tests
- Delete globals and locals
- Drag and Drop
- Elements in a sequence
- Source Editing
- As you type validation
- Content Assist
- Context Menus
- Switch back to the graph view and ensure it is refreshed with any source changes
- Extensions
- Add and delete extensions
- Add attributes
- Constraints
- Change lengths
- Add enumerations
- Refactoring
- Rename a complex type
- File creation & saving
- Save/Save As
- Close without saving
- Open existing file
- Create new file using new XSD file wizard
- Validation
- Disconnected mode
- Dependency validation as of WTP3.0M7. Add validation builder to the project. Introduce a change to a schema that will invalidate an xml file. Ensure the XML file is automatically validated with an error.
- XML Catalog
- Resolve schemas in jars
- Test the Next Catalog. Export and Import catalog files.
- Properties
- Attributes - Value Default and Fixed and Form
- Attribute Refs
- Generators
- Generate an XML file from an XSD file
- Unused Imports (New to 3.0.1)
- Check preferences under XML->XML Schema Files
- Test that unused imports and includes are removed