/// <summary>
 /// create the basic connection and test it out
 /// </summary>
 private bool basicConnection(TestLinkConnectionData connection)
 {
     lastException = null;
     proxy         = new TestLink(connection.DevKey, connection.Url);
     try
     {
         proxy.SayHello();
     }
     catch (TestLinkException tlex)
     {
         lastException = tlex;
         log.ErrorFormat("Failed to connect to TestLink at {1}. Message was '{0}'", tlex.Message, connection.Url);
         return(false);
     }
     return(true);
 }
Esempio n. 2
0
 /// <summary>
 /// create the basic connection and test it out
 /// </summary>
 /// <param name="devKey"></param>
 /// <param name="url"></param>
 /// <returns>true if the connection is valid</returns>
 private bool basicConnection(string devKey, string url)
 {
     lastException = null;
     proxy         = new TestLink(connectionData.DevKey, connectionData.Url);
     AllTestPlans  = new List <TestPlan>();
     try
     {
         allProjects = proxy.GetProjects();
     }
     catch (TestLinkException tlex)
     {
         lastException = tlex;
         Console.WriteLine("Failed to connect to TestLink at {1}. Message was '{0}'", tlex.Message, url);
         return(false);
     }
     return(true);
 }
 /// <summary>
 /// create the basic connection and test it out
 /// </summary>
 /// <param name="devKey"></param>
 /// <param name="url"></param>
 /// <returns>true if the connection is valid</returns>
 private bool basicConnection(string devKey, string url)
 {
     lastException = null;
     proxy = new TestLink(connectionData.DevKey, connectionData.Url);
     AllTestPlans = new List<TestPlan>();
     try
     {
         allProjects = proxy.GetProjects();
     }
     catch (TestLinkException tlex)
     {
         lastException = tlex;
         Console.WriteLine("Failed to connect to TestLink at {1}. Message was '{0}'", tlex.Message, url);
         return false;
     }
     return true;
 }