Share the test WebService gadget STORM

Source: Internet
Author: User
Tags soap wsdl

Http://www.cnblogs.com/yhuang/archive/2012/04/04/share_storm.html

In recent projects, we have been using webservice, and to test the webservice that I wrote, I found a gadget called Storm. It helped me a lot, so I'll share it with you.

Storm

is a free and open source tool for testing Web services. is written in F #, if interested, you can find its source code on the CodePlex.

Storm Features:

    1. You can test Web services written in. NET, Java, and many other programming languages.
    2. Dynamic invocation of Web service methods, even if input and complex data types are required;
    3. Save development time and expense (developing Throw-away test clients just for testing Web services is too wasteful);
    4. Testing multiple Web services in one UI;
    5. Edit and control the original SOAP request;
    6. Others (explore for yourself, more fun!) )。

Operating environment:. NET 2.0 and above, F # 1.9.3.14 (optional)

Storm Quick Get Started:

    1. Add a webservice (as shown): Click Add, enter the endpoint URL of the WSDL, such as

      -Http://www.deeptraining.com/webservices/weather.asmx
      -HTTP://API.GOOGLE.COM/GOOGLESEARCH.WSDL

    2. Choose a Web method: Let Storm parse the Web method, and then give the parameters needed to invoke the method.
    3. Select a Web method parameter, and enter the necessary values.
    4. Click Go (green arrow button): Call the Web method. (results as shown in two)

Figure One: Add Webservie

Figure two: Call the Webserve method to return the result

Storm quick action:

    • Load the WebService and test its method
      1. In the toolbar, click Add
      2. Provide the endpoint URL of the WSDL
      3. Click Go (green arrow button)
      4. Select a Web method or right-click and open it in a new tab page
      5. Click Send

    • Save a SOAP request as a test case
      1. Open WebService
      2. In the tree view (lightning bolt icon), select a Web method
      3. Click Send
      4. In the SOAP input box, switch to either the original view or the XML view
      5. Edit Data
      6. Click Save. Select the "Test Data" option, fill in the test case tags, notes, and so on. Click OK
      7. The original SOAP request message will now be part of the project
      8. Similarly, you can save the SOAP response as an expected response in step 4-7 in the SOAP response output box.

    • Save current session as Storm project
      1. Let's say you've opened a webservice with or without a test case.
      2. Click the Save button in the toolbar
      3. Fill in 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 a saved Storm project
      1. Create a Storm project
      2. Click Open in the toolbar to select the Storm project file you created
      3. Click OK: Load WebService and all test cases.

    • To execute a saved test case
      1. Open a Storm project
      2. Right-click a test Case node. Select Run/edit: This will open a new tab page
      3. Edit the test input as needed (click the Edit icon)
      4. Click Run to invoke the Web method
      5. If it is green, it means that the actual response is the same as the expected response

    • Send multiple array items
      1. Load WebService
      2. Select a Web method that accepts an array as an input parameter
      3. Click "Tree View" to edit
      4. Click Run to invoke the Web method
      5. Switch to the original view. Edit the SOAP request as needed, and you can add as many array items as you like. But make sure that, after you edit, the SOAP request is still in the correct XML format. (You can use XML view to confirm.) )

    • Send multiple member array items
      1. Load WebService
      2. Select a Web method that accepts the class as an input parameter (this class contains array members)
      3. Click on "Tree View" (Lightning icon)
      4. Select Class: Popup object edit box
      5. In the Object edit box, select the array member
      6. Adding array items

Un Ciel Nappéde nuages!

Share the test WebService Gadget STORM (GO)

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.