Description
The StopRecording
method sends a request to stop a recording. This call is synchronous - it blocks until the end of the recording and post-recording processes.
Parameters
REST example
POST http://localhost:7400/Design/v1/Service.svc/StopRecording 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:237
{"d": {
"FrameworkParameterSearch": false,
"GenericParameterSearch": false,
"Name": "BrowserUser_Create_report",
"MatchingThreshold": 50,
"UpdateSharedContainers": true,
"IncludeVariables": true,
"DeleteRecording": true
}}
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 StopRecording -FrameworkParameterSearch -GenericParameterSearch -UpdateUserPath -Name BrowserUser_Create_report -MatchingThreshold 50 -IncludeVariables true -UpdateSharedContainers true -DeleteRecording true
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.StopRecordingParams.StopRecordingBuilder;
import com.neotys.rest.design.model.UpdateUserPathParams;
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);
client.stopRecording(new StopRecordingBuilder()
.updateParams(new UpdateUserPathParams.UpdateUserPathParamsBuilder()
.name("BrowserUser_Create_report")
.deleteRecording(true)
.matchingThreshold(50)
.updateSharedContainers(true)
.includeVariables(true)
.build())
.build());
}
}
Use case with C#Client
using Neotys.DesignAPI.Client;
using Neotys.DesignAPI.Model;
namespace Design
{
class StopRecording
{
static void Main(string[] args)
{
string url = "http://localhost:7400/Design/v1/Service.svc/";
IDesignAPIClient client = DesignAPIClientFactory.NewClient(url);
client.StopRecording(new StopRecordingParamsBuilder()
.updateParams(new UpdateUserPathParamsBuilder()
.name("BrowserUser_Create_report")
.deleteRecording(true)
.matchingThreshold(50)
.updateSharedContainers(true)
.includeVariables(true)
.Build())
.Build());
}
}
}