At 02:39 PM 10/1/2002 -0700, you wrote:
Mike:
-----Original Message-----
From: Michael Kass
[mailto:]
Sent: Tuesday, October 01, 2002 12:12 PM
To: Jacques Durand
Cc: ''
Subject: RE: sample 3 test cases
Jacques,
This "timeout period" is something that we
need to integrate into our
Test Driver. I was wondering if the CPA as defined would
provide enough
information to the Test Driver ( assuming that it parses some
"base" CPA
( or "mini-cpa" for configuration ) to determine what that
"timeout period" should be before
checking the message queue ( or some persistent storage structure
).
Will the "base CPA" contain all of the
required information for the Test Driver
to compute its own "timeout period" before checking for
received messages, or
will we have to assign some arbitrary value?
[Jacques Durand] I think it is better to have that as a
testcase-specific configuration
parameter...
this is really a test driver control issue, only meaningful to the
test driver, and outside the scope of the CPA
.
Maybe in the "operating party" column, we could specify
some config parameters for
the
operator of this test step, in addition to the operator name (here
"TestDriver"), e.g. "Timeout=60" (in
seconds).
The default value could be given at the beginning of the test suite,
in configuration parameters: e.g.
"DefaultTimeout=120".
[MIKE2] - It looks like there are many possible places to define test
case specific parameters. They could be defined
as attributes in the <TestCase> column ( or element for
implementation ), the <TestStep> column/element, or the
<PutMessage> or
<GetMessage> operations/elements. Where to put them would
depend upon the granularity at which you wish to define
such parameters ( parameter for the whole test case? for a single test
step? for a single operation? ) I would think
that
Test Driver configuration would be fairly static for test cases, and for
that reason I would suggest making configuration parameters
attributes for the <TestCase> column/element.
1) Regarding your other comments for the 3
abstract tests.. I agree that <Condition>
should be changed to <Precondition>. It has a more direct
meaning in a testing sense.
2) I will fix the typos on the
"quotes"
3) Regarding either :
(a) Using predifined CPAs for the "configurator"
action, or
(b) using CPA "templates" and manipulating them like
any other message content...
I would favor (b) simply for the expediency. Or at least, I
think that we should leave that possibility open in our implementation
design. That way, if the number of CPA templates becomes
cumbersome, we could treat the CPA
as just another payload, and manipulate that XML payload template
content the same way we would manipulate
an XML payload template for say ... ebXML Registry
testing.
[Jacques Durand] I would also try to avoid using Configurator
action.... . (Configurator action assumes the MSH is
capable to dynamically handle new CPAs, which may complicate things
API-wise, may not be true of all MSH,
etc.
But we may still assume that all the CPAs we need are in reasonable
number and pre-installed / accessible...
(that would be the simplest solution)
Only in case there are too many of these, (or too many combinations
of
CPA attributes to consider in our test cases) we will have to specify
how to generate
non-preinstalled CPAs from a template - and that could just be an
XPath assignment in a sub-operation, like for header manipulations. In
that case only, we would need the Configurator, to deploy on a the MSH
local to this Test Service.
But I'd say we might not need do that if we don't need more than 20
or 30 CPAs, which is still a reasonable
number of predefined CPAs...
Comments?
[MIKE2] - So what we are talking about as far as configurating an
MSH using CPAs is a "startup" mode, in which the
candidate MSH starts up, reads a CPA ( or CPA-like config file )
and configures itself. We are assuming no "dynamic"
ability of an MSH to
alter its configuration once started. Which means that all tests
that must be run must assume that particular CPA configuration.
That's fine, but it means that when the Test Driver "selects"
test cases to run, it must make sure that the test identifies itself (
through, say
<TestCase> attributes, as to what that test case requires in CPA
configuration to execute correctly.
That way, when the Test Driver loads the <TestCase>, it can compare
its known local "CPA profile" against the profile of the
<TestCase> , and
not run that <TestCase> if it does not have a matching CPA
profile.
This makes a strong case for defining configuration parameters as
attributes at the <TestCase> level, and those attributes should
include CPA parameter
values that vary from the "base" CPA profile from which most
<TestCase>s will run. Comments?
Mike
At 11:57 AM 10/1/2002 -0700, Jacques Durand wrote:
Mike:
review of your 3 test cases - mostly details.
Note: should we set also some timeout parameter for each test case?
or test step?
(e.g. when we count duplicates, and retries, we have to know when to
stop waiting...)
regards,
Jacques
-----Original Message-----
From: Michael Kass
[mailto:]
Sent: Monday, September 30, 2002 10:10 AM
To: Jacques Durand; ''
Subject: RE: [ebxml-iic] next call this Monday
To all,
Here is XML representation of the 3 selected abstract tests. I will
document/comment this for a clearer
description. This is for an initial look at structure and underlying
object model.
Mike