<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Hi Arijan</div><div><font size="3">    If want to start two Yaws, it could work start them in </font>separate<font size="3"> VM rather than one VM ( one in dog@node, the other in cat@node).</font></div><div><font size="3"><br></font></div><div><span><span style="font-style: italic;"><span style="font-size: 16px; ">I guess it could be an option to start the SUT in its own Erlang VM, but how would I start and stop this VM from the Common Test one (from init_per_suite/end_per_suite)?</span> </span><br></span></div><div><font size="3"><span>  You can start SUT through os:cmd function, and I suggest you start SUT outside Common Test and make it running,at least before CT execute TC.  Stat/stop SUT frequently
 useless.</span></font></div><div><font size="3"><span><br></span></font></div>  <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Arjan Hakkesteegt <arjan@hakwerk.com><br> <b><span style="font-weight: bold;">To:</span></b> erlang-questions@erlang.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, May 9, 2012 2:49 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [erlang-questions] Multiple embedded Yaws instances<br> </font> </div> <br>Hi,<br><br>I am trying to setup a Common Test mock layer around my SUT (System Under Test). Both the SUT and CT should start an embedded Yaws instance because both should both act as client and as server for SOAP.<br>Client(SUT) ->
 Server(CT)<br>Server(SUT) <- Client(CT)<br><br>However, it appears that it is not possible to run more than 1 embedded Yaws within a VM? When starting the second instance I get already_started errors from the supervisor. I tried to modify the ChildSpecs returned by yaws_api:embedded_start_conf/4 to append the Yaws instance Id to the supervisor child Ids, but still get the already_started errors. I tried it like this:<br>   [{yaws_log_myid,<br>    {yaws_log,start_link,[]},<br>    permanent,5000,worker,<br>    [yaws_log]},<br>    {yaws_server_myid,<br>    ...}]<br><br>I've used multiple SConfs within a single embedded Yaws instance before, but I don't think that this is an option here as my SUT and the CT suite are completely separate applications and the SUT should be seen as a blackbox.<br><br>I guess it could be an option to start the SUT in its own Erlang VM, but how would I start and stop this
 VM from the Common Test one (from init_per_suite/end_per_suite)?<br><br>Any solutions to this problem? Or am I missing something obvious?<br><br><br>Thanks,<br>Arjan<br><br>_______________________________________________<br>erlang-questions mailing list<br><a ymailto="mailto:erlang-questions@erlang.org" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br><br><br> </div> </div>  </div></body></html>