Forum Discussion

meital's avatar
meital
New Contributor
8 years ago

how to say i am expecting null in assertion:

I have the result:
<Results>
<ResultSet fetchSize="128">
<Row rowNumber="1">
<MODEL_ID>Deposit</MODEL_ID>
<VALUE1>1</VALUE1>
<VALUE2/>
<VALUE_SET/>
<SCORE>1.00</SCORE>
</Row>
not sure how to say i am expecting to null in VALUE2?
If i am declaring the expected result null i am getting failue
expected null actual null.

  • nmrao's avatar
    nmrao
    Champion Level 3
    Can you please show the screen shot of your assertion? Could not image what kind of assertion being used.
      • PaulMS's avatar
        PaulMS
        Super Contributor

        Try clicking the select from current button, this shows <VALUE2/> as the expected result so you could copy that into the test case property.