Forum Discussion

Reserve_Bank_of's avatar
Reserve_Bank_of
New Contributor
11 years ago

[R]Making Custom Test Step properties assertable in Assert S

Hi

I have developed a custom test step. The result of that step is exposed as a test step property.

Question is how can I make this property assertable in a Assertion Step?

Thanks for any guidance you can provide.

Regards
Vikash
  • SiKing's avatar
    SiKing
    Community Expert
    Property expansion:
    ${<test_step_name>#<property_name>#}
  • Thanks for the reply.

    However I have developed a custom test step using the TestStepFactory. The result of the step running is stored in a property of the test step.

    When using SOAPUI PRO, I can add a Assertion Step. In the Assertion Step editor I can add an assertion and select my test step and the property to assert. The only issue is all the assertions options are disabled.

    What is it that I need to implement in my test step to enable the assertion options to be enabled?

    Vikash
  • Thanks.

    I found that the custom test step needed to implement Assertable and I used the AssertionSupport class for implementing much of the that. Once this was done the various assertions options became enabled in the Assertion Test Step.

    Vikash