MaxArrayElementsCount in CTT Client Test project | OPC Certification and Interoperability Testing | Forum

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
MaxArrayElementsCount in CTT Client Test project
Avatar
Dipika Khera
Member
Members
Forum Posts: 40
Member Since:
11/15/2019
sp_UserOfflineSmall Offline
1
04/27/2020 - 05:13
sp_Permalink sp_Print

Hi Team,

There is one property in Client Test project under CTT named as MaxArrayElementsCount. Is this used to restrict/limiting client from processing records more than the value specified in CTT ?

e.g.,

Case 1: If I have configured MaxArrayElementsCount=100, before injecting script, output of array node had size=1 & after injecting script, array size=1000

Case 2: If I have configured MaxArrayElementsCount=100, before injecting script, output of array node had size=1 & after injecting script, output array size=100 + ignore/reject other 900 records in array.

Which use case is correct interpretation for property MaxArrayElementsCount ?

Avatar
Alexander Allmendinger
Germany
Moderator
Members

Moderators

Moderators-Specifications

Moderators-Companion

Moderators-Implementation

Moderators-Certification

Moderators-ProductsServices
Forum Posts: 28
Member Since:
07/11/2017
sp_UserOfflineSmall Offline
2
04/29/2020 - 01:50
sp_Permalink sp_Print

Hi Dipika,

the setting MaxArrayElementCount is only being used in script Attribute Services \ Attribute Client Read Base \ Test Case \ Err-021. In this script the setting controls the number of elements in an Int32 Array. But it will not extend the array but overwrite the existing with the generated one. The generated array is then being injected into the ReadResponse of the server and sent to the client.

That means after the script the number of elements in the array should be equal to the MaxArrayElementCount setting. In your case, where it is being set to 100 you should find an array with the Int32 values [0, 1, 2, ..., 99].

Regards,
Alexander Allmendinger

Avatar
Dipika Khera
Member
Members
Forum Posts: 40
Member Since:
11/15/2019
sp_UserOfflineSmall Offline
3
04/29/2020 - 01:58
sp_Permalink sp_Print

Thank you Alexander.

I'll check Err-021 test case from Attribute Client Read Base & will also update result here so that others can refer it.

Avatar
Dipika Khera
Member
Members
Forum Posts: 40
Member Since:
11/15/2019
sp_UserOfflineSmall Offline
4
05/08/2020 - 07:36
sp_Permalink sp_Print sp_EditHistory

Hi Alexander & Team,

I've executed test case Err-021 from Attribute Service & below is my finding.

TestResults:

  1. MaxArrayElementCount - 10 - ArraySize - 12 - Output - 10 elements
  2. MaxArrayElementCount - 1000 - ArraySize - 1002 - Output - 1000 elements
  3. MaxArrayElementCount - 0 - ArraySize - 12 - Output - 0 elements
  4. MaxArrayElementCount - Empty - ArraySize - 12 - Output - 0 elements

Testcase Description:

Read a node of each type that is an array. Return the max number of values (array elements) that a Client supports PLUS 1 more. If the Client has no limit, then exercise a value of 1001.
Note: CTT Settings may be needed to specify the Client`s limitation.

As per your comments, output of the test looks fine but, didn't understand what Client supports PLUS 1 more means ? Could you please help me in understanding this ?

Thank you

Avatar
Alexander Allmendinger
Germany
Moderator
Members

Moderators

Moderators-Specifications

Moderators-Companion

Moderators-Implementation

Moderators-Certification

Moderators-ProductsServices
Forum Posts: 28
Member Since:
07/11/2017
sp_UserOfflineSmall Offline
5
06/12/2020 - 13:48
sp_Permalink sp_Print

Hi Dipika,

the "PLUS 1 more" means that the maximum number of array elements the client supports is being exceeded by one element. For example when the client supports a maximum of 1000 elements in an array because of internal restrictions, then the server sends 1001 elements. This is ensuring that such cases are handled properly and do not result in an unhandled exception of the client.

Regards,
Alexander

Avatar
Dipika Khera
Member
Members
Forum Posts: 40
Member Since:
11/15/2019
sp_UserOfflineSmall Offline
6
06/18/2020 - 00:06
sp_Permalink sp_Print

Thanks a lot Alexander to help me in getting more understanding of the defined test case. 🙂

Forum Timezone: America/Phoenix
Most Users Ever Online: 202
Currently Online:
Guest(s) 28
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 9
Topics: 724
Posts: 2124