Free Web Services - Herong's Tutorial Examples - v2.13, by Herong Yang
Creating and Running Script
This section provides a tutorial example on how to create test projects with TestSuite, TestCase and TestSteps in SoapUI.
With the script TestStep created in the previous tutorial, we can now enter some script code and run the TestStep, the TestCase, or the TestSuite.
1. Double click on "HelloWorld" under "MyTestCase". You will see an empty script window open.
2. Enter one statement into the script window:
log.info("Hello world!");
3. Click the "Run" icon (a small green triangle) below the script window title bar. You will see the TestStep executed successfully with a log message displayed in the output area near the bottom:
Sun Feb 1 19:30:50 GMT 2020:INFO:Hello world!
4. Close the "HelloWorld" window and double click "MyTestCase" You will see the "MyTestCase" window open.
5. Click the "Run" icon. You will see the TestCase executed successfully with a log message displayed in the output area near the bottom:
Step 1 [HelloWorld] OK: took 14 ms.
6. Close the "MyTestCase" window and double click "MyTestSuite" You will see the "MyTestSuite" window open.
7. Click the "Run" icon. You will see the TestSuite executed successfully with a green "FINISHED" bar.
Cool. Now we know how to run a TestStep, a TestCase or a TestSuite in SoapUI.
Table of Contents
►SoapUI - Web Service Testing Tool
Downloading and Installing SoapUI
Mock Web Services - herongyang.com/Service
"SoapResponder" and Web Service Test Tool
"Calculator" for 4 Integer Operations
DataFlex Web Service for Country Information
LatLonListCityNames - Return Latitudes and Longitudes of US Cities
LatLonListZipCode - Return Latitudes and Longitudes of US Zip Code
TempConvert Web Service for Temperature Conversion
NDFDgenByDay - US Weather Forecast by Day
NDFDgen - US-Weather Forecast for a Single Location
Bitcoin Blockchain Data API (or Explorer)
flickr.interestingness.getList - Get Interesting Photos
NumberToWords - Convert Number in Digits to Words
TitleCaseWordsWithToken - Words to Title Case Format
"PUG SOAP" Web Service for PubChem Database
Discontinued: Currency Converter by kowabunga.net
Discontinued: GetCountries - Get All Countries and Territories
Discontinued: GetCurrencies - Get Currencies from All Countries
Discontinued: GetGMTbyCountry - Get GMT Information of a Given Country
Discontinued: GetISD - Get ISD Phone Code of a Given Country
Discontinued: GetCitiesByCountry - Get Cities by Country
Discontinued: GetInfoByState - Get ZIP Codes of a Given US State
Discontinued: GetAirportInformationByCountry - Get Airport Code by Country
Discontinued: GetGeoIP - Get Country by IP Address
Discontinued: ConvertTemp - Convert Temperature Unit
Discontinued: ChangeLengthUnit - Convert Length Unit
Discontinued: ConvertWeight - Convert Weight Unit
Discontinued: ChangeAreaUnit - Convert Area Unit
Discontinued: Code39 - Generate Bar Code Images in Code 39 Format
Discontinued: GenerateBarCode - Generate Bar Code Images
Discontinued: GetMortgagePayment - Calculate Mortgage Payment
Discontinued: ConversionRate - Get Currency Exchange Rate
Discontinued: GetQuote - Get Stock Quote
Discontinued: GetSunSetRiseTime - Get Sunrise and Sunset Time
Discontinued: GetWeatherByZipCode - Get Weather by ZIP Code in US
Discontinued: getTime - Get the Current Time
Discontinued: questionSearch - Search Yahoo! Questions and Answers