POST   scenarios/conversion/selenium

Convert a selenium file to an executable load test file

Request body model example and description

{
  "FileId": 12345,
  "SeleniumFileName": "myfile.html",
  "BaseUri": "www.mysite.com",
  "DesiredScenarioFileName": "long test",
  "UrlExecutionMode": "p",
  "ThinkTime": 5,
  "Variance": 50
}
Name Type Required Description
FileId Integer Yes

The id of the selenium file to be converted. Either this parameter or the selenium file name must be supplied at a minimum.

SeleniumFileName String Yes

The name of the selenium file to be converted. Either this parameter or the selenium file ID must be supplied at a minimum.

BaseUri String No

The base URI for the selenium file if different from the one registered in the file. If none is provided then it will be extracted from the selenium file.

DesiredScenarioFileName String No

The name of the resulting scenario file. If ommitted then a default name will be constructed based on the base URI and the current date. Only characters from the English alphabet are accepted.

UrlExecutionMode String No

The URL execution mode, such as 'p' for parallel and 's' for sequential. Default value: parallel

ThinkTime Integer No

The amount of time in seconds each simulated user spends on a page in the scenario. Default value: 3

Variance Integer No

The random variance in % of the think time. This is optional, the default value is 35. Accepted range: 0-100, other values are corrected to the dafault.

;

Response body model example and description

{
  "ScenarioFileId": 153758,
  "ScenarioFileName": "myfile.class",
  "exception": "An exception was encountered during execution: {exception details...}"
}
Name Type Description
ScenarioFileId Integer

The ID of the scenario file constructed from the selenium file

ScenarioFileName String

The name of the scenario file constructed from the selenium file

exception String

Any exception that arose during the function call. In case no exception was thrown this will be an empty string.

;