Fitnesse :How to verify default values in field?

Hi all,

Can anyone please suggest me how to verify default values on the page load?

|verify field | --> this keyword is not working

  Discussion posts and replies are publicly visible

Parents
  • I don't think the |verify field| method is going to work since it checks the "value" parameter of the field (which is this case is null). Unfortunately, I'm not aware of any FitNesse method that will check the "placeholder" parameter of a field.
  • Hi Minakshis001,

    You can try using below methods.
    If it is a user filter use this method
    | verify record type user filter | USER_FILTER_NAME | is present |

    Or you need to populate that value first and verify the value.

    | populate field | FIELD_LABEL or [INDEX] or FIELD_LABEL[INDEX] | with | VALUE(S) |
    | verify field | FIELD_LABEL or [FIELD_INDEX] or FIELD_LABEL[INDEX] | contains | VALUES() |.

    Please let me know if none of the above is not working for you.
Reply
  • Hi Minakshis001,

    You can try using below methods.
    If it is a user filter use this method
    | verify record type user filter | USER_FILTER_NAME | is present |

    Or you need to populate that value first and verify the value.

    | populate field | FIELD_LABEL or [INDEX] or FIELD_LABEL[INDEX] | with | VALUE(S) |
    | verify field | FIELD_LABEL or [FIELD_INDEX] or FIELD_LABEL[INDEX] | contains | VALUES() |.

    Please let me know if none of the above is not working for you.
Children