Devops for Growth
112.1K views | +0 today
Follow
Devops for Growth
For Product Owners/Product Managers and Scrum Teams: Growth Hacking, Devops, Agile, Lean for IT, Lean Startup, customer centric, software quality...
Curated by Mickael Ruau
Your new post is loading...
Your new post is loading...

Popular Tags

Current selected tag: 'loadrunner'. Clear
Scooped by Mickael Ruau
March 30, 2018 9:54 AM
Scoop.it!

VuGen code snippets

VuGen code snippets | Devops for Growth | Scoop.it

This is a repository of code snippets. Please send me any useful sections of code that you have written.

Note that this repository does not contain trivial examples (i.e. something you could learn by looking at the example code in the LoadRunner Online Function Reference - accessed by pressing F1 in VuGen).

Code snippets that have been written as separate Tech Tips:

No comment yet.
Scooped by Mickael Ruau
March 28, 2018 3:53 AM
Scoop.it!

LoadRunner Guidlines and Good Practice - LoadRunner - Testing Performance

LoadRunner Guidlines and Good Practice - LoadRunner - Testing Performance | Devops for Growth | Scoop.it

So, you’re a test manager, responsible for some Loadrunner performance testing, but you don’t know anything about it. Help is at hand, here go some standards which if you like, you can insist on. When scripts are completed, ask to have a look at them, with these guidelines, you should be ale to have a good stab at ensuring decent standards are adhered to.

No comment yet.
Scooped by Mickael Ruau
March 23, 2018 3:51 AM
Scoop.it!

LoadRunner scripting languages

LoadRunner scripting languages | Devops for Growth | Scoop.it

It's wrong to assume that VuGen scripts are always written in C. Some virtual user types are only available in other languages, and some give you an option of generating a recorded script in a variety of languages. At current count, LoadRunner supports 8 languages (or 6, if you consider VBA, VBScript and VB to be the same language).

This post shows the list of languages available for LoadRunner/VuGen 9.10, and which vuser types they are available for.

To generate your script in a different language (if available), change the "scripting language" setting under Recording Options.

No comment yet.
Scooped by Mickael Ruau
March 22, 2018 9:50 AM
Scoop.it!

Understanding VUGen in LoadRunner

VUGen is one of the four core components of LoadRunner. It is the first component you interact with when getting started with Performance Testing using HP LoadRunner.

Let’s understand a few salient features related to VUGen

VUScripts: As already described, the purpose of VUGen is to create VUScripts that are used to simulate a real-like virtual-user.

Actions: An action is set of user transactions performed in the System Under Load to achieve a defined task. An action can be compared to a function in other programming languages. Each Vuser script has 3 default functions

Vuser_init(used to login into the application)

Action (used to record the business process)

Vuser_end (used to logout of the application)

VUGen not only records scripts but also replays them (for only 1 VUser) to ensure script is recorded correctly. Once you ensure the script is recorded correctly you incorporate it in a LoadRunner scenario

In this tutorial we are going to study

1 The script development process in VUGen

2 Compare recording between QTP and LoadRunner


5 Overview of Files Generated During Record & Playback

Mickael Ruau's insight:

The script development process in VUGen

1. Record the Script: Usually this is the first step of scripting where every user action is recorded into a script.

2. Replay and Verify: Once the script is recorded, reply the script to ensure its working right. Verify any impact through application frontend or database.

3. Enhance the Script: Once recording has been verified, enhance script by adding checkpoints, validating data, adding transactions and rendezvous points.

4. Replay and Verify: As earlier, re-play your script and verify that everything is working as intended.

5. Configure Runtime Settings: Configure and control pacing duration, think time variation, proxy settings and whether you wish to ignore any external resources.

6. Use for Load Scenarios: Formulate load scenarios based on test objectives. Use load distribution and geo-wide agents to make real like scenarios.

No comment yet.
Scooped by Mickael Ruau
March 22, 2018 9:39 AM
Scoop.it!

LoadRunner Vu Scripting

LoadRunner Vu Scripting | Devops for Growth | Scoop.it

The VuGen Script File Development Process

      These steps are part of an overall corporate

Approach to Managing Performance

 

    1. Define the test project's objectives, environment, scripts, data, hardware, etc. The assumptions for the script should reference coding standards/conventions.
      I code HTML to create a web page that I can link to in my status reports.

 

 

    1. Create a versioned folder to store the various assets associated with the application under test, such as .png/.gif image files of pictures that will be captured, html file saved from the recording, the full source html file from the recording, and the VuGen recording log.

 

 

    1. List (in a table) for each business processes the manual actions needed to walk though the actual application steps needed to 1) capture each screen image for documentation, 2) assign a unique transaction name to each screen, and 3) note the technical component (URL or method and function) handling each step.

       

      So that transaction names are listed in the sequence of manual steps, I assign transaction names using zero-filled zeros (such as "09", etc.).

      I capture the image of each screen into an MS-Word file or a separate .gif file referenced from an icon on a webpage.

      As needed, I note for each screen/step its testability status (such as not available for use, script having errors, is being ignored, data parameterization, variations in values, etc.)

 

 

  1. Create a versioned folder.
    I prefer not to use the default location, but to store all files associated with a script together in the same folder. Unfortunately, this means that if I switch between different tests, I have to remember to change the default settings every time.

     

    When working with a new script, I select "Multi-protocol" rather than "Single protocol because the UI is better. I can sort actions only within the multi-protocol UI. Protocols

     

  2. Use VuGen to generate a sequence of script code by Recording the application according to the sequence of screens and user steps specified in your business processes list. In the "Start Recording" dialog:

     

     

    • select application type "Win32 Application" to use the COM/DCOM protocol
    • select application type "Internet Application" to use the "Web(HTTP/HTML)" protocol.

     

  3. Edit the script based on the Ways to script list at right and following script language rules

     

     

    • Comment out cookie code (because they will be performed again when the script is run).

     

     

  4. Debug and Adjust script (for a single user) by running it within VuGen with Runtime Settings Logs set to display all messages:

     

     

    • Identify and fix script editing errors.
    • Determine timings
    • Set initial Runtime Settings Scenarios

     

     

  5. Run in Controller using full test Runtime Settings
No comment yet.
Scooped by Mickael Ruau
March 28, 2018 8:54 AM
Scoop.it!

Lesson 2: Preparing Your Script for Replay

Lesson 2: Preparing Your Script for Replay | Devops for Growth | Scoop.it

LoadRunner uses correlations to address the issue of dynamic values. When you correlate a value, VuGen saves the changing values, in our case the session ID, to a parameter. When running the Vuser script, the Vuser does not use the recorded value—instead, it uses the new session ID, assigned to it by the server.

For scripts that contain dynamic parameters, such as session IDs, VuGen automatically prompts you at the end of the recording to correlate the values. In the previous lesson, we bypassed the correlations, in order to view the script as is.

In this lesson you will learn how to correlate the dynamic values, and facilitate a successful replay.

Mickael Ruau's insight:

If you try to replay the unmodified Vuser script that you recorded in Lesson 1: Building a Vuser Script, the replay will fail. The new session ID will not match the recorded ID, and this will cause a failure.

To overcome this issue, you use VuGen's Design Studio to correlate the session ID. Normally, VuGen scans the script at the end of the recording session and prompts you with the suggested correlations.

However, you can open the Design Studio at any time to scan the script for correlations. You can also undo any correlation that you did via the Design Studio.

No comment yet.
Scooped by Mickael Ruau
March 26, 2018 9:49 AM
Scoop.it!

Web Services Scripting Using Loadrunner

Web Services Scripting Using Loadrunner | Devops for Growth | Scoop.it
Web services scripting using loadrunner tutorial gives you clear details with real time examples,in my previous post i have given prepare script for REST API in loadrunner please go through once.
No comment yet.
Scooped by Mickael Ruau
March 22, 2018 1:05 PM
Scoop.it!

LoadRunner script completion checklist

Note that this checklist has some items that only apply to web-based scripts.

  • All values that should be correlated have been correlated
  • Text checks (using web_reg_find) have been added before each web_url and web_submit_data function
  • ContentCheck Rules have been added for all known error messages
  • All server requests (web_url, web_submit_data) are being measured with a transaction (lr_start_transaction, lr_end_transaction, lr_set_transaction)
  • Script runs without causing errors, and any warnings are due to legitimate reasons (e.g. download filters)
  • File-based parameters have the correct "select next row" and "update value on" settings
  • Correct runtime settings have been set. This means:
    • Action blocks have been weighted with correct percentages in Run Logic
    • Pacing intervals have been set to the correct value that will achieve target throughput with the given number of vusers
    • Full logging has been disabled, and size of "send messages only when an error occurs" lgo cache has been increased
    • Think time set to replay as a random percentage, and think time values in script are not ridiculously large. No think time inside transactions.
    • Any needed download filters have been set
    • All other runtime settings have been set as per internal standards
No comment yet.
Scooped by Mickael Ruau
March 22, 2018 9:41 AM
Scoop.it!

Learn Performance Testing: How to write LoadRunner/VuGen Output to external file

Compatibility: This script will work in all version of LoadRunner/VuGen Following C lanuage function in LoadRunner will be used in thi
No comment yet.
Scooped by Mickael Ruau
March 22, 2018 9:17 AM
Scoop.it!

LOADRUNNER - Raviteja Gorentla : Functions in load Runner

performance testing load runner site scope manual testing testing QTP test plan jmeter
No comment yet.