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 2007

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

Re: [QF-Test] Loading Properties

  • Subject: Re: [QF-Test] Loading Properties
  • From: Martin Moser <martin.moser@?.de>
  • Date: Fri, 26 Oct 2007 16:02:10 +0200

Hi Derrik,

there's more than one way to skin a cat.


--On Freitag, Oktober 26, 2007 06:26:34 -0700 Derrik Ammons
<dammons@?.COM> wrote:

I did something similar, but I'm not sure of the consequences, though.

Instead of an if-else, I actually did a try-catch block, where I tried to
set a value to ${group:name} and under the catch node, I loaded the
property sheet in the case of a MissingPropertiesException.  Is it ok if
I skinned the cat this way?



-----Original Message-----
From: Martin Moser [mailto:martin.moser@?.de]
Sent: Friday, October 26, 2007 1:47 AM
To: qftest-list@?.de
Cc: Derrik Ammons
Subject: Re: [QF-Test] Loading Properties

Hi Derrik,

one possible solution would be an if-condition around the load-properties
node, which checks for one of those properties. If it is not set, then
load it, otherwise do nothing.

The setup-nodes will be executed before each test-case, that's to ensure
fulfillment of the prerequisites, so the if-pattern might a good approach.


--On Donnerstag, Oktober 25, 2007 11:26:30 -0700 Derrik Ammons
<dammons@?.COM> wrote:

I would like to load properties once.  The Test Case nodes are
independent of each other using dependency nodes, so how do I load a
property sheet that contains property values for more than one Test
Case?  Is there a way, other than keeping track myself, to load a
property sheet once, and reference the sheet to get values (i.e.
${group:name}) for multiple Test Cases?

For the Test Set, I can break up the sheets into individual Test Case
property sheets, but that would be a maintenance nightmare.  Or, I can
just load the sheet every time a test case is ran, like adding it to a
Setup node, for example.  I'm not sure if this will waste cpu cycles
or hog any memory.  Please advise.



Martin Moser                           martin.moser@?.de
Quality First Software GmbH            http://www.qfs.de
Tulpenstr. 41                          Tel: +49 8171 919874
DE-82538 Geretsried                    Fax: +49 8171 919876
GF: Gregor Schmid, Karlheinz Kellerer  HRB München 14083

Videos Downloads Dokumentation Kaufen Gratis Testen