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 2015

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

Re: [QF-Test] Text recognition in table

  • Subject: Re: [QF-Test] Text recognition in table
  • From: "Yann Spoeri, QFS (extern)" <yann.spoeri.ext@?.de>
  • Date: Fri, 17 Jul 2015 11:03:32 +0200

Hi Els,

Probably something like the following is working:

 + Procedure call: qfs.web.table.getRowCount
   Variable for return value: nrRows
   Local variable: enabled
   Variable definitions:
     id: home-message-list
 + Loop:
   Number of iterations: $(nrRows)
   Iteration counter: $(cRow)
   + Try
     + Check Text
       QF-Test component ID: home-message-list&2&$(cRow)
       Text: .*28/06/2015_08:00.*
       As regex: True
       Throw exception on failure: enabled
     + Break
     + Catch
   + Else
     + Procedure call: qfs.run-log.logError
       Variable definitions:
         message: The Text "28/06/2015_08:00" was not found in table 'home-message-list'.


Am 30.06.2015 um 11:58 schrieb Els Helsen:

I’m stuck on the following case.  We have a webpage with a table that we would like to test.

The html structure is the following:

As you can see there is a table on the page in the html structure.   When I record this component however,  QFS is not recording a table.   I
get the following  structure:

What i would like to do is check if somewhere in the node home-message-list (which is a table)   is a node with the text  ‘zo 28/06/2015 08:00’ .

I thought is should be possible by using indexes and a regular expression :      home-messages-list%.*28/06/2015_08:00

I have recorded some other tables, just with plain text, and there it is working well.   There I can work with the above regular expression and
it finds the node with that text.

Can someone give me some advice, can this be done just with a component, or do I need to make a script that can check if a text is present
somewhere in a subnode of a table?

Thanks in advance,


qftest-list mailing list

Yann Felix Spöri (Extern)

E: yann.spoeri.ext@?.de
T: +49 8171 38648-0
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