|
|
Re: Some problem of compiling TTCN suit of LTE [message #1829592 is a reply to message #1829589] |
Tue, 07 July 2020 12:34 |
|
Hi Yang,
for 1: you should replace "*" with "?"; for 1 and 2 , it's probably a good idea to write a TR to those who emit the test suites as the code appears to be non-standard
for 4: the test port hh/cc files if the port is external (not internal between components) are not generated from the TTCN-3 code; they should be written separately and added
to the build; if you mark the port IRAT_CO_ORD_PORT as internal ( with extension internal ) then Titan will generate a dummy hh/cc pair and the code will compile (but of course it will not run)
for 3: the codec belonging to a specific type has to be either written manually or generated by Titan based on appropriate decorations (variants) embedded in the TTCN-3 code;
these variants with a few exceptions are not standard but tool specific; please check posts in this forum about Titan codecs (RAW, JSON, XML etc).
Maybe its a good idea if you start with less complex test suites to get familiar with the way Titan works.
Best regards
Elemer
|
|
|
Re: Some problem of compiling TTCN suit of LTE [message #1829594 is a reply to message #1829589] |
Tue, 07 July 2020 12:50 |
yang xi Messages: 4 Registered: July 2020 |
Junior Member |
|
|
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.05104 seconds