Daniel Willmann
d93047434b
This function can now be called from anywhere to try and safely shutdown a testcase. It is not optimal as we can't call "all component.stop" from outside the mtc, but without any proper and orderly shutdown handling of all our emulation components I believe this is the best we can do. To use it: import from Misc_Helpers all; in your module and then call Misc_Helpers.f_shutdown(__BFILE__, __LINE__); You can also pass the function a verdict and a message and it will take care of calling setverdict, but beware of the following: While setverdict would accept any number of arguments as log message and convert them to a log string f_shutdown expects one charstring. It's possible to use the log2str function to use the log arguments in setverdict for f_shutdown, for example setverdict(fail, "Template didn't match: ", tmpl_foo); would become Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, log2str("Template didn't match: ", tmpl_foo)); Change-Id: I84d1aa6732f6b748d2bfdeac8f6309023717f267 |
||
---|---|---|
.. | ||
README.md | ||
SIP_Tests.cfg | ||
SIP_Tests.default | ||
SIP_Tests.ttcn | ||
expected-results.xml | ||
gen_links.sh | ||
regen_makefile.sh |
README.md
-
SIP_Tests.ttcn
-
external interfaces
- MNCC (emulates MSC side)
- SIP (emulates SIP switch)
- VTY
{% dot sip_tests.svg digraph G { rankdir=LR; SIP [label="SIP\nosmo-sip-connector",shape="box"]; ATS [label="ATS\nSIP_Tests.ttcn"];
ATS -> SIP [label="MNCC"]; ATS -> SIP [label="SIP"]; ATS -> SIP [label="VTY"]; } %}