Logo QF-Test

Finding valuable answers
in the Mailing List Archive.

 

Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2016


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

Re: [QF-Test] Is it possible to embed own html code in html report?


  • Subject: Re: [QF-Test] Is it possible to embed own html code in html report?
  • From: Bernhard Schmitt <bernhard.schmitt@?.de>
  • Date: Tue, 11 Oct 2016 10:50:50 +0000

Hello Greg,

this solution is working fine. I can keep the table information in the html  report with lower size in comparison to screenshots. Great.

BR

Bernhard

========================================================================
Bernhard Schmitt
Consultant Softwaretest
E-Mail: bernhard.schmitt@?.de
------------------------------------------------------------------------
imbus Rhein-Main GmbH, Kirschgartenstraße 15, 65719 Hofheim, DEUTSCHLAND
Tel. +49 6192 92192-0, Fax +49 6192 92192-50
info@?.de http://www.imbus.de

Geschäftsführer: Frank Schmeißner, Tilo Linz, Bernd Nossem
Sitz der Gesellschaft: Hofheim
Registergericht: Frankfurt am Main, HRB 52155
========================================================================


-----Ursprüngliche Nachricht-----
Von: Gregor Schmid [mailto:Gregor.Schmid@?.de]
Gesendet: Freitag, 7. Oktober 2016 09:33
An: qftest-list@?.de
Cc: Bernhard Schmitt
Betreff: Re: [QF-Test] Is it possible to embed own html code in html report?


Hello Bernhard,

yes, basically you can do that. Just store the value in a QF-Test
variable, e.g. "html", and follow with a test-step where you expand
that variable with $(html) in the comment.

When creating the report, be sure to include test-steps and pass
through HTML.

Caveat: It's not going to look good because your HTML will pick up the
CSS from QF-Test's report so you'd have to script some magic to copy
your styles over as well.

Second caveat: If you HTML is not well-formed you'll mess up the
report.

Best regards,
    Greg


Bernhard Schmitt <bernhard.schmitt@?.de> writes:

> Hello all,
>
> I have a web application with a huge table with a scrollbar. Now I want to document this table in the html report.
> In a first approach, I took a screenshot of the table, press scroll down, take a screenshot and so on until I reach the
> end of the table. This steps will cost time and memory. So take a look at the following idea:
> Using the method 'evalJS' on the table component will give me the html
> code oft the table containig the same information
> as provided in the screenshots. Is there any way to embed the html code of the table in the html report?
>
> BR
>
> Bernhard

--
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



Videos Downloads Documentation Buy Free Trial