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 2012


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

Re: [QF-Test] Contains


  • Subject: Re: [QF-Test] Contains
  • From: dierache@?.de
  • Date: Wed, 22 Aug 2012 18:52:48 +0200 (CEST)

Thank you.
I did it with a litle scrip now where i just iterate over a column.


For those who might need it:

table = rc.getComponent(rc.lookup("id")) #whole table
column = rc.lookup("column") #column-name
chkVal = rc.lookup('checkValue') # searched data


rowCount = table.getItemCount() #count of elements
row = 0
while row < rowCount:
  cell = rc.callProcedure("qfs.swt.table.getValueOfCell",{"id": rc.lookup("id"),'column':column,'row':row})
  if cell == chkVal:
    break
  row += 1

if row == rowCount:
  rc.logError('Element with value "' + chkVal + '" not found')

Regards,
D.


----- Original Nachricht ----
Von:     Florian Syska <florian.syska@?.de>
An:      dierache@?.de
Datum:   21.08.2012 11:20
Betreff: RE: [QF-Test] Contains

> Hello,
> 
> you address a row in a column with "foo.id@Item2"
> for the check over all rows you can use the Component Check-Type visible or
> Check-Type index.
> Record a mouse click on one row, right click on event-> convert to
> Check-Type visible or Check-Type index.
> 
> Best Regards
>      Florian Syska
> 
> --
> Florian Syska                               Florian.Syska@?.de
> Quality First Software GmbH                    http://www.qfs.de
> Tulpenstr. 41                              Tel: +49 8171 38648-0
> DE-82538 Geretsried                        Fax: +49 8171 3864816
> GF: Gregor Schmid, Karlheinz Kellerer         HRB München 140833
> 
> -----Original Message-----
> From: qftest-list-bounces@?.de [mailto:qftest-list-bounces@?.de] On
> Behalf Of dierache@?.de
> Sent: Friday, August 17, 2012 10:39 AM
> To: qftest-list@?.de
> Subject: [QF-Test] Contains
> 
> Hi Guys
> 
> Is there a possibility to check like "contains" over a column?
> I need this dynamic so that a simple record of an element by "check
> element"
> isnt enough because i dont want to record it 200 times.
> My goal is to capture the component only one time and check it in 200
> testcases dynamicly with a variable if i get a result/hit in one of the
> rows.
> 
> Any suggestions are very welcome :)
> 
> thanks in Advance,
> D.
> 
> _______________________________________________
> qftest-list mailing list
> qftest-list@?.de
> http://www.qfs.de/mailman/listinfo/qftest-list
> 
>