View Issue Details

IDProjectCategoryView StatusLast Update
0009315CTT UA Scripts1 - Script Issuepublic2024-04-10 12:52
ReporterThomas Assigned ToMichael Fehler  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version1.03.508 
Summary0009315: Sessions Minimum 10 Parallel creates only 9 concurrent sessions instead of 10.
Description

The script open only 9 sessions because the constant MAX = 9 and the for loop increments until i < MAX.

/ Test prepared by Nathan Pocock; compliance@opcfoundation.org
Description: Creates 10 concurrent sessions.
/

function createSession561002() {
const MAX=9;
var sessions = [];
// create the session objects
for( var i=0; i<MAX; i++ ) {
var session = SessionCreator.Connect();
if( session.result ) {
sessions.push( session );
}
else {
break;
}
}

// now to close
for( var i=0; i&lt;sessions.length; i++ ) { 
    SessionCreator.Disconnect( sessions[i] );
}//for i...
return( true );

}

Test.Execute( { Procedure: createSession561002 } );

TagsNo tags attached.
Files Affected

/maintree/Session Services/Session Minimum 10 Parallel/Test Cases/001.js

Activities

Paul Hunkar

2023-12-14 15:20

administrator   ~0020530

Last edited: 2023-12-14 15:23

increase loop to 10 - also need to check if auditing is enabled - since then 9 might be fine (audit has an session open)

Paul Hunkar

2024-04-10 12:52

administrator   ~0021105

reviewed changes in call, agreed to changes and closed issue

Issue History

Date Modified Username Field Change
2023-12-14 14:58 Thomas New Issue
2023-12-14 15:19 Paul Hunkar Assigned To => Alexander Allmendinger
2023-12-14 15:19 Paul Hunkar Status new => assigned
2023-12-14 15:20 Paul Hunkar Note Added: 0020530
2023-12-14 15:23 Paul Hunkar Note Edited: 0020530
2024-01-19 08:25 Michael Fehler Assigned To Alexander Allmendinger => Michael Fehler
2024-03-01 13:58 Michael Fehler Status assigned => resolved
2024-03-01 13:58 Michael Fehler Files Affected => /maintree/Session Services/Session Minimum 10 Parallel/Test Cases/001.js
2024-04-10 12:52 Paul Hunkar Status resolved => closed
2024-04-10 12:52 Paul Hunkar Resolution open => fixed
2024-04-10 12:52 Paul Hunkar Fixed in Version => 1.03.508
2024-04-10 12:52 Paul Hunkar Note Added: 0021105