GetRecordingStatus
Description
The GetRecordingStatus method provides the current status of the recording:
- Ready: when not recording, nor post-recording task is running, and starting a new recording is possible
- Recording: when a recording is currently running
- PostRecording: when a post-recording task is currently running
Parameters
- ApiKey (optional): To authenticate the command. Required if enabled on the Controller.
REST example
Request:
POST http://localhost:7400/Design/v1/Service.svc/GetRecordingStatus HTTP/1.1Content-Type:application/jsonUser-Agent:Jakarta CommonsHttpClient/3.0.1Host: localhost:7400Content-Length:9{"d": {}}Response:
HTTP/1.1 201 CreatedContentType:application/atom+xml;charset=utf8;type=entryDataServiceVersion: 2.0Date: Tue, 16 Sep 2014 13:58:23 GMTLocation: http://localhost:7400/Design/v1/Service.svc/GetRecordingStatus('')ContentLength:268Server: Jetty(9.1.2.v20140210){"d":{"__metadata":{"id":"http://localhost:7400/Design/v1/Service.svc/GetRecordingStatus('')","uri":"http://localhost:7400/Recording/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 GetRecordingStatusUse 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);}}}
Home