CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Thu Aug 22, 2019 5:19 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Mar 11, 2019 5:56 pm 
Offline

Joined: Mon Feb 04, 2019 11:53 am
Posts: 3
When I want to execute a test in CodeSys TestManager, I need to click Test Repositories -> Edit Test Repositories -> Add -> select the .xml and give it a name.

Is it possible to automate this so I don't need to access the build node, open CodeSys and do the above steps?

Thanks in advance for the help!


Top
   
PostPosted: Fri Mar 15, 2019 3:52 pm 
Offline

Joined: Mon Feb 04, 2019 11:53 am
Posts: 3
For those interested, I fixed this by writing a python script that collects the relevant data from the CodeSys XML and then writes it in a new XML in the JUNIT format. You can then get nice statistics in Jenkins when you post the xml to JUNIT (also install Jenkins Junit add-on).


Top
   
PostPosted: Thu Jul 11, 2019 9:10 pm 
Offline
User avatar

Joined: Fri Jan 19, 2018 3:38 pm
Posts: 77
Hi,

Would you kindly share this script? I am very interested in it.
Thank you in advance.

_________________
CfUnit is a free and opensource Unit testing framework for CODESYS
My profile on cForge


Top
   
PostPosted: Wed Aug 07, 2019 8:39 pm 
Offline

Joined: Thu Jul 27, 2017 7:54 pm
Posts: 13
I am also very interested in how you went about converting the XML file into JUNIT format. Would you mind sharing?


Top
   
PostPosted: Tue Aug 13, 2019 6:00 pm 
Offline

Joined: Thu Jul 27, 2017 7:54 pm
Posts: 13
I created a script to do the conversion to Junit XML here


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited