Wednesday, February 16, 2011

SOAPUI

Steps needed.

  1. Create a New Rest SOAPUI project.
  2. Import the WADL to create the REST project.
  • If the REST project does not have a WADL file, it can be created easily by typing the REST url with ending application.wadl under the context of REST
  • http://host/project/context/application.wadl
  • This will generate the WADL file required for SOAPUI.
  • Create a TestSetup in the SOAPUI project.
    1. Create a TestSuite.
    2. Write the Groovy script in the setup portion of the Testcase.
    3. If the Groovy file needs an external library or your application class jar that file and add them under the /bin/ext folder in SOAPUI home folder. Otherwise you will get the classnot found error during exception.
    4. Create a property file if you want a dynamic variable change during your request.
    5. Create the REST request as the test case
    6. Now change the Request file to add the properties.
    7. Run the Testsuite.

    Monday, February 14, 2011

    REST WADL

    http://10.xxx.xx.x:8080/{$projectname}/{$rest}/application.wadl That should generate the required WADL for creating SOAPUI project