Forum Discussion

szeregnyi's avatar
szeregnyi
New Contributor
14 years ago

TC and Jenkins integration

Hi all!



Could anybody help me,how to run TC tests in Jenkins? I try execute with batch command,but it doesn't work.



Thanx.

4 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    What is the command-line you are using in your batch?  That's the best place to start.



    I would also suggest you take a look at http://blog.smartbear.com/post/11-06-24/cross-browser-web-testing---a-testcomplete-and-jenkins-framework/



    and



    http://blog.smartbear.com/post/11-06-30/running-testcomplete-tests-with-multi-configuration-jenkins-projects/



    While they don't specifically answer your question, they give some insight as to how others integrate TestComplete projects and Jenkins/Hudson.
  • I've got the same question.  I've looked over those links and have had no luck.  I've modified an API to handle this command and run the test through the command line.  Through the command line everything works as expected.




    "c:\Program Files (x86)\Automated QA\TestComplete 8\Bin\TestComplete.exe" "c:\Users\AaronH\Documents\CI Implementation\DEV\Test Tool Engine\TestComplete\AutomationFramework.pjs" /r /e /ns /SilentMode "TestSet=1"





    I've set up a job in Jenkins to run this build step and the output I get is:

    >Building in workspace C:\Program Files (x86)\Jenkins\jobs\Simple Calculations Suite\workspace
    >[workspace] $ cmd /c call C:\Windows\TEMP\hudson3208198751520927974.bat
    >
    >C:\Program Files (x86)\Jenkins\jobs\Simple Calculations Suite\workspace>"c:\Program Files (x86)\Automated QA\>TestComplete 8\Bin\TestComplete.exe" "c:\Users\AaronH\Documents\CI Implementation\DEV\Test Tool Engine\TestCo>mplete\AutomationFramework.pjs" /r /e /ns /SilentMode "TestSet=1"

    >C:\Program Files (x86)\Jenkins\jobs\Simple Calculations Suite\workspace>exit 2 
    >Build step 'Execute Windows batch command' marked build as failure
    >Finished: FAILURE



  • Hello All,

     

    TestComplete 10.6 now comes with a new plug-in for Jenkins. This means, unlike previously, you don’t have to execute automated tests through a command-line interface.  Launching TestComplete and executing the needed test project can be done directly from Jenkins builds. Also, once tests are executed, the results get automatically updated to Jenkins.

     

    Online Documentation:

    Integration With Jenkins