This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP430F5438A: Debug Server Scripting (DSS) using Jenkins

Part Number: MSP430F5438A

Tool/software: Code Composer Studio

I have created a DSS script which sets a break-point, grabs a variables value, and compares this to an expected value.  The information will be saved to an xml file (I plan on creating a JUnit xml output file - Jenkins understands) such as:

<testsuites name="testsuitesname">
  <testsuite name="testsuitename">
    <testcase classname="packagename.classname" name="testname">
      blabla
    </testcase>
  </testsuite>
</testsuites>

I used Jenkins along with the plugin for the Unit Testing tool VectorCAST.  I want to do something similar with the DSS script files by producing xml results data (similar to the template above JUnit understands).  Since DSS is used to automate testing, I assume there would be a plugin or some examples I could follow.  Any suggestions with the approach?  My scripts work fine from a DOS command line using something similar to c:> dss PROJ-TCN-001.js 

If there is NOT a plugin - how would I set up the Jenkins Build and Post-Build batch commands to call DSS properly?

  • Hi Steve,

    I'm not too familiar with jenkins so I can't comment. But I am reaching out to other colleagues who may be more familiar with this setup. I'll let you know as soon as I get some feedback.

    Thanks

    ki

  • Thanks Ki

    In addition, I am wondering if the normal output of the DSS (which is also xml) - could somehow be converted to something Jenkins might like (seems like someone should have created a Jenkins accepted DSS xml file in its current format).

  • steve spaeth said:
    If there is NOT a plugin - how would I set up the Jenkins Build and Post-Build batch commands to call DSS properly?

    From what I understand, you should be able to specify a build step that can call a *.bat file . The batch file can then execute the DSS script as you would from the command line

  • steve spaeth said:
    In addition, I am wondering if the normal output of the DSS (which is also xml) - could somehow be converted to something Jenkins might like (seems like someone should have created a Jenkins accepted DSS xml file in its current format).

    The DSS log is indeed in xml format. However, I am not aware of anyone who has taken the DSS log and converted to a Jenkins accepted format. Hopefully there are others on this forum who have tried and can chime in with their inputs

  • Yes, I was able to get this working.  The results of each of the 58 test cases need to be tailored to a Jenkins acceptable format.  Currently, I am working out the details on how to best resolve this issue for management.  It nice to have a nice dashboard of graphics, pie charts, pass/fail tables, number of test cases, time of each execution....  I plan on completing the tasks - but wanted to touch base to the community to verify a solution has not already been invented.  DSS and Jenkins have a long history, therefore either there is a plugin already created or using DSS to automate testing for my client may be a different approach then what is typically done.  Any assistance or ideas in the community is welcome.  If it doesn't take too much time - I will just continue creating the plugin and post it somewhere for the community.