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] Logging in Terminal with Jython
Hi Yann, Yes, it is working fine like this ! Thank you. Cheers, Cédric [@@ THALES GROUP INTERNAL @@] -----Message d'origine----- De : Yann Spoeri, QFS [mailto:yann.spoeri@?.de] Envoyé : mardi 14 novembre 2017 12:25 À : qftest-list@?.de Cc : BENHAROUS Cedric Objet : Re: [QF-Test] Logging in Terminal with Jython Hi all, In a SUT script your script will log the messages into the QF-Test Terminal because all the stdout of the SUT gets redirected into the QF-Test terminal. In a Server Script you are executing the script in QF-Test itself. However the stdout of QF-Test itself is *not* necessarily redirected into the QF-Test terminal. (But you can still access the logging outputs - e.g. on Windows simply use qftestc.exe on the commandline.) You can also use a script with something like this: import logging class Stream(): def write(self, msg): print msg, logger = logging.getLogger('someModule') logger.addHandler(logging.StreamHandler(Stream())) logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG) logger.info("info") logger.warn("warn") Hope this helps. Greetings, Yann Am 09.11.2017 um 18:02 schrieb BENHAROUS Cedric: > Hi all, > > We have an issue concerning the use of the logging package inside a Jython server script. > > It does not print any values in QF-Test 4.1.3 in Terminal (unlike the use of print). > > Is there some specific configuration to apply ? > > Code example: > > import logging, sys > > logger = logging.getLogger('someModule') > > logger.addHandler(logging.StreamHandler(sys.stdout)) > > logging.basicConfig(format='%(levelname)s:%(message)s', > level=logging.DEBUG) > > logger.info("info") > > logger.warn("warn") > > Cheers, > > Cédric > > > > _______________________________________________ > qftest-list mailing list > qftest-list@?.de > https://movement.qfs.de/mailman/listinfo/qftest-list > -- Yann Felix Spöri E: yann.spoeri@?.de T: +49 8171 38648-21 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
|
1. Cookies fonctionnels
Nous utilisons des cookies fonctionnels pour garantir la fonctionnalité de base du site web.
2. Cookies de performance et de statistique
Nous utilisons Matomo pour analyser et améliorer notre site web. Des cookies permettent une collection anonyme des informations qui nous aident à vous offrir un visite clair et facile à utiliser de nos pages web.
This cookie contains a unique, pseudonymized visitor ID internal to Matomo for recognizing repeat visitors.
This cookie is used to track from which website the anonymized user proceeded to any page or sub-page.
The Matomo session cookie is used to track the visitor's page requests during the session. The cookie is automatically deleted at the end of each session (website visit), at the latest after one day.
is created and should be then directly deleted (used to check whether the visitor’s browser supports cookies).
short lived cookies used to temporarily store data for the visit.
short lived cookies used to temporarily store data for the visit.