FlexUnit - howto check label text

Posted by Maik on Stack Overflow See other posts from Stack Overflow or by Maik
Published on 2010-05-13T17:30:09Z Indexed on 2010/05/13 17:34 UTC
Read the original article Hit count: 352

I am trying to automatically verify certain conventions, such as label/table column header text (Sentence Case, use of colons, etc).

It would be nice if there was a way in FlexUnit, or other means, to

  • Iterate over all views in the app
  • Get all titles, labels, column headers
  • Run some pattern checks and fail where needed.

Does anyone have a suggestion on what the best way would be to achieve that? I suppose I could do this on a code level on the MXML files, but it would be nicer if it could be integrated into the overall unit test suits.

Thanks for any suggestions

© Stack Overflow or respective owner

Related posts about flex

Related posts about flexunit