Loadrunner Controller Tutorial: Manual & Goal Oriented Scenario
LoadRunner is a powerful performance testing tool that helps
assess the behavior and performance of applications under various load
conditions. The LoadRunner Controller is a critical component of the LoadRunner
suite that facilitates the execution and management of performance tests. In
this tutorial, we will explore two key scenarios: Manual and Goal-Oriented, in
LoadRunner Controller, with a focus on their differences, setup, and execution.
1. Manual
Scenario
The Manual Scenario in LoadRunner Controller allows testers
to manually define the number of virtual users, load generator machines, and
ramp-up patterns. This scenario is ideal for conducting simple load tests and
understanding the system's response under a specific user load.
Setup:
a) Launch LoadRunner Controller: Open LoadRunner Controller
and create a new scenario. Select the "Manual Scenario" option.
b) Define Virtual Users: Specify the number of virtual users
(VUsers) to simulate the user load on the application. It is essential to
understand the application's requirements and user behavior to set an
appropriate number of VUsers.
c) Set Load Generators: Add load generator machines to
distribute the load among them. Load generators are remote machines that
execute VUser scripts and generate load on the target system.
d) Ramp-up Pattern: Define the ramp-up pattern to simulate
the gradual increase in user load. A linear or step-up pattern can be chosen
based on test objectives.
Execution:
a) Start the Test: After setting up the scenario, start the
test execution. LoadRunner will distribute the specified number of VUsers
across the defined load generators.
b) Monitor Test Execution: During the test run, monitor
various performance metrics like response times, throughput, and resource
utilization to assess system performance.
c) Analyze Results: After the test completes, analyze the
results to identify bottlenecks, performance issues, and scalability
limitations.
2. Goal-Oriented
Scenario
The Goal-Oriented Scenario in LoadRunner Controller allows
testers to set specific performance goals, such as response time or throughput,
and have LoadRunner automatically adjust the user load to achieve those goals.
This scenario is ideal for conducting tests with predefined objectives and
determining the system's capacity to meet them.
Setup:
a) Launch LoadRunner Controller: Open LoadRunner Controller
and create a new scenario. Select the "Goal-Oriented Scenario"
option.
b) Define Goals: Set the performance goals, such as response
time, throughput, or errors per second, based on the application's performance
requirements.
c) Set SLA (Service Level Agreement): Define the acceptable
response time or other performance thresholds that the system needs to meet
during the test.
d) Configure Test Schedule: Specify the test duration and
the number of iterations to run. LoadRunner will automatically adjust the load
to achieve the defined goals within the specified schedule.
Execution:
a) Start the Test: Begin the test execution. LoadRunner will
start with a minimal user load and gradually increase it to meet the defined
goals.
b) Real-time Goal Tracking: During the test run, LoadRunner
will continuously monitor performance metrics and adjust the user load
dynamically to meet the goals.
c) Goal Achievement Analysis: After the test completes,
analyze the results to determine whether the system met the performance goals
and whether SLAs were adhered to.
Comparison between Manual and Goal-Oriented Scenarios:
1. User
Control:
·
Manual Scenario: Testers have full control over
the number of VUsers and load generators.
·
Goal-Oriented Scenario: Testers define
performance goals, and LoadRunner automatically adjusts the user load.
2. Test
Complexity:
·
Manual Scenario: Suitable for simple load tests
with predefined user loads.
·
Goal-Oriented Scenario: Suitable for tests with
specific performance goals and SLAs.
3. Resource
Management:
·
Manual Scenario: Requires manual management of
user loads and load distribution.
·
Goal-Oriented Scenario: LoadRunner dynamically
manages the user load to achieve performance goals.
Conclusion
LoadRunner Controller provides versatile testing
capabilities, enabling testers to conduct performance tests with different
scenarios. The Manual Scenario gives complete control over user load, while the
Goal-Oriented Scenario allows testers to focus on specific performance goals.
Understanding the differences and benefits of each scenario helps testers
design efficient and effective performance tests to assess application
performance accurately. By utilizing LoadRunner effectively, organizations can
ensure their applications are capable of handling real-world user loads and
deliver a seamless user experience.
LoadRunner is a popular performance testing tool used to
measure the performance and scalability of applications. The Controller
component of LoadRunner allows testers to design and execute performance tests
with different scenarios. In this tutorial, we will cover how to create and run
both Manual and Goal-Oriented scenarios in LoadRunner Controller.
1. Manual Scenario:
A Manual Scenario in LoadRunner allows testers to manually
configure the number of virtual users, ramp-up rates, and test duration. It provides
more control over the test execution process. Here's a step-by-step guide to
creating and running a Manual Scenario:
Step 1: Launch LoadRunner Controller:
1. Open
LoadRunner Controller.
2. Create
a new scenario by clicking on "Scenario" > "New
Scenario."
Step 2: Add Vuser Groups:
1. In
the "Add Vuser Group" window, select the type of protocol you want to
use for testing (e.g., HTTP, Web Services, SAP, etc.).
2. Enter
the number of virtual users you want to simulate for each Vuser group.
3. Click
"OK" to add the Vuser groups to the scenario.
Step 3: Configure Runtime Settings:
1. Select
a Vuser group from the left pane.
2. In
the right pane, click on the "Runtime Settings" tab.
3. Configure
the test duration, ramp-up rate, and any other settings specific to the Vuser
group.
Step 4: Define Load Generators:
1. Click
on the "Load Generators" tab in the right pane.
2. Add
the load generators where you want the Vusers to be executed.
Step 5: Run the Scenario:
1. Once
all the configurations are set, click on the "Run" button to start
the test execution.
2. Monitor
the test execution and collect performance metrics.
2. Goal-Oriented Scenario:
A Goal-Oriented Scenario in LoadRunner allows testers to set
specific performance goals and let LoadRunner automatically adjust the number
of virtual users to achieve those goals. Here's a step-by-step guide to
creating and running a Goal-Oriented Scenario:
Step 1: Launch LoadRunner Controller:
1. Open
LoadRunner Controller.
2. Create
a new scenario by clicking on "Scenario" > "New
Scenario."
Click here to find out more |
Step 2: Add Vuser Groups:
1. In
the "Add Vuser Group" window, select the type of protocol you want to
use for testing (e.g., HTTP, Web Services, SAP, etc.).
2. Enter
the number of virtual users you want to simulate for each Vuser group.
3. Click
"OK" to add the Vuser groups to the scenario.
Step 3: Configure Goal-Oriented Settings:
1. In
the right pane, click on the "Goal-Oriented" tab.
2. Set
the desired goals for response time, throughput, or other performance metrics.
3. Define
the acceptable ranges for the goals.
Step 4: Define Load Generators:
1. Click
on the "Load Generators" tab in the right pane.
2. Add
the load generators where you want the Vusers to be executed.
Step 5: Run the Scenario:
1. Once
all the configurations are set, click on the "Run" button to start
the test execution.
2. LoadRunner
will automatically adjust the number of virtual users to achieve the specified
performance goals.
3. Monitor
the test execution and collect performance metrics.
LoadRunner's Controller provides flexibility in creating and
executing different performance testing scenarios. Whether you need more
control over the test execution process (Manual Scenario) or want to achieve
specific performance goals automatically (Goal-Oriented Scenario), LoadRunner
can cater to your performance testing needs effectively.
Regulator, as the name recommends, is a program to "control" generally speaking burden test. It is liable for assisting you with running your presentation test configuration utilizing the VUGen scripts you've previously made. It lets you abrogate run-time settings, empower or debilitate think time, rendezvous focuses, adds load generators and controls the quantity of clients every generator can mimic. It consequently makes a dump of execution results, provides you with a live perspective on "present status" of burden test running. In this instructional exercise, you will learn-Instructions to Launch Controller Recreating a Manual Scenario Recreating a Goal-Oriented Scenario Arrange Load Generators Plan a Group Set-up the SLA (Service Level Agreement)We should become familiar with HP Controller. Step by step instructions to Launch Controller
To send off HP Controller, go to Start Menu - >HP Software - >HP LoadRunner - >Controller as exhibited beneath Essentially, to open a current or recently made situation you can utilize Ctrl + O or How to involve Controller in LoadRunner symbol, and it will open a standard exchange box to peruse records. The expansion of a Load Runner Scenario record is *.lrs There are two kinds of situations in Controller. Manual Scenario Objective Oriented Scenario Manual Scenario can further or might not have Percentage Mode. We will examine each exhaustively.
Reenacting a Manual Scenario A manual situation is static and gives more command over the circumstance. You can choose which exchange to execute, for the number of times, for how long In light of the structure of test blend, you can see application conduct, for example, number of hits, reaction time, and so on. You will figure out how a manual situation is unique in relation to Goal Oriented situation later. To make a Manual Scenario, select Manual Scenario from "Select Scenario Type" For the present, we should utilize non-rate mode, in the first place. View the preview showed underneath: The most effective method to involve Controller in Load Runner You can choose the contents you wish to add to the situation right from the above screen. In any case, it is by and large rehearsed to add the contents later. Click the OK button to continue.
This will make a clear situation and burden it into the principal screen. You will see the Save button is empowered at this point. View the preview beneath: Moreover, assuming you chose Percentage Mode while choosing kind of situation, the screen will show up somewhat in an unexpected way. Rather than number of clients, it will show the appropriation of clients in rate. Regulator appropriates clients per appointed rate consequently. The rest is same. Allude to preview beneath.