IsProjectOpen

Description

The IsProjectOpen method allows to know if a Project is already open.

Parameters

REST example

POST http://localhost:7400/Design/v1/Service.svc/IsProjectOpen 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:25
{"d": {
"FilePath": "C:\Users\apaul\Documents\NeoLoad Projects\v5.3\Sample_Project\Sample_Project.nlp"
}}

Use case with Command Line Designer

java -cp "api/Common/java/*;api/Design API Client/java/*" "api/Common/java/*;api/Design API Client/java/*" com.neotys.rest.design.client.CommandLineDesigner -designAPIURL http://localhost:7400/Design/v1/Service.svc/ -command ContainsUserPath -FilePath "C:\Users\apaul\Documents\NeoLoad Projects\v5.3\Sample_Project\Sample_Project.nlp"

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.ContainsUserPathParams;
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 boolean isOpen = client.isProjectOpen(new IsProjectOpenParams.IsProjectOpenParamsBuilder().filePath("C:\\Users\\apaul\\Documents\\NeoLoad Projects\\v5.3\\Sample_Project\\Sample_Project.nlp")
.build());
		System.out.println(isOpen);
	}
}

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);

            bool isOpen = client.IsProjectOpen(new IsProjectOpenParamsBuilder()
                                            .filePath(@"C:\Users\apaul\Documents\NeoLoad Projects\v5.3\Sample_Project\Sample_Project.nlp")
                                            .Build());
            Console.WriteLine(isOpen);
        }
    }
}