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:
- You can test Web Services written in. NET, Java, and other programming languages;
- Dynamic call of Web service methods, even if you need to input and complex data types;
- Save development time and cost (it is too wasteful to develop the throw-away test client for testing Web services only );
- Test multiple Web services in one UI;
- Edit and Control Original SOAP requests;
- Others (explore by yourself and have more fun !).
Running Environment:. NET 2.0 or later, F #1.9.3.14 (optional)
Storm Quick Start:
- 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
- Select a Web method: let storm analyze the web method, and then provide the parameters required to call this method.
- Select a Web method parameter and enter the required values.
- 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
-
- Click ADD in the toolbar.
- Provide the endpoint Url of the Wsdl
- Click GO (Green Arrow)
- Select a Web method or right-click it and open it in the new tab.
- Click SEND
- Save the SOAP request as a test case
-
- Open WebService
- In the tree view (lightning icon), select a Web method
- Click SEND
- In the SOAP input box, switch to "original view" or "XML View"
- Edit data
- Click SAVE. Select the "Test Data" option and enter the labels and notes of the Test case. Click OK
- Now, the original SOAP request message will be part of this project
- 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
-
- Assume that you have enabled a WebService with or without a test case.
- Click SAVE in the toolbar.
- 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
-
- Create a storm Project
- Click OPEN in the toolbar and select the created storm project file.
- Click OK to load WebService and all test cases.
-
- Open a storm Project
- Right-click a test case node. Select Run/EDIT: This will open a new tab
- Edit the test input as needed (click the Edit icon)
- Click RUN to call the Web method
- If the response is green, the actual response is the same as the expected response.
- Send multiple array items
-
- Load WebService
- Select a Web method that accepts arrays as input parameters
- Click "Tree View" to edit
- Click RUN to call the Web method
- 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
-
- Load WebService
- Select a Web method that accepts the class as the input parameter (this class contains array members)
- Click "Tree View" (lightning icon)
- Select class: the Edit object dialog box is displayed.
- In the Edit object box, select an array member.
- Add an array
Un ciel napp é de nuages!