4.4 out of 5
4.4
14 reviews on Udemy

Performance Testing using TruWeb

a brand new protocol from Micro Focus LoadRunner
Instructor:
NaveenKumar Namachivayam
59 students enrolled
English [Auto-generated]
What is TruWeb?
TruWeb Environment Setup
Recording in TruWeb
Generate TruWeb Scripts
Filter Traffic in TruWeb
TruWeb Script Enhancements
Data Encryption
TruWeb Script Execution
Debugging and Error Handling
Automatic Correlation using Rules
Correlation Rule Converter
Version Controlling TruWeb Scripts using GitHub
Using npm in TruWeb
TruWeb Load Testing
TruWeb Best Practices
Mini Project
Result Analysis

******

Great course if you want to start with TruWeb. Takes you from the basics of installation and setting up your environment to advanced topics like extractors. – Boris Kozorovitzky – Architect of TruWeb

******
40+ Lectures | More to come | One and Only Course on Micro Focus LoadRunner TruWeb Protocol 

******

Micro Focus announced its newer protocol called TruWeb in LoadRunner 12.60. TruWeb has lot of potential in future performance testing arena. It is scalable, light weight, and cross-platform compatible. You can run TruWeb script in Windows, Mac and Linux and using almost any editors such as Visual Studio Code, Eclipse, Virtual User Generator etcetera. Also, you can execute TruWeb scripts in Performance Center as well. It is free to use (at this time of writing).

By learning this course `Performance Testing using TruWeb`, you are ready to impress your project manager, VP, even CTO by proposing this solution as a part of your organization performance test practices.

Also, you will be adding `TruWeb` protocol in your resume to make it stronger and stand unique in the crowd.

Even if you do not have any prior knowledge about Micro Focus tools or performance testing, I tried to explain the concepts in laymen terms.

I divided the course into four sections:

  1. Getting Started

  2. Ramp up

  3. Steady State

  4. Ramp down.

Course starts with very basics and fundamentals about TruWeb called `Getting Ready`. Then, you will learn all the importance concepts in TruWeb which will be very useful to design your test scripts in `Ramp Up` section.

In `Steady State` section, you will be comfortable in executing load testing using TruWeb in your local system. Higher the power, higher the load injection.

In `Ramp Down` section, you will learn the best practices, results analysis and there is a mini project script I have attached for your learning purpose.

I urge you to practice the scripting by referring the scripts that I have attached. Unless you practice your JavaScript, it is tougher to learn and implement TruWeb for your projects.

Good luck!

Getting Ready

1
Course Outline
2
What's new in Micro Focus LoadRunner 12.60?
3
An Introduction to TruWeb protocol
4
TruWeb Installation
5
Hello World! TruWeb Configuration - Standalone

***** IMPORTANT TIP *****

The TRUWEB_PATH is needed only for the Integrated Development Environment (IDE) integration, when working with Command Prompt (CMD) it is not used.

6
Hello World! TruWeb Configuration - Integrated

***** IMPORTANT TIP *****

main.js is a MANDATORY file when importing. main.js is the main file on the script.

7
Anatomy of TruWeb Scripts

***** IMPORTANT TIPS *****

  • scenario.yml is NOT MANDATORY. If the argument mode=load you are passing in the command prompt, then it is required.

  • TruWeb doesn't load node.js libraries.

  • TruWeb support loading pure JavaScript

  • TruWeb doesn't run vusers in node.js.

  • You can modify/delete the options in rts.yml. If options are missing in your rts.yml, it will take the default values from TRUWEBrts.yml


8
Visual Studio Code Setup

***** IMPORTANT TIPS *****

Copy and paste the contents to your tasks.json file


9
Notepad++ Setup (Unofficial Support)
10
Atom Setup

Important Links

  1. Download Atom from https://atom.io/

  2. Download TruWeb Plugin from Micro Focus Marketplace https://marketplace.microfocus.com/appdelivery/content/truweb

    1. Extract the contents and place it in C:Users<YourUserName>.atompackages in Windows OS

    2. Launch Atom and look for TruWeb in Menu bar

Important note

Make sure that the extracted contents of TruWeb plugin should be placed as per following folder structure, otherwise you will not see TruWeb menu C:Users<YourUserName>.atompackagestruweb-atom-plugin

11
Recording in TruWeb
  • Micro Focus Marketplace https://marketplace.microfocus.com/appdelivery/content/truweb

  • File to download: ProxyRecorder

NOTE: Always download the latest version


12
TruWeb Offline Script Generator
13
Filter Traffic in TruWeb
14
TruWeb Logs and Results

Ramp Up

1
URL vs Pages Level
2
Text Check w/ Regular Expressions
3
Data Parameterization Part 1
4
Data Parameterization Part 2
5
How to upgrade TruWeb?
6
Extractors in TruWeb
7
Boundary Extractor
8
Regular Expression Extractor
9
JSON Path Extractor
10
Automation Correlation using Rules

TIP: The term `Correlation` has been deprecated, but it's still being used when it comes to Rules :)

11
Correlation Rule Converter

Micro Focus Marketplace: https://marketplace.microfocus.com/

Please check the attached zip file, if you do not have LoadRunner installed to practice the conversion.

Alternatively, you can place the Correlation Rule Converter to the TruWeb folder.

12
Transactions
13
Runtime Settings
14
Data Encryption

Step 1 - AES 256 bit key

TruWebUtils -mode=genKey -keyLocation=DataEncryption/myKey.txt <yourPassPhrase>


Step 2 - Encrypt data

TruWebUtils -mode=enc -keyLocation=DataEncryption/myKey.txt <testData>


Step 3

load.decrypt();


Configure Runtime Settings

rts.yml > encryption > keylocation TRUWEB_HOME/DataEncryption/myKey.txt

15
Debugging in TruWeb

Please download the attached JSON files: tasks.json and launch.json

Prerequisites

  • Latest version of VS Code | https://code.visualstudio.com/download

  • Node Debug – an extension for VS Code | https://marketplace.visualstudio.com/items?itemName=ms-vscode.node-debug2

16
Error Handling
17
Web Requests Defaults
18
TruWeb SDK
19
Enable Intellisense and Autocomplete in VS Code

***** IMPORTANT TIP *****

Please find the attached definitions file for TruWeb. This is for the version [2018.11].

If you delete this file, you will get Intellisense feature in VS Code, but you will be able to run your script successfully.

20
Version Controlling TruWeb Scripts using GitHub

***** IMPORTANT TIP *****

To copy folder content to your repository, please use below command in Windows.

xcopy <SourceFolder>* <DestinationFolder> /s


To prevent Visual Studio Code asking for GitHub credentials, in the Terminal enter the following command:

git config --global credential.helper wincred

21
Using npm in TruWeb
22
How to install npm module in VS Code?
23
How to delete Results folder in VS Code? (Utility)
24
How to disable sending usage data to Micro Focus?

Steady State

1
Running TruWeb Scripts - Load Testing

Making is in progress

2
Running TruWeb Scripts in LoadRunner

Ramp Down

1
Load Testing Report
2
Best Practices and Mini Sample Project

Please download the `WebToursDemoLoadTesting.zip` to check it out the sample project which is created using TruWeb. More projects to come. Please stay tuned.

You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.4
4.4 out of 5
14 Ratings

Detailed Rating

Stars 5
9
Stars 4
4
Stars 3
0
Stars 2
0
Stars 1
1
b850e9abca893fbe3da4cb78eaafe341
30-Day Money-Back Guarantee

Includes

5 hours on-demand video
Full lifetime access
Access on mobile and TV
Certificate of Completion