Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
529ae477
Commit
529ae477
authored
Jan 29, 2019
by
Yann Garcia
Browse files
Add test for date/time
parent
5ef78c62
Changes
2
Show whitespace changes
Inline
Side-by-side
etc/TestCodec/TestCodec.cfg
View file @
529ae477
...
...
@@ -279,6 +279,11 @@ system.pkiPort.params := "PKI/HTTP(device_mode=1,uri=/its/inner_ec_request,host=
#TestCodec_IVIM.tc_Ivim_UtIvimUpdate
#TestCodec_IVIM.tc_Ivim_UtIvimTermination
# External functions
#TestCodec_ExternalFunctions.tc_f_computePositionUsingDistance
TestCodec_ExternalFunctions.tc_f_getCurrentTime
TestCodec_ExternalFunctions.tc_f_getCurrentTimeUtc
# Security tests
# Security Functions
#TestCodec_SecuredFuntions.tc_sha256_1
...
...
@@ -344,15 +349,13 @@ system.pkiPort.params := "PKI/HTTP(device_mode=1,uri=/its/inner_ec_request,host=
#TestCodec_SignedAndEncryptedMessages.tc_decrypted_signed_message_2
#TestCodec_SignedAndEncryptedMessages.tc_decrypted_signed_message_3
#TestCodec_SignedAndEncryptedMessages.tc_decrypted_signed_message_4
# External functions
#TestCodec_ExternalFunctions.tc_f_computePositionUsingDistance
# Pki
#TestCodec_Pki.tc_encode_inner_ec_response_1
#TestCodec_Pki.tc_decode_inner_ec_response_1
#TestCodec_Pki.tc_inner_ec_request_1
#TestCodec_Pki.tc_inner_ec_request_2
#TestCodec_Pki.tc_inner_ec_request_3
TestCodec_Pki.tc_inner_ec_response_1
#
TestCodec_Pki.tc_inner_ec_response_1
#TestCodec_Pki.tc_inner_ec_functions_1
#TestCodec_Pki.tc_inner_ec_functions_2
#TestCodec_Pki.tc_inner_ec_functions_3
...
...
ttcn/TestCodec/TestCodec_ExternalFunctions.ttcn
View file @
529ae477
...
...
@@ -16,6 +16,12 @@ module TestCodec_ExternalFunctions {
log
(
"v_timeStamp= "
,
v_timeStamp
);
}
testcase
tc_f_getCurrentTimeUtc
()
runs
on
TCType
system
TCType
{
var
integer
v_timeStamp
:=
0
;
v_timeStamp
:=
fx_getCurrentTimeUtc
();
log
(
"v_timeStamp= "
,
v_timeStamp
);
}
testcase
tc_f_computePositionUsingDistance
()
runs
on
TCType
system
TCType
{
var
Int32
v_latitude
;
var
Int32
v_longitude
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment