Forum Discussion

rajesh_makiredd's avatar
rajesh_makiredd
Occasional Contributor
11 years ago

Test management tool integration

Can any one please suggest me to how to integrate testcomplete with testlink?  Thanks in advcane.
  • srigudav's avatar
    11 years ago
    Hi Rajesh,



    I have not yet implement but after going through command line exit and COM communication. There could be a way to integrate.



    Suppose In you main method  of Java file call the testcomplete proj for execution.

    once the execution is complete update results back to Testlink.

    pasting pseudo code:




    public static void main(String[] args) throws IOException {


    // TODO Auto-generated method stub


     


    String TestCaseName="TestLinkTC1";


    String command = "C:/Program Files/SmartBear/TestComplete 10/Bin/TestComplete.exe D:/TCProjects/MyTestProj/MyTestProj.pjs /r /p:MyProj /t:Script|TestUnit1|"+TestCaseName;


    Runtime.getRuntime().exec(command);


    TestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);


    System.out.println("ProjectName====="+projectName);


    System.out.println("testPlan===="+testplanName);


    System.out.println("buildName====="+buildName);


    System.out.println("testcaseName====="+testcaseName);


    System.out.println("msg====="+msg);


    System.out.println("result====="+result);


    testlinkAPIClient.reportTestCaseResult(projectName, testplanName,


    TestCaseName, buildName, msg, result);


     


    }



    Note:I have not checked it. Just desined for implementtion. Will let you know if its done.



    Thanks

    Srikala