My FNZ Studio Version

Solution Maintenance

Latest Update: 28.05.2024 |
Documentation
2024
2023
2022.2
2022.1
11
10
9
8
7
6

Introduction

Projects usually have multiple stakeholders, ranging from management through to end users and those responsible for maintaining the Solution’s infrastructure.

Functional testing, such as user acceptance testing, has become so ingrained that it is recognizable from its "UAT" acronym. UAT is an established practice and regularly built into release planning. Performance and load testing, on the other hand, have not yet reached the same level of recognition and adoption.

The term "load testing" is usually defined as the process of exercising the system under test to see how well it operates under expected conditions. Load testing does not aim to break the system by overwhelming it, but instead "tries to keep the system constantly humming like a well-oiled machine."

As a consequence of running load tests, you are better able to identify issues with the solution design, and discover bottlenecks or other issues relating to the infrastructure. Being aware of these before going into production gives you the opportunity to improve and optimize the solution before release.

For these reasons, we highly recommend that you perform load testing on your Solution before you make it available to end users. Load testing assures high reliability and efficiency of the designed solution.

1 Load Testing Overview

As introduced above, the goal of load testing is to verify whether the design of the solution is correct and can sustain the estimated load of a specific number of users performing a specific number of tasks in a given period of time. This kind of testing checks the following aspects of the newly designed and developed solution:

  • Whether the infrastructure setup is good enough for the estimated load.
  • That there is minimal downtime, no system outages, and no data loss.
  • That the response times are sufficiently quick and the process flow runs smoothly.
  • That the system is fast and stable.
  • That the solution is properly designed and reliable.

When performing load tests, you can also determine whether your infrastructure is large enough and how many more users it can handle before becoming overloaded.
While functional testing is a well-established practice, load testing is often seen as an optional phase of preparation before moving a solution to production. It is however highly recommended that load testing is performed as well. Remember that stability of the system should never be taken for granted before moving a system to production. Also, some problems with the environment are not outright visible and can only be discovered with diligent load testing before making it available to end users. Load testing is an investment in terms of time and effort but pays off in the long term.

1.1 General Test Workflow

Load testing of a new solution developed with the Appway Platform is carried out as a Java project. The project is created from a ready-made package that contains a fixed folder structure. When customizing this package, you must deliver a set of commands that will simulate users who perform specific tasks on the solution. These commands can be created using the provided toolset – the Vitality Suite.
As the testing progresses, make sure that you document all aspects of it, such as the initial infrastructure configuration, the test progress, and the test results. Document the necessary fixes as well. Good test documentation is necessary to achieve reproducible and trustworthy results.
The following list reflects the general load testing workflow:

  1. You require a preliminary model version of the solution installed locally, including mockup integration.
  2. Prepare test scripts. Remember that you do not want to test the whole solution but specific use cases (variants), for example opening a joint account with a single file upload. These test scripts can be built with the help of the Vitality Command Grabber tool. The whole preparation phase of the testing is estimated to last 2-3 days.
  3. Perform the tests, analyze the results, and repeat. This phase of the testing is estimated to take 3-6 days.
  4. Identify the bottlenecks and other problems and apply fixes for them.
  5. Even if your solution is able to sustain the estimated number of users, perform the tests with more users to check what the maximum capability of your environment is.

1.2 Variants

Load testing consists of a series of automated scenarios known as process variants. Each variant simulates different roles performing actions on a process. For example, the typical variants when testing the Appway Client Onboarding solution are Happy Path, US Joint, or Joint PEP. The following figure ilustrates the concept of variants:

variants.jpg

During each of the tested variants, different user roles, such as Front Office or Compliance, take turns performing actions in the process. Each of the stages when a particular party controls the process is called a variant part. In the Appway Client Onboarding example, tha Happy Path variant has three variant parts, while the US Joint and Joint PEP variants have five parts.
When designing the tests and planning the variants, you must also specify the following two factors related to workload:

  • Distribution of running process instances among variants. For example, in the Client Onboarding solution, most process instances will be related to the Happy Path variant:
    variant_distribution.jpg

  • Distribution of users among the defined roles. For example, in the Client Onboarding solution, half of the users performing actions on the interface are Front Office users:
    user_distribution.jpg

You must also define the specific number of concurrent process instances that will generate the load during your test. This number corresponds to the number of estimated users that will use the solution at the same time.

In the given Client Onboarding example, the final test scenario based on the above assumptions looks like the following:

scenario.jpg

In this example, the assumed number of concurrent users in the happy path scenario is 360 and for US Joint and Joint PEP scenarios the number of concurrent users is 120. Each of the variants must be executed separately.After you run the test for the first time, depending on the results, you can increase or decrease the number of users.

1.3 Identifying Problems and Fixes

While the tests run, you can analyze the current performance using JConsole. When analyzing the results, pay attention to the following metrics that will help you to identify what the reason of the problem is:

  • Memory usage when running the tests
  • CPU usage when running the tests
  • Vitality statistics – these statistics deliver information on how many requests per second the solution had to handle and how much time it took to process each of them
  • Network traffic between the nodes
  • Function call statistics in the Functions tab – helps to identify which functions that consume the most resources
  • Any other type of statistics that can be found in the Appway Studio

The fixes that can be found when performing load testing can be divided into certain types:

  • Platform fixes – these are general problems with the Appway platform
  • Infrastructure fixes – the fixes that are required when the infrastructure that is used for the solution is not sufficient or in some way faulty. An example of such a fix is improving the network stability.
  • Solution fixes – fixes related to the design and development of this particular solution. An example is improving performance of functions or reducing the number of certain calls.

1.4 Provided Toolset

Refer to Load Testing Framework – Vitality Suite for detailed information on the toolset provided for load testing.

2 Running Tests

For running load tests, set up a separate Java project in Eclipse. The provided zip archive contains the recommended project structure:

2.1 Project Structure

Folder Name Description
build/ Contains compiled Java sources.
commands/ Contains command files that are executed by the tests. Each of the command files should have a corresponding properties file. For more details, see Load Testing Framework – Vitality Suite.
dist/ Contains compiled Java sources and libraries that are used to run the tests.
doc/ Contains documentation for the tests.
integration/ Contains setup instructions for a simulated integration.
logs/ Contains log files that are created when running the tests.
properties/ Contains properties that are used to configure the tests.
scripts/ Contains scripts that are used to execute the tests.
specifications/ Contains specifications of the tests.
src/ Contains the Java sources to run the tests.
systems/ Contains the setup instructions for the tests and test results.
.classpath Eclipse classpath file
.project Eclipse project file
build.properties Build configuration
build.xml Build Ant script
README.txt Readme file

2.2 Performing Tests

  1. Set up a new Eclipse project:
    a. Extract the zip archive.
    b. Import the extracted folder as an existing project into your workspace.
  2. Set up simulated integration (if the solution has it):
    a. document under /integration/
  3. Set up the solution:
    a. Create a directory under /systems/<system-name>
    b. Document system and solution setup under /systems/<system-name>/
  4. Specify test details:
    a. Document test steps under /specifications/<variant>.txt
  5. Create test commands:
    a. Use Vitality Command Grabber to simulate the workflow.
    b. Generate an initial set of commands and save under /commands/<variant>/generated/
    c. Finalize the test commands and save under /commands/<variant>/
  6. Run the variant parts. This is a preparation step whose aim is to check whether the command files of the variant parts work properly.
    a. Run the shell scripts under /scripts/<variant_name >/<variant_parts>
    b. Update the test commands.
    c. Fix all warnings and errors.
    d. Document fixes under /systems/<system-name>/
  7. Run the variant. This is a preparation step whose aim is to check if all the variant parts can run concurrently.
    a. Run the shell scripts under /scripts/<variant_name >/<variant>
    b. Update test commands.
    c. Fix all warnings and errors.
    d. Document fixes under /systems/<system-name>/
  8. Run test. During this step, the actual testing is performed.
    a. Run the shell scripts under /scripts/
    b. Document results under /doc/

Steps 1-7 are considered preparation steps and in most cases and they can be performed outside of the actual test environment. Only step 8 must be run in the environment that you want to perform load testing on.

© 2026 Appway AG. All Rights Reserved