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] Adding content to report_junit.xml?
Hello Michael, basically all you need to do is place your script into a dedicated test-case node and call one or more of the rc.check... methods to perform the actual check. Then run your test and create the report(s) you need - any combination of XML, HTML and Junit format is available. Attached is a small sample suite that you can run and create a report for. See manual chapter 15 for further information about creating reports: https://www.qfs.de/qftest/manual/en/user_report.html#usec_report For your example of checking that the size of your html page is less than, say, 100000 bytes you would use something like sizeLimit = 100000 # ... calculate page size size = ... # Check against limit rc.check(size < sizeLimit, "Page size limit %s, actual value %s" % (sizeLimit, size)) Available methods are check and checkEqual plus image variants checkImage and checkImageAdvanced. See https://www.qfs.de/qftest/manual/en/tech_scripting.html#sec_api_rc for details. Best regards, Greg Michael Wildenauer <dt0a24@?.com> writes: > We are callng QF-Test from Jenkins creating the html and the report_junit.xml. > > One new task is to determine the size of a html page via the given URL which I realised with a small jython script. > > How can I add the result to one of the reports? The best target would be the report_junit.xml. > > Thanks for the help > > C&A Services GmbH & Co. OHG | Wanheimer Straße 70 | D-40468 Düsseldorf | Sitz: Düsseldorf | Registergericht: > Düsseldorf HRA 12655 | Telefon: +49 (211) 9872-01 > Persönlich haftende Gesellschafter: C & A Retail GmbH | Sitz: Zug/Schweiz | UID: CHE-116.290.471 > Geschäftsführer: Christoph Hammer, Robert H. A. M. Smeele, Petrus J. Zegger > FRM PARTICIPATIONS S.A. | Sitz: Luxemburg/Luxemburg | Handels- und Firmenregister Luxemburg: B 58158 > Verwaltungsratsmitglieder: Rafael G. E. Bogaerts, John Drury, Dimitri Maréchal, Johny Seré, Robert H. A. M. Smeele, > Matthias Van der Looven > Bankkonto: Commerzbank AG | IBAN: DE84 3004 0000 0132 4300 00 | SWIFT/BIC: COBADEFFXXX -- 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 Attachment:
script_based_test.qft
|
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.