1

I found two ways of parameterize, Which one is correct from below

  1. Given Go to < url >

  2. Given Go to "url"

Angular brackets or double quotes, which is the right way of using?

closed as unclear what you're asking by Yu Zhang, NarendraC, IAmMilinPatel, JustARandomGuy, Kate Paulk Oct 12 '16 at 11:44

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

1

Neither. Please read the documentation: https://cucumber.io/docs/reference

  • The <> are used only for Scenario Outline examples.
  • The "" double-quotes are not really needed too parameterize, it just makes it easier to see and read what the parameter is in a sentence, but all the reference examples do not use them.
0

You have not mentioned in details how you have implemented or intent to be implemented. [I will suggest to have practice to add more details for your question.]

  • Seems you wanted to give input of URL to particular step
  • In both above step if you are directly going to keep actual URL then It will not make any major difference

Good practices:

  • What you can do for giving input of URL, you should provide it after/below your this step definition.

  • Instead of hard-coded value in step itself

  • Even better option would be if you can fetch that input from different test_data file

Not the answer you're looking for? Browse other questions tagged or ask your own question.