Skip to content

Snippets CodeTemplates

QuBiT edited this page Sep 13, 2010 · 5 revisions

Since Version 1.4.0 it is possible to customize Snippets / CodeTemplates.
Since Version 1.3.2 it is possible to use Snippets / CodeTemplates.

Available Snippets / Code Templates

abbreviation code
fb
Feature:
        In order to BUSINESS VALUE
        As a ROLE
        I want to ACTION
s Scenario:
sb
Scenario:
        Given a
        When b
        Then c
so Scenario Outline:
sob
Scenario Outline:
        Given a
        When b
        Then c 
Examples:
¦ input ¦ result ¦
¦ a ¦ c ¦
bg Background:
g Given
w When
t Then
a And
b But
e Examples:
eb
Examples:
¦ input ¦ result ¦
¦ a ¦ c ¦
table
¦ input ¦ result ¦
¦ a ¦ c ¦
on am on
gt go to
p press
f follow ""
fw follow "" within ""
fiw fill in "" with ""
fif fill in "" for ""
ftf fill in the following:
sf select "" from ""
sadt select "" as the date and time
saxdt select "" as the "" date and time
sat select "" as the time
saxt select "" as the "" time
sad select "" as the date
saxd select "" as the "" date
c check
uc uncheck
co choose
attach attach the file "" to ""
ss should see ""
ssw should see "" within ""
sns should not see ""
snsw should not see "" within ""
fsc the "" field should contain ""
fsnc the "" field should not contain ""
csc the "" checkbox should be checked
csnc the "" checkbox should not be checked
sbon should be on
query should have the following query string:
smtp show me the page

Impelementation

The Snippets are implemented as described on that page: Link

Adding / Removing

  • Tools → Options → Editor → Code Templates
  • Select “Feature File”
  • Press Add / Remove

Clone this wiki locally