Share this page

# Stop run

## Description

Performs a normal stop operation on the run.

## URL

Copy code

    /LoadTest/rest/domains/{domainName}/projects/{projectName}/Runs/{run ID}/stop

## Remarks

See the LoadRunner documentation for a full description of the normal stop of a test run.

You can send a request XML that specifies post-run actions if you want to change the actions specified by the start operation.

The URL for the run data is the same as the Location header returned by Start a test run with the addition of the operation "stop".

## HTTP Method

POST: Stops the run.

## Request

Headers:

Content-Type: application/xml

Cookies:

Version 2020 (or later) | LWSSO_COOKIE_KEY={LwssoCookie};
Versions earlier than 2020 | LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request Body:

Optionally, an XML that specifies the post-run actions. If no body is passed, the run uses the values specified when the run was started. See Start a test run.

Post-run actions XML example
Copy code

    <PostRunActions xmlns="http://www.hp.com/PC/REST/API">
        <PostRunAction>Collate And Analyze</PostRunAction>
        <ReleaseTimeslot>true</ReleaseTimeslot>
    </PostRunActions>

Request Example
Copy code

    POST http://<LRE_Server>/LoadTest/rest/domains/{domainName}/projects/{projectName}/Runs/{runID}/stop

## Response

Headers:

Content-Type: application/xml

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

See Run Status XML

## See Also

Run Status XML
Stopping runs
Start a test run

Tips to improve your search results... LoadRunner Enterprise REST API Reference LRE REST API All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic(Undefined variable: _rscC_Basic_Variables.VersionLabel)