/ibm-sterling-b2b-cd-loadtest-with-jmeter

Setting up JMeter to do load testing in IBM Sterling B2B and Connect:Direct

Primary LanguageJavaMIT LicenseMIT

Setting up JMeter to do load testing on IBM Sterling B2B and Connect:Direct

Do not use GUI mode for load testing!, only for test creation and test debugging.

For load testing, use CLI mode (not GUI):

jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder]

increase the Java Heap to meet your testing requirements Best Practices with JMeter

Creating Partners in Sterling File Gateway

Create some partners, for example:

  • demo_partner01
  • demo_partner02
  • demo_partner03
  • demo_partner04
  • demo_partner05

Follow the steps below to create partners: IBM Sterling File Gateway: Creating a Partner

Creating the Load Test using the FTP Protocol

  1. Create a new test plan "Test Plan"
  • Name: SB2Bi FTP Test Plan
  1. Select the 'Test Plan' node and right click on it.

  2. Hover over Add -> Topic (Users) -> Thread Group "Thread Group"

  • Number of Threads (Users) = 5
  • Ramp-up Period (seconds) = 1
  • LoopCount = 5
  1. Add a Sample > FTP and specify connection settings:
  • Server Name
  • Port Number
  • Username
  • Password (unencrypted)
  • FTP command to be executed (such as get or put)
  • Remote File
  • Local File
  1. Optional: Create other Samples by changing FTP

  2. Add to Listener > View Results Tree

  3. Add to Listener > View Results in Table

  4. Run the test

JMeter FTP to Sterling

Creating the Load Test using the SFTP Protocol

Prerequisites

  1. Download the Plugins Manager JAR file ( https://jmeter-plugins.org/get/ ) and place it in JMeter's lib/ext directory.

  2. Then start JMeter and go to the Options menu to access the Plugin Manager .

  3. Under available plugins, search for SSH , install the plugin.

Creating the Test Plan

  1. Create a new test plan "Test Plan"

Name: SB2Bi SFTP Test Plan

  1. Select the 'Test Plan' node and right click on it.

  2. Hover over Add -> Topic (Users) -> Thread Group "Thread Group"

  3. Add a Sample > SSH SFTP and specify connection settings:

  • Hostname
  • Port
  • User Name
  • Password
  • Action
  • Source path
  • Target path
  1. Optional: Create other Samples using SFTP

  2. Add to Listener > View Results Tree

  3. Add to Listener > View Results in Table

  4. Run the test