View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007476 | CTT UA Scripts | 1 - Script Issue | public | 2021-12-17 08:40 | 2022-10-13 16:09 |
Reporter | JieW | Assigned To | Archie Miller | ||
Priority | urgent | Severity | block | Reproducibility | always |
Status | closed | Resolution | fixed | ||
OS | Windows | OS Version | 20H2 | ||
Fixed in Version | 1.03.500 | ||||
Summary | 0007476: A&C compliance test: alarms are not discovered leads to many tests skipped | ||||
Description | Test setup: Summary:
Details:
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Files Affected | |||||
has duplicate | 0007989 | closed | Archie Miller | Compliance Test Tool (CTT) Unified Architecture | A&C Skip Messages Are Too Noisy |
related to | 0007726 | closed | Archie Miller | CTT UA Scripts | A and C Basic: Test - 003 |
|
Investigation continues, however as a first step, ensure that the settings \Advanced\Test Tool\Address Space Model\MaxNodeInAddressSpaceCache is set to a value that is large enough to gather all alarm information. The default value is often not large enough to discover all alarms in the model. |
|
The CTT is working to expectations. Issue 1. Issue 2. Issue 3. |
|
Firstly, thank you for your quick response. For your notes: My new findings and doubts:
Sorry that I have so many issues. The test setup requirements are complicated than the test for DA server. |
|
New Findings One • Tests passed, no tests skipped. For example, script output for A and C Basic Test_003. ---> Does this mean the test is passed actually? Yes, this would mean that the test passed. In initialization, the object model is read, and each alarm type in the type system is noted. For the majority of tests, the infrastructure will expect to test an alarm of each alarm type defined in the type system. If there is not a specific type of alarm, for example, a LimitAlarmType, the test would try to test for a LimitAlarmType. If it does not get any of this alarm type, the test is marked as skipped to show the user that this type cannot be tested. The infrastructure is such that a success is determined automatically, and if there are skips, warnings or errors, the test itself cannot be marked as successful. To show the actual results, each test that uses the TestEvent algorithm will have a CheckResult function that does show the results for each alarm type in the script output. In Script output_CTT_1.txt, for Basic Test_003, the output is: CheckResults Test_003: key i=2782 • Tests skipped. ---> Because no alarms found? I used automatic script to trigger alarms constantly so why would no alarms be detected… I can't know what is happening in the server, but the test will monitor the Server object for events. There is a line in .\libraries\AlarmsAndConditions\AlarmCollector.js in the function this.SingleLoop that you could temporarily uncomment This will output every Event/Alarm that is received by the test. If this doesn't show the alarms that you are expecting to see, then I would verify that the server is actually sending them. • No summary. Only description, like "CheckResults Test_003: key i=2782". For example, script output for A and C Alarm Test_003. ---> So how should testers handle these outputs? Treat it as passed or failed? There is a missing status message that would say "No alarms discovered for SomeDefinedAlarmType" Until this addressed, assume that no message after CheckResults Test_XXX: key i=yyyy means that no alarms were found for the alarm type. |
|
New Findings Two This is quite feasible. For most alarm tests, it is assumed that alarms will cycle through all alarm conditions including inactive on a regular cycle. There is a setting on Server Test\Alarms and Conditions\Alarm Cycle Time. Err on the side of caution. For example, if it takes 45 seconds to cycle all states and return to the original state, set this variable to more than 45 seconds. |
|
New Findings Three There are two reasons why this test may be skipped, one is the alarm is not acknowledgeable. This only affects ConditionType, so it is unlikely this is the culprit. The other would be that the alarm state is changing too fast, and a read of an instance has a modified state, which would cause a skip. There would be an activity message that describes this The test only expects changing alarm conditions, so it is not necessary to manually acknowledge alarms, it would disturb the test operations. |
|
Thanks for the update. Now I can summarize the issues that I still get: 2) As you mentioned, if the results are passed in Script output, then I can treat the test as Passed. |
|
Modified the AlarmCollector::CheckResults to addLog for visibility into how many tests passed and skipped. Requires that Project setting Advanced\Test Tool\SuppressLogEntries be unchecked, as it is checked by default. |
|
This modification is integrated in next version of CTT, is it right? Is it possible for me to modify something and use it with version 1.4.9.398? Thanks. |
|
Reduced the number of skip messages based on the configured alarm source nodes at \Server Test\Alarms and Conditions\Supported ConditionTypes. |
|
reviewed issue in call, agreed and closed |
Date Modified | Username | Field | Change |
---|---|---|---|
2021-12-17 08:40 | JieW | New Issue | |
2021-12-17 08:40 | JieW | File Added: Picture 1.png | |
2021-12-17 08:40 | JieW | File Added: Picture 2.png | |
2021-12-17 08:40 | JieW | File Added: Picture 3.png | |
2021-12-17 14:26 | Archie Miller | Note Added: 0015570 | |
2021-12-17 15:48 | Paul Hunkar | Assigned To | => Archie Miller |
2021-12-17 15:48 | Paul Hunkar | Status | new => assigned |
2021-12-17 17:14 | Archie Miller | Note Added: 0015574 | |
2021-12-20 07:35 | JieW | Note Added: 0015577 | |
2021-12-20 07:35 | JieW | File Added: Script output_CTT_1.txt | |
2021-12-20 07:35 | JieW | File Added: Script output_CTT_2.txt | |
2021-12-20 07:35 | JieW | File Added: Result comparison for 2 tests.xlsx | |
2021-12-30 22:43 | Archie Miller | Note Added: 0015649 | |
2021-12-30 22:44 | Archie Miller | Note Edited: 0015649 | |
2021-12-30 22:59 | Archie Miller | Note Added: 0015650 | |
2021-12-31 00:15 | Archie Miller | Note Added: 0015651 | |
2022-01-04 08:22 | JieW | Note Added: 0015658 | |
2022-01-04 08:22 | JieW | File Added: Different results with different interval.png | |
2022-01-04 08:22 | JieW | File Added: Triggering alarms for CT.png | |
2022-01-13 21:56 | Archie Miller | Note Added: 0015715 | |
2022-01-17 01:16 | JieW | Note Added: 0015727 | |
2022-02-17 19:57 | Archie Miller | Status | assigned => resolved |
2022-02-17 19:57 | Archie Miller | Resolution | open => fixed |
2022-02-17 19:57 | Archie Miller | Note Added: 0016042 | |
2022-05-13 14:37 | Archie Miller | Relationship added | has duplicate 0007989 |
2022-08-29 17:24 | Paul Hunkar | Category | 5 - General Problem => 1 - Script Issue |
2022-08-29 17:24 | Paul Hunkar | Target Version | => 1.04 |
2022-08-29 17:24 | Paul Hunkar | Description Updated | |
2022-08-29 17:24 | Paul Hunkar | Project | Compliance Test Tool (CTT) Unified Architecture => CTT UA Scripts |
2022-08-29 17:24 | Paul Hunkar | Fixed in Version | => 1.03.500 |
2022-08-29 17:24 | Paul Hunkar | Target Version | 1.04 => 1.03 |
2022-08-29 17:25 | Paul Hunkar | Status | resolved => closed |
2022-08-29 17:25 | Paul Hunkar | Note Added: 0017424 | |
2022-10-13 16:09 | Paul Hunkar | Relationship added | related to 0007726 |