cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

TS 60 RESTSupport

REST Support Test Specification for "NetBeans 6.0"

Author: Lukas Jungmann
Version: 1.0
Last update: 30/05/2007
Introduction: This test specification covers the RESTful web services support in the IDE.
Comments: See also project home, how to run tests

Contents


Test suite: REST support validation suite

Purpose: This suite tests basic functionality of the RESTful web sevices support in the IDE and it is intended to be automated and run on a daily basis.
Setup: IDE with latest build of GlassFish

+ SWDP and some existing web project with entity classes from bundled database
  1. Open Project
    1. Open prepared project in the IDE
    • EXPECTED RESULT: Project is visible in Project tab
  2. Create REST Classes
    1. Open New File Wizard
    2. Choose Web Services -> REST Web Services from Entity Classes and press Next
    3. Press Add All button and finish the wizard
    • EXPECTED RESULT: new sources are visible in the project view
  3. Build and deploy project
    1. Run Deploy action on the project with RESTful web services
    • EXPECTED RESULT: Project is successfully built and deployed on the server
  4. HTTP GET
    1. Run HTTP GET request against deployed RESTful web services (on URL: http://<host><:port>/<contextRoot>/restbean/microMarkets/)
    • EXPECTED RESULT: XML returned from the service contains the same entries as Select * from "APP"."MICRO_MARKET"
  5. HTTP POST
    1. Send sample xml to http://<host><:port>/<contextRoot>/restbean/purchaseOrders/ using HTTP POST
    • {{{1}}}
  6. HTTP PUT
    1. Send sample xml to http://<host><:port>/<contextRoot>/restbean/purchaseOrders/ using HTTP PUT
    • {{{1}}}
  7. HTTP DELETE
    1. Run HTTP DELETE request against deployed RESTful web services (on URL: http://<host><:port>/<contextRoot>/restbean/purchaseOrders/99999999/)
    • {{{1}}}
  8. Clean up
    1. Undeploy test application from the server
    • EXPECTED RESULT: Application is not deployed on the server