<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>HI All,<div><br></div><div>I am new to common test in erlang, I just wanted to know how to approach the below scenario in common test.</div><div><br></div><div>I have an application that would send group of multiple messages to RMQ, and expects response in back and I have to validate in testcase, so I thought of doing the below.</div><div><br></div><div>all() -> </div><div>[{group,general_test_group}, {group,rmq_test_group}]</div><div><br></div><div>groups() -></div><div>[{general_group_test, [sequence], GeneralTestList}</div><div>,{<span style="font-size: 12pt;">rmq_test_group, </span><span style="font-size: 12pt;">[sequence], RmqTestList}</span><span style="font-size: 12pt;">].</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">so I thought I can have init_per_group function doing all initialization stuff like queue/exchange creation and bindings and subscribings.</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">But I would not be getting the RMQ messages to my test case process, or I would endup in duplication by writing the above in all testcases. </span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Thanks in advance,</span></div><div><span style="font-size: 12pt;">Marutha</span></div>                                     </div></body>
</html>