Step autocompletion
Last updated
Last updated
Writing scenarios has become significantly more pleasant with the addition of the step autocompletion feature.
As you edit testgrinder scenarios, as soon as you enter a step keyword (Given, When, Then, And, or But) and a first letter of a step, testgrinder will offer you a list of suggested steps. As you continue typing, the list will refine to match what you've typed in so far. At any point you may review the suggested steps by using the Up and Down arrow keys. As you go through the steps, you will see the description of each step to the right of the list. Once you find the step you need, press Enter to select it. If the step has variable parts, the first part will be highlighted and you may start entering its value immediately. To move on to the next variable part, press Tab and enter its value. Once you've entered the last part, pressing Tab will move the cursor to the end of the step, and which point you may press Enter to accept the step. Any time before you press the Enter key, you may go to any of the previously entered variable parts by pressing Shift and Tab simultaneously.
This video provides a few hints on how to use the autocompletion: