Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: [maxq-users] DBUtil

maxq
Discussion topic

Hide all messages in topic

All messages in topic

Re: [maxq-users] DBUtil

Author christophe blin <cblin at tennaxia dot com>
Full name christophe blin <cblin at tennaxia dot com>
Date 2005-05-24 02:14:30 PDT
Message thanks a lot for the explantaion, it is clearer in my mind now.
I will try the trick asap (I think thursday because I am quite busy
now). I will let you know.

Regards,
chris

Marcin Cieslak wrote:

>On 5/23/05, christophe blin <cblin at tennaxia dot com> wrote:
>
>
>> Can you give more precisions please. I am not very familiar with Python
>>(this is my first project with this language) so I do not understand what
>>you mean by \u notation.
>>
>>
>
>The problem you have is not specific to Python - you try to encode
>unicode string in the
>source file without givin its encoding (I guess in your case it's UTF-8).
>
>Can you try putting the following in your code:
>
>querystring = u"select id from project where name='T2 :
>Conformit\u00E9: plan fonctionnel'"
>
>
>projid = db.loadVal(querystri​ng.encode("iso-8859-​15"))
>if projid == None:
> print "projid1:None"
>else:
> print "projid1:"+projid
>
>projid = db.loadVal(querystri​ng.encode("utf-8"))
>....
>
>See also description of Python unicode implementation
>
>http://www.python.or​g/peps/pep-0100.html​
>
>taking into account jython differences
>
>http://www.jython.or​g/docs/differences.h​tml
>
>Hope this helps,
>
>--marcin
>
>----------------​--------------------​--------------------​-------------
>To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
>For additional commands, e-mail: users-help at maxq dot tigris dot org
>
>
>
>
>

--
____________________​____________________​____________________​____________________​_______
Tennaxia, www.tennaxia.com,
société de services auprès des entreprises industrielles pour une gestion globale de l'environnement
____________________​____________________​____________________​____________________​_______
Siège social :
6, rue Léonard de Vinci - 53001 Laval Cedex - Tél : 02 43 49 75 50 - Fax : 02 43 49 75 77
Agence Paris :
 47, rue Servan - 75011 Paris - Tél : 01 43 57 17 05 - Fax : 08 25 19 19 61
Agence Lyon :
Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE - Tél : 04 72 39 98 14 - Fax : 04 72 39 93 85

Les informations contenues dans ce message envoyées par TENNAXIA sont confidentielles et sont établies à l'attention exclusive de leurs destinataires. L'accès à ce message par toute autre personne n'est pas autorisé. Si vous n'êtes pas le destinataire de ce message, merci de le détruire et d'en avertir l'expéditeur : toute altération, copie, distribution ou toute action prise ou omise sont interdites et peuvent être illégales.
The information in this message sent by TENNAXIA is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this message by anyone else is unauthorized. If you are not the intended recipient, please delete it and notify the sender : any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
Attachments

Re: [maxq-users] Documentation: command line arguments

Author oliverbock
Full name Oliver Bock
Date 2005-05-24 00:41:16 PDT
Message --script-arg should remain because I need it and I've been the one
producing the last few releases.

I have added it to the documentation.


   Oliver

--
On 20/05/2005, at 19:32, christophe blin wrote:

> Can I have an answer to the question will this feature (--script-arg)
> be available in future releases of maxQ ?
>
> Thanks
> chris
>
> christophe blin wrote:Hi,
>>
>> The documentation about the command line arguments misses a great
>> future of MaxQ : --script-arg
>> This should be documented as follow:
>> --script-arg args  |  --script-arg "the arguments of the script"  | 
>> string that can be retrieved thanks to PyHttpTestCase.getScriptArg
>> method (inherited from HttpTestCase)
>>
>> This is particulary usefull when you need to pass a var to all
>> scripts without using vars.py (i.e a separate python script) to store
>> it.
>>
>> My only question is: will this feature be available in future
>> releases of maxQ ?
>>
>> regards,
>> chris
>>
>> James Richards wrote:Jesus, Marcin
>>>
>>> thank you both for your responses. Both PATH and JAVA_HOME were set
>>> properly. I changed the build.xml in maxq such that the javac task
>>> included that attribute fork="yes", and it worked. fork will
>>> override the ant property build.compiler which was set to jikes.
>>> Why that did not work, i'm not sure.
>>>
>>> Thanks,
>>> James
>>>
>>> -----Original Message-----
>>> From: Jesus M. Rodriguez [mailto:jmrodri at gmail dot com]
>>> Sent: Friday, April 22, 2005 6:25 AM
>>> To: users at maxq dot tigris dot org
>>> Subject: Re: [maxq-users] problem building, can't find javac
>>>
>>>
>>> James,
>>>
>>> The first thing I would check is can you run javac from the command
>>> line?
>>> Try "which javac" at the command line what does that give you?
>>>
>>> jesus
>>>
>>> On 4/21/05, James Richards <James.Richards@d​emandtec.com> wrote:
>>>
>>>> Hi
>>>>
>>>> I'm currently evaluating this software to use in our testing
>>>> process. However, i'm having problems simply building it.
>>>>
>>>> [jrichard@chutney maxq-0.98]$ vi README
>>>> [jrichard@chutney maxq-0.98]$
>>>> /home/jrichard/p4/de​v/main/thirdparty/to​ol/jakarta.apache.or​g/
>>>> apache-ant-1.6.1/bin/ant
>>>> Buildfile: build.xml
>>>>
>>>> compile:
>>>> [mkdir] Created dir:
>>>> /home/jrichard/downl​oads/maxq/maxq-0.98/​build
>>>> [depend] Deleted 0 out of date files in 0 seconds
>>>> [javac] Compiling 27 source files to
>>>> /home/jrichard/downl​oads/maxq/maxq-0.98/​build
>>>>
>>>> BUILD FAILED
>>>> /home/jrichard/downl​oads/maxq/maxq-0.98/​build.xml:37: Unable to
>>>> find a javac compiler;
>>>> com.sun.tools.javac.Main is not on the classpath.
>>>> Perhaps JAVA_HOME does not point to the JDK
>>>>
>>>> Total time: 6 seconds
>>>> [jrichard@chutney maxq-0.98]$ echo $JAVA_HOME
>>>> /usr/java/j2sdk1.4.2
>>>>
>>>> You can see from the text above, that java is set correctly in
>>>> JAVA_HOME. I included com.sun.tools.javac.Main in the
>>>> compile_classpath in the build.xml, and in the env var CLASSPATH.
>>>> Neither of which helped.
>>>>
>>>> Can someone let me know if i'm missing something?
>>>>
>>>> Thanks!
>>>> James
>>>>
>>>> <html>
>>>> <body>
>>>> <span
>>>> style="font-size:8.0​pt;font-family:
>>>> Arial">----------​--------------------​--------------------​-----------
>>>> --------------------​--------------------​--------------------​--------
>>>> ------------</span>
>>>> <span style="font-size:8.0​pt;font-family:Arial​">DEMANDTEC EMAIL
>>>> NOTICE:</span>
>>>> <p><span style="font-size:8.0​pt;font-family:Arial​">NOTICE: This
>>>> email transmission and all attached files contain information
>>>> intended for the designated individual or entity to whom it is
>>>> addressed and may contain information that is proprietary,
>>>> privileged and/or exempt from disclosure under applicable law. If
>>>> you are not the intended recipient or an employee or agent
>>>> responsible for delivering this message to the intended recipient,
>>>> you are hereby notified that any dissemination, distribution,
>>>> copying, or other use of this email or its attachments is strictly
>>>> prohibited. If you have received this email in error, please
>>>> notify the sender immediately by replying to this message and
>>>> please delete the original message without making any
>>>> copies.</span>
>>>> <p><span style="font-size:8.0​pt;font-family:Arial​">WARNING:
>>>> Computer viruses can be transmitted via email. The recipient
>>>> should check this email and any attachments for the presence of
>>>> viruses. Although we have taken reasonable precautions to ensure
>>>> that this email and all attachments are free from viruses, we
>>>> accept no liability for any loss or damage arising from the use of
>>>> this email or its attachments.</span>
>>>> </body>
>>>> </html>
>>>>
>>>> --------------------​--------------------​--------------------​--------
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
>>>> For additional commands, e-mail: users-help at maxq dot tigris dot org
>>>>
>>>>
>>>>
>>> --------------------​--------------------​--------------------​---------
>>> To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
>>> For additional commands, e-mail: users-help at maxq dot tigris dot org
>>>
>>>
>>> --------------------​--------------------​--------------------​---------
>>> To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
>>> For additional commands, e-mail: users-help at maxq dot tigris dot org
>>>
>>>
>>>
>>>
>>
>> --
>> ____________________​____________________​____________________​__________
>> _________________
>> Tennaxia, www.tennaxia.com,
>> société de services auprès des entreprises industrielles pour une
>> gestion globale de l'environnement
>> ____________________​____________________​____________________​__________
>> _________________
>> Siège social :
>> 6, rue Léonard de Vinci - 53001 Laval Cedex - Tél : 02 43 49 75 50 -
>> Fax : 02 43 49 75 77
>> Agence Paris :
>> 47, rue Servan - 75011 Paris - Tél : 01 43 57 17 05 - Fax : 08 25
>> 19 19 61
>> Agence Lyon :
>> Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE - Tél : 04
>> 72 39 98 14 - Fax : 04 72 39 93 85
>>
>> Les informations contenues dans ce message envoyées par TENNAXIA sont
>> confidentielles et sont établies à l'attention exclusive de leurs
>> destinataires. L'accès à ce message par toute autre personne n'est
>> pas autorisé. Si vous n'êtes pas le destinataire de ce message, merci
>> de le détruire et d'en avertir l'expéditeur : toute altération,
>> copie, distribution ou toute action prise ou omise sont interdites et
>> peuvent être illégales.
>> The information in this message sent by TENNAXIA is confidential and
>> may be legally privileged. It is intended solely for the
>> addressee(s). Access to this message by anyone else is unauthorized.
>> If you are not the intended recipient, please delete it and notify
>> the sender : any disclosure, copying, distribution or any action
>> taken or omitted to be taken in reliance on it, is prohibited and may
>> be unlawful.
>
> --
> ____________________​____________________​____________________​___________
> ________________
> Tennaxia, www.tennaxia.com,
> société de services auprès des entreprises industrielles pour une
> gestion globale de l'environnement
> ____________________​____________________​____________________​___________
> ________________
> Siège social :
> 6, rue Léonard de Vinci - 53001 Laval Cedex - Tél : 02 43 49 75 50 -
> Fax : 02 43 49 75 77
> Agence Paris :
> 47, rue Servan - 75011 Paris - Tél : 01 43 57 17 05 - Fax : 08 25 19
> 19 61
> Agence Lyon :
> Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE - Tél : 04
> 72 39 98 14 - Fax : 04 72 39 93 85
>
> Les informations contenues dans ce message envoyées par TENNAXIA sont
> confidentielles et sont établies à l'attention exclusive de leurs
> destinataires. L'accès à ce message par toute autre personne n'est pas
> autorisé. Si vous n'êtes pas le destinataire de ce message, merci de
> le détruire et d'en avertir l'expéditeur : toute altération, copie,
> distribution ou toute action prise ou omise sont interdites et peuvent
> être illégales.
> The information in this message sent by TENNAXIA is confidential and
> may be legally privileged. It is intended solely for the addressee(s).
> Access to this message by anyone else is unauthorized. If you are not
> the intended recipient, please delete it and notify the sender : any
> disclosure, copying, distribution or any action taken or omitted to be
> taken in reliance on it, is prohibited and may be unlawful.

Re: [maxq-users] DBUtil

Author saperski
Full name Marcin Cieslak
Date 2005-05-23 14:06:30 PDT
Message On 5/23/05, christophe blin <cblin at tennaxia dot com> wrote:
> Can you give more precisions please. I am not very familiar with Python
> (this is my first project with this language) so I do not understand what
> you mean by \u notation.

The problem you have is not specific to Python - you try to encode
unicode string in the
source file without givin its encoding (I guess in your case it's UTF-8).

Can you try putting the following in your code:

querystring = u"select id from project where name='T2 :
Conformit\u00E9: plan fonctionnel'"


projid = db.loadVal(querystri​ng.encode("iso-8859-​15"))
if projid == None:
   print "projid1:None"
else:
   print "projid1:"+projid

projid = db.loadVal(querystri​ng.encode("utf-8"))
....

See also description of Python unicode implementation

http://www.python.or​g/peps/pep-0100.html​

taking into account jython differences

http://www.jython.or​g/docs/differences.h​tml

Hope this helps,

--marcin

Re: [maxq-users] DBUtil

Author christophe blin <cblin at tennaxia dot com>
Full name christophe blin <cblin at tennaxia dot com>
Date 2005-05-23 02:37:37 PDT
Message Can you give more precisions please. I am not very familiar with Python
(this is my first project with this language) so I do not understand
what you mean by \u notation.
I give a look to the pyhton docs, and it seems that I have to use \u for
each string in my application. Is it correct ? If so it is not
acceptable (my application mainly deals with strings and also with user
strings so I do not know if it will work).

And I think this is not the solution because the problem is that the
jython interpreter works well when it interprets the file with the good
encoding (it is not that the string are badly encoded I think).
For example, under Linux, having my file encoded into UTF-8 will give
the good results but under Windows it will fail.
And of course, the contrary is also true : encoding my files in ISO8859
give the good solution uinder Windows but not under Linux.
Do I miss something with the encodings ?

BTW, I am really ded up with encoding problems :)

chris

Marcin Cieslak wrote:

>On 5/20/05, christophe blin <cblin at tennaxia dot com> wrote:
>
>
>>But I do not know how to use this solution with MaxQ.
>>More clearly, how do you tell maxq that the python scripts are in
>>ISO8859_1 (and not in UTF8) ?
>>
>>
>
>
>Have you tried using \u notation instead of -encoding flag?
>
>--marcin
>
>----------------​--------------------​--------------------​-------------
>To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
>For additional commands, e-mail: users-help at maxq dot tigris dot org
>
>
>
>
>

--
____________________​____________________​____________________​____________________​_______
Tennaxia, www.tennaxia.com,
société de services auprès des entreprises industrielles pour une gestion globale de l'environnement
____________________​____________________​____________________​____________________​_______
Siège social :
6, rue Léonard de Vinci - 53001 Laval Cedex - Tél : 02 43 49 75 50 - Fax : 02 43 49 75 77
Agence Paris :
 47, rue Servan - 75011 Paris - Tél : 01 43 57 17 05 - Fax : 08 25 19 19 61
Agence Lyon :
Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE - Tél : 04 72 39 98 14 - Fax : 04 72 39 93 85

Les informations contenues dans ce message envoyées par TENNAXIA sont confidentielles et sont établies à l'attention exclusive de leurs destinataires. L'accès à ce message par toute autre personne n'est pas autorisé. Si vous n'êtes pas le destinataire de ce message, merci de le détruire et d'en avertir l'expéditeur : toute altération, copie, distribution ou toute action prise ou omise sont interdites et peuvent être illégales.
The information in this message sent by TENNAXIA is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this message by anyone else is unauthorized. If you are not the intended recipient, please delete it and notify the sender : any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
Attachments

Re: [maxq-users] DBUtil

Author saperski
Full name Marcin Cieslak
Date 2005-05-20 10:07:09 PDT
Message On 5/20/05, christophe blin <cblin at tennaxia dot com> wrote:
> But I do not know how to use this solution with MaxQ.
> More clearly, how do you tell maxq that the python scripts are in
> ISO8859_1 (and not in UTF8) ?


Have you tried using \u notation instead of -encoding flag?

--marcin

Re: [maxq-users] DBUtil

Author christophe blin <cblin at tennaxia dot com>
Full name christophe blin <cblin at tennaxia dot com>
Date 2005-05-20 08:44:02 PDT
Message Hi again,

I finally really found the problem: this is the java compiler (javac)
which operates differently under Windows and under Linux.
using javac -encoding ISO8859_1 Test.java solves the problem.

But I do not know how to use this solution with MaxQ.
More clearly, how do you tell maxq that the python scripts are in
ISO8859_1 (and not in UTF8) ?

Regards,
chris

Re: [maxq-users] DBUtil

Author christophe blin <cblin at tennaxia dot com>
Full name christophe blin <cblin at tennaxia dot com>
Date 2005-05-20 04:33:02 PDT
Message Hi,

I've clearly identify the problem. This is not a maxq or jython issue
but a java issue.
Here is the TestDB.java :
<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<
import java.sql.*;

public class TestDB{
    public static void main(String[] argv){
        try{
            Class.forName("org.g​jt.mm.mysql.Driver")​;
            Connection conn =
DriverManager.getCon​nection("jdbc:mysql:​//192.168.0.253:3306​/testlink",
"root", "");
           
            String sql = "select id from project where name='T2 :
Conformité : plan fonctionnel'";
            Statement stmt = conn.createStatement();
            ResultSet rs = stmt.executeQuery(sql);
            String str = null;
            if (rs.next()) {
                str = rs.getString(1);
            }
            rs.close();
            stmt.close();
           
            System.out.println("projid: "+str);
        } catch (Exception e) {
            System.err.println("error"+e);
        }
    }
}
<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<
Compile it and run it under Linux. Ouput is:
projid: null

Run it under windows (the .class is compiled under Linux). Output is:
projid: null

Compile it and run it under Windows. Ouput is:
projid: 8

Run it under linux (.class is compiled under Windows). Output is:
projid: 8
<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<

So I do not know the reason nor the solution, but I have identified the
problem.

If someone has some informations about that problem, please let me know.

Regards,
chris

christophe blin wrote:

> Hi,
>
> I have a different behavior of DBUtil between Windows XP Pro and Linux
> (Fedora 3 or Mandrake 10).
> All the data (maxq + script) are under a fat32 visible from win xp and
> linuxes.
> The database is under another Fedora 3 @ 192.168.0.253
>
> Here is the code of test_dbutil.py (encoding: ISO-8859-15) :
> <<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<
> from com.bitmechanic.maxq import DBUtil
>
> db = DBUtil("org.gjt.mm.m​ysql.Driver",
> "jdbc:mysql://192.16​8.0.253:3306/testlin​k", "root", "")
>
> projid = db.loadVal("select id from project where name='T2 :
> Conformité : plan fonctionnel'")
> if projid == None:
> print "projid1:None"
> else:
> print "projid1:"+projid
>
> projid = db.loadVal("select id from project where name='T2 :
> Conformité : plan fonctionnel'")
> if projid == None:
> print "projid2:None"
> else:
> print "projid2:"+projid
> <<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<
> The ouput under windows xp pro (which is the expected output) :
> $> MaxQ\maxq-0.98\bin\maxq.bat -r test_dbutil.py
> 20 mai 2005 11:28:54 com.bitmechanic.maxq.Main runTests
> INFO: Running: test_dbutil.py
> projid1:None
> projid2:8
> 20 mai 2005 11:28:55 com.bitmechanic.maxq.Main runTests
> INFO: OK
> <<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<
> The ouput under Linux (Fedora 3 or Mandrake 10)
> $ ./MaxQ/maxq-0.98/bin/maxq.sh -r test_dbutil.py
> 20 mai 2005 11:25:12 com.bitmechanic.maxq.Main runTests
> INFO: Running: test_dbutil.py
> projid1:None
> projid2:None
> 20 mai 2005 13:25:12 com.bitmechanic.maxq.Main runTests
> INFO: OK
> <<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<
> Can someone explain me why there is a difference between the systems ?
> I think this is an encoding problem but I do not see where : the JVM
> is UTF8 under win and linux, the db does not change (so encoding of
> the db is not the problem),
> the jdbc driver is exactly the same...
>
> Regards,
> chris
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
> For additional commands, e-mail: users-help at maxq dot tigris dot org
>
>
>

--
____________________​____________________​____________________​____________________​_______
Tennaxia, www.tennaxia.com,
société de services auprès des entreprises industrielles pour une gestion globale de l'environnement
____________________​____________________​____________________​____________________​_______
Siège social :
6, rue Léonard de Vinci - 53001 Laval Cedex - Tél : 02 43 49 75 50 - Fax : 02 43 49 75 77
Agence Paris :
 47, rue Servan - 75011 Paris - Tél : 01 43 57 17 05 - Fax : 08 25 19 19 61
Agence Lyon :
Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE - Tél : 04 72 39 98 14 - Fax : 04 72 39 93 85

Les informations contenues dans ce message envoyées par TENNAXIA sont confidentielles et sont établies à l'attention exclusive de leurs destinataires. L'accès à ce message par toute autre personne n'est pas autorisé. Si vous n'êtes pas le destinataire de ce message, merci de le détruire et d'en avertir l'expéditeur : toute altération, copie, distribution ou toute action prise ou omise sont interdites et peuvent être illégales.
The information in this message sent by TENNAXIA is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this message by anyone else is unauthorized. If you are not the intended recipient, please delete it and notify the sender : any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.

DBUtil

Author christophe blin <cblin at tennaxia dot com>
Full name christophe blin <cblin at tennaxia dot com>
Date 2005-05-20 02:44:17 PDT
Message Hi,

I have a different behavior of DBUtil between Windows XP Pro and Linux
(Fedora 3 or Mandrake 10).
All the data (maxq + script) are under a fat32 visible from win xp and
linuxes.
The database is under another Fedora 3 @ 192.168.0.253

Here is the code of test_dbutil.py (encoding: ISO-8859-15) :
<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<
from com.bitmechanic.maxq import DBUtil

db = DBUtil("org.gjt.mm.m​ysql.Driver",
"jdbc:mysql://192.16​8.0.253:3306/testlin​k", "root", "")

projid = db.loadVal("select id from project where name='T2 : Conformité
: plan fonctionnel'")
if projid == None:
    print "projid1:None"
else:
    print "projid1:"+projid

projid = db.loadVal("select id from project where name='T2 : Conformité
: plan fonctionnel'")
if projid == None:
    print "projid2:None"
else:
    print "projid2:"+projid
<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<
The ouput under windows xp pro (which is the expected output) :
$> MaxQ\maxq-0.98\bin\maxq.bat -r test_dbutil.py
20 mai 2005 11:28:54 com.bitmechanic.maxq.Main runTests
INFO: Running: test_dbutil.py
projid1:None
projid2:8
20 mai 2005 11:28:55 com.bitmechanic.maxq.Main runTests
INFO: OK
<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<
The ouput under Linux (Fedora 3 or Mandrake 10)
$ ./MaxQ/maxq-0.98/bin/maxq.sh -r test_dbutil.py
20 mai 2005 11:25:12 com.bitmechanic.maxq.Main runTests
INFO: Running: test_dbutil.py
projid1:None
projid2:None
20 mai 2005 13:25:12 com.bitmechanic.maxq.Main runTests
INFO: OK
<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<<<<<​<
Can someone explain me why there is a difference between the systems ?
I think this is an encoding problem but I do not see where : the JVM is
UTF8 under win and linux, the db does not change (so encoding of the db
is not the problem),
the jdbc driver is exactly the same...

Regards,
chris

Re: [maxq-users] Documentation: command line arguments

Author christophe blin <cblin at tennaxia dot com>
Full name christophe blin <cblin at tennaxia dot com>
Date 2005-05-20 02:32:20 PDT
Message Can I have an answer to the question will this feature (--script-arg) be
available in future releases of maxQ ?

Thanks
chris

christophe blin wrote:

> Hi,
>
> The documentation about the command line arguments misses a great
> future of MaxQ : --script-arg
> This should be documented as follow:
> --script-arg args | --script-arg "the arguments of the script" |
> string that can be retrieved thanks to PyHttpTestCase.getScriptArg
> method (inherited from HttpTestCase)
>
> This is particulary usefull when you need to pass a var to all scripts
> without using vars.py (i.e a separate python script) to store it.
>
> My only question is: will this feature be available in future releases
> of maxQ ?
>
> regards,
> chris
>
> James Richards wrote:
>
>>Jesus, Marcin
>>
>>thank you both for your responses. Both PATH and JAVA_HOME were set properly. I changed the build.xml in maxq such that the javac task included that attribute fork="yes", and it worked. fork will override the ant property build.compiler which was set to jikes. Why that did not work, i'm not sure.
>>
>>Thanks,
>>James
>>
>>-----Original Message-----
>>From: Jesus M. Rodriguez [mailto:jmrodri at gmail dot com]
>>Sent: Friday, April 22, 2005 6:25 AM
>>To: users at maxq dot tigris dot org
>>Subject: Re: [maxq-users] problem building, can't find javac
>>
>>
>>James,
>>
>>The first thing I would check is can you run javac from the command line?
>>Try "which javac" at the command line what does that give you?
>>
>>jesus
>>
>>On 4/21/05, James Richards <James.Richards@d​emandtec.com> wrote:
>>
>>
>>>Hi
>>>
>>>I'm currently evaluating this software to use in our testing process. However, i'm having problems simply building it.
>>>
>>>[jrichard@chutney maxq-0.98]$ vi README
>>>[jrichard@chutney maxq-0.98]$ /home/jrichard/p4/de​v/main/thirdparty/to​ol/jakarta.apache.or​g/apache-ant-1.6.1/b​in/ant
>>>Buildfile: build.xml
>>>
>>>compile:
>>> [mkdir] Created dir: /home/jrichard/downl​oads/maxq/maxq-0.98/​build
>>> [depend] Deleted 0 out of date files in 0 seconds
>>> [javac] Compiling 27 source files to /home/jrichard/downl​oads/maxq/maxq-0.98/​build
>>>
>>>BUILD FAILED
>>>/home/jr​ichard/downloads/max​q/maxq-0.98/build.xm​l:37: Unable to find a javac compiler;
>>>com.sun.​tools.javac.Main is not on the classpath.
>>>Perhaps JAVA_HOME does not point to the JDK
>>>
>>>Total time: 6 seconds
>>>[jrichard@chutney maxq-0.98]$ echo $JAVA_HOME
>>>/usr/jav​a/j2sdk1.4.2
>>>
>>>You can see from the text above, that java is set correctly in JAVA_HOME. I included com.sun.tools.javac.Main in the compile_classpath in the build.xml, and in the env var CLASSPATH. Neither of which helped.
>>>
>>>Can someone let me know if i'm missing something?
>>>
>>>Thanks!
>>>James
>>>
>>><html>
>>><body>
>>> <span style="font-size:8.0​pt;font-family:Arial​">---------------​--------------------​--------------------​--------------------​--------------------​--------------------​--------------------​------</span>
>>> <span style="font-size:8.0​pt;font-family:Arial​">DEMANDTEC EMAIL NOTICE:</span>
>>> <p><span style="font-size:8.0​pt;font-family:Arial​">NOTICE: This email transmission and all attached files contain information intended for the designated individual or entity to whom it is addressed and may contain information that is proprietary, privileged and/or exempt from disclosure under applicable law. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this email or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately by replying to this message and please delete the original message without making any copies.</span>
>>> <p><span style="font-size:8.0​pt;font-family:Arial​">WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. Although we have taken reasonable precautions to ensure that this email and all attachments are free from viruses, we accept no liability for any loss or damage arising from the use of this email or its attachments.</span>
>>></body>
>>></html>
>>>
>>>--------​--------------------​--------------------​--------------------​-
>>>To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
>>>For additional commands, e-mail: users-help at maxq dot tigris dot org
>>>
>>>
>>>
>>>
>>
>>------------​--------------------​--------------------​-----------------
>>To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
>>For additional commands, e-mail: users-help at maxq dot tigris dot org
>>
>>
>>------------​--------------------​--------------------​-----------------
>>To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
>>For additional commands, e-mail: users-help at maxq dot tigris dot org
>>
>>
>>
>>
>>
>
>--
>________________​____________________​____________________​____________________​___________
>Tennaxia, www.tennaxia.com,
>société de services auprès des entreprises industrielles pour une gestion globale de l'environnement
>________________​____________________​____________________​____________________​___________
>Siège social :
>6, rue Léonard de Vinci - 53001 Laval Cedex - Tél : 02 43 49 75 50 - Fax : 02 43 49 75 77
>Agence Paris :
> 47, rue Servan - 75011 Paris - Tél : 01 43 57 17 05 - Fax : 08 25 19 19 61
>Agence Lyon :
>Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE - Tél : 04 72 39 98 14 - Fax : 04 72 39 93 85
>
>Les informations contenues dans ce message envoyées par TENNAXIA sont confidentielles et sont établies à l'attention exclusive de leurs destinataires. L'accès à ce message par toute autre personne n'est pas autorisé. Si vous n'êtes pas le destinataire de ce message, merci de le détruire et d'en avertir l'expéditeur : toute altération, copie, distribution ou toute action prise ou omise sont interdites et peuvent être illégales.
>The information in this message sent by TENNAXIA is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this message by anyone else is unauthorized. If you are not the intended recipient, please delete it and notify the sender : any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
>

--
____________________​____________________​____________________​____________________​_______
Tennaxia, www.tennaxia.com,
société de services auprès des entreprises industrielles pour une gestion globale de l'environnement
____________________​____________________​____________________​____________________​_______
Siège social :
6, rue Léonard de Vinci - 53001 Laval Cedex - Tél : 02 43 49 75 50 - Fax : 02 43 49 75 77
Agence Paris :
 47, rue Servan - 75011 Paris - Tél : 01 43 57 17 05 - Fax : 08 25 19 19 61
Agence Lyon :
Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE - Tél : 04 72 39 98 14 - Fax : 04 72 39 93 85

Les informations contenues dans ce message envoyées par TENNAXIA sont confidentielles et sont établies à l'attention exclusive de leurs destinataires. L'accès à ce message par toute autre personne n'est pas autorisé. Si vous n'êtes pas le destinataire de ce message, merci de le détruire et d'en avertir l'expéditeur : toute altération, copie, distribution ou toute action prise ou omise sont interdites et peuvent être illégales.
The information in this message sent by TENNAXIA is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this message by anyone else is unauthorized. If you are not the intended recipient, please delete it and notify the sender : any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
Attachments

Documentation: command line arguments

Author christophe blin <cblin at tennaxia dot com>
Full name christophe blin <cblin at tennaxia dot com>
Date 2005-05-18 08:31:03 PDT
Message Hi,

The documentation about the command line arguments misses a great future
of MaxQ : --script-arg
This should be documented as follow:
--script-arg args | --script-arg "the arguments of the script" |
string that can be retrieved thanks to PyHttpTestCase.getScriptArg
method (inherited from HttpTestCase)

This is particulary usefull when you need to pass a var to all scripts
without using vars.py (i.e a separate python script) to store it.

My only question is: will this feature be available in future releases
of maxQ ?

regards,
chris

James Richards wrote:

>Jesus, Marcin
>
>thank you both for your responses. Both PATH and JAVA_HOME were set properly. I changed the build.xml in maxq such that the javac task included that attribute fork="yes", and it worked. fork will override the ant property build.compiler which was set to jikes. Why that did not work, i'm not sure.
>
>Thanks,
>James
>
>-----Original Message-----
>From: Jesus M. Rodriguez [mailto:jmrodri at gmail dot com]
>Sent: Friday, April 22, 2005 6:25 AM
>To: users at maxq dot tigris dot org
>Subject: Re: [maxq-users] problem building, can't find javac
>
>
>James,
>
>The first thing I would check is can you run javac from the command line?
>Try "which javac" at the command line what does that give you?
>
>jesus
>
>On 4/21/05, James Richards <James.Richards@d​emandtec.com> wrote:
>
>
>>Hi
>>
>>I'm currently evaluating this software to use in our testing process. However, i'm having problems simply building it.
>>
>>[jrichard@chutney maxq-0.98]$ vi README
>>[jrichard@chutney maxq-0.98]$ /home/jrichard/p4/de​v/main/thirdparty/to​ol/jakarta.apache.or​g/apache-ant-1.6.1/b​in/ant
>>Buildfile: build.xml
>>
>>compile:
>> [mkdir] Created dir: /home/jrichard/downl​oads/maxq/maxq-0.98/​build
>> [depend] Deleted 0 out of date files in 0 seconds
>> [javac] Compiling 27 source files to /home/jrichard/downl​oads/maxq/maxq-0.98/​build
>>
>>BUILD FAILED
>>/home/jricha​rd/downloads/maxq/ma​xq-0.98/build.xml:37​: Unable to find a javac compiler;
>>com.sun.tool​s.javac.Main is not on the classpath.
>>Perhaps JAVA_HOME does not point to the JDK
>>
>>Total time: 6 seconds
>>[jrichard@chutney maxq-0.98]$ echo $JAVA_HOME
>>/usr/java/j2sdk1.4.2
>>
>>You can see from the text above, that java is set correctly in JAVA_HOME. I included com.sun.tools.javac.Main in the compile_classpath in the build.xml, and in the env var CLASSPATH. Neither of which helped.
>>
>>Can someone let me know if i'm missing something?
>>
>>Thanks!
>>James
>>
>><html>
>><body>
>> <span style="font-size:8.0​pt;font-family:Arial​">---------------​--------------------​--------------------​--------------------​--------------------​--------------------​--------------------​------</span>
>> <span style="font-size:8.0​pt;font-family:Arial​">DEMANDTEC EMAIL NOTICE:</span>
>> <p><span style="font-size:8.0​pt;font-family:Arial​">NOTICE: This email transmission and all attached files contain information intended for the designated individual or entity to whom it is addressed and may contain information that is proprietary, privileged and/or exempt from disclosure under applicable law. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this email or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately by replying to this message and please delete the original message without making any copies.</span>
>> <p><span style="font-size:8.0​pt;font-family:Arial​">WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. Although we have taken reasonable precautions to ensure that this email and all attachments are free from viruses, we accept no liability for any loss or damage arising from the use of this email or its attachments.</span>
>></body>
>></html>
>>
>>------------​--------------------​--------------------​-----------------
>>To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
>>For additional commands, e-mail: users-help at maxq dot tigris dot org
>>
>>
>>
>>
>
>----------------​--------------------​--------------------​-------------
>To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
>For additional commands, e-mail: users-help at maxq dot tigris dot org
>
>
>----------------​--------------------​--------------------​-------------
>To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
>For additional commands, e-mail: users-help at maxq dot tigris dot org
>
>
>
>
>

--
____________________​____________________​____________________​____________________​_______
Tennaxia, www.tennaxia.com,
société de services auprès des entreprises industrielles pour une gestion globale de l'environnement
____________________​____________________​____________________​____________________​_______
Siège social :
6, rue Léonard de Vinci - 53001 Laval Cedex - Tél : 02 43 49 75 50 - Fax : 02 43 49 75 77
Agence Paris :
 47, rue Servan - 75011 Paris - Tél : 01 43 57 17 05 - Fax : 08 25 19 19 61
Agence Lyon :
Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE - Tél : 04 72 39 98 14 - Fax : 04 72 39 93 85

Les informations contenues dans ce message envoyées par TENNAXIA sont confidentielles et sont établies à l'attention exclusive de leurs destinataires. L'accès à ce message par toute autre personne n'est pas autorisé. Si vous n'êtes pas le destinataire de ce message, merci de le détruire et d'en avertir l'expéditeur : toute altération, copie, distribution ou toute action prise ou omise sont interdites et peuvent être illégales.
The information in this message sent by TENNAXIA is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this message by anyone else is unauthorized. If you are not the intended recipient, please delete it and notify the sender : any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
Attachments

RE: [maxq-users] problem building, can't find javac

Author James Richards <James dot Richards at demandtec dot com>
Full name James Richards <James dot Richards at demandtec dot com>
Date 2005-04-22 10:42:11 PDT
Message Jesus, Marcin

thank you both for your responses. Both PATH and JAVA_HOME were set properly. I changed the build.xml in maxq such that the javac task included that attribute fork="yes", and it worked. fork will override the ant property build.compiler which was set to jikes. Why that did not work, i'm not sure.

Thanks,
James

-----Original Message-----
From: Jesus M. Rodriguez [mailto:jmrodri at gmail dot com]
Sent: Friday, April 22, 2005 6:25 AM
To: users at maxq dot tigris dot org
Subject: Re: [maxq-users] problem building, can't find javac


James,

The first thing I would check is can you run javac from the command line?
Try "which javac" at the command line what does that give you?

jesus

On 4/21/05, James Richards <James.Richards@d​emandtec.com> wrote:
>
> Hi
>
> I'm currently evaluating this software to use in our testing process. However, i'm having problems simply building it.
>
> [jrichard@chutney maxq-0.98]$ vi README
> [jrichard@chutney maxq-0.98]$ /home/jrichard/p4/de​v/main/thirdparty/to​ol/jakarta.apache.or​g/apache-ant-1.6.1/b​in/ant
> Buildfile: build.xml
>
> compile:
> [mkdir] Created dir: /home/jrichard/downl​oads/maxq/maxq-0.98/​build
> [depend] Deleted 0 out of date files in 0 seconds
> [javac] Compiling 27 source files to /home/jrichard/downl​oads/maxq/maxq-0.98/​build
>
> BUILD FAILED
> /home/jrichard/downl​oads/maxq/maxq-0.98/​build.xml:37: Unable to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK
>
> Total time: 6 seconds
> [jrichard@chutney maxq-0.98]$ echo $JAVA_HOME
> /usr/java/j2sdk1.4.2
>
> You can see from the text above, that java is set correctly in JAVA_HOME. I included com.sun.tools.javac.Main in the compile_classpath in the build.xml, and in the env var CLASSPATH. Neither of which helped.
>
> Can someone let me know if i'm missing something?
>
> Thanks!
> James
>
> <html>
> <body>
> <span style="font-size:8.0​pt;font-family:Arial​">---------------​--------------------​--------------------​--------------------​--------------------​--------------------​--------------------​------</span>
> <span style="font-size:8.0​pt;font-family:Arial​">DEMANDTEC EMAIL NOTICE:</span>
> <p><span style="font-size:8.0​pt;font-family:Arial​">NOTICE: This email transmission and all attached files contain information intended for the designated individual or entity to whom it is addressed and may contain information that is proprietary, privileged and/or exempt from disclosure under applicable law. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this email or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately by replying to this message and please delete the original message without making any copies.</span>
> <p><span style="font-size:8.0​pt;font-family:Arial​">WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. Although we have taken reasonable precautions to ensure that this email and all attachments are free from viruses, we accept no liability for any loss or damage arising from the use of this email or its attachments.</span>
> </body>
> </html>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
> For additional commands, e-mail: users-help at maxq dot tigris dot org
>
>

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
For additional commands, e-mail: users-help at maxq dot tigris dot org
Messages per page: