<br><br><div class="gmail_quote">On Fri, Aug 13, 2010 at 10:18 PM, Douglas Naka <span dir="ltr">&lt;<a href="mailto:douglaseiji@yahoo.com.br" target="_blank">douglaseiji@yahoo.com.br</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi, Mariano,<br><br>Now all the openDBX tests are all passing, but I&#39;m having problems to configure the environment to run the GLORP tests. Could you help me please?<br>

<span> I read this tutorial (<a href="http://www.assembla.com/wiki/show/SqueakDBX/GlorpDBX_Tutorial" target="_blank">http://www.assembla.com/wiki/show/SqueakDBX/GlorpDBX_Tutorial</a>) that says that I have to modify this class:</span><br>

<a title="DBXGlorpBackendFacility" href="http://www.assembla.com/wiki/show/SqueakDBX/DBXGlorpBackendFacility" target="_blank">DBXGlorpBackendFacility</a> . But I dont have this class at my image. Do you know what I need to do to set up the environment to run Glorp tests?<br>

<br></div></div></div></blockquote><div><br>Hi. In order to run sucessfully Glorp tests you should need to change the database connection settings used by them. To do this, change the method #glorpBackendFacility  <br>of the class that you want to use (depending on which database).<br>
<br>Once this is done, it comes the tricky part:<br><br>Open a test runner, and run the test DBXGlorpMainBackendTestPostgresql &gt;&gt; testSetToBaseTestAFacility<br>that is not actually a test, it just sets en enviorment.<br>
<br>Now...you should be able to run all the Glorp tests under the packages:  GlorpTest and GlorpTest-DBTests. <br><br>Let me know if it works.<br><br>BTW you can post in the squeakdbx mailing list.<br><br>Cheers<br><br>Mariano<br>
<br><br><br><br><br><br> </div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>
Thanks.<br>
Douglas<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><font size="2" face="Tahoma"><hr size="1">

<b><span style="font-weight: bold;">De:</span></b> Mariano Martinez Peck &lt;<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>&gt;<br><b><span style="font-weight: bold;">Para:</span></b> Douglas Naka &lt;<a href="mailto:douglaseiji@yahoo.com.br" target="_blank">douglaseiji@yahoo.com.br</a>&gt;<br>

<b><span style="font-weight: bold;">Enviadas:</span></b> Terça-feira, 3 de Agosto de 2010 14:46:48<br><b><span style="font-weight: bold;">Assunto:</span></b> Re: Problems installing glorp<br></font><br></div><div><div></div>

<div>HI. I don&#39;t know if you are aware, but we (me and others) modified Glorp so that it can support different database drivers and not only postgresql. We called this new Glorp, GlorpDBX as it is part of the SqueakDBX project.<br>


<br><a rel="nofollow" href="http://www.squeakdbx.org/GLORP%20integration" target="_blank">http://www.squeakdbx.org/GLORP%20integration</a><br><br>The recommened way to install GlorpDBX is using Metacello. There is a configuration for GlorpDBX, but I didn&#39;t do for Glorp. Sorry, did&#39;t have too much time.<br>


<br>So...if you want to install GlorpDBX + SqueakDBX driver, you have to follow this instructions:<br><br><a rel="nofollow" href="http://www.squeakdbx.org/Installation" target="_blank">http://www.squeakdbx.org/Installation</a><br>

<br>(at the end, where it speaks about metacello configs).<br>
<br>I suggest you read about Metacello.<br><br>If you want to install the original Glorp, you should do it by yourself. What I suggest is that if you want the postgres native driver (instead of squeakdbx) you create a new config based on ConfigurationOfGlorpDBX  but that doesn&#39;t load SqueakDBX, but the postgres driver.<br>


<br>Just see the difference with  <font><font size="2">GlorpPharoLoader</font></font>  &gt;&gt; loadGlorpWithNativePostgreSQLDriver<br><br>Finally, the installer is just a shortcut to do it by code. You can do what Installer do, by hand, using the Monticello browser.<br>


<br>cheers<br><br>mariano<br><br><br><div class="gmail_quote">On Tue, Aug 3, 2010 at 7:34 PM, Douglas Naka <span dir="ltr">&lt;<a rel="nofollow" href="mailto:douglaseiji@yahoo.com.br" target="_blank">douglaseiji@yahoo.com.br</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">I forgot to say, I&#39;m using Pharo 1.0.<br><div><div><br></div></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">


<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">De:</span></b> Douglas Naka &lt;<a rel="nofollow" href="mailto:douglaseiji@yahoo.com.br" target="_blank">douglaseiji@yahoo.com.br</a>&gt;<br>


<b><span style="font-weight: bold;">Para:</span></b> <a rel="nofollow" href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a><br><b><span style="font-weight: bold;">Enviadas:</span></b> Terça-feira, 3 de Agosto de 2010 14:16:11<br>


<b><span style="font-weight: bold;">Assunto:</span></b> Problems installing glorp<br></font></div><div><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi Mariano,<br><br>
I was trying to install Glorp and I&#39;m having problems. Could
 you help me?<br><br>I evaluated this:<br><pre><font size="2">|<i>instClass|<br></i>instClass := Smalltalk at: #Installer ifAbsent: [ScriptLoader<br>loadLatestPackage: &#39;Installer-Core&#39; fromSqueaksource: &#39;Installer&#39;. Smalltalk<br>

<br>at: #Installer].<br>instClass ss     project: &#39;Glorp&#39;;     install: &#39;GlorpPharoLoader&#39;.<br>(Smalltalk at: #GlorpPharoLoader) loadGlorp.</font><br><br><font size="3">but I got the error: &quot;doesNotUnderstand: #squeakSource&quot;<br>

<br><br>Do you know what is missing?<br><br>Thanks<br>Douglas<br></font></pre> </div>
</div><br>



       </div></div></div>
</div><br>



       </div></blockquote></div><br>
</div></div></div></div>
</div><br>



       </div></blockquote></div><br>