View Issue Details

IDProjectCategoryView StatusLast Update
0007974CTT UA Scripts1 - Script Issuepublic2024-04-18 13:21
ReporterOctavia Stan Assigned ToArchie Miller  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version1.03.508 
Summary0007974: Aggregates - Extrapolation configuration setting is not taken into account by the GetDefaultConfiguration method
Description

The GetDefaultConfiguration method from library\ServiceBased\AttributeServiceSet\HistoryRead\HAAggregateHelper.js
has the following code:

this.GetDefaultConfiguration = function () {
    return {
        UseServerCapabilitiesDefaults: true,
        TreatUncertainAsBad: true,
        PercentDataGood: 100,
        PercentDataBad: 100,
        UseSlopedExtrapolation: true
    };
}

it sets the UseSlopedExtrapolation on true in all cases regardless of the configured Settings.ServerTest.NodeIds.Static.HAProfile.Aggregates.Extrapolation variable.
The tests, however expect that the configured value is used.

Steps To Reproduce
  1. Set the Settings.ServerTest.NodeIds.Static.HAProfile.Aggregates.Extrapolation to Stepped

  2. Execute a set of Aggregates, for example Intepolative. Many of them fail because the Server uses one value for UseSlopedExtrapolation and the CTT calculation uses another value for Sloped.

  3. Set the Settings.ServerTest.NodeIds.Static.HAProfile.Aggregates.Extrapolation to Sloped

  4. Execute a set of Aggregates, for example Intepolative. Tests 003-04.js and 004-04.js fail because their script sets the configuration.UseSlopedExtrapolation = false; (meaning Stepped)
    on the other hand the CTT calculations use the configured Settings.ServerTest.NodeIds.Static.HAProfile.Aggregates.Extrapolation which is Sloped

Additional Information

Suggestion for fix:
Change the GetDefaultConfiguration method to:

this.GetDefaultConfiguration = function () {
    return {
        UseServerCapabilitiesDefaults: false,
        TreatUncertainAsBad: true,
        PercentDataGood: 100,
        PercentDataBad: 100,
        UseSlopedExtrapolation: !this.IsSteppedExtrapolation()
    };
}

Also for the Tests 003-04.js and 004-04.js where the configuration.UseSlopedExtrapolation = false; the CTT shall know and use the same value and not the configured

TagsAggregates, Conformance, HA
Attached Files
step 2.png (5,669 bytes)   
step 2.png (5,669 bytes)   
step 4.png (5,740 bytes)   
step 4.png (5,740 bytes)   
Files Affected

/library/ServiceBased/AttributeServiceSet/HistoryRead/HAAggregateHelper.js
/default.ctt.xml

Activities

Octavia Stan

2022-05-05 09:54

reporter   ~0016669

step 2-2.png (100,656 bytes)   
step 2-2.png (100,656 bytes)   
step 4-2.png (92,687 bytes)   
step 4-2.png (92,687 bytes)   

Archie Miller

2024-03-18 22:39

administrator   ~0020932

A complete rework on how GetDefaultConfiguration is used. Test infrastructure now retrieves the HA Configuration for a specific item.

Conformance units will now determine the correct default configuration for each item used. If no HA Configuration is found for an item, this is now considered an error condition.

The tests themselves have no changes, as the configuration passed in from the test only specifies the HA Configuration parameters that need to be modified for the test.

Paul Hunkar

2024-04-17 12:22

administrator   ~0021128

Reviewed change off-line - agreed to changes by all reviewers - closed issue

Issue History

Date Modified Username Field Change
2022-05-05 08:29 Octavia Stan New Issue
2022-05-05 08:29 Octavia Stan Tag Attached: Aggregates
2022-05-05 08:29 Octavia Stan Tag Attached: Conformance
2022-05-05 08:29 Octavia Stan Tag Attached: HA
2022-05-05 08:29 Octavia Stan File Added: step 2.png
2022-05-05 08:29 Octavia Stan File Added: step 4.png
2022-05-05 09:54 Octavia Stan Note Added: 0016669
2022-05-05 09:54 Octavia Stan File Added: step 2-2.png
2022-05-05 09:54 Octavia Stan File Added: step 4-2.png
2022-05-12 16:24 Paul Hunkar Assigned To => Archie Miller
2022-05-12 16:24 Paul Hunkar Status new => assigned
2022-08-02 20:06 Paul Hunkar Project Compliance Test Tool (CTT) Unified Architecture => CTT UA Test Case
2024-03-18 22:35 Archie Miller Category 4 - Test Case Definition => 1 - Script Issue
2024-03-18 22:35 Archie Miller Product Version 1.04.09.398 =>
2024-03-18 22:35 Archie Miller Files Affected => /library/ServiceBased/AttributeServiceSet/HistoryRead/HAAggregateHelper.js
/default.ctt.xml


2024-03-18 22:39 Archie Miller Status assigned => resolved
2024-03-18 22:39 Archie Miller Resolution open => fixed
2024-03-18 22:39 Archie Miller Note Added: 0020932
2024-04-17 12:22 Paul Hunkar Status resolved => closed
2024-04-17 12:22 Paul Hunkar Fixed in Version => 1.04.11.504
2024-04-17 12:22 Paul Hunkar Note Added: 0021128
2024-04-18 13:20 Paul Hunkar Project CTT UA Test Case => CTT UA Scripts
2024-04-18 13:21 Paul Hunkar Fixed in Version 1.04.11.504 => 1.03.508