Home > Load Testing > Visual Studio Performance Testing Tip #1: Create random value

Visual Studio Performance Testing Tip #1: Create random value


While running a performance test, I don’t want to provide a new set of data every time I want to run a load or performance test. I can think of couple of ways to create a random value:

  1. Add a Generate Random Integer Plug-in as shown below

  2. Or Add a Date Time Request Plugin as shown below

    Bind the QuerySpring or the Post Form parameter to the Context parameter

    The above steps if you rare unning a performance test or a load test with one agent. If you are running a load test with multiple agents, you will potentially have the same value. In this case, bind the request to a data source (e.g. csv file with sequential numbers) as such

About Lajak Technologies

A consulting firm in Ottawa, Ontario that provides services related to Microsoft technologies, Team Foundation Server, DevOps practices, security and more. Contact us today to help you solving your complex software problems. Visit us at http://www.lajak.com.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: