+

Search Tips   |   Advanced Search


GetRecorderSettings

Description

The GetRecorderSettings method provides the settings of the recorder, for example the port number of the recorder.

Parameters

REST Example

Request:


POST http://localhost:7400/Design/v1/Service.svc/GetProxyRecorderSettings HTTP/1.1
Accept: application/json
Content-Type:application/json
Cache-Control:nocache
Pragma: nocache
User-Agent: Java/1.7.0_10
Host: localhost:7400
Connection: keepalive
Content-Length:9

{"d": {}}


Response:


HTTP/1.1 201 Created
ContentType:application/atom+xml;charset=utf8;type=
entry
DataServiceVersion: 2.0
Date: Wed, 17 Sep 2014 07:26:19 GMT
Location: 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/Recordi
ng/v1/Service.svc/GetRecorderSettings('')","type":"com.neotys.neoload.apis.design.GetRecorderSettings"},"ApiKey":"","ProxySet
tings":{"__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 GetRecorderSettings

Use 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