View Issue Details

IDProjectCategoryView StatusLast Update
0004378Compliance Test Tool (CTT) Unified Architecture1 - Script Issuepublic2019-07-18 14:23
ReporterJonas Green Assigned ToAlexander Allmendinger  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version1.03.340.380 
Target Version1.03.341.384Fixed in Version1.03.341.389 
Summary0004378: CTT requires more than 5 notifications per publish response in several tests
Description

The following tests fail since the tests require more notifications per publish response than the 5 that our product supports:

CTT - Monitored Item Services - Monitor Basic - 18
CTT - Monitored Item Services - Monitor QueueSize_1 - 4
CTT - Subscriptin Services - Subscription Basic - 40 and 41

Steps To Reproduce

Run the following test cases on a OPC UA server that does only support max 5 notifications per publish response:
CTT - Monitored Item Services - Monitor Basic - 18
CTT - Monitored Item Services - Monitor QueueSize_1 - 4
CTT - Subscriptin Services - Subscription Basic - 40 and 41

TagsNo tags attached.
Files Affected

Relationships

related to 0004431 closedAlexander Allmendinger Monitor Basic / 018: Is failing if server sends the DataChagneNotifications in multiple Responses 

Activities

Alexander Allmendinger

2018-10-02 09:05

developer   ~0009442

Unfortunately we do not have such a server available in the lab. Could you please add a few code lines and give it a try.

Add in Line 44 after PublishHelper.Execute(…):
var TotalNumberOfDataChanges = PublishHelper.CurrentDataChanges[0].MonitoredItems.length;
while (PublishHelper.Response.MoreNotifications == true) {
PublishHelper.Execute();
TotalNumberOfDataChanges += PublishHelper.CurrentDataChanges[0].MonitoredItems.length;
}

Line 53:
Change "PublishHelper.CurrentDataChanges[0].MonitoredItems.length" to "TotalNumberOfDataChanges"

Same needs to be done in Line 141:
TotalNumberOfDataChanges = PublishHelper.CurrentDataChanges[0].MonitoredItems.length;
while (PublishHelper.Response.MoreNotifications == true) {
PublishHelper.Execute();
TotalNumberOfDataChanges += PublishHelper.CurrentDataChanges[0].MonitoredItems.length;
}

And in Line 147 change "PublishHelper.CurrentDataChanges[0].MonitoredItems.length" to "TotalNumberOfDataChanges"

Please do let me know if this worked out well as I can't test the scripts without a server.

lil

2018-10-10 10:41

reporter   ~0009477

Last edited: 2018-10-10 10:53

I made the modifications to test "Monitored Item Services - Monitor Basic - 18". The test now got some other errors.
On line 132 in 018.js 10 items are written. 5 are ok but 5 gets the following errors:

  • Invalid data-type '0' (Null). Value is unchanged.
  • Write().Response.Results[X] is not good: BadTypeMismatch (0x80740000)

Let me know if I should make any other modifications.

Alexander Allmendinger

2019-02-01 10:27

developer   ~0009870

The message about the DataType being Null should only happen, when the Value Attribute of the UaNode is set to NULL.
Could you try to initialize the values in the server with an apropriate value set and see if you're still having troubles?

Paul Hunkar

2019-06-22 16:17

administrator   ~0010400

Apply the fix

Alexander Allmendinger

2019-07-11 16:25

developer   ~0010474

Fix was already part of this public Beta

Paul Hunkar

2019-07-18 14:23

administrator   ~0010519

reviewed in CMP call

Issue History

Date Modified Username Field Change
2018-09-03 14:03 Jonas Green New Issue
2018-09-20 16:54 Paul Hunkar Assigned To => Alexander Allmendinger
2018-09-20 16:54 Paul Hunkar Status new => assigned
2018-10-02 09:05 Alexander Allmendinger Note Added: 0009442
2018-10-02 09:05 Alexander Allmendinger Status assigned => feedback
2018-10-10 10:41 lil Note Added: 0009477
2018-10-10 10:53 lil Note Edited: 0009477
2019-01-07 16:55 Paul Hunkar Target Version => 1.03.341.384
2019-01-28 14:10 Paul Hunkar Category Script Issue => 1 - Script Issue
2019-02-01 10:27 Alexander Allmendinger Note Added: 0009870
2019-06-22 16:17 Paul Hunkar Status feedback => assigned
2019-06-22 16:17 Paul Hunkar Note Added: 0010400
2019-07-11 16:22 Alexander Allmendinger Relationship added related to 0004431
2019-07-11 16:25 Alexander Allmendinger Status assigned => resolved
2019-07-11 16:25 Alexander Allmendinger Resolution open => fixed
2019-07-11 16:25 Alexander Allmendinger Fixed in Version => 1.03.341.389
2019-07-11 16:25 Alexander Allmendinger Note Added: 0010474
2019-07-18 14:23 Paul Hunkar Status resolved => closed
2019-07-18 14:23 Paul Hunkar Note Added: 0010519