Commit 4a03bcd7 authored by stancakapost's avatar stancakapost
Browse files

added the ttcn-3 file reference

parent 3e022bb0
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -16,9 +16,10 @@
	 * @param p_referenceXmlFile the XML file
	 * @param p_referenceXmlFile the XML file
	 * @param p_xsdFileList the list of XSD files
	 * @param p_xsdFileList the list of XSD files
	 * @param p_matchError the error result in case it did not match
	 * @param p_matchError the error result in case it did not match
	 * @param p_referenceTTCN3File the file of the TTCN-3 test module. This path is used to find the reference XML file relative to this path, by keeping the TTCN-3 code file system independent.
	 * @return true if p_textToMatch and the contents of p_referenceXmlFile represent the same XML structure
	 * @return true if p_textToMatch and the contents of p_referenceXmlFile represent the same XML structure
	 */
	 */
	external function matchFile(Raw p_textToMatch, File p_referenceXmlFile, FileList p_xsdFileList, out universal charstring p_matchError) return boolean;
 	external function matchFile(Raw p_textToMatch, File p_referenceXmlFile, FileList p_xsdFileList, out universal charstring p_matchError, File p_referenceTTCN3File := __FILE__) return boolean;


    testcase TC_${module}() runs on C system C {
    testcase TC_${module}() runs on C system C {
        var Raw v_rcv;
        var Raw v_rcv;
+2 −1
Original line number Original line Diff line number Diff line
@@ -11,9 +11,10 @@
	/**
	/**
	 * @desc Read a UTF-8 formated XML file from disc.
	 * @desc Read a UTF-8 formated XML file from disc.
	 * @param p_referenceXmlFile the XML file
	 * @param p_referenceXmlFile the XML file
	 * @param p_referenceTTCN3File the file of the TTCN-3 test module. This path is used to find the reference XML file relative to this path, by keeping the TTCN-3 code file system independent.
	 * @return the UTF-8 contents of p_referenceXmlFile
	 * @return the UTF-8 contents of p_referenceXmlFile
	 */
	 */
	external function readFile(universal charstring p_referenceXmlFile) return universal charstring;
	external function readFile(universal charstring p_referenceXmlFile, universal charstring p_referenceTTCN3File := __FILE__) return universal charstring;


    testcase TC_${module}() runs on C system C {
    testcase TC_${module}() runs on C system C {
        var Raw v_rcv;
        var Raw v_rcv;