this is the proxy class to connect to TestLink. It provides a list of functions that map straight into the Tstlink API as it stands at V 1.9.2
This class makes use of XML-RPC.NET Copyright (c) 2006 Charles Cook
Inheritance: ITestLinkExtra
Exemplo n.º 1
0
 private void SetupProxy(TestLinkFixtureAttribute tlfa)
 {
     if (serverUrl != tlfa.Url)
     {
         serverUrl   = tlfa.Url;
         proxy       = new TestLink(tlfa.DevKey, tlfa.Url);
         allProjects = proxy.GetProjects();
     }
 }
Exemplo n.º 2
0
 protected void Setup()
 {
     proxy = new TestLink(apiKey, targetDBUrl, true);
 }
Exemplo n.º 3
0
 public void shouldFailBecauseOfInvalidURL()
 {
     proxy = new TestLink(apiKey, "http://localhost/testlink/api/xmlrpc.php");
     string result = proxy.SayHello();
     Assert.AreNotEqual("Hello!", result, "Unexpected Server Response");
     Assert.Fail("Did not cause an exception");
 }
Exemplo n.º 4
0
 public void shouldFailBecauseOfNullDevKey()
 {
     proxy = new TestLink(null, targetDBUrl);
     List<TestCaseId> tcidList = proxy.GetTestCaseIDByName("10 G shock");
     string result = proxy.SayHello();
     Assert.AreNotEqual("Hello!", result, "Unexpected Server Response");
     Assert.Fail("Did not cause an exception");
 }
 private void SetupProxy(TestLinkFixtureAttribute tlfa)
 {
     if (serverUrl != tlfa.Url)
     {
         serverUrl = tlfa.Url;
         proxy = new TestLink(tlfa.DevKey, tlfa.Url);
         allProjects = proxy.GetProjects();
     }
 }
Exemplo n.º 6
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;
 }