Quick guide

Updated 25.4.2018 14:37

Installation

Free trial

1. Go to Download and register for a free trial.

Free trial

2. Go  to your mail inbox and click Download Trial.

Mail Free trial

3. Choose your platform and click Download with license.

Download free trial

4. Save the installation package to your computer.

5. Unpack it. 

6. Start SmartMeter.io by navigating to the unpacked folder and run SmartMeter.exe (.sh on Linux and Mac).

For macOS users: Open Terminal and execute sh SmartMeter.sh in SmartMeter home folder.  

7. Congratulations, you are finished.

Full

1. Go to direct download (if you have SmartMeter already installed, go to step 5.)

Direct download

2. Save the installation package to your computer.

3. Unpack it. 

4. Start SmartMeter.io by navigating to the unpacked folder and run SmartMeter.exe (.sh on Linux and Mac).

For macOS users: Open Terminal and execute sh SmartMeter.sh in SmartMeter home folder.  

5. Purchase the license and download it from your email. Then choose it from your disc and click Install button.

Install license

6. Congratulations, you are finished.

License upgrade

To upgrade your license click Upgrade icobutton on Welcome screen and select a new license file.

Licence upgrade

How to record test script

Recording test scripts with SmartMeter is very easy. No proxies, no configuration.  

Start SmartMeter and click Start Recorder button.

Welcome screen - start recorder

Give your test a name, for example “My first perf test”.

Type the URL of tested site (you can try the SmartMeter academy http://academy.smartmeter.io/university).

Leave other items unchanged for now and click Start recording.

Recorder - new test

Recording is started.

Recorder - academy

The main window is split into two frames. The left frame contains a list of transactions, the right frame embeds a web browser. By simply navigating in the browser, a new test scenario is being created.

The test scenario consists of transactions. A transaction is a single logical unit, for example loading home page, log in or cart checkout. A transaction contains one or more HTTP requests and maps to Transaction Controller.

Once you reach the final step in your test scenario, click Save test button.

Recorder - Save test

The last step is to select which domains you want to include in your test scenario. The best practice is to exclude all third party domains such as www.google-analytics.com, fonts.googleapis.com, ..

Select domains recorder

Now wait until the test script is saved. Recorder will be closed and the new script will be opened automatically in SmartMeter Editor.

For more detailed description of Recorder and its features refer to the SmartMeter documentation.

How to run performance tests

This short tutorial is about running performance tests in GUI mode. You can also run tests in Non-GUI mode which is more suitable for test automation (scheduled jobs, Cron, Continuous integration tools). Learn more in SmartMeter Full reference.

You can start tests directly from Welcome screen or from Editor.

Start from Editor

This is a preferable option if the script is not yet 100 % finished and you know you will most likely make some modifications to it.

1. Click Create/Edit Scenario button to open SmartMeter Editor.
Welcome screen - start editor

2. Open the test script (File / Open)

3. Setup number of virtual users and test duration in VirtualUsers component:

  • Target Concurrency - Number of virtual users (VU). Technically, the number of threads that will run in parallel.

  • Ramp Up Time -  Time to reach full load. Virtual users are added from 0 to its maximum.

  • Hold Target Rate Time - Test duration in full load (after Ramp Up Time).

4. Start test

  • Green Start button - Start test in Editor. Quick, great for script development and debugging.
  • Red Start button - Start test in new process. For serious testing, improved maximum performance. 

Edtior run test

Continue to Test Runner Dashboard.

Start from Welcome screen

1. Select Test script. Ignore Monitor script for now.

2. Start test

Discover Test Runner Dashboard

Wait for few seconds before first samples are collected. You can change graphs by dragging-and-dropping listeners from the left menu. 

How to understand test reports.

Note: Dashboard is also available in Editor, just switch tabs.

Runner vs Editor

Get Test Report

Generate report once the test is finished.

SmartMeter will try to automatically open the test report in your web browser and also open the report directory.

 

Learn more about test reports.