[qmtest] passing data from one test to another
Mark Mitchell
mark at codesourcery.com
Tue Jul 13 22:51:49 UTC 2004
J C wrote:
>Are there any mechanisms in QMTest to pass data
>between 2 different tests during run-time?
>
>For example I have a test suite with 2 tests ordered:
>test1, test2(with prerequisite test1). When test1 is
>done executing I want to pass some data test1 obtained
>to test2 (which test2 will use during its execution).
>
>
>
We don't make that easy because we don't think it is good test design.
QMTest is designed so that each test is independent. Prerequisites are
optimization hints, like "if this test fails, there is no point in
running these other tests" -- they are not ways of passing data between
tests.
We do, however, provides "resources" which can construct data that is
shared across tests -- and data from resources appears in the context of
tests that depend on those resources.
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark at codesourcery.com
More information about the qmtest
mailing list