Loading ttcn/AtsCise/AtsCise_TestCases.ttcn +80 −44 Original line number Original line Diff line number Diff line Loading @@ -265,8 +265,10 @@ module AtsCise_TestCases { // Send PullResponse // Send PullResponse f_init_default_headers_list(-, -, v_headers); f_init_default_headers_list(-, -, v_headers); httpPort_notif.send( httpPort_notif.send( m_http_response( m_http_request( m_http_response_ok( m_http_request_post( "/messages?messageId=" & v_message_id, v_headers, m_http_message_body_xml( m_http_message_body_xml( m_xml_body_pull_response( m_xml_body_pull_response( m_pull_response( m_pull_response( Loading @@ -281,9 +283,24 @@ module AtsCise_TestCases { v_request.request.body.xml_body.msg.pull_request.contextID, v_request.request.body.xml_body.msg.pull_request.contextID, v_request.request.body.xml_body.msg.pull_request.correlationID, v_request.request.body.xml_body.msg.pull_request.correlationID, false false ))), )))))); v_headers ))); log("*** " & testcasename() & ": INFO: Sent PullResponse to the IUT ***"); tc_ac.start; repeat; } [] httpPort_notif.receive( mw_http_response( mw_http_response_ok( mw_http_message_body_xml( mw_xml_body_acknowledgement( mw_acknowledgement( -, -, -, -, success )))))) { tc_ac.stop; log("*** " & testcasename() & ": PASS: Received PullResponse Ack ***"); f_selfOrClientSyncAndVerdict(c_tbDone, e_success); } } [] httpPort_notif.receive { [] httpPort_notif.receive { tc_ac.stop; tc_ac.stop; Loading Loading @@ -17812,7 +17829,7 @@ module AtsCise_TestCases { f_selfOrClientSyncAndVerdict(c_prDone, e_success); f_selfOrClientSyncAndVerdict(c_prDone, e_success); // Test Body // Test Body tc_ac.start; tc_wait.start; alt { alt { [] httpPort_notif.receive( [] httpPort_notif.receive( mw_http_request( mw_http_request( Loading @@ -17822,7 +17839,7 @@ module AtsCise_TestCases { mw_http_message_body_xml( mw_http_message_body_xml( mw_xml_body_pull_request mw_xml_body_pull_request )))) -> value v_request { )))) -> value v_request { tc_ac.stop; tc_wait.stop; // Skip Securty // Skip Securty Loading @@ -17849,8 +17866,10 @@ module AtsCise_TestCases { // Send PullResponse // Send PullResponse f_init_default_headers_list(-, -, v_headers); f_init_default_headers_list(-, -, v_headers); httpPort_notif.send( httpPort_notif.send( m_http_response( m_http_request( m_http_response_ok( m_http_request_post( "/messages?messageId=" & v_message_id, v_headers, m_http_message_body_xml( m_http_message_body_xml( m_xml_body_pull_response( m_xml_body_pull_response( m_pull_response( m_pull_response( Loading @@ -17865,20 +17884,37 @@ module AtsCise_TestCases { v_request.request.body.xml_body.msg.pull_request.contextID, v_request.request.body.xml_body.msg.pull_request.contextID, v_request.request.body.xml_body.msg.pull_request.correlationID, v_request.request.body.xml_body.msg.pull_request.correlationID, false false ))), )))))); v_headers ))); log("*** " & testcasename() & ": INFO: Sent PullResponse to the IUT ***"); tc_wait.start; repeat; } [] httpPort_notif.receive( mw_http_response( mw_http_response_ok( mw_http_message_body_xml( mw_xml_body_acknowledgement( mw_acknowledgement( -, -, -, -, success )))))) { tc_wait.start; repeat; } } [] httpPort_notif.receive { [] httpPort_notif.receive { tc_ac.stop; tc_wait.stop; log("*** " & testcasename() & ": FAIL: Unexpected message received ***"); log("*** " & testcasename() & ": DNG: Unexpected message received ***"); f_selfOrClientSyncAndVerdict(c_tbDone, e_error); tc_wait.start; repeat; } } [] tc_ac.timeout { [] tc_wait.timeout { log("*** " & testcasename() & ": INCONC: Expected message not received ***"); tc_wait.start; f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout); repeat; } } } // End of 'alt' statement } // End of 'alt' statement log("*** " & testcasename() & ": PASS: No more message received ***"); f_selfOrClientSyncAndVerdict(c_tbDone, e_success); // Postamble // Postamble f_cf_02_down(); f_cf_02_down(); ttcn/LibCise/ttcn/LibCise_Functions.ttcn +8 −8 File changed.Contains only whitespace changes. Show changes Loading
ttcn/AtsCise/AtsCise_TestCases.ttcn +80 −44 Original line number Original line Diff line number Diff line Loading @@ -265,8 +265,10 @@ module AtsCise_TestCases { // Send PullResponse // Send PullResponse f_init_default_headers_list(-, -, v_headers); f_init_default_headers_list(-, -, v_headers); httpPort_notif.send( httpPort_notif.send( m_http_response( m_http_request( m_http_response_ok( m_http_request_post( "/messages?messageId=" & v_message_id, v_headers, m_http_message_body_xml( m_http_message_body_xml( m_xml_body_pull_response( m_xml_body_pull_response( m_pull_response( m_pull_response( Loading @@ -281,9 +283,24 @@ module AtsCise_TestCases { v_request.request.body.xml_body.msg.pull_request.contextID, v_request.request.body.xml_body.msg.pull_request.contextID, v_request.request.body.xml_body.msg.pull_request.correlationID, v_request.request.body.xml_body.msg.pull_request.correlationID, false false ))), )))))); v_headers ))); log("*** " & testcasename() & ": INFO: Sent PullResponse to the IUT ***"); tc_ac.start; repeat; } [] httpPort_notif.receive( mw_http_response( mw_http_response_ok( mw_http_message_body_xml( mw_xml_body_acknowledgement( mw_acknowledgement( -, -, -, -, success )))))) { tc_ac.stop; log("*** " & testcasename() & ": PASS: Received PullResponse Ack ***"); f_selfOrClientSyncAndVerdict(c_tbDone, e_success); } } [] httpPort_notif.receive { [] httpPort_notif.receive { tc_ac.stop; tc_ac.stop; Loading Loading @@ -17812,7 +17829,7 @@ module AtsCise_TestCases { f_selfOrClientSyncAndVerdict(c_prDone, e_success); f_selfOrClientSyncAndVerdict(c_prDone, e_success); // Test Body // Test Body tc_ac.start; tc_wait.start; alt { alt { [] httpPort_notif.receive( [] httpPort_notif.receive( mw_http_request( mw_http_request( Loading @@ -17822,7 +17839,7 @@ module AtsCise_TestCases { mw_http_message_body_xml( mw_http_message_body_xml( mw_xml_body_pull_request mw_xml_body_pull_request )))) -> value v_request { )))) -> value v_request { tc_ac.stop; tc_wait.stop; // Skip Securty // Skip Securty Loading @@ -17849,8 +17866,10 @@ module AtsCise_TestCases { // Send PullResponse // Send PullResponse f_init_default_headers_list(-, -, v_headers); f_init_default_headers_list(-, -, v_headers); httpPort_notif.send( httpPort_notif.send( m_http_response( m_http_request( m_http_response_ok( m_http_request_post( "/messages?messageId=" & v_message_id, v_headers, m_http_message_body_xml( m_http_message_body_xml( m_xml_body_pull_response( m_xml_body_pull_response( m_pull_response( m_pull_response( Loading @@ -17865,20 +17884,37 @@ module AtsCise_TestCases { v_request.request.body.xml_body.msg.pull_request.contextID, v_request.request.body.xml_body.msg.pull_request.contextID, v_request.request.body.xml_body.msg.pull_request.correlationID, v_request.request.body.xml_body.msg.pull_request.correlationID, false false ))), )))))); v_headers ))); log("*** " & testcasename() & ": INFO: Sent PullResponse to the IUT ***"); tc_wait.start; repeat; } [] httpPort_notif.receive( mw_http_response( mw_http_response_ok( mw_http_message_body_xml( mw_xml_body_acknowledgement( mw_acknowledgement( -, -, -, -, success )))))) { tc_wait.start; repeat; } } [] httpPort_notif.receive { [] httpPort_notif.receive { tc_ac.stop; tc_wait.stop; log("*** " & testcasename() & ": FAIL: Unexpected message received ***"); log("*** " & testcasename() & ": DNG: Unexpected message received ***"); f_selfOrClientSyncAndVerdict(c_tbDone, e_error); tc_wait.start; repeat; } } [] tc_ac.timeout { [] tc_wait.timeout { log("*** " & testcasename() & ": INCONC: Expected message not received ***"); tc_wait.start; f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout); repeat; } } } // End of 'alt' statement } // End of 'alt' statement log("*** " & testcasename() & ": PASS: No more message received ***"); f_selfOrClientSyncAndVerdict(c_tbDone, e_success); // Postamble // Postamble f_cf_02_down(); f_cf_02_down();
ttcn/LibCise/ttcn/LibCise_Functions.ttcn +8 −8 File changed.Contains only whitespace changes. Show changes