cancel
Showing results for 
Search instead for 
Did you mean: 

Assertions

Contributor

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 3
Super Contributor

Re: Assertions

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
Contributor

Re: Assertions

Both are valid responses. 

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

Can this be done???
Super Contributor

Re: Assertions

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
New Here?
Join us and watch the welcome video:
Top Kudoed Authors