Forum Discussion

rajesh_makiredd's avatar
rajesh_makiredd
Occasional Contributor
10 years ago
Solved

Test management tool integration

Can any one please suggest me to how to integrate testcomplete with testlink? 



Thanks in advcane.
  • 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

5 Replies

  • srigudav's avatar
    srigudav
    Occasional Contributor
    Hi,



    Testlink has an api with which we can get the test cases information etc. but not sure about how to integrate java file in test complete. i have gone though couples of links but could not integrate java class using javabridge or javaruntime option. it would be grateful if any one can help on this this with detailed information. So that it can be useful in integrating testlink as well.
  • srigudav's avatar
    srigudav
    Occasional Contributor
    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