module HelloWorld{
type port PCOType message {
inout charstring;
}
type component MTCType {
port PCOType MyPCO;
}
testcase Hello () runs on MTCType {
/*
MyPCO.start;
MyPCO.send ( "Hello, world!” );
MyPCO.stop;
setverdict ( pass );*/
//直接Log()就可以了,不用这么麻烦吧
log("Hello, world!");
}
control {
execute ( Hello() );
}
}
testcase Hello () runs on MTCType {
MyPCO.start;
MyPCO.send ( "Hello, world!” );
MyPCO.stop;
setverdict ( pass );
}
control {
execute ( Hello() );
}
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |