Forum Discussion

TSeieroe's avatar
TSeieroe
Contributor
16 years ago

Assertions

I have 2 optons for a valid response to my test case.

I ask for and entire object model, the CPE has 2 valid responses.

  1st.  Response gives me the object model.

  2nd.  If the CPE cannot respond with its entire object model it issues a 9004 (Resources Exceeded) fault.

How can I create this assertion?

3 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    what exactly do you want to assert? That you are getting either a valid object-model (ie a schema assertion) or an error?

    regards,

    /Ole
    eviware.com
  • Both are valid responses. 

    I need away to confirm either (valid object) OR (9004 Resorces Exceeded).

    Can this be done???
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    hmm.. you could probably do as follows:

    1) Create 2 assertions, first a script assertion, then a schema-compliance assertion
    2) In the script, check for the 9004 condition and enable/disable the second assertion dynamically from there. Since the assertions are processed in the order they are defined, the schema-compliance wont be evaluated if it has been disabled.

    Makes sense?

    regards!

    /Ole
    eviware.com