-
Notifications
You must be signed in to change notification settings - Fork 3
Scripting API
Methods for creating and managing test scripts for use in load testing and monitoring.
Navigate to a single url with a basic RBU script
Trigger script validation
List all scripts associated with the account
List all valid scripts
List all invalid scripts
Upload a test script
Clone an existing script
Delete a script
Retrieve a script's information
Update an existing script
endpoint(string url)
Navigate to a single url with a basic RBU script
Arguments:
url - The url to monitor
Example:
c.script().endpoint('https://www.example.com/')validate()
Trigger script validation
Example:
c.script().validate('script_id')list()
List all scripts associated with the account
Example:
c.script().list()list_valid()
List all valid scripts
Example:
c.script().list_valid()list_invalid()
List all invalid scripts
Example:
c.script().list_invalid()upload(string name, string body)
Upload a test script
Arguments:
name - Name of the script
body - Contents of the test script
Example:
c.script().upload('Check example.com', 'var driver = openBrowser(); beginTransaction(function(tx) { beginStep(function(step) { driver.get("http://www.example.com/"); }); });')clone()
Clone an existing script
Example:
c.script('script_id').clone()delete()
Delete a script
Example:
c.script('script_id').delete()retrieve()
Retrieve a script's information
Example:
c.script().retrieve()update()
Update an existing script
Arguments:
name - Name of the script
body - Contents of the test script
validation_bypassed - Whether to bypass script validation (False by default)
Example:
c.script('script_id').update('Check example.com', 'var driver = openBrowser(); beginTransaction(function(tx) { beginStep(function(step) { driver.get("http://www.example.com/"); }); });', validation_bypassed=True)