07.01.2013 Views

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16 TTCN-3 487<br />

methods. They are called when the runtime environment is execut<strong>in</strong>g the map<br />

and unmap operations from ATS. These operations give the possibility to the<br />

user to connect the abstract ports to concrete physical ports, <strong>in</strong> our case SOAP<br />

ports (SOAP is the protocol used to connect to the web-service). The triSend()<br />

is called whenever the TTCN-3 send operation is executed <strong>in</strong> ATS. It takes over<br />

the task of send<strong>in</strong>g the data to the SOAP port.<br />

public class WebServiceSA implements TriCommunicationSA {<br />

public TriStatus triExecuteTestcase( TriTestcaseId tcId,<br />

TriPortIdList tsiPorts ) {<br />

// do noth<strong>in</strong>g<br />

return new TriStatus(TRI_OK);<br />

}<br />

public TriStatus triMap( TriPortId compPortId,<br />

TriPortId tsiPortId ) {<br />

mapTTCNPortToSOAPPort(compPortId, tsiPortId);<br />

return new TriStatus(TRI_OK);<br />

}<br />

public TriStatus triUnmap( TriPortId compPortId,<br />

TriPortId tsiPortId ) {<br />

unmapTTCNPortToSOAPPort(compPortId, tsiPortId);<br />

return new TriStatus(TRI_OK);<br />

}<br />

public TriStatus triSend( TriComponentId componentId,<br />

TriPortId tsiPortId,<br />

TriAddress address,<br />

TriMessage sendMessage ) {<br />

f<strong>in</strong>dSOAPPort(tsiPortId).sendMessageOverSOAP(sendMessage);<br />

return new TriStatus(TRI_OK);<br />

}<br />

}<br />

16.6 Test Deployment and Configuration<br />

16.6.1 Deployment<br />

Test Deployment is related to the activities of <strong>in</strong>stall<strong>in</strong>g, updat<strong>in</strong>g, configur<strong>in</strong>g<br />

and remov<strong>in</strong>g of Test Executables (TE). TE is the part generated by the compiler<br />

which must be <strong>in</strong>tegrated with<strong>in</strong> the execution environment built up of TM, CH,<br />

CD,SAandPA.AnyTEcomeswithadescriptor (usually automatic generated)<br />

describ<strong>in</strong>g the user options of <strong>in</strong>stallation (test adapter configuration, module<br />

and test cases configuration and component distribution options).<br />

We assume that the execution environment is distributed, that means that<br />

the Test Executable shall be deployed on all hosts of the execution environment.<br />

Consequently, the test deployment shall consider the distributed aspects of load<strong>in</strong>g<br />

code for execution <strong>in</strong>to hosts, of manag<strong>in</strong>g the hardware resources on remote

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!