Fitnesse : How to validate bullet list text ?

Hi All,

I have a bullet list with text as mentioned below . Please can you help me in validating the same ? I tried few methods but it didn't work out .

 

Example :-

Instructions

  • To accommodate all templates, the questions are nested within subsections and sections.
  • To create a question, just add a section and the subsection within it. There you can group questions within a subsection.
  • Cancelling forgets all changes made after saving the template.
  • To edit a Section please click on the section name.
  • You may recover deleted sections until you save it to template.

 

 

Thanks in advance!!

 

  Discussion posts and replies are publicly visible

Parents
  • Can you please elaborate, what are you trying to validate in that bullet list? If you are trying to validate text line by line, then is it possible for you have the text in a local!, do all your validations there and then just pass the local!text to your bullet list to pass the validated text ?
  • Hi aman ,

    Yes, I am trying to validate text present . I tried using below methods but it didn't workout since the text is part of bullet list .

    | verify field | FIELD_LABEL or [FIELD_INDEX] or FIELD_LABEL[INDEX] | contains value | VALUE |

    | verify field | FIELD_LABEL or [FIELD_INEDX] or FIELD_LABEL[INDEX] | is present |

    Please can you give an example and explain . It would be great help!

    This is how it looks :-

Reply
  • Hi aman ,

    Yes, I am trying to validate text present . I tried using below methods but it didn't workout since the text is part of bullet list .

    | verify field | FIELD_LABEL or [FIELD_INDEX] or FIELD_LABEL[INDEX] | contains value | VALUE |

    | verify field | FIELD_LABEL or [FIELD_INEDX] or FIELD_LABEL[INDEX] | is present |

    Please can you give an example and explain . It would be great help!

    This is how it looks :-

Children