<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
Brian Stansberry p&#237;&#353;e v &#268;t 09. 02. 2012 v 12:22 -0600:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On 2/9/12 11:50 AM, Ond&#345;ej &#381;i&#382;ka wrote:
&gt; Well, non-Arq tests know what server they communicate to, so they should
&gt; use the same values.
&gt;

What same values?
</PRE>
</BLOCKQUOTE>
Oh, I see what I mean. So yes, system props are the answer:<BR>
Normally,&nbsp; Arq takes the sys props passed to it from maven -&gt; surefire -&gt; junit.<BR>
For non-Arq tests, they need to read these system properties &quot;manually&quot;.<BR>
<BR>
I will document these props in <A HREF="https://docs.jboss.org/author/display/AS71/AS+7+Testsuite+Test+Developer+Guide#&nbsp;">https://docs.jboss.org/author/display/AS71/AS+7+Testsuite+Test+Developer+Guide#&nbsp;</A>&nbsp; tmrw or during next week.<BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
&gt; For tests that need to access the server prior to deployment - depends
&gt; on what kind of access would they need. Managememt? I may pass the IP
&gt; and mgmt port to tests as an additional system property.
&gt;

Management is the case I know of. For example, setting up a security 
domain or something that the deployment requires. System properties 
would be fine; that's how it was done in AS 3,4,5,6. I figure that's the 
answer to my &quot;What same values?&quot; question above.
</PRE>
</BLOCKQUOTE>
Yes.<BR>
<BR>
Regards,<BR>
Ondra<BR>
<BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>

&gt;
&gt; Ondra
&gt;
&gt;
&gt;
&gt; Brian Stansberry p&#237;&#353;e v &#268;t 09. 02. 2012 v 11:07 -0600:
&gt;&gt; On the JIRA, please document how to get the appropriate configuration
&gt;&gt; element from the test environment for situations where
&gt;&gt; @ArquillianResource won't work. For example, non-Arquillian tests, and
&gt;&gt; tests that need to access the server prior to deployment.
&gt;&gt;
&gt;&gt; On 2/9/12 10:42 AM, Ond&#345;ej&#381;i&#382;ka wrote:
&gt;&gt; &gt;  Hi,
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;  I'd like to ask everyone to fix&quot;their&quot;  tests regarding $SUBJ.
&gt;&gt; &gt;  E.g. this is not acceptable:
&gt;&gt; &gt;  ModelControllerClient client =
&gt;&gt; &gt;  ModelControllerClient.Factory.create(InetAddress.getByName(&quot;127.0.0.1&quot;),
&gt;&gt; &gt;  9999, getCallbackHandler());
&gt;&gt; &gt;  or
&gt;&gt; &gt;  MBeanServerConnection mbeanServer = JMXConnectorFactory.connect(new
&gt;&gt; &gt;  JMXServiceURL(&quot;service:jmx:remoting-jmx://127.0.0.1:9999&quot;)).getMBeanServerConnection();
&gt;&gt; &gt;
&gt;&gt; &gt;  Such like these MUST be rewritten to fetch the addresses and ports from
&gt;&gt; &gt;  an injected @ArquillianResource.
&gt;&gt; &gt;
&gt;&gt; &gt;  Here's a tracking jira:<A HREF="https://issues.jboss.org/browse/AS7-3696">https://issues.jboss.org/browse/AS7-3696</A>
&gt;&gt; &gt;  Empty so far. Next week, I'll start going through the tests looking for
&gt;&gt; &gt;  such cases, and fixing them. Or, creating jiras and assigning them to
&gt;&gt; &gt;  the test authors.
&gt;&gt; &gt;  That's why I hope this call to action will relieve me from most of that
&gt;&gt; &gt;  tedious work :)
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;  Thanks for cooperation.
&gt;&gt; &gt;  Ondra
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;  _______________________________________________
&gt;&gt; &gt;  jboss-as7-dev mailing list
&gt;&gt; &gt;  <A HREF="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</A>  &lt;<A HREF="mailto:jboss-as7-dev@lists.jboss.org">mailto:jboss-as7-dev@lists.jboss.org</A>&gt;
&gt;&gt; &gt;  <A HREF="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</A>
&gt;&gt;
&gt;&gt;
&gt;


</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>