SAP

Web

Must Learn!

Big Data

In this tutorial, we will demonstrate the steps to download, Install and Configure SOAP UI (Open Source Version).

Following is the software and hardware requirement for the various platforms.

SOAPUI Download, Install, & Configuration: Complete Tutorial

In this tutorial installation is done on a Windows Environment. The process remains the same for other OS.

Here is the roadmap for the installation process

 

SOAPUI Download, Install, & Configuration: Complete Tutorial

Part A: Downloading

  • Navigate to http://www.soapui.org/
  • Scroll down and choose the downloader based on your operating system. In this tutorial, we will install SOAP UI on a 64 bit Microsoft Windows operating system.

    SOAPUI Download, Install, & Configuration: Complete Tutorial

  • Upon clicking download, the user is automatically forwarded to http://sourceforge.net/ and the installer download starts automatically.

Part B: Installing

Step 1: After downloading, execute the file as 'Administrator' as shown below

SOAPUI Download, Install, & Configuration: Complete Tutorial

Step 2: In the setup wizard, click 'Next' to continue.

SOAPUI Download, Install, & Configuration: Complete Tutorial.

Step 3: Accept the license agreement and click 'Next' to continue.

SOAPUI Download, Install, & Configuration: Complete Tutorial

Step 4: Choose the installation directory or leave the default installation directory as is.

SOAPUI Download, Install, & Configuration: Complete Tutorial

Step 5: Choose the components that you wish to install.

  • SOAP UI is checked by default and NOT user configurable.
  • Source – Enable, If you would like to get access to the source code of SOAP-UI. We have not selected it.
  • Hermes JS – Enable, if the application requires JMS testing.
  • Tutorial – Enable, if you want to access SOAP-UI tutorials Post installation.

    SOAPUI Download, Install, & Configuration: Complete Tutorial

Step 6: The installation wizard asks the user to download and install 'Load UI'. Since Load Testing is not the context of the discussion, we can proceed without selecting it.

SOAPUI Download, Install, & Configuration: Complete Tutorial

 

Step 7: If 'Hermes JMS' is selected in step#5, then the license agreement for 'Hermes JMS' pops up. Accept the license agreement and click 'Next'.

SOAPUI Download, Install, & Configuration: Complete Tutorial

 

Step 7: Choose the folder location for tutorials or else leave the default location as is and click 'Next'.

SOAPUI Download, Install, & Configuration: Complete Tutorial

 

Step 8: Choose the start menu folder location or else leave the default location as is and click 'Next'.

SOAPUI Download, Install, & Configuration: Complete Tutorial

Step 9: Enable the checkbox 'create a desktop icon' and click 'Next'.

SOAPUI Download, Install, & Configuration: Complete Tutorial

Step 10: The Installation starts and upon completing the same, the wizard shows the below status. Click 'Finish'.

SOAPUI Download, Install, & Configuration: Complete Tutorial

Step 11: Upon clicking the 'Finish' button, SOAP UI is launched.

SOAPUI Download, Install, & Configuration: Complete Tutorial

  1. Menu Bar
  2. Quick access toolbar
  3. Project Navigation Area
  4. Workspace Properties
  5. Log area

NOTE: You might see an upgrade screen like below. You can just Ignore the Update

SOAPUI Download, Install, & Configuration: Complete Tutorial

Part C: Configuring

Let us first understand the project structure in SOAP UI.

  • First step in SOAP UI is to create a workspace. There can be several projects associated with a workspace. Users can create more than one workspace. In SOAP UI Pro version, we can seamlessly switch environments to map it to different end points.
  • For Each project, we can create several test suites.
  • For Each Test Suite, there can be several test cases attached to it.
  • For Each Test Case, there can be several test steps associated with it.

Below is the pictorial representation of a workspace structure in SOAP-UI.

SOAPUI Download, Install, & Configuration: Complete Tutorial

Step 1: First step is to create a workspace. Create a workspace as shown below. All the artifacts that we are going to create from now on would be contained in this workspace.

SOAPUI Download, Install, & Configuration: Complete Tutorial

Step 2: Enter a name for the workspace and click 'OK.'

SOAPUI Download, Install, & Configuration: Complete Tutorial

Step 3: Now the user has to select the path where this workspace has to be saved.

  1. Select the path where the workspace has to be saved
  2. The name of the workspace XML, which has to be located when user wants to open the workspace in the future.
  3. Click 'Save'.

SOAPUI Download, Install, & Configuration: Complete Tutorial

Step 4: The workspace is created as shown below. We can also access the workspace properties under 'Workspace Properties' Tab.

SOAPUI Download, Install, & Configuration: Complete Tutorial

 

Now we have successfully configured SOAP-UI after downloading and installing such that we can continue to perform testing.

 

Basic GUI Navigation

FILE MENU:

  • Understanding the most frequently used navigations within SOAP-UI is very important for seamless navigation while working on real-time projects. Let us take a look at the file menu first.
     

    SOAPUI Download, Install, & Configuration: Complete Tutorial    

  1. 'New SOAP Project' allows user to create a Project by importing SOAP Request.
  2. 'New REST Project' allows user to create a Project by importing REST Request.
  3. 'Import Project' allows user to import the entire project by locating the corresponding XML.
  4. 'Save All Projects' allows user to save all the opened projects in a single click.
  5. 'Close All Open Projects' closes all the projects opened in that workspace.
  6. 'Rename Workspace' allows user to rename the previously created workspace.
  7. 'Switch Workspace' allows user to switch between workspaces.
  8. 'Preferences' allows user to customize SOAP UI. We will deal with it in next section.
  9. 'Save Preferences' allows user to save their customized settings. When SOAP UI opened for the next time, it uses the user saved preferences.

FILE >> PREFERENCES >> HTTP SETTINGS:

  • Now, let us understand the 'Preferences' from the file menu. Upon Clicking 'Preferences' from 'File' Menu, the below dialog opens.
    • We will go through the most frequently used 'HTTP Settings' in details.
     

    SOAPUI Download, Install, & Configuration: Complete Tutorial

 

  1. Denotes the HTTP Version to be used for request and response.
  2. 'User-Agent Header' allows user to can be predefined using this option. If not defined, it uses the default http client header.
  3. Allows user to specify the compression method. It can be either gzip or deflate or None.
  4. 'If Checked', allows compressed response from hosts.
  5. 'If Checked' disables decompression of the compressed responses.
  6. 'If Checked' closes HTTP connection for each SOAP Request.
  7. 'If Checked', allows user to specify authentication information for the outgoing requests.
  8. Allows user to restrict the maximum number of bytes to be read from a response. ZERO corresponds to unlimited size.

FILE >> PREFERENCES >> WSDL SETTINGS:

  • Now, we will go through the most frequently used 'WSDL Settings' in details.

SOAPUI Download, Install, & Configuration: Complete Tutorial

  1. Cache WSDLs Turns on and off caching of WSDL's
  2. Generates example values in requests
  3. Allows users to always include optional elements in generated requests
  4. Response messages are printed in the response editor
  5. Allows user to specify a directory containing schema (.xsd) files while validating WSDL requests. Upon changing the contents of this directory SOAP UI requires a restart.
  6. For the purpose of preserving space, the minimum message size to be compressed in the SoapUI project file.

FILE >> PREFERENCES >> UI SETTINGS:

  • Now, we will go through the most frequently used 'UI Settings' in details.

SOAPUI Download, Install, & Configuration: Complete Tutorial

  1. Closes all projects while launching SOAP UI for better startup-time and consumes less memory.
  2. Displays description whenever available.
  3. Automatically saves all projects while exiting SOAP UI.
  4. Before saving, SOAP UI creates a backup of the project. If enabled, back up folder has to be mentioned.
  5. Displays and expands the log tabs upon starting SOAP UI.
  6. Displays the 'start up page' dialog upon starting SOAP UI.
  7. Upon disabling tool tip, disables tool tip when user hovers mouse over the options/buttons while navigation.

 

HELP:

  • Let us take a look at the important Help menu options.
     

    SOAPUI Download, Install, & Configuration: Complete Tutorial

    1. Shows the home page of the online help available at www.soapui.org
    2. Allows registered users to post questions in forum and get online help from the community.
    3. Checks for the recent updates and installs if there it is available.
    4. Allows user to navigate to the home page of www.soapui.org
    5. Displays the build and version information of the SOAP UI.

The upcoming tutorials will not only make you understand how to create test suite, test case, and test steps but also let you test SOAP requests and how to validate them.

 

YOU MIGHT LIKE: