public NeoLoadDesignApiInstance(string url, string apiKey)
 {
     _client            = DesignAPIClientFactory.NewClient(url, apiKey);
     _recorderProxyHost = ExtractHost(url);
     _recorderProxyPort = _client.GetRecorderSettings().ProxySettings.Port;
     _apiPort           = ExtractPort(url);
 }
 public DesignManager(DesignConfiguration config, ParamBuilderProvider paramBuilderProvider)
 {
     this.designApiClient      = newDesignAPIClientFromConfig(config);
     this.projectPath          = config.ProjectPath;
     this.userPathName         = validateUserPathName(config.UserPathName);
     this.paramBuilderProvider = paramBuilderProvider;
 }
Esempio n. 3
0
        private NeoLoadDesignApiInstance(string host, string port, string token, bool createTransactionBySapTCode, Protocol protocolToRecord)
        {
            string url = "http://" + host + ":" + port + "/Design/v1/Service.svc/";

            _client  = DesignAPIClientFactory.NewClient(url, token);
            _apiHost = host;
            _apiPort = int.Parse(port);
            _createTransactionBySapTCode = createTransactionBySapTCode;
            _protocolToRecord            = protocolToRecord;
        }
Esempio n. 4
0
        public void ConnectToDesignApi(string designApiUrl, string apiKey)
        {
            if (_mode == Mode.NO_API)
            {
                return;
            }

            _url    = designApiUrl;
            _apiKey = apiKey;

            _client = DesignAPIClientFactory.NewClient(_url, _apiKey);
        }