View Issue Details

IDProjectCategoryView StatusLast Update
0006716CTT UA Scripts1 - Script Issuepublic2022-10-07 14:28
ReporterEtienne Rossignon Assigned ToYannik Klaass  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Fixed in Version1.03.501 
Summary0006716: createMonitoredItems5000 may send more monitored item in a single CreateMonitoredItemCall than allowed
Description

Refers to createMonitoredItems5000, \maintree\Monitored Item Services\Monitor Items 5000\Test Cases\001.js

the CreateMonitoredItemsHelper may send a number of monitored item that exceed
MaxMonitoredItemsPerCall causing the server to return BadTooManyOperations ...

instead we want the client to create + the maximum number of monitored Item ¨+ 1000,

This limits might be far beyond MaxMonitoredItemsPerCall

for instance if the server supports a maximum of 5500 monitored Item and MaxMonitoredItemsPerCall = 6000, the test would make a attend to creat 6000 items a single call , causing the server to reject the transaction.

Instead the test shall split the creation of Monitored Item to accommodate MaxMonitoredItemsPerCall

Solution:
replace ProhibitSplitting: true,

with
ProhibitSplitting: true, /// we should allow splitting here

TagsNo tags attached.
Files Affected

Relationships

related to 0004057 closedYannik Klaass Server limitations specified in Server_ServerCapabilites_OperationLimits are not used in CTT tests 

Activities

Etienne Rossignon

2021-03-29 12:33

reporter   ~0014102

Also in \maintree\Monitored Item Services\Monitor Items 5000\Test Cases\Err-001.js

if( !CreateMonitoredItemsHelper.Execute( {
        ItemsToCreate: tooManyItems, 
        TimestampsToReturn: TimestampsToReturn.Server,
        SubscriptionId: defaultSubscription,
        ServiceResult: expectedServiceResults,
        OperationResults: expectedOperationResults,
        SuppressMessaging: false,
        ProhibitSplitting: true
        } ) ) return( false );

has to be replaced with

if( !CreateMonitoredItemsHelper.Execute( {
        ItemsToCreate: tooManyItems, 
        TimestampsToReturn: TimestampsToReturn.Server,
        SubscriptionId: defaultSubscription,
        ServiceResult: expectedServiceResults,
        OperationResults: expectedOperationResults,
        SuppressMessaging: false,

         ProhibitSplitting: false,  // CHANGED
        MaxItemsPerCall: gServerCapabilities.OperationLimits.MaxMonitoredItemsPerCall, //  TO ADD

        } ) ) return( false );

Yannik Klaass

2022-10-04 07:43

developer   ~0017924

Fixed along with Mantis 0004057

Paul Hunkar

2022-10-07 14:28

administrator   ~0017974

Updated were checked-in under the related issue 4057
All agreed to chanegs and closed issue

Issue History

Date Modified Username Field Change
2021-03-29 12:29 Etienne Rossignon New Issue
2021-03-29 12:33 Etienne Rossignon Note Added: 0014102
2021-04-01 15:48 Paul Hunkar Assigned To => Alexander Allmendinger
2021-04-01 15:48 Paul Hunkar Status new => assigned
2022-08-02 20:04 Paul Hunkar Project Compliance Test Tool (CTT) Unified Architecture => CTT UA Scripts
2022-09-07 12:26 Yannik Klaass Relationship added related to 0004057
2022-10-04 07:41 Yannik Klaass Assigned To Alexander Allmendinger => Yannik Klaass
2022-10-04 07:43 Yannik Klaass Status assigned => resolved
2022-10-04 07:43 Yannik Klaass Resolution open => fixed
2022-10-04 07:43 Yannik Klaass Note Added: 0017924
2022-10-07 14:28 Paul Hunkar Status resolved => closed
2022-10-07 14:28 Paul Hunkar Fixed in Version => 1.03.501
2022-10-07 14:28 Paul Hunkar Note Added: 0017974