List Icon
Archive de la liste de diffusion

La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous
abonner à la newsletter 

our obtenir des informations à jour sur chaque version - y compris les versions mineures - vous pouvez
nous pouvez vous abonner au flux RSS ou nous suivre sur les médias sociaux.
Alternativement, QF-Test fournit également des informations sur la version elle-même.

Une autre source d'information est notre blog, qui contient des articles actuels sur des thèmes généraux, sur l'entreprise QFS et aussi divers "how-tos", veuillez vous
ABonner au Blog


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] jython/python logging library


  • Subject: Re: [QF-Test] jython/python logging library
  • From: Erik Macisevskij <Erik.Macisevskij@?.com>
  • Date: Tue, 4 Apr 2017 13:59:47 +0000
  • Delivered-to: qftest-list@?.net
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=FLEXTRADESYSTEMSINC.onmicrosoft.com; s=selector1-flextrade-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=eq4dlnxtia941bFbepbUBSabHg6S4UNWS8CDor0Sfkk=; b=kY2XKTz4A2rn64zN+rYQ57h3dK7AGh7sPkyysod7TvBELU7qSeA51zQrDa7QNNZbwN4duI1tpUiSVHPotzz8csFmj382MPUkjQwmRTz5eG+7uqjAbAAZi+g98oYrwNVAaYIJY9KrrVRst1/BQDVOJhPxPuJSD/YkyiQI8y6G/Kk=
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Hi Gregor,

 

That’s part of the TestRunListener defined in server script. Yes, I found that it outputs to Jython terminal, and, most importantly, to Jenkins job output log. I am not sure how is it skipping the QF-Test terminal though.

 

Erik Macisevskij

FlexTrade UK Ltd., 34th Floor, CityPoint
1 Ropemaker Street, London EC2Y 9AW

 

From: Gregor Schmid
Sent: 03 April 2017 17:12
To: qftest-list@?.de
Cc: Erik Macisevskij
Subject: Re: [QF-Test] jython/python logging library

 


Hello Erik,

when I run your code as an SUT script I get

    No handlers could be found for logger "root"

At least that's a response. Are you getting _any_ stdout from your
SUT? Depending on how the SUT is started its output may be redirected.

Try opening the Jython Terminal for the SUT. You should always get the
Jython output there.

Best regards,
    Greg

Erik Macisevskij <Erik.Macisevskij@?.com> writes:

> Hi,
>
> I’ve been trying to use logging library with TestRunListener and it won’t log anything to stdout. I wonder if there
> are any good reasons for that?
>
> Default code that works with Jython 2.7:
>
> import logging
>
> log = logging.getLogger('')
>
> log.setLevel(logging.INFO)
>
> log.info('info')
>
> Many thanks,
>
> Erik Macisevskij
>
> FlexTrade UK Ltd., 34th Floor, CityPoint
> 1 Ropemaker Street, London EC2Y 9AW

--
Gregor Schmid

E: gregor.schmid@?.de
T: +49 8171 38648-11
F: +49 8171 38648-16

Quality First Software GmbH | www.qfs.de
Tulpenstr. 41 | 82538 Geretsried | Germany
GF Gregor Schmid, Dr. Martina Schmid, Karlheinz Kellerer
HRB München 140833