View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0010233 | CTT UA Scripts | 1 - Script Issue | public | 2025-03-13 18:40 | 2025-04-10 15:49 |
| Reporter | V. Monfort | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | new | Resolution | open | ||
| Summary | 0010233: A&C Enable Test_008 is not functional for several issues | ||||
| Description | A&C Enable Test_008 is not functional for several issues:
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. | ||||
| Tags | No 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 | |||||
| related to | 0010200 | new | A and C Enable Test 8 Unexpected Exception |
|
|
Found a new issue in the same script: var testCase = this.TestCaseMap.Get( conditionIdString ); |
|
|
In same collector.Error call: testResult.statusCode => testResult.StatusCode |
| 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 | |
| 2025-03-27 16:30 | Archie Miller | Relationship added | related to 0010200 |
| 2025-04-10 15:49 | Paul Hunkar | Project | Compliance Test Tool (CTT) Unified Architecture => CTT UA Scripts |