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 :
abonner à la newsletter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [QF-Test] Error
Hi Greg, It's working now. Thank you :) -----Original Message----- From: Gregor Schmid [mailto:Gregor.Schmid@?.de] Sent: Thursday, December 15, 2016 10:44 PM To: qftest-list@?.de Cc: Ismael, Sarah Subject: Re: [QF-Test] Error Hello Sarah, that's interesting. Apparently the os.getlogin method was dropped in Jython 2.7, which is the updated Jython version in QF-Test 4.1. Fortunately you don't really need this method as it only retrieves the name of the current user which Java and QF-Test also provide. Simply replace the line Username = os.getlogin() with Username = rc.lookup("system", "user.name") Best regards, Greg "Ismael, Sarah" <Sarah_Ismael@?.com> writes: > Hello, > > Hope this message finds you great! I've downloaded your latest version and I got this error: > > The script failed with the following message: > > Traceback (most recent call last): > > File "<string>", line 1, in <module> > > File "C:\Program Files > (x86)\qfs\qftest\qftest-4.1.1\jython\Lib\qftest.py", line 91, in > runscript > > qfcommon.runscript(ctxt, code, exContext, dir) > > File "C:\Program Files > (x86)\qfs\qftest\qftest-4.1.1\jython\Lib\qfcommon.py", line 1028, in > runscript > > exec cpl in GlobalsWithFallback(globalDict, localDict), localDict > > File "C:\Users\sismael.MGC\.qftest\_script4267154966540019891.py", > line 14, in <module> > > Username = os.getlogin() > > AttributeError: 'module' object has no attribute 'getlogin' > > I don't know the cause of it. Kindly advise > > Thanks, > > Sarah > > _______________________________________________ > qftest-list mailing list > qftest-list@?.de > https://archive.qfs.de/mailman/listinfo/qftest-list -- 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
|
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.