Skip to content

Test Plan

Yan Zhang edited this page Feb 6, 2018 · 5 revisions

Generate a Maven Project

Quickstart with dependency search

  1. Open VS Code without opening any folder.
  2. Open Command Palette, execute command Spring Initializr: Generate a Maven Project.
  3. Input a invalid Group Id, verify:
    1. It doesn't pass the validation.
  4. Input a valid Group Id, e.g. com.microsoft.example, press <Enter>.
  5. Input a invalid Artifact Id, verify:
    1. It doesn't pass the validation.
  6. Input a valid Artifact Id, e.g. sample-artifact, press Enter.
  7. Select a version, verify:
    1. It lists compatible dependencies for the specified version you selected.
  8. Select some dependencies, verify:
    1. Selected dependency is entitled by a check mark, and is placed ahead of the dependency list.
    2. Can cancel the selection by pressing <Enter> on a selected dependency.
    3. The first entry is Selected # dependency(ies), and # is the number of seleted entries.
  9. Press <Enter> on Selected # dependency(ies), verify:
    1. It pops up a directory-selection dialog.
  10. Choose a target folder, verify:
    1. During generating, it shows process in status bar.
    2. After the process disappear, it shows a information message box on the top.
  11. Click Open it, verify:
    1. It opens the project in current window.
  12. Open pom.xml in root folder, verify:
    1. Group Id and Artifact Id are correct.
    2. Selected dependencies are added under <dependencies> tag.
  13. Verify the folder structure is organized as Group Id.

Quickstart with last settings

  1. Open Command Palette, execute command Spring Initializr: Generate a Maven Project.
  2. Input a valid Group Id, e.g. com.microsoft.example, press <Enter>.
  3. Input a valid Artifact Id, e.g. sample-artifact, press Enter.
  4. Press <Enter> on Use Last Settings, verify:
    1. The dialog shows the dependeny(ies) name in last settings.
  5. Choose a target folder, open it and verify the pom.xml, using same steps above.

Generate a Gradle Project

Same steps with above, but using command Spring Initializr: Generate a Gradle Project.

After that, verify build.gradle instead of pom.xml.

Customized Spring Initializr Service URL

  1. Open User settings in VS Code.
  2. Change value of entry spring.initializr.serviceUrl, e.g. "http://start.cfapps.io/", or run the service locally
  3. Verify:
    1. Can generate a project from the specified service URL.

Default value of GroupId and ArtifactId.

  1. Open User settings in VS Code.
  2. Change values of entry spring.initializr.defaultGroupId, spring.initializr.defaultArtifactId.
  3. Open Command Palette, execute command Spring Initializr: Generate a Maven Project.
  4. Verify:
    1. GroupId and ArtifactId are filled by the specified default values.

Clone this wiki locally