Using free text parameters

One really useful feature of the Gherkin syntax is the ability to define docstrings, a special parameter that can contain multiple lines (for example the excepted content of a web page or an email).

Hiptest also allows you to define that kind of parameters when writing a test. Let’s consider the test below:

Free text parameters example on Hiptest

It would be really interesting to also check the content of the email. To do so, let’s add a free text parameter. This can be done by clicking the “speech” icon in the gray area in front of the action word. Once this is done, a field appears to enter the content of the parameter:

Add free text on Hiptest

Now it is possible to fill the content of the parameter, for example:

Free text example on Hiptest

Now, if we have a look at the action word “an email is sent to”, we’ll see that a parameter as been added called “__free_text”:

Hiptest free text parameter name

Note that it is important to keep the name “__free_text” for this parameter, otherwise it will be shown as a classical parameter in a single-line text field.

Download the ebook

This field is required

This field is required

Please enter a valid email address

Thank you, the ebook has been sent to your mailbox

Hiptest is FREE for open source projects

We actually utilize a number of open source components, which is why Hiptest service is free for any open source project. We are giving back to the community!

Your open source project must meet the following criteria to be approved:

  • Your project is licensed under a license approved by the Open Source Initiative
  • Your project source code is available for download
  • Your project has a publicly accessible website

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close