Logo QF-Test

Im Archiv der Mailingliste
wertvolle Antworten finden.

 

Gratis Testen  Download  Kaufen

Thomas Max, QF-Test Training und Support

Tipp für die Recherche in der Mailingliste: Volltextsuche (oben) verwenden.

Thomas Max,
Sr. Software Engineer & Trainer, QFS

2017 bis heute 2016 2015 2014 | 2013 | 2012 | 2011 2010 2009 | 2008 | 2007

(ältere Archiveinträge vor 2007 nicht dargestellt, aber in der Suche enthalten)

Mailingliste - Einträge 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'.

Greetings,
    Yann

Am 30.06.2015 um 11:58 schrieb Els Helsen:
Hello,

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,

Els





_______________________________________________
qftest-list mailing list
qftest-list@?.de
http://www.qfs.de/mailman/listinfo/qftest-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 Dokumentation Kaufen Gratis Testen