This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Getting Started

Getting started with RealLoad

This section of the documentation will walk you through the first steps in order to getting started with the RealLoad Product.

Follow the next sections of the document and you should be able to run your first basic test script using the SaaS Evaluation scenario within few minutes.

Let us know if encounter any issues while getting started, as that will help us updating this documentation to make it as clear and user friendly as possible. Please email us at support@realload.com

1 - Portal Sign Up and Login

To get started you’ll need to setup and account for yourself at the RealLoad portal. See here how…

If you already have an account, you can login at https://portal.realload.com external link

Signing Up - Free Account Features

In order to login to the portal you’ll first have to setup an account. Go to the portal URL and click on the Sign Up button or go this URL: https://portal.realload.com/SignUp external link

You’ll need to provide:

  • Email address.
  • Mobile phone number.
  • No credit card required, it’s completely free.

Sign Up Process

Step 1 of 4

Provide your details, including email and mobile number. All data you enter in this form are only required to verify your identity and will not be shared with any third parties.

Step 2 of 4

Validate your email address.

Step 3 of 4

Validate your mobile number.

Step 4 of 4

Configure your nickname and password.

Welcome Page with Examples

Once you signed up, you will be automatically logged in and the welcome page will be displayed. Four examples to perform a test are shown:

2 - Execute a Simple HTTP/S Test

This section gets you kickstarted with a simple HTTP/S Test.

This example shows how a simple HTTP/S Test can be defined as a RealLoad ‘Test’ and executed as both a Load Test Job and a Synthetic Monitoring Job.

The test sequence is manually entered into the HTTP Test Wizard to keep this example simple. However, you can also record HTTP/S tests using an HTTP/S Proxy Recorder and convert the recording into a HTTP Test Wizard session.

Pre-Requisites

To configure and execute a simple test you’ll need:

  • Access to the RealLoad portal. If you haven’t signed up, do so first Sign Up
  • Approx. 20..30 minutes of your time
  • A cup of tea or coffee

1. Invoke the HTTP Test Wizard and Create a New Session

Invoke HTTP Test Wizard and Create New Session

Enter the Headline that briefly describes what the test does.

Enter Session Headline

2. Save the (empty) Session

It’s best to save the empty session now. To do this, you must select a Resource Set of a Project. Alternatively, you can also create a new ‘Project’ and/or ‘Resource Set’. ‘Resource Sets’ are something like sub-directories of a Project, which contain all the files necessary to define and execute a test.

Click ‘Save Session’

Enter the file name for the session, e.g. HttpSession_TestDownloadServer.json and save the session.

Enter File Name of Session

In this example, a new Project named ‘HTTP Tests’ is created which also contains a new Resource Set named ‘Download Server’.

Create new Project and Resource Set

Result: Empty saved Session

3. Add URLs to the Session

Click on the ‘Add’ dropdown and select ‘URL’.

Dropdown ‘Add’ - Select ‘URL’

Enter the URL and click on the ‘+’ icon at ‘Verify HTTP Response’.

Enter URL

At ‘Verify HTTP Status Code’ select ‘200 OK’ and then click the ‘Add URL’ button.

Select ‘200 OK’ and add URL

You can then add additional URLs to the session. In this example it looks like this:

Session with 3 URLs

4. Debug the Session

Before converting the session into a RealLoad ‘Test’ you should Debug the Session first. This way you can check whether all URL calls are working correctly. Click ‘Debug Session’.

Invoke the Session Debugger

This invokes a powerful Remote Debugger that runs always on a Measuring Agent. As shown at the top right of the following image you can also select an alternative Measuring Agent on which the debugger will run.

In the debugger you can also extract values from HTTP responses and assign them to succeeding HTTP requests, whereby the session is automatically synchronized between the debugger and the HTTP Test Wizard.

In the debugger, click Next Step until all URLs have been executed successfully and the end of the session has been reached - or until an error occurs. If an error occurs, exit the debugger, then repair the URL (= HTTP/S request), and then invoke the debugger again.

Debug the Session

After debugging is successful, return to the HTTP Test Wizard.

Return to HTTP Test Wizard

5. Save the (debugged) Session

Save the debugged Session

6. Generate and Compile the Code, and Define the RealLoad ‘Test’

Click ‘Generate Code’

Generate and Compile the Code

After the source code is compiled, click ‘Define New Test’.

Click ‘Define New Test’

Enter the Test Description, and click ‘Define New Test’.

Enter Test Description

The RealLoad ‘Test’ is now defined. From here you can now create both a Load Test Job and a Monitoring Job.

Result: RealLoad ‘Test’ Defined

Note: In case you (later) modify the session in the HTTP Test Wizard, you will have to generate and compile the source code again.

7. Define and Execute a Load Test Job

In the RealLoad ‘Test’ click ‘Define Test Job’.

Click ‘Define Test Job’

In next menu click ‘Continue’ …

Click ‘Continue’

… And select the Measuring Agent on which the Load Test Job will be executed, then click ‘Define Load Test Job’.

Click ‘Define Load Test Job’

The Load Test Job is now defined. Click ‘Start Test Job’.

Click ‘Start Test Job’

Enter the settings of the Load Test Job here and then click ‘Start Test Job’. We recommend the following settings for the first load test run:

  1. Number of Users: 5
  2. Max. Test Duration (Seconds): 60
  3. Max. Loops per User: [unlimited]
  4. Loop Iteration Delay (Milliseconds): 1000
  5. Ramp Up Time (Seconds): 10

Enter Settings and Click ‘Start Test Job’

After a few seconds the Load Test Job is in the state ‘Running’. Click ‘Monitor Jobs’.

Job is ‘Running’, Click ‘Monitor Jobs’

The real-time data of the running Load Test Job is now displayed.

Real-Time Data of running Load Test Job

Click on ‘Analyze Result’ after the Load Test Job is completed.

Load Test Job completed, Click ‘Analyze Result’

The Load Test Job result is then displayed.

Load Test Job Result

To view the Job Output Files navigate to ‘Load Test Jobs’ and click in the dropdown of the Job on ‘Job Log Files’.

Click ‘Job Log Files’

Select the file users.out which contains the Log Output of the Job.

Select File ‘users.out’

If you would like to run the Load Test Job again with the same or changed settings, click on ‘Clone Job’ in the Job dropdown and then start the cloned job.

Clone Load Test Job

8. Define a Monitoring Job

If this is your first Monitoring Job, you must first create a Monitoring Group. Navigate to Monitoring, click the ‘Configuration’ tab and then click ‘Add Monitoring Group’. There is also a help available for configuring the Synthetic Monitoring.

Navigate to Monitoring Configuration

Enter the ‘Group Title’ and select at least one ‘Measuring Agent’ on which the Monitoring Job(s) will be executed. Then click ‘Add Monitoring Group’.

Add Monitoring Group

In the ‘Monitoring Group’ click ‘Monitoring Jobs’ and then click ‘Add Monitoring Job’.

Add Monitoring Job

Select the ‘Test’ of the Monitoring Job.

Select ‘Test’ of Monitoring Job

Click ‘Define Monitoring Job’.

Define Monitoring Job

Enable the execution of the Monitoring Group and navigate to ‘Dashboard’.

Enable Monitoring Group and Navigate to Dashboard

The Monitoring Job is now defined and will be executed periodically. For additional help configuring monitoring (e.g. adding ‘Alert Devices’), see Monitoring Help.

Monitoring Job is Defined

Tip: If you modify the RealLoad ‘Test’, the corresponding Monitoring Job is not automatically updated to avoid unexpected corruption of the Monitoring Job. After you have verified the modified ‘Test’ by running a small Load Test Job, you must manually update the Monitoring Job.

Update the Monitoring Job

Done, congrats, you’ve run your first test with Real Load.

9. Conclusion and Prospects

As you have seen, a RealLoad Test can be run as both a Load Test Job and a Monitoring Job.

This example was deliberately kept simple so that you can become familiar with the RealLoad product. To create a test with a web browser session across multiple web pages, you can use a Remote Proxy Recorder to record the test case and then convert the recording into an HTTP Test Wizard session.

Additionally, a Test Job Template can also be defined from any ‘Load Test Job’, which can then be part of a Test Suite. This means that you can add multiple ‘Test Job Templates’ to a Test Suite and execute them in a single run as a Regression Test.

To learn more, we recommend you read the User Guide. There you will find detailed documentation on the steps described in this document.

3 - SSL Certificate Expired Test

This section gets you kickstarted with a SSL Certificate Expired Test.

This example shows how to create an SSL Certificate Expired Test and configure it as a Synthetic Monitoring Job. If the certificate is about to expire or has already expired, you will receive an alert message.

You will also receive an alert message if the SSL server is not reachable - and depending on the Configuration of the Monitoring Job: you will receive an alert message if the sum of the TCP connect time and the SSL handshake time (in milliseconds) exceeds a configurable threshold.

Pre-Requisites

To configure and execute the test you’ll need:

  • Access to the RealLoad portal. If you haven’t signed up, do so first Sign Up
  • Approx. 5..10 minutes of your time to create a SSL Certificate Expired Test and another 10 minutes to configure the Synthetic Monitoring Job
  • A cup of tea or coffee

1. Call the JavaScript Editor from the Main Menu

Call JavaScript Test Editor

2. Click “New JavaScript Test”

New JavaScript Test

Then:

  • Select a Project (or create a new one)
  • Create a new Resource Set in the Project
  • Select the corresponding Template
  • Enter a JavaScript File Name (any file name ending with *.js)
  • Enter a Test Name
  • Click “Define New JavaScript Test”

Define New JavaScript Test

3. Customize the Test

Modify:

  • serverHost
  • serverPort
  • warnExpiredCertificateHoursBefore

Customize the Test

4. Verify the Test

Click “Save & Execute”: Save and Execute

Enable “Display Log Files after Execution” and then click “Execute Load Test Job”: Verify Test

Click “Start Test Job”: Verify Test

Wait a few seconds until the test is complete. Then close the notification on the left and click on “users.out” in the log files: Verify Test

If no error is reported in the log, your test was successful: Verify Test

5. Add the Test to Synthetic Monitoring

Navigate to Synthetic Monitoring: Synthetic Monitoring

Click the “Configuration” tab and then click “Add Monitoring Group”: Synthetic Monitoring

Enter a “Monitoring Group Title” and then click “Add Monitoring Group”: Synthetic Monitoring

Enable the Monitoring Group execution, click “Monitoring Jobs” and then click “Add Monitoring Job”: Synthetic Monitoring

Select the Test: Synthetic Monitoring

Optionally, you can also configure performance thresholds. Then click “Define Monitoring Job”: Synthetic Monitoring

Go to the dashboard. It may take a few minutes for the monitoring job to run for the first time: Synthetic Monitoring

Synthetic Monitoring

6. Configuring Alert Devices for Synthetic Monitoring

Navigate to “Alert Groups & Devices” and Add Alert Devices: Synthetic Monitoring Alert Devices

Then Add an Alert Group: Synthetic Monitoring Alert Devices

Then Assign Alert Devices to the Alert Group: Synthetic Monitoring Alert Devices

You can also check which Alert Devices are assigned to an Alert Group: Synthetic Monitoring Alert Devices

Synthetic Monitoring Alert Devices

Finally, navigate to “Configuration” and add (assign) the Alert Group at the Monitoring Group level or at the Monitoring Job level: Synthetic Monitoring Alert Devices


Note: This test can be extended in a few steps so that any SSL server can be tested with the same (generic) test.
See the JavaScript Tests documentation at User Input Fields.

4 - Convert a Selenium IDE Test to a RealLoad Test

This example shows how to convert a Selenium IDE Test to RealLoad Test.

This example shows how a Selenium IDE Test - which was recorded with a Chrome or Firefox web browser - can be converted into a RealLoad ‘Test’. The converted RealLoad ‘Test’ can then be executed both as a Load Test Job and as a Monitoring Job. In addition, the converted test can also be part of a Test Suite for performing Regression Tests.

In most cases, the conversion can be done easily with just a few mouse clicks - without the need for any special settings.

At the end of each executed test run (of the converted RealLoad test), a final screenshot of the simulated web browser session is taken for each virtual user so that you can check whether the web browser session of the virtual user has been fully executed.

Tip: If possible, always use the Chrome web browser for Selenium IDE recording, as Chrome sessions are simulated much faster (= more realistic) than Firefox sessions.

Pre-requisites

To configure and execute this test you’ll need:

  • Access to the Real Load portal. If you haven’t signed up, do so first: Sign Up
  • Approx. 20..30 minutes of your time
  • A cup of tea or coffee

1. Export the Selenium IDE Test as JUnit Test

Export the your recorded Selenium IDE Test as Java JUnit file and save the file to any folder on your local device. Note that the 3-dot dropdown icon may initially be hidden and may only appear when you are near to the Selenium ‘Test Case’ area. Do not choose any export option.

Export Java JUnit File

Export Java JUnit File

Export Java JUnit File

2. Upload the exported Selenium JUnit File

At Projects menu click on the ‘Developer Tools’ dropdown and select ‘Convert Selenium IDE Test to Real Load Test’.

Select ‘Convert Selenium IDE Test to Real Load Test’

Then upload the file by ‘Upload File’ or by dragging and dropping the file into the dashed area.

Upload the File

3. Convert the Uploaded JUnit File

Click on the ‘Convert’ button after uploading the file. The converted Java code is then displayed. Then click on the ‘Save & Compile’ button.

Convert Selenium IDE Test

You have to save the converted code in a Resource Set of a Project. You can also first create a new Project with a new Resource Set.

Save Converted JUnit File

After saving the converted code, you will be automatically redirected to the Compile Java File dialog.

4. Compile the Converted JUnit File

The JAR files required to compile are already preselected, i.e. you need only click the ‘Compile’ button.

Compile Converted JUnit File

After successful compilation, click ‘Define or Update Selenium by JUnit Test’.

Define or Update Selenium by JUnit Test

You will then be automatically redirected to the Define JUnit & Selenium Test dialog.

5. Define the Selenium RealLoad ‘Test’

Select the JUnit @Test method (in this case only one will be shown) and click ‘Define Test’.

Define Selenium RealLoad ‘Test’

In an intermediate step you can enter an (optional) test description.

Enter Test Description

Now the Selenium RealLoad ‘Test’ is defined from which you can define a Load Test Job and/or a Monitoring Job.

Result: Defined RealLoad ‘Test’

6. Note about Measuring Agents

Please note that not all Measuring Agents support the execution of Selenium jobs. You can ‘ping’ a Measuring Agent at application level to find out whether Selenium jobs are supported:

Ping Measuring Agent

Example 1: Measuring Agent ‘Demo Agent 1 (CH)’ does not support Selenium jobs

Ping ‘Demo Agent 1 (CH)’

Example 2: Measuring Agent ‘Demo Agent 2B (CH)’ supports Selenium jobs

Ping ‘Demo Agent 2B (CH)’