View Issue Details

IDProjectCategoryView StatusLast Update
0010233Compliance Test Tool (CTT) Unified Architecture1 - Script Issuepublic2025-03-25 15:07
ReporterV. Monfort Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version1.04.11-01.00.506 
Summary0010233: A&C Enable Test_008 is not functional for several issues
Description

A&C Enable Test_008 is not functional for several issues:

  1. It uses the PostLoopAction to wait for a timeout to trigger next phase but since the first method call is disabling all alarms, if no further events are received this function is never called again and the test is stuck
  2. EndTest function uses localTestCase.ConditionId which does not exist, localTestCase.ConditionIdVariant does.
  3. PostLoopAction uses localTestCase.Finished which does not exists, localTestCase.Completed does.
  4. Some other typo

I attached the temporary patch used to pass the test by avoiding all alarms to be disabled at first method call and fixing other points.

TagsNo tags attached.
Attached Files
0001-UACTT-A-C-Test_008-temporary-fix-to-avoid-disabling-.patch (2,761 bytes)   
---
 .../A and C Enable/Test Cases/Test_008.js             | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/UACTT_project/maintree/Alarms and Conditions/A and C Enable/Test Cases/Test_008.js b/UACTT_project/maintree/Alarms and Conditions/A and C Enable/Test Cases/Test_008.js
index 41f5739f..78818266 100755
--- a/UACTT_project/maintree/Alarms and Conditions/A and C Enable/Test Cases/Test_008.js	
+++ b/UACTT_project/maintree/Alarms and Conditions/A and C Enable/Test Cases/Test_008.js	
@@ -84,7 +84,7 @@ function Test_008 () {
             }
         } else if ( this.State == this.States.WaitingForLastCall ) {
             if ( now > this.TargetLastCallLocalTime ) {
-                this.MethodCall( collector, this.CallType.SecondCall, this.States.Completed );
+                this.MethodCall( collector, this.CallType.FinalCall, this.States.Completed );
             }
         }
 
@@ -94,7 +94,7 @@ function Test_008 () {
                 var isComplete = true;
                 this.TestCaseMap.Iterate( function ( conditionIdString, localTestCase, args ) {
                     var testCaseComplete = false;
-                    if ( localTestCase.Failed || localTestCase.Finished ) {
+                    if ( localTestCase.Failed || localTestCase.Completed ) {
                         testCaseComplete = true;
                     }
                     if ( !testCaseComplete ) {
@@ -114,9 +114,11 @@ function Test_008 () {
         var runEnableAll = false;
 
         var testMethods = [];
+        // Avoid disabling all alarms on first call otherwise this function might never be called again         
+        var firstTCandFirstMC = callType == this.CallType.FirstCall;
         this.TestCaseMap.Iterate( function ( conditionIdString, testCase, args ) {
 
-            if ( !testCase.Completed ) {
+            if ( !testCase.Completed && !firstTCandFirstMC) {
                 var methodId = args.ThisTest.EnableNodeId;
                 if ( !testCase.SetToDisabled ) {
 
@@ -135,6 +136,8 @@ function Test_008 () {
                     MethodId: methodId,
                     ObjectId: testCase.ConditionIdVariant
                 } );
+            }else{
+                firstTCandFirstMC = false;
             }
 
         }, { ThisTest: this } );
@@ -299,7 +302,7 @@ function Test_008 () {
     this.EndTest = function ( collector ) {
         this.TestCaseMap.Iterate( function ( conditionIdString, localTestCase, args ) {
             if ( !localTestCase.SetToEnabled ) {
-                args.Collector.EnableAlarm( localTestCase.ConditionId );
+                args.Collector.EnableAlarm( localTestCase.ConditionIdVariant );
             }
         }, { Collector: collector } );
     }
-- 
2.43.0

Files Affected

Activities

V. Monfort

2025-03-25 08:41

reporter   ~0022560

Found a new issue in the same script:
Line 176 in function MethodCall, localTestCase is referenced instead of testCase:

var testCase = this.TestCaseMap.Get( conditionIdString );
....
collector.Error( this.TestName,
conditionIdString, localTestCase, this.State.Failed,
"Unable to " + command + " specific condition on " + callType + " attempt [" +
testResult.statusCode.toString() + "]" );

V. Monfort

2025-03-25 15:07

reporter   ~0022565

In same collector.Error call: testResult.statusCode => testResult.StatusCode

Issue History

Date Modified Username Field Change
2025-03-13 18:40 V. Monfort New Issue
2025-03-13 18:40 V. Monfort File Added: 0001-UACTT-A-C-Test_008-temporary-fix-to-avoid-disabling-.patch
2025-03-25 08:41 V. Monfort Note Added: 0022560
2025-03-25 15:07 V. Monfort Note Added: 0022565