Share this page

# Test validity XML

The fields in the response are:

Element | Description
--- | ---
TestID | The ID.
IsValid | `true` if the test can be used.
Messages/Message | The Message `Type` attribute is one of: Type="error" Type="info"
Messages/Message | The error code.
Messages/Message/Description | The error message.

Example
Copy code

    <TestValidity xmlns="http://www.hp.com/PC/REST/API">
        <TestID>1</TestID>
        <IsValid>false</IsValid>
        <Messages>
            <Message type="error">
                <Code>0</Code>
                <Description>Percentages do not sum to 100%.</Description>
            </Message>
            <Message type="error">
                <Code>0</Code>
                <Description>Number of requested hosts (2) exceeds the number of hosts in this project's pool (1).</Description>
            </Message>
            <Message type="info">
                <Code>0</Code>
                <Description>Group g2 will not run due to 0 vusers setting</Description>
            </Message>
            <Message type="info">
                <Code>0</Code>
                <Description>Group g3 will not run due to 0 vusers setting</Description>
            </Message>
        </Messages>
    </TestValidity>

## See Also

Create a test
Return, delete, or update a test by test ID

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)