GetRecordingStatus

Description

The GetRecordingStatus method provides the current status of the recording:

Parameters

REST example

Request:

POST http://localhost:7400/Design/v1/Service.svc/GetRecordingStatus HTTP/1.1
Content-Type:application/json
User-Agent:Jakarta CommonsHttpClient/3.0.1
Host: localhost:7400
Content-Length:9

{"d": {}}

Response:

HTTP/1.1 201 Created
ContentType:application/atom+xml;charset=utf8;type=entry
DataServiceVersion: 2.0
Date: Tue, 16 Sep 2014 13:58:23 GMT
Location: http://localhost:7400/Design/v1/Service.svc/GetRecordingStatus('')
ContentLength:268
Server: Jetty(9.1.2.v20140210)

{"d":{"__metadata":{"id":"http://localhost:7400/Design/v1/Service.svc/GetRecordingStatus('')","uri":"http://localhost:7400/Recordin
g/v1/Service.svc/GetRecordingStatus('')","type":"com.neotys.neoload.apis.design.GetRecordingStatus"},"ApiKey":"","Status":"READY"}}

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 GetRecordingStatus

Use case with Java Client Designer

import com.neotys.rest.design.client.DesignAPIClient;
import com.neotys.rest.design.client.DesignAPIClientFactory;
import com.neotys.rest.design.model.RecordingStatus;

public class Main {

	public static void main(String[] args) throws Exception {
		final String url = "http://localhost:7400/Design/v1/Service.svc";
		final DesignAPIClient client = DesignAPIClientFactory.newClient(url);
		final RecordingStatus recordingStatus = client.getRecordingStatus();
		System.out.println(recordingStatus);
	}
}

Use case with C#Client

using Neotys.DesignAPI.Client;
using Neotys.DesignAPI.Model;
using System;

namespace Design
{
    class GetRecordingStatus
    {
        static void Main(string[] args)
        {
            string url = "http://localhost:7400/Design/v1/Service.svc/";
            IDesignAPIClient client = DesignAPIClientFactory.NewClient(url);

            RecordingStatus recordingStatus = client.GetRecordingStatus();
            Console.WriteLine(recordingStatus);
        }
    }
}