Forum Discussion

Creditsafe_Supp's avatar
Creditsafe_Supp
Occasional Contributor
15 years ago

Add Assertion For Count

Hi

I'm currently trying to add an assertion for count for a request to a WCF service, the problem being I want the count to be greater than 0 I've tried using > 0 in the expected result but this doesn't seem to work so I even foolishly tried > 0 and still nothing. Is there anyone who can help me.

3 Replies

  • What is count? How do you access it? What assertion type are you trying?

    Generally, I would try to PropertyExpand the thing I want to assert into a Script assertion. And then do something like this:

    assert( Integer.valueOf( [propertyExpandedValue] ) > 0, "Value must be greater than 0!" )


    Regards!
    /Henrik
    www.eviware.com
  • Creditsafe_Supp's avatar
    Creditsafe_Supp
    Occasional Contributor
    is it possible to send you a screenshot, it probably become more apparent what I'm trying to get at once you see it
  • Creditsafe Support wrote:
    is it possible to send you a screenshot, it probably become more apparent what I'm trying to get at once you see it

    Sure! Send an e-mail to support at [theSameDomainAsThisForum] or paste a link to an image that you have put at img.ur or a similar web image service.

    /Henrik
    www.eviware.com