Apache Jmeter scripts are used for performance testing. In WSO2 Open Banking solution, JMeter scripts are used to test API flows. After following the steps for the pre conditions, we can test with JMeter scripts. Currently, WSO2 Open Banking solution supports JMeter script testing for the following.
Before you begin
Follow the preconditions that are required to test Accounts flow and Payments flow using the available JMeter scripts. The steps are mentioned below.
Download following dependency jar files and put them into
Generate public and private keys using the following commands.
If you have obtained the OBIE certificate when configuring DCR, use the certificate and keys to generate the keystore with the following commands.
Find the below descriptions for the parameters. Change them accordingly;
tpp.com.crt :Private certificate obtained from OBIE
tpp.com.key :Private keys
Create a sample application, subscribe to an API and generate production/sandbox keys. Open and provide the content between BEGIN CERTIFICATE and END CERTIFICATE of the
myalias.pemfile as the application certificate.
Create a directory named
jwtExtResourcesin a preferred location and place the
jks keystorefile created in the above steps.
[JMETER_HOME]/binpath and add the required properties. Example properties are as follows.
Update the global variable to read the
setup.propertiesfile by calling the variable in the format. e.g.,
Within the global variable, please set the values for the below properties based on published API's. This will ensure that each API call reads the API context, version and resource, path based on the configurations.
Create a file named
[JMETER_HOME]/bin/jwtExtResourcesdirectory with below details.