Test: Cloud-based Load Test

Last Update: 4/7/2017

Team Services | TFS 2017 | TFS 2015 | Previous versions (XAML builds)

icon Runs a load test in the cloud with Visual Studio Team Services.

Use this task to understand, test, and validate your app's performance. The task can be used in a build or release definition to trigger a load test by using the Visual Studio Team Services Cloud-based Load Test Service. The Cloud-based Load Test Service is based in Microsoft Azure and can be used to test your app's performance by generating load on it.

Demands

The build agent must have the following capabilities:

  • MSBuild
  • Azure PowerShell

Arguments

Argument Description
VS Team Services connection

The name of a Generic Service Endpoint that references the Team Services account you will be running the load test from and publishing the results to.

Required for builds and releases on TFS and must specify a connection to the Team Services account where the load test will run.

Optional for builds and releases on Team Services. In this case, if not provided, the current Team Services connection is used.

See Generic service endpoint.

Test settings file

Required. The path relative to the repository root of the test settings file that specifies the files and data required for the load test such as the test settings, any deployment items, and setup/clean-up scripts. The task will search this path and any subfolders.

Load test files folder

Required. The path of the load test project. The task looks here for the files required for the load test, such as the load test file, any deployment items, and setup/clean-up scripts. The task will search this path and any subfolders.

Load test file

Required. The name of the load test file (such as myfile.loadtest) to be executed as part of this task. This allows you to have more than one load test file and choose the one to execute based on the deployment environment or other factors.

Number of permissible threshold violations

Optional. The number of critical violations that must occur for the load test to be deemed unsuccessful, aborted, and marked as failed.

Control options

Examples

More Information

Q&A

How do I use a Test Settings file?

The Test settings file references any setup and cleanup scripts required to execute the load test. For more details see: Using Setup and Cleanup Script in Cloud Load Test

When should I specify the number of permissible threshold violations?

Use the Number of permissible threshold violations setting if your load test is not already configured with information about how many violations will cause a failure to be reported. For more details, see: How to: Analyze Threshold Violations Using the Counters Panel in Load Test Analyzer.

Do I need a build agent?

You need at least one agent to run your build. Get an agent.

I can't select a default agent queue and I can't queue my build. How do I fix this?

See queues.

I use Team Foundation Server on-premises and I don't see some of these features. Why not?

Some of these features are available only on Visual Studio Team Services and not yet available on-premises. Some features are available on-premises if you have upgraded to the latest version of TFS.

How can I submit feedback on this task?

Visit our UserVoice forum

Help and support

  • Submit bugs through Connect

  • Send suggestions on UserVoice

  • Send a smile from the Send-a-Smile link on the menu bar.