Share to test WebService gadgets STORM

Source: Internet
Author: User

In recent projects, we have been using WebService. To test our own WebService, we found a small tool called Storm. It helped me a lot, so I will share it with you.

 

Storm


Is a free and open-source tool for testing Web Services. It is written in F #. If you are interested, you can find its source code on codeplex.


Storm features:


  1. You can test Web Services written in. NET, Java, and other programming languages;
  2. Dynamic call of Web service methods, even if you need to input and complex data types;
  3. Save development time and cost (it is too wasteful to develop the throw-away test client for testing Web services only );
  4. Test multiple Web services in one UI;
  5. Edit and Control Original SOAP requests;
  6. Others (explore by yourself and have more fun !).

Running Environment:. NET 2.0 or later, F #1.9.3.14 (optional)

 

Storm Quick Start:


  1. Add a WebService (as shown in): click Add and enter the endpoint url of the wsdl, for example

    Http://www.deeptraining.com/webservices/weather.asmx
    Http://api.google.com/GoogleSearch.wsdl

  2. Select a Web method: let storm analyze the web method, and then provide the parameters required to call this method.
  3. Select a Web method parameter and enter the required values.
  4. Click GO (green arrow button) to call the web method. (Result 2 is shown)

Figure 1: Add WebServie

 

Figure 2: WebServe method call to return results

 

Storm quick operations:


  • How to load and test WebService
    1. Click ADD in the toolbar.
    2. Provide the endpoint Url of the Wsdl
    3. Click GO (Green Arrow)
    4. Select a Web method or right-click it and open it in the new tab.
    5. Click SEND

 

  • Save the SOAP request as a test case
    1. Open WebService
    2. In the tree view (lightning icon), select a Web method
    3. Click SEND
    4. In the SOAP input box, switch to "original view" or "XML View"
    5. Edit data
    6. Click SAVE. Select the "Test Data" option and enter the labels and notes of the Test case. Click OK
    7. Now, the original SOAP request message will be part of this project
    8. Similarly, you can use step 4-7 to save the SOAP response as the expected response in the SOAP response output box.

 

  • Save the current session as a storm Project
    1. Assume that you have enabled a WebService with or without a test case.
    2. Click SAVE in the toolbar.
    3. Enter the project name and click OK. the following file structure will be created.

      {File} StormProject. stormproj
      -{Folder} ServiceName
      -{Folder} WebMethod
      -{Folder} TestCaseName
      -{File} TestInputLabel_testinput.xml
      -{File} WebMethod_test.config
      -{File} ServiceName_ws.config

       

  • Load saved Storm Projects
    1. Create a storm Project
    2. Click OPEN in the toolbar and select the created storm project file.
    3. Click OK to load WebService and all test cases.

 

  • Execute saved Test Cases
    1. Open a storm Project
    2. Right-click a test case node. Select Run/EDIT: This will open a new tab
    3. Edit the test input as needed (click the Edit icon)
    4. Click RUN to call the Web method
    5. If the response is green, the actual response is the same as the expected response.

 

  • Send multiple array items
    1. Load WebService
    2. Select a Web method that accepts arrays as input parameters
    3. Click "Tree View" to edit
    4. Click RUN to call the Web method
    5. Switch to "original view ". Edit the SOAP request as needed. As long as you like, you can add any number of array items. However, make sure that after editing, the SOAP request is still in the correct XML format. (You can use the XML view for confirmation .)

 

  • Send multiple Member array items
    1. Load WebService
    2. Select a Web method that accepts the class as the input parameter (this class contains array members)
    3. Click "Tree View" (lightning icon)
    4. Select class: the Edit object dialog box is displayed.
    5. In the Edit object box, select an array member.
    6. Add an array

 

Un ciel napp é de nuages!

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.