Session Service: maxRequestMessageSize is decades larger than maxResponseMessageSize|OPC Certification and Interoperability Testing|Forum|OPC Foundation

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
Session Service: maxRequestMessageSize is decades larger than maxResponseMessageSize
Avatar
Dipika Khera
Member
Members
Forum Posts: 52
Member Since:
11/15/2019
sp_UserOfflineSmall Offline
1
05/05/2020 - 06:17
sp_Permalink sp_Print

Hi Team,

There is one test case in Session Service which says: maxRequestMessageSize is decades larger than maxResponseMessageSize, e.g. maxResponseMessageSize * 10. If the requested MaxResponseMessageSize == 0 then set revise the MaxRequestMessageSize = 500;

CTT script is associate with this test case is Err-027.js. Some snippet from it:

if( request.MaxResponseMessageSize <= 0 ) response.MaxRequestMessageSize = 500;

else response.MaxRequestMessageSize = 10 * request.MaxResponseMessageSize;

print( "MaxRequestMessageSize is NOW = " + response.MaxRequestMessageSize );

Wherein, I am getting MaxRequestMessageSize=41943040 & MaxResponseMessageSize=4194304 which is as injected by CTT script. But, didn't understand what is the importance of this test case ? Why do we need to do this multiplication by 10 ? How can we verify other case where request.MaxResponseMessageSize <= 0 ?

Please help me in understanding this test case.

Avatar
Alexander Allmendinger
Germany
Moderator
Members

Moderators

Moderators-Specifications

Moderators-Companion

Moderators-Implementation

Moderators-Certification

Moderators-ProductsServices
Forum Posts: 67
Member Since:
07/11/2017
sp_UserOfflineSmall Offline
2
05/10/2020 - 10:47
sp_Permalink sp_Print

Dear Dipika,

the intend of this test case is to ensure, that the client is having different variables for the MaxRequestMessageSize and the MaxResponseMessageSize. But the wording could be improved to point this out clearer.

Could you please create a Mantis Issue for the Test Case so we can enhance it for the future?

Regards,
Alexander Allmendinger

Avatar
Dipika Khera
Member
Members
Forum Posts: 52
Member Since:
11/15/2019
sp_UserOfflineSmall Offline
3
05/11/2020 - 00:28
sp_Permalink sp_Print

Thank you Alexander for reply.

Please let me know if I understood your comment correctly or not. This test case is asking an OPC client to ensure; client has two different variables (Constants) holding a values for MaxRequestMessageSize e.g., MaxRequestMessageSize=1MB & MaxResponseMessageSize=2MB.

As suggested, created Mantis Issue for improvement in text. 0005635: Improve test case description - Session Service - Err-027. 

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1431
Posts: 4848