mercredi 6 juin 2018

SpecFlow is it good or bad to use paths and indexes in feature file

I have a table in feature file:

And Response fields should be:
  | FieldToGet              | ExpectedValue |
  | Home/Kitchen[0]/Sink    | Empty         |
  | Home/Bathroom[0]/Toilet | Full          |

And I want to make sure it's not a bad practice to use / or [..].

  • Objects are separated by '/'
  • object index is selected by '[..]'

There can be more than one Kitchen, or Bathroom. Is it not a bad practice?

Thanks

Aucun commentaire:

Enregistrer un commentaire