2018 bis heute | 2017 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 2007

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

Re: [QF-Test] CSV Data driven loops

  • Subject: Re: [QF-Test] CSV Data driven loops
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 29 May 2007 18:53:11 +0200

Hi Tom,

it's no problem to use different _columns_ from a CSV file in
different tests. QF-Test will always bind all and you simply access
those you need.

Iterating over only part of the _rows_ is currently not supported. I'm
not sure if such a feature would be useful. What's the advantage of
having rows for different tests in the same file? Aren't separate
files where the name indicates the intended use preferable?

Note: One idea I recently had is to provide add loop-counter variable
attribute to each data binder so that even if you iterate over data
from a CSV file or database you can bind the loop-count to a variable
like "i". That way you could, for example, break out of the iteration
after a given number of tests that can be overridden from the
command-line, etc.

Best regards,

"Tom Hughbanks" <thughbanks@?.net> writes:

>    Hi - Is it possible to use the same CSV file for different test
>    cases?  I would like to reference different rows or sheets or fields
>    or whatever depending on which test case is running.
>    Can different rows be referenced by different tests, or use data for
>    one loop, and then continue in the file with another loop?
>    For example, I would like to use a file for two test cases.  One for a
>    loop that needs to run through five rows and perform one test-case,
>    and then go through the rest of the rows with a different set of
>    tests.  The first few would have the same data as the others; I would
>    just like to perform a subset of the tests on the those rows.
>    I would also like to use the same file for login information, if
>    that's possible.  Of course the columns in this case would be
>    different than those used in the rest of the tests.
>    In other situations, I would put the data in different sheets in Excel
>    and then reference the sheet for each situation, but I don't know how
>    this would work with CSV files.  I am not yet comfortable with using
>    Jython to handle this and am hoping this can be done with the normal
>    data drivers.
>    The only way I can currently think to do this is to use separate CSV
>    files.
>    Thanks for any help.
>    Tom Hughbanks
>    Senior Quality Assurance Analyst
>    NightHawk Radiology Services
>    223 N. Water St Suite 200
>    Milwaukee, WI 53202
>    Direct: 208-415-0513
>    Toll Free: 866-400-4295
>    Fax: 414-220-4296
>    [1]thughbanks@?.net
>    www.nighthawkrad.net
>    CONFIDENTIALITY NOTICE:   This email, including any attachments,
>    contains information from NightHawk Radiology Services, which may be
>    confidential or privileged. The information is intended to be for the
>    use of the individual or entity named above. If you are not the
>    intended recipient, be aware that any disclosure, copying,
>    distribution or use of the contents of this information is prohibited.
>    If you have received this email in error, please notify NightHawk
>    Radiology Services immediately by forwarding message
>    to[2]thughbanks@?.net and destroy all electronic and hard
>    copies of the communication, including attachments.
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876
GF: Gregor Schmid, Karlheinz Kellerer          HRB München 140833