-
Book Overview & Buying
-
Table Of Contents
Cucumber Cookbook
By :
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can include other contexts through the use of the include directive."
A block of code is set as follows:
@When("^user enters \"(.*?)\" in username field$")
public void user_enters_in_username_field(String userName) {
//print the value of data passed from Feature file
System.out.println(userName);
}When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
Scenario: checking pre-condition, action and results
Given user is on Application landing page
When user clicks Sign in button
Then user is on login screenAny command-line input or output is written as follows:
mvn test -Dcucumber.options="--tags @sanity"
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Click on the timestamp on the build. And then click on Console Output."
Warnings or important notes appear in a box like this.
Tips and tricks appear like this.
Change the font size
Change margin width
Change background colour