Some problem of compiling TTCN suit of LTE [message #1829581] |
Tue, 07 July 2020 05:53  |
Eclipse User |
|
|
|
Hey,
we are compiling the ETSI UE test suites (36523-3-c00_TTCN3_LTE,R12) with TITAN 7.1.0
I get unexpected error :
1) error: Using `*' for mandatory field
Since TITAN does not support that '*' is used for mandatory elements , how to set a "anyvalue" to a variable.
2) ../Common/IMS/IMS_Procedures_CallControl.ttcn:1019.35-54: error: The operand of operation `str2oct()' should be charstring value
3)
Line 563: ../Common/IP_PTC/IP_PTC_HTTP_Handler.ttcn:74.9-25: error: No coding rule specified for type '@HTTP_ASP_TypeDefs.HttpResponse_Type'
Line 567: ../Common/IP_PTC/IP_PTC_HTTP_Handler.ttcn:73.9-24: error: No coding rule specified for type '@HTTP_ASP_TypeDefs.HttpRequest_Type'.
How to rewrite the enc/dec function for specified type?
4) Why the head file is not generated by TITAN when compiling the TTCN to cc/hh?
CommonIratDefs.hh:2772:10: fatal error: IRAT_CO_ORD_PORT.hh: No such file or directory
#include "IRAT_CO_ORD_PORT.hh"
^~~~~~~~~~~~~~~~~~~~~
I am not getting any clue what is causing error. Please help!
Thank you for your reply
|
|
|
|
|
Re: Some problem of compiling TTCN suit of LTE [message #1829594 is a reply to message #1829589] |
Tue, 07 July 2020 08:50   |
Eclipse User |
|
|
|
Dear Kristof,
Thank you for your reply timely. The code of TTCN is attaced.
The code block of each issue is follow:
1) I correct the error though replace "*" with cs2 (maxNumberROHC_ContextSessions is a enum type )
error code:
template (present) PDCP_Parameters cr_PDCP_Parameters :=
{ /* @status APPROVED (LTE, UTRAN) */
supportedROHC_Profiles := ?,
maxNumberROHC_ContextSessions := *
};
compiler error:
../Common/IRAT/EUTRA_CapabilityFunctions.ttcn: In TTCN-3 module `EUTRA_CapabilityFunctions':
../Common/IRAT/EUTRA_CapabilityFunctions.ttcn:55.3-59.3: In template definition `cr_PDCP_Parameters':
../Common/IRAT/EUTRA_CapabilityFunctions.ttcn:58.38: In template for record field `maxNumberROHC_ContextSessions':
../Common/IRAT/EUTRA_CapabilityFunctions.ttcn:58.38: error: Using `*' for mandatory field
modify :
error code:
template (present) PDCP_Parameters cr_PDCP_Parameters :=
{ /* @status APPROVED (LTE, UTRAN) */
supportedROHC_Profiles := ?,
maxNumberROHC_ContextSessions := cs2
};
2) error code:
v_BitStr := oct2bit(str2oct(v_Status_ElemList[0])); // first of 1 or more geopriv elements
v_Status_ElemList[0] is a type of utf8 char string, how can i modify the code to avoid the compiling error.
compiler error:
../Common/IMS/IMS_Procedures_CallControl.ttcn:987.5-1031.5: In if statement:
../Common/IMS/IMS_Procedures_CallControl.ttcn:1019.7-56: In variable assignment:
../Common/IMS/IMS_Procedures_CallControl.ttcn:1019.19-56: In the operand of operation `oct2bit()':
../Common/IMS/IMS_Procedures_CallControl.ttcn:1019.27-55: In the operand of operation `str2oct()':
../Common/IMS/IMS_Procedures_CallControl.ttcn:1019.35-54: error: The operand of operation `str2oct()' should be charstring value
3) If just a type is need to be defined with RAW but not all module, how should i do ? Add "with { encode "RAW" }" to the enc of the type recode..{}??
Define of the type:
type record HttpResponse_Type {
HttpStatusLine_Type statusLine, /* Status-Line in RFC 2616 [27] clause 6.1 */
Date date optional, /* Date according to RFC 2616 [27] clause 14.18 */
SIP_ETag eTag optional, /* ETag according to RFC 2616 [27] clause 14.19 */
Server server optional, /* Server according to RFC 2616 [27] clause 14.38 */
WwwAuthenticate wwwauthenticate optional, /* WWW-Authenticate in RFC 2616 [27] clause 14.47 (NOTE: Same type definition as for SIP type definitions) */
AuthenticationInfo authenticationInfo optional, /* Authentication-Info in RFC 2617 [37] clause 3.2.3 (NOTE: Same type definition as for SIP type definitions) */
ContentType contentType optional, /* Content-Type in RFC 2616 [27] clause 14.17 (NOTE: Same type definition as for SIP type definitions) */
ContentLength contentLength optional, /* Content-Length in RFC 2616 [27] clause 14.13 (NOTE: Same type definition as for SIP type definitions) */
Expires expires optional, /* Expires in RFC 2616 [27] clause 14.21 (NOTE: Same type definition as for SIP type definitions) */
charstring messageBody optional /* e.g. XCAP Message (XML document or XML fragment) */
};
compiler error:
Line 565: ../Common/IP_PTC/IP_PTC_HTTP_Handler.ttcn:74.9-25: error: No coding rule specified for type '@HTTP_ASP_TypeDefs.HttpResponse_Type'
Line 569: ../Common/IP_PTC/IP_PTC_HTTP_Handler.ttcn:73.9-24: error: No coding rule specified for type '@HTTP_ASP_TypeDefs.HttpRequest_Type'
4) I think that the missing hh file is not the testport file which wiil be genrated by TITNA compiler, and the titan have finished the generation of all cc/hh.
Hopping more disscuss with you ,thank you !
Best Regards
yang
|
|
|
|
Powered by
FUDForum. Page generated in 0.04312 seconds