View Issue Details

IDProjectCategoryView StatusLast Update
0004134Compliance Test Tool (CTT) Unified Architecture4 - Test Case Definitionpublic2019-08-09 16:11
ReporterMartin Lang Assigned ToAlexander Allmendinger  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformx64OSWindowsOS Version7
Product Version1.03.340.380 
Target Version1.03Fixed in Version1.03.341.381 
Summary0004134: Base Info Server Capabilities/001 - Script verify node "MinSupportedSampleRate", but maybe MinSamplingInterval does not match
Description

The script reads the node MinSupportedSampleRate from the ServerCapabilities, but maybe this node itself does not support this minimum sampling interval.

Possible solution could be to read a static scalar defined node.

Modified script:
function test() {
// read the value of the setting
var item = MonitoredItem.fromNodeIds( new UaNodeId( Identifier.Server_ServerCapabilities_MinSupportedSampleRate ) )[0];
if( !ReadHelper.Execute( { NodesToRead: item } ) ) return( false );
var realValue = item.Value.Value.clone();
// create a subscription
var sub = new Subscription();
if( !CreateSubscriptionHelper.Execute( { Subscription: sub } ) ) return( false );
/* modified begin ****/
// create one monitored item from static scalar nodes
var item1 = MonitoredItem.GetRequiredNodes({ Settings: Settings.ServerTest.NodeIds.Static.AllProfiles.Scalar.NumericSettings, Number: 1 })[0];
if( item1 === undefined || item1 === null ) {
addSkipped( "Static Scalar (numeric)" );
return( false );
}
item1.SamplingInterval = 0;
// now to compare a sampling interval to what is specified
if( CreateMonitoredItemsHelper.Execute( { ItemsToCreate: item1, SubscriptionId: sub } ) ) {
if( realValue.toDouble() !== CreateMonitoredItemsHelper.Response.Results[0].RevisedSamplingInterval) addWarning( "Expected the revised Sampling Interval to match the Server.ServerCapabilities.MinSupportedSampleRate=" + realValue );
DeleteMonitoredItemsHelper.Execute( { ItemsToDelete: item1, SubscriptionId: sub } );
}
/***
modified end *****/
DeleteSubscriptionsHelper.Execute( { SubscriptionIds: sub } );
return( true );
}

TagsNo tags attached.
Files Affected

Activities

Paul Hunkar

2018-04-12 15:56

administrator   ~0008998

Discussed in CMP Call 2018-04-12
Suggestion that the server status - CurrentTime be used for this test - which most likely would support the minimum sampling interval.

Alexander Allmendinger

2018-08-05 18:56

developer   ~0009261

Script is now using the CurrentTime as decided by the Compliance Working Group

Paul Hunkar

2019-08-09 16:11

administrator   ~0010746

Review in CMP call

Issue History

Date Modified Username Field Change
2018-01-24 08:37 Martin Lang New Issue
2018-04-12 15:54 Paul Hunkar Assigned To => Alexander Allmendinger
2018-04-12 15:54 Paul Hunkar Status new => assigned
2018-04-12 15:56 Paul Hunkar Note Added: 0008998
2018-08-05 18:56 Alexander Allmendinger Note Added: 0009261
2018-08-05 18:56 Alexander Allmendinger Status assigned => resolved
2018-08-05 18:56 Alexander Allmendinger Fixed in Version => 1.03.341.381
2018-08-05 18:56 Alexander Allmendinger Resolution open => fixed
2019-01-28 14:14 Paul Hunkar Category Test Case Definition => 5 - Test Case Definition
2019-01-28 14:15 Paul Hunkar Category 5 - Test Case Definition => 4 - Test Case Definition
2019-08-09 16:11 Paul Hunkar Status resolved => closed
2019-08-09 16:11 Paul Hunkar Note Added: 0010746
2019-08-09 16:11 Paul Hunkar Target Version => 1.03