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] Reading a log file while it is being written


  • Subject: Re: [QF-Test] Reading a log file while it is being written
  • From: Martin Moser <martin.moser@?.de>
  • Date: Fri, 24 Jan 2014 09:27:25 +0100

Hi all,

you can also take a look at the procedure in the package qfs.utils.files of
the standard library qfs.qft.

There you should find something similar.

Best Regards,
Martin

--On Donnerstag, Januar 23, 2014 09:08:22 -0600 Ivan Boelle
<ivan.boelle@?.net> wrote:

Hi Fabiola,

Is this script inside a loop to check for the log_component content
regularly ?

And you are calling "getX()" on the component and not "getText()" (or any
method that would return the log file content), is it normal ?

Regards,



On Wed, Jan 22, 2014 at 11:34 AM, Fabiola Ruiz <
fabiola.ruiz@?.com> wrote:

Hello,

I am running a program using QFTEST which creates a log file that is
automatically opened by the program. I would like QFTEST to read this log
while it is being written since I need it to take a screenshot when
certain text line appears. I have this SUT script but it is not working:

rc.setLocal("checkOk", "false")
def com = rc.getComponent("log_file_component")
def text = com.getX()
def m = (text =~ /text_line/)
if (m.matches()) {
   rc.setLocal("checkOk", "true")
}


I am new to Groovy and I would really appreciate any help!

Thanks in advance,

Fabiola


_______________________________________________
qftest-list mailing list
qftest-list@?.de
http://www.qfs.de/mailman/listinfo/qftest-list



--
Martin Moser
Development & Support

E: martin.moser@?.de
T: +49 (0)8171 38648-14
F: +49 (0)8171 38648-16

Quality First Software GmbH | www.qfs.de
Tulpenstr. 41 | 82538 Geretsried | Germany
GF Gregor Schmid, Karlheinz Kellerer
HRB München 140833