This method allows to create new web scenarios.

    Creating a web scenario will automatically create a set of .

    Parameters

    (object/array) Web scenarios to create.

    Additionally to the , the method accepts the following parameters.

    Examples

    Creating a web scenario

    Create a web scenario to monitor the company home page. The scenario will have two steps, to check the home page and the “About” page and make sure they return the HTTP status code 200.

    Request:

    1. "jsonrpc": "2.0",
    2. "result": {
    3. "httptestids": [
    4. ]
    5. },
    6. "id": 1

    Source

    CHttpTest::create() in ui/include/classes/api/services/CHttpTest.php.