Nesting qm.fields.SetField
Anders Hasselqvist
Anders.Hasselqvist at tss.teleca.se
Tue Oct 7 14:13:39 UTC 2003
Hi,
I want to have something like this in a test class I'm writing:
-------------
qm.fields.SetField(
qm.fields.TupleField(
name = "filesInMemory",
title = "Files in Memory",
fields = [
qm.fields.EnumerationField(
name = "categoryId",
title = "Category",
enumerals = ['F', 'K', 'L', 'N'],
description = """Which file category to check."""
),
qm.fields.SetField(
qm.fields.IntegerField(
name = "fileSizes",
title = "Sizes",
description = """Size of files."""
)
)
]
)
)
-------------
The reason is that there can be several files in every category and I only
know
the file size when creating the test case.
Whats happening now is that when I add a new value in the second SetField it
behaves like if I press Ok to save the test.
Is this possible somehow or am I pushing it? :-)
Regards,
--
Anders Hasselqvist
More information about the qmtest
mailing list