GetStatus
Description
The GetStatus method provides the current status of NeoLoad:
- NEOLOAD_INITIALIZING: NeoLoad is starting up.
- NO_PROJECT: No project is opened.
- PROJECT_INITIALIZING: A project is getting opened.
- READY: Project is opened, NeoLoad is ready to start a test.
- BUSY: NeoLoad is busy (a recording is in progress or stopping or there is a blocking window), a test can't be started.
- TEST_LOADING: The test is getting started.
- TEST_RUNNING: The test is running.
- TEST_STOPPING: The test is getting stopped.
Parameters
- ApiKey (optional): To authenticate the command. Required if enabled on the Controller.
REST example
POST http://localhost:7400/Design/v1/Service.svc/GetStatus HTTP/1.1Accept: application/jsonContent-Type:application/jsonCache-Control:nocachePragma: nocacheUser-Agent:Java/1.7.0_10Host: localhost:7400Connection: keepaliveContent-Length:9{"d": {}}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 GetStatusUse case with Java Client Designer
import com.neotys.rest.design.client.DesignAPIClient;import com.neotys.rest.design.client.DesignAPIClientFactory;import com.neotys.rest.runtime.model.Status;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 Status status = client.getStatus();System.out.println(status);}}Use case with C#Client
using Neotys.DesignAPI.Client;using Neotys.DesignAPI.Model;using System;namespace Design{class getStatus{static void Main(string[] args){string url = "http://localhost:7400/Design/v1/Service.svc/";IDesignAPIClient client = DesignAPIClientFactory.NewClient(url);Status status = client.GetStatus();Console.WriteLine(status);}}}
Home