Skip to content

Commit 7ccda02

Browse files
Dev2025q4 testcase11 doc (#585)
* Changed the timing of the broadcast testcases to avoid too many logging queue elements. * Enabled lvlibp build. * Changed the 5s to 10s timeout for Macro: Exit send API. * Cleared error 42 in testcases. * Lower loop rates and loop counts in Boradcast class and ajusted test run order of testclasses. * Reduced test time of three ending-testcases of each testcase class. * Further reduec test time * Added more debug info for NonCSMCallerSupportAPI testclass. * Unit test round1 * Unit test round2 * Unit test round3 * Unit test round4 --------- Co-authored-by: NEVSTOP <liyao.zheda+github@gmail.com>
1 parent 6a9027c commit 7ccda02

File tree

87 files changed

+381
-133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+381
-133
lines changed
148 KB
Binary file not shown.
Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
test1-SystemLevelModuleInListModuleAPI (testcase-CSMSystemLevelModule)
2+
...
3+
ok 0.049 sec
4+
test1-testModuleExitEventAPI (testcase-CSMNonCSMCallerSupportAPI)
5+
...
6+
ok 13.658 sec
7+
test2-testModuleTurnsInvalidAPI (testcase-CSMNonCSMCallerSupportAPI)
8+
...
9+
ok 12.827 sec
10+
test1-TestModuleStatusVI (testcase-CSMManagementAPI)
11+
...
12+
ok 0.070 sec
13+
test2-TestFilterJKISMStringQueueVI (testcase-CSMManagementAPI)
14+
...
15+
ok 0.106 sec
16+
test1-SyncMessage (testcase-CSMMessage)
17+
...
18+
ok 4.082 sec
19+
test2-SyncMessageWithError (testcase-CSMMessage)
20+
...
21+
ok 3.917 sec
22+
test3-SyncMessage_API (testcase-CSMMessage)
23+
...
24+
ok 3.836 sec
25+
test4-SyncMessageWithError_API (testcase-CSMMessage)
26+
...
27+
ok 3.905 sec
28+
test5-AsyncMessageWithReply (testcase-CSMMessage)
29+
...
30+
ok 3.753 sec
31+
test6-AsyncMessageWithReplyWithError (testcase-CSMMessage)
32+
...
33+
ok 3.746 sec
34+
test7-AsyncMessageWithoutReply (testcase-CSMMessage)
35+
...
36+
ok 3.753 sec
37+
test8-AsyncMessageWithoutReply_API (testcase-CSMMessage)
38+
...
39+
ok 3.745 sec
40+
test1-HexStr conversion (testcase-CSMArgument)
41+
...
42+
ok 0.045 sec
43+
test2-ErrorStr conversion (testcase-CSMArgument)
44+
...
45+
ok 0.054 sec
46+
test3-SafeStr conversion (testcase-CSMArgument)
47+
...
48+
ok 0.062 sec
49+
test4-ArgumentCanBeTakenToTargetModule (testcase-CSMArgument)
50+
...
51+
ok 0.849 sec
52+
test1-ResponseWithError (testcase-CSMResponse)
53+
...
54+
ok 0.830 sec
55+
test2-MacroWithSubMessages (testcase-CSMResponse)
56+
...
57+
ok 0.733 sec
58+
test3-MacroWithSubAndPostMessages (testcase-CSMResponse)
59+
...
60+
ok 0.742 sec
61+
test4-MacroWithNonLocalSubMessages (testcase-CSMResponse)
62+
...
63+
ok 3.922 sec
64+
test1-AllWOrkerNodesShareTheSameData (testcase-CSMWorkerMode)
65+
...
66+
ok 0.190 sec
67+
test1-ListSubModulesInDifferentSenarios (testcase-CSMSubModule)
68+
...
69+
ok 0.042 sec
70+
test1-AllChainNodesShareTheSameData (testcase-CSMChainMode)
71+
...
72+
ok 0.217 sec
73+
test2-DifferentChainNodesProcessDifferentAllowedMessages (testcase-CSMChainMode)
74+
...
75+
ok 0.103 sec
76+
test3-FirstChainNodeProcessesAllowedMessages (testcase-CSMChainMode)
77+
...
78+
ok 0.101 sec
79+
test4-EndNodeHandlesErrorForNotAllowedMessages (testcase-CSMChainMode)
80+
...
81+
ok 0.199 sec
82+
test5-ChainNodeBroadcast (testcase-CSMChainMode)
83+
...
84+
ok 0.488 sec
85+
test6-ChainNodeExitSequenceCheck (testcase-CSMChainMode)
86+
...
87+
ok 7.947 sec
88+
test1-ModuleCreatedDestroyed_Queue (testcase-CSMGlobalLog)
89+
...
90+
ok 18.542 sec
91+
test2-StateChange_Queue (testcase-CSMGlobalLog)
92+
...
93+
ok 0.409 sec
94+
test3-RegisterUnregister_Queue (testcase-CSMGlobalLog)
95+
...
96+
ok 2.206 sec
97+
test4.1-SyncMessage_Queue (testcase-CSMGlobalLog)
98+
...
99+
ok 2.277 sec
100+
test4.2-AsyncMessageWithReply_Queue (testcase-CSMGlobalLog)
101+
...
102+
ok 1.932 sec
103+
test4.3-AsyncMessageWithoutReply_Queue (testcase-CSMGlobalLog)
104+
...
105+
ok 1.926 sec
106+
test5-Broadcast_Queue (testcase-CSMGlobalLog)
107+
...
108+
ok 1.282 sec
109+
test6-Interrupt_Queue (testcase-CSMGlobalLog)
110+
...
111+
ok 1.645 sec
112+
test7-StateBroadcast_Queue (testcase-CSMGlobalLog)
113+
...
114+
ok 1.283 sec
115+
test8-UserLog_Queue (testcase-CSMGlobalLog)
116+
...
117+
ok 1.126 sec
118+
test9-ModuleCreatedDestroyed_Event (testcase-CSMGlobalLog)
119+
...
120+
ok 19.534 sec
121+
test10-StateChange_Event (testcase-CSMGlobalLog)
122+
...
123+
ok 0.419 sec
124+
test11-RegisterUnregister_Event (testcase-CSMGlobalLog)
125+
...
126+
ok 2.211 sec
127+
test12.1-SyncMessage_Event (testcase-CSMGlobalLog)
128+
...
129+
ok 2.252 sec
130+
test12.2-AsyncMessageWithReply_Event (testcase-CSMGlobalLog)
131+
...
132+
ok 1.936 sec
133+
test12.3-AsyncMessageWithoutReply_Event (testcase-CSMGlobalLog)
134+
...
135+
ok 1.934 sec
136+
test13-Broadcast_Event (testcase-CSMGlobalLog)
137+
...
138+
ok 1.264 sec
139+
test14-Interrupt_Event (testcase-CSMGlobalLog)
140+
...
141+
ok 1.641 sec
142+
test15-StateBroadcast_Event (testcase-CSMGlobalLog)
143+
...
144+
ok 1.275 sec
145+
test16-UserLog_Event (testcase-CSMGlobalLog)
146+
...
147+
ok 1.136 sec
148+
test1-ProcessSyncMessageInCSMLoop(SendAndReceive) (testcase-CSMAddonLoopSupport)
149+
...
150+
ok 8.053 sec
151+
test2-ProcessAsyncMessageWithReplyInCSMLoop(SendAndReceive) (testcase-CSMAddonLoopSupport)
152+
...
153+
ok 7.638 sec
154+
test3-ProcessAsyncMessageWithoutReplyInCSMLoop(SendAndReceive) (testcase-CSMAddonLoopSupport)
155+
...
156+
ok 7.739 sec
157+
test1-LocalExternalStatusRegistration (testcase-CSMBroadcast)
158+
...
159+
ok 1.410 sec
160+
test2-LocalExternalStatusRegistrationViaAPI (testcase-CSMBroadcast)
161+
...
162+
ok 7.706 sec
163+
test3-1ToNBroadcastStatus (testcase-CSMBroadcast)
164+
...
165+
ok 0.733 sec
166+
test4-RegisterStatusFromNonCSM (testcase-CSMBroadcast)
167+
...
168+
ok 0.721 sec
169+
test5-RegisterMultipleStatusesToOneState (testcase-CSMBroadcast)
170+
...
171+
ok 4.425 sec
172+
test6-AsteriskWildcardStatusRegistration (testcase-CSMBroadcast)
173+
...
174+
ok 0.379 sec
175+
test7-TestArgumentInfoOfTriggeredState_Status (testcase-CSMBroadcast)
176+
...
177+
ok 3.793 sec
178+
test8-LocalExternalStateRegistration (testcase-CSMBroadcast)
179+
...
180+
ok 7.819 sec
181+
test9-LocalExternalStateRegistrationViaAPI (testcase-CSMBroadcast)
182+
...
183+
ok 1.366 sec
184+
test10-1ToNBroadcastState (testcase-CSMBroadcast)
185+
...
186+
ok 0.733 sec
187+
test11-RegisterStatusFromNonCSM_State (testcase-CSMBroadcast)
188+
...
189+
ok 0.727 sec
190+
test12-RegisterMultipleStatesToOneState (testcase-CSMBroadcast)
191+
...
192+
ok 4.393 sec
193+
test13-AsteriskWildcardStateRegistration (testcase-CSMBroadcast)
194+
...
195+
ok 0.362 sec
196+
test14-TestArgumentInfoOfTriggeredState_State (testcase-CSMBroadcast)
197+
...
198+
ok 3.788 sec
199+
test15-LosslessRegisterStatusMultipleTimes (testcase-CSMBroadcast)
200+
...
201+
ok 2.366 sec
202+
test16-LosslessRegisterStatusMultipleTimesNonCSM (testcase-CSMBroadcast)
203+
...
204+
ok 7.178 sec
205+
test17-LosslessRegisterStateMultipleTimes (testcase-CSMBroadcast)
206+
...
207+
ok 2.374 sec
208+
test18-LosslessRegisterStateMultipleTimesNonCSM (testcase-CSMBroadcast)
209+
...
210+
ok 7.170 sec
211+
test19-1ToNInterruptStatus (testcase-CSMBroadcast)
212+
...
213+
ok 0.926 sec
214+
test20-RegisterStatusAsInterruptFromNonCSM (testcase-CSMBroadcast)
215+
...
216+
ok 0.934 sec
217+
test21-RegisterInterruptFromNonCSM (testcase-CSMBroadcast)
218+
...
219+
ok 0.934 sec
220+
test22-RegisterInterruptAsStatusFromNonCSM (testcase-CSMBroadcast)
221+
...
222+
ok 0.931 sec
223+
test23-RegisterStatusAsInterruptFromNonCSM_State (testcase-CSMBroadcast)
224+
...
225+
ok 0.932 sec
226+
test24-MappingRelationshipByExternalRegistration_API (testcase-CSMBroadcast)
227+
...
228+
ok 19.874 sec
229+
test25-MappingRelationshipByExternalRegistration (testcase-CSMBroadcast)
230+
...
231+
ok 23.531 sec
232+
test26-MappingRelationshipByLocalRegistration_WithSubcriberName (testcase-CSMBroadcast)
233+
...
234+
ok 23.043 sec
235+
test27-MappingRelationshipByLocalRegistration_WithoutSubcriberName (testcase-CSMBroadcast)
236+
...
237+
ok 15.007 sec
238+
test28-MappingRelationshipByExternalRegistration_API_State (testcase-CSMBroadcast)
239+
...
240+
ok 21.554 sec
241+
test29-MappingRelationshipByExternalRegistration_State (testcase-CSMBroadcast)
242+
...
243+
ok 18.920 sec
244+
test30-MappingRelationshipByLocalRegistration_WIthSubscriberName_State (testcase-CSMBroadcast)
245+
...
246+
ok 23.514 sec
247+
test31-MappingRelationshipByLocalRegistration_WIthoutSubscriberName_State (testcase-CSMBroadcast)
248+
...
249+
ok 15.347 sec
250+
251+
----------------------------------------------------------------------
252+
Ran 83 tests in 528.290s
253+
254+
OK

testcases/new/CSM-New-Testcases.lvproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@
376376
<Item Name="RectSize.vi" Type="VI" URL="/&lt;vilib&gt;/picture/PictureSupport.llb/RectSize.vi"/>
377377
<Item Name="Simple Error Handler.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Simple Error Handler.vi"/>
378378
<Item Name="TRef Traverse.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/traverseref.llb/TRef Traverse.vi"/>
379+
<Item Name="Compare Two Paths.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Compare Two Paths.vi"/>
379380
</Item>
380381
<Item Name="Communicable State Machine.lvlib" Type="Library" URL="../../../src/user.lib/_NEVSTOP/Communicable State Machine(CSM)/Communicable State Machine.lvlib"/>
381382
<Item Name="CSM Attributes API(VIM).lvlib" Type="Library" URL="../../../src/user.lib/_NEVSTOP/Communicable State Machine(CSM)/addons/AttributesVIM/CSM Attributes API(VIM).lvlib"/>
@@ -396,6 +397,8 @@
396397
<Item Name="CSM-Helper API with lvcsm Support.lvlib" Type="Library" URL="../../../src/user.lib/_NEVSTOP/Communicable State Machine(CSM)/_csmHelper/API with lvcsm Support/CSM-Helper API with lvcsm Support.lvlib"/>
397398
<Item Name="csm-tool-support.lvlib" Type="Library" URL="../../../src/user.lib/_NEVSTOP/Communicable State Machine(CSM)/_tool/_Support/csm-tool-support.lvlib"/>
398399
<Item Name="CSM File Logger.lvlib" Type="Library" URL="../../../src/user.lib/_NEVSTOP/Communicable State Machine(CSM)/addons/Logger/CSM File Logger.lvlib"/>
400+
<Item Name="Generate testcase Started User Log.vi" Type="VI" URL="../../_support/Generate testcase Started User Log.vi"/>
401+
<Item Name="csm-ui-support.lvlib" Type="Library" URL="../../../src/user.lib/_NEVSTOP/Communicable State Machine(CSM)/_tool/_ui/csm-ui-support.lvlib"/>
399402
</Item>
400403
<Item Name="Build Specifications" Type="Build">
401404
<Item Name="CSM-Testcase.lvlibp" Type="Packed Library">
@@ -408,7 +411,7 @@
408411
<Property Name="Bld_localDestDirType" Type="Str">relativeToProject</Property>
409412
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
410413
<Property Name="Bld_previewCacheID" Type="Str">{A89D9A51-BD9C-4565-8F45-AD1D68D344FD}</Property>
411-
<Property Name="Bld_version.build" Type="Int">337</Property>
414+
<Property Name="Bld_version.build" Type="Int">345</Property>
412415
<Property Name="Bld_version.major" Type="Int">1</Property>
413416
<Property Name="Destination[0].destName" Type="Str">CSM-Testcase.lvlibp</Property>
414417
<Property Name="Destination[0].path" Type="Path">../CSM/CSM-Testcase.lvlibp</Property>
@@ -449,7 +452,7 @@
449452
<Property Name="Bld_localDestDirType" Type="Str">relativeToProject</Property>
450453
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
451454
<Property Name="Bld_previewCacheID" Type="Str">{DF3A8CD5-4937-4FE8-B30A-163F6FCA54B2}</Property>
452-
<Property Name="Bld_version.build" Type="Int">302</Property>
455+
<Property Name="Bld_version.build" Type="Int">310</Property>
453456
<Property Name="Bld_version.major" Type="Int">1</Property>
454457
<Property Name="Destination[0].destName" Type="Str">CSM-Testcase2.lvlibp</Property>
455458
<Property Name="Destination[0].path" Type="Path">../CSM/CSM-Testcase2.lvlibp</Property>

testcases/new/CSM/Chain1.vi

1.75 KB
Binary file not shown.

testcases/new/CSM/Chain2.vi

1.74 KB
Binary file not shown.

testcases/new/CSM/Chain3.vi

1.71 KB
Binary file not shown.

testcases/new/CSM/Normal-CSM.vi

1.75 KB
Binary file not shown.

testcases/new/CSMTestSuite/New.vi

-48 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)