Exemplo n.º 1
0
        public string GetResultLink()
        {
            var clientType = _config.Get("HostType", "Sauce");

            if (String.Compare(clientType, "Sauce", StringComparison.OrdinalIgnoreCase) == 0)
            {
                if (string.IsNullOrEmpty(_sId))
                {
                    return(null);
                }
                if (_config.Get("SauceFree", "true").ToLower().Equals("true"))
                {
                    return("https://saucelabs.com/tests/" + _sId);
                }
                var key = _config.Get("SauceUser", "autox") + ":" +
                          _config.Get("SauceKey", "b3842073-5a7a-4782-abbc-e7234e09f8ac");
                var jobId = AsymmetricEncryption.Hmacmd5(key, _sId);
                return("https://saucelabs.com/jobs/" + _sId + "?auth=" + jobId);
            }
            return(Snapshot());
        }