List Icon
Mailing list Archive

2019 up to July 2022 | 20182017  |  2016  2015 2014 | 2013

The mailing list has been closed since July 2022, but continues to serve as an archive of information about QF-Test.
But if you want to stay informed about news about QF-Test, you can simply
Subscribe to Newsletter  

To get up-to-date information about each release - including minor releases - you can
subscribe to the RSS feed or follow us on social media.
Alternatively, QF-Test also provides release information itself.

Another source of information is our blog, where there are current articles on general topics, on the company QFS and also various "how-tos"
subscribe to blog


[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: Ivan Boelle <ivan.boelle@?.net>
  • Date: Thu, 23 Jan 2014 09:08:22 -0600

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



--
Ivan Boelle
INT