List Icon
Archiv Mailingliste

2019 bis Juli 2022  2018  | 2017 2016 2015 | 2014 | 2013

Die Mailingliste ist seit Juli 2022 geschlossen, dient aber weiterhin als Informationsarchiv zu QF-Test.
Wenn Sie aber über Neuerungen zu QF-Test informiert bleiben wollen, können Sie einfach unseren
Newsletter abonnieren

Um aktuell die Informationen zu jeder Release - auch Minor Releases - zu bekommen, können Sie den
RSS-Feed abonnieren oder uns in sozialen Medien folgen.
Alternativ bietet QF-Test auch selbst eine Versionsinformation an.

Eine weitere Informationsquelle ist unser Blog, in dem es aktuelle Beiträge zu allgemeinen Themen, zur Firma QFS und auch diverse "How-Tos" gibt:
Blog abonnieren


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

Re: [QF-Test] Adding content to report_junit.xml?


  • Subject: Re: [QF-Test] Adding content to report_junit.xml?
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Tue, 14 Jun 2016 16:06:59 +0200

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
Description: Binary data