View Issue Details

IDProjectCategoryView StatusLast Update
0004084Compliance Test Tool (CTT) Unified Architecture1 - Script Issuepublic2019-09-01 13:57
ReporterBernd Edlinger Assigned ToAlexander Allmendinger  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
PlatformPCOSWindowsOS Version8.1
Product Version1.03.340.378 
Target Version1.03Fixed in Version1.03 
Summary0004084: Attribute Services/Attribute Read/Test Cases/Err-008.js exceeds MaxNodesPerRead
Description

The script has wrong loop termination which makes it use 3 times the
configured MaxNodesPerRead.

diff --git a/maintree/Attribute Services/Attribute Read/Test Cases/Err-008.js b/maintree/Attribute Services/Attribute Read/Test Cases/Err-008.js
index c0533bd..630e68f 100644
--- a/maintree/Attribute Services/Attribute Read/Test Cases/Err-008.js
+++ b/maintree/Attribute Services/Attribute Read/Test Cases/Err-008.js
@@ -13,27 +13,27 @@ function read581Err008() {
var expectedResults = [];

 // prepare the good items with the attributes we want to read; read expected to succeed
  • for (i = 0; (i < goodNodes.length) && ((i < gServerCapabilities.OperationLimits.MaxNodesPerRead / 3) || gServerCapabilities.OperationLimits.MaxNodesPerRead == 0); i++) {
  • for (i = 0; (i < goodNodes.length) && ((i < gServerCapabilities.OperationLimits.MaxNodesPerRead / 3 / attributesToRead.length) || gServerCapabilities.OperationLimits.MaxNodesPerRead == 0); i++) {
    for( j=0; j<attributesToRead.length; j++) {
  • var newItem = goodNodes[0].clone();
  • var newItem = goodNodes[i].clone();
    newItem.AttributeId = attributesToRead[j];
    allItems.push( newItem );
    expectedResults.push( new ExpectedAndAcceptedResults( StatusCode.Good ) );
    }//for j..
    }//for i..
    // prepare the unknown nodes the same way; read expected to fail
  • for (i = 0; (i < unknownNodes.length) && ((i < gServerCapabilities.OperationLimits.MaxNodesPerRead / 3) || gServerCapabilities.OperationLimits.MaxNodesPerRead == 0); i++) {
  • for (i = 0; (i < unknownNodes.length) && ((i < gServerCapabilities.OperationLimits.MaxNodesPerRead / 3 / attributesToRead.length) || gServerCapabilities.OperationLimits.MaxNodesPerRead == 0); i++) {
    for( j=0; j<attributesToRead.length; j++) {
  • var newItem = unknownNodes[0].clone();
  • var newItem = unknownNodes[i].clone();
    newItem.AttributeId = attributesToRead[j];
    allItems.push( newItem );
    expectedResults.push( new ExpectedAndAcceptedResults( [ StatusCode.BadNodeIdInvalid, StatusCode.BadNodeIdUnknown ] ) );
    }//for j...
    }//for i...
    // prepare the invalid nodes the same way; read expected to fail
  • for (i = 0; (i < invalidNodes.length) && ((i < gServerCapabilities.OperationLimits.MaxNodesPerRead / 3) || gServerCapabilities.OperationLimits.MaxNodesPerRead == 0); i++) {
  • for (i = 0; (i < invalidNodes.length) && ((i < gServerCapabilities.OperationLimits.MaxNodesPerRead / 3 / attributesToRead.length) || gServerCapabilities.OperationLimits.MaxNodesPerRead == 0); i++) {
    for( j=0; j<attributesToRead.length; j++) {
  • var newItem = invalidNodes[0].clone();
  • var newItem = invalidNodes[i].clone();
    newItem.AttributeId = attributesToRead[j];
    allItems.push( newItem );
    expectedResults.push( new ExpectedAndAcceptedResults( [ StatusCode.BadNodeIdInvalid, StatusCode.BadNodeIdUnknown ] ) );
TagsNo tags attached.
Files Affected

Activities

Alexander Allmendinger

2018-02-07 20:40

developer   ~0008857

Fixed as recommended by Bernd Edlinger.

Paul Hunkar

2019-09-01 13:57

administrator   ~0010878

Reviewed in extra CMP call

Issue History

Date Modified Username Field Change
2017-12-06 08:21 Bernd Edlinger New Issue
2017-12-06 08:21 Bernd Edlinger Status new => assigned
2017-12-06 08:21 Bernd Edlinger Assigned To => Alexander Allmendinger
2017-12-07 16:39 Paul Hunkar Target Version => 1.03
2018-02-07 20:40 Alexander Allmendinger Note Added: 0008857
2018-02-07 20:40 Alexander Allmendinger Status assigned => resolved
2018-02-07 20:40 Alexander Allmendinger Fixed in Version => 1.03
2018-02-07 20:40 Alexander Allmendinger Resolution open => fixed
2019-01-28 14:10 Paul Hunkar Category Script Issue => 1 - Script Issue
2019-09-01 13:57 Paul Hunkar Status resolved => closed
2019-09-01 13:57 Paul Hunkar Note Added: 0010878