Previous Topic

Next Topic

Book Contents

Book Index

Execute Java code

In This Section

Introduction

Operation and syntax

Write the Java code

Configure NeoLoad

Prepare the data

Design the Virtual User

Validate the Virtual User

Tests and results

Related links

See Also

Design - General

Create Business Transactions

Log in with multiple accounts using a CSV file

Create realistic populations

Validate a server response

Tunnel mode: Record a mobile application

How to extend NeoLoad capacities using Custom Advanced Actions

Why does Component Testing matter?

Introduction

During a load test, it is possible to execute Java code that is external to the Virtual Users. This feature allows NeoLoad functional range to be extended in order to create Virtual Users with a very complex behavior.

This tutorial takes as its example RMI (Remote Method Invocation) calls to a remote Java server. The server provides two services: one gives the dollar value of a stock on the US Stock Exchange, the other provides for the conversion of one currency to another. You are going to string together the call to these two services to obtain a stock price in Euros.