View Issue Details

IDProjectCategoryView StatusLast Update
0009036CTT UA Scripts1 - Script Issuepublic2023-10-26 15:07
ReporterMartin Regen Assigned ToMichael Fehler  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformUA .NET PaltformOSWindowsOS Version11
Fixed in Version1.03.505 
Summary0009036: Subscription Publish Min 05 / 003.js doesn't check max subscriptions
Description

If MaxSubscriptionCount is set, the test produces too many sessions and it fails.

Add lines to the test init to cap no of sessions if server doesn't support so many subscriptions:

/ Test prepared by Shane Kurr : shane.kurr@opcfoundation.org;
Description:Create half as many sessions as are claimed to be supported; e.g. create 5-sessions if the Server claims to support 10. For each session,
create half the maximum number of subscriptions allowed, with 1 monitored item each. Then, call Publish once per subscription, per session.
/

// Set Constants
const SUBSCRIPTION_COUNT = 5;
const PUBLISH_QUEUE_SIZE = 5;

// Get number of sessions and subscriptions from settings, set constant
var SessionCount = Math.ceil( Settings.ServerTest.Capabilities.MaxSupportedSessions / 2 );
if( SessionCount == 0 ) { print( "Forcing # sessions to 5." ); SessionCount = 5; } // arbitrarily set session count to 5.

// add these two lines to 003.js
var SubscriptionCount = Math.ceil( Settings.ServerTest.Capabilities.MaxSupportedSubscriptions / 2 );
if( SubscriptionCount != 0 && (SubscriptionCount / SUBSCRIPTION_COUNT) < SessionCount) { SessionCount = SubscriptionCount / SUBSCRIPTION_COUNT; print( "Adjust # sessions to " + SessionCount); } // adjust session count.

const PUBLISH_CALLBACKS_NEEDED = SessionCount * 5;

TagsNo tags attached.
Files Affected

Activities

Paul Hunkar

2023-07-21 15:16

administrator   ~0019704

need to verify all of the scripts in this ConformanceUnit

Alexander Allmendinger

2023-10-26 15:05

developer   ~0020243

Added addWarning in case the MaxSupportetSubscriptions is too low. In which the SessionCount will be changed, to ensure that each session can have 5 subscriptions.

Added addSkipped for when the server supports less than 5 subscriptions.

Paul Hunkar

2023-10-26 15:07

administrator   ~0020245

reviewed changes and agreed to changes , closed issue

Issue History

Date Modified Username Field Change
2023-07-01 18:48 Martin Regen New Issue
2023-07-01 18:49 Martin Regen Description Updated
2023-07-21 15:16 Paul Hunkar Assigned To => Alexander Allmendinger
2023-07-21 15:16 Paul Hunkar Status new => assigned
2023-07-21 15:16 Paul Hunkar Note Added: 0019704
2023-10-24 07:38 Sebastian Allmendinger Project CTT UA Test Case => CTT UA Scripts
2023-10-24 07:38 Sebastian Allmendinger Assigned To Alexander Allmendinger => Michael Fehler
2023-10-26 15:05 Alexander Allmendinger Status assigned => resolved
2023-10-26 15:05 Alexander Allmendinger Resolution open => fixed
2023-10-26 15:05 Alexander Allmendinger Note Added: 0020243
2023-10-26 15:07 Paul Hunkar Status resolved => closed
2023-10-26 15:07 Paul Hunkar Fixed in Version => 1.03.505
2023-10-26 15:07 Paul Hunkar Note Added: 0020245