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 Fri Oct 19, 2018 4:13 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Dec 04, 2015 10:15 am 
Offline

Joined: Fri Nov 06, 2015 12:10 pm
Posts: 34
Hi All,

How can I add some result values to a Test Report?
With the command "TestManager.Testreport" and "AddResultInformation" can I add text. How can I add a variable value which is read with the "ReadVariable" command.

The next software is used: Codesys V3.5 SP7 Patch 2 and Test Manager 4.0.1.1.


Top
   
PostPosted: Fri Dec 04, 2015 2:02 pm 
Offline
Frequent User
Frequent User

Joined: Tue Nov 13, 2012 9:20 am
Posts: 232
Hi Bakkertje.

1. Configure a output parameter for ReadVariable and copy the parameter name into the field "Test script variable"
2. Configure a input parameter for AddResultInformation and add the parameter name in curly brackets (placeholder) in your text for the test report

BR
Martin

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


Top
   
PostPosted: Fri Dec 04, 2015 4:28 pm 
Offline

Joined: Fri Nov 06, 2015 12:10 pm
Posts: 34
Hi Martin,

Thanks that works fine.

What is the syntax to use a Carriage Return and Line Feed?
I try this:
Code:
Test project on target: {sTargetName} {\r\n}
With a timeout setting: {iTimeout} "\r\n"
An other line \r\n

But it is all printed on the same line.


Top
   
PostPosted: Mon Dec 07, 2015 8:37 am 
Offline
Frequent User
Frequent User

Joined: Tue Nov 13, 2012 9:20 am
Posts: 232
Hi Bakkertje.

You can use XHTML tags for formatting. For a new line you have to use: <br/>

BR
Martin

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


Top
   
PostPosted: Mon Dec 07, 2015 10:36 am 
Offline

Joined: Fri Nov 06, 2015 12:10 pm
Posts: 34
Hi Martin,

Thanks that works fine. :lol:


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