11/15/2019
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 ?
Moderators
Moderators-Specifications
Moderators-Companion
Moderators-Implementation
Moderators-Certification
Moderators-ProductsServices
07/11/2017
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
11/15/2019
Hi Alexander & Team,
I've executed test case Err-021 from Attribute Service & below is my finding.
TestResults:
- MaxArrayElementCount - 10 - ArraySize - 12 - Output - 10 elements
- MaxArrayElementCount - 1000 - ArraySize - 1002 - Output - 1000 elements
- MaxArrayElementCount - 0 - ArraySize - 12 - Output - 0 elements
- 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
Moderators
Moderators-Specifications
Moderators-Companion
Moderators-Implementation
Moderators-Certification
Moderators-ProductsServices
07/11/2017
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
1 Guest(s)