GetRecorderSettings
Description
The GetRecorderSettings method provides the settings of the recorder, for example the port number of the recorder.
Parameters
- ApiKey (optional): To authenticate the command. Required if enabled on the Controller.
REST Example
Request:
POST http://localhost:7400/Design/v1/Service.svc/GetProxyRecorderSettings HTTP/1.1Accept: application/jsonContent-Type:application/jsonCache-Control:nocachePragma: nocacheUser-Agent: Java/1.7.0_10Host: localhost:7400Connection: keepaliveContent-Length:9{"d": {}}Response:
HTTP/1.1 201 CreatedContentType:application/atom+xml;charset=utf8;type=entryDataServiceVersion: 2.0Date: Wed, 17 Sep 2014 07:26:19 GMTLocation: http://localhost:7400/Design/v1/Service.svc/GetRecorderSettings('')Server: Jetty(9.1.2.v20140210)ContentLength:356{"d":{"__metadata":{"id":"http://localhost:7400/Design/v1/Service.svc/GetRecorderSettings('')","uri":"http://localhost:7400/Recording/v1/Service.svc/GetRecorderSettings('')","type":"com.neotys.neoload.apis.design.GetRecorderSettings"},"ApiKey":"","ProxySettings":{"__metadata":{"type":"com.neotys.neoload.apis.design.ProxySettings"},"Port":8090}}}Use case with Command Line Designer
java -cp "api/Common/java/*;api/Design API Client/java/*" com.neotys.rest.design.client.CommandLineDesigner -designAPIURL http://localhost:7400/Design/v1/Service.svc/ -command GetRecorderSettingsUse case with Java Client Designer
import com.neotys.rest.design.client.DesignerAPIClient;import com.neotys.rest.design.client.DesignerAPIClientFactory;import com.neotys.rest.design.model.RecorderSettings;public class Main {public static void main(String[] args) throws Exception {final String url = "http://localhost:7400/Design/v1/Service.svc";final DesignerAPIClient client = DesignerAPIClientFactory.newClient(url);final RecorderSettings recorderSettings = client.getRecorderSettings();System.out.println(recorderSettings);}}Use case with C#Client
using Neotys.DesignAPI.Client;using Neotys.DesignAPI.Model;using System;namespace Design{class GetRecorderSettings{static void Main(string[] args){string url = "http://localhost:7400/Design/v1/Service.svc/";IDesignAPIClient client = DesignAPIClientFactory.NewClient(url);RecorderSettings recorderSettings = client.GetRecorderSettings();Console.WriteLine(recorderSettings);}}}
Home