JBehave. Create and Run a Scenario Three files needed: –Scenario text file with given-when-then format –Java/file class to extend Scenario file –Java.

Slides:



Advertisements
Similar presentations
BEGINNING ESL LESSON. Breakfast is the first meal of the day. We eat breakfast in the morning.
Advertisements

Pancakes are particuarly associated with Pancake day or Shrove Tuesday ; the day before the start of Lent in the Christian calendar. Originally, pancakes.
Cooking Methods Dry Heat and Moist Heat.
Activity © Snapshot Science, 2012Snapshot Science Instructions Create your own pancake flipping force diagrams. Must: Add arrows to represent pairs of.
Deep Fat Frying Dry Heat Cooking method. So…what can you deep fat fry???
PANCAKE RECIPE BY MÉLODY AND CHLOÉ. INGREDIENTS - 500g flour - 5 eggs - 2 packets of vanilla sugar - 1 teaspoon of rum - 1 pinch of salt - 1 small pot.
Measuring Techniques & Recipe Formats
FOOD AND NUTRITION – Unit 8 Terms
How To Make Crepes By Clara Holz. Clara HolzCrepe Powerpoint Gather Your Ingredients get together all of your ingredients Ingredients: -1 cup flour -2.
HOW TO MAKE PANCAKES Alya Amilia Bima Elda Fauzan Rudi 9-3.
By: Maria Atai Date: 12/9/12. INTRODUCTION I am going to talk about how to make homemade pancakes. I chose this topic because my children love pancakes.
ProPowerPoint.Ru Recipe Pineapple - Banana Pancakes.
Crêpe Dominika Ivanecká. It is a type of very thin pancake, usually made from wheat flour.
© 2011 wheresjenny.com PREPARING PANCAKES PANCAKES SERVINGS =8 PANCAKES PREPARATION TIME : 25 MINS.
Fish & Seafood: „Fish And Chips“ The famous English meal.
THE COMENIUS GROUP PRESENTS: „THE SHORT STORY OF COOKING”.
PANCAKES NALEŚNIKI. Pancakes is a simple dish of flour fried in a pan. Pancakes can be given in different ways. You can sprinkle them with sugar or pour.
PANCAKES by Matteo C. 2D. INGREDIENTS ( SERVES: 6 PEOPLE) 450 ml skimmed milk 150 gr caster sugar 2 eggs 1 teaspoon vegetable oil 1 teaspoon vanilla extract.
Make butter milk pancake batter.  Did you know that there is a pancake day?  These breakfast treats can be called hot cakes, and flapjacks  Pancake.
HOW DOES MAKING PANCAKES AFFECT PHYSICAL AND CHEMICAL RELATIONSHIPS? BY: JAISEY, SARIKA, EVAN, ADRIAN.
Combination Cooking Goal 1: Combination Cooking. Combination Cooking combine 2 cooking techniques dry + moist cooking method=combo cooking brown food.
Transition Words Cake Recipe.
GRILLED CHEESE SANDWICH Goal to make grilled cheese sandwich.
Crown copyright 2008 Savoury pancakes Session: #
 200g plain flour  2 tbsp full-fat milk  2 whole free-range eggs  A mixing bowl  A whisk  A frying pan  A small amount of butter.
How to make a pancake By Sophie Draper. Ingredients: Frying pan Large Mixing Bowl Long handled spatula Mixing Spoon 2 Eggs 2 cups of flour 2 ¾ cups of.
By A Group Making pancakes a visual diary. Firstly we had to find a recipe for pancakes. We searched on Google and found one on It.
FRIED EGGS © PDST Home Economics. FRYING IS COOKING FOOD IN HOT FAT ON A FRYING PAN.
Goal: To make a nice looking taco!
» Muffins » Scones » Biscuits » Use chemical leaveners like baking soda and powder.
Standard Recipe Format. Family Recipes – Why is it important to write them down?
Pancakes. Person 1 In a medium size bowl measure 1 c flour 2 T sugar 2 tsp baking powder 3/4 tsp salt - mix thoroughly.
Pancakes: A step-by-step guide
Creative Cooking 2 Egg Cookery Methods.
JAVIER ROJO 1ºB. 4 potatoes A glass of olive oil Some salt 4 eggs 1 onion.
Q How to make pancakes /. 4 cups flour 2 tablespoons of sugar 1 teaspoon of salt two eggs beaten 4 cups of milk oil.
My Favorite Japanese Dish
Egg Basics FACS Standards 8.5.1, 8.5.2, 8.5.3, 8.5.4, 8.5.5, 8.5.6, Kowtaluk, Helen and Orphanos Kopan, Alice. Food For Today. McGraw Hill-Glencoe.
LOOKING INSIDE THE EGG Fried egg. Crack the egg onto a plate and inspect it Look for the chalaza Find the thick albumen Find the thin albumen Do you think.
How to Cook a Fried Egg. How to Cook a Fried Egg.
Preheat the oven's broiler, and set the oven rack about 6 inches from the heat source.
Cooking with Eggs. Scrambled  Break into bowl and beat with fork or whisk until blended  Pour into lightly greased skillet  The thickened egg into.
Fajitas. Male vs Female peppers? Why does it matter? Some people say… 4 bumps- good for eating raw or collecting seeds 3 bumps good for grilling.
Shrove Tuesday is a Christian festival. It is held the day before Lent, which lasts for 40 days. During Lent Christian families were expected to give.
Name: MOHD NORZAT BIN SABRAN Id Number: BO1SPM14F035 Class: SPM2A Tittle: HOW TO MAKE PANCAKES Lecturer: MISS GURMINDERJEET KAUR.
Emma’s apple crumble Vocabulary.
Can I talk about the traditions and celebration of pancake day?
Yummy buttermilk pancakes for Pancake Day Шайдурова Валентина Федоровна Учитель английского языка ГБОУ «Школа №106» Санкт-Петербург 2016.
BANANA PANCAKES At a Glance Prep Time : 20 min Cook Time : 2 min Course : Breakfast, Brunch Type of Prep : Campfire, Fry, Grill Occasion : Birthdays, Christmas,
Crepes!. What is a crepe? A very thin pancake (quick bread), made from a very thin unleavened batter.
How to make Pizza-Dillas By John Hirl. Step 1: Ingredients and Tools 8 flour tortillas 8 ounces of shredded mozzarella cheese 6 ounces of sliced pepperoni.
Pancakes Recipe Directions & History 1 large egg 1 cup all purpose or whole wheat flour 3/4 cup milk 1 Tbsp granulated or packed brown sugar 2 Tbsps.
Pancakes During this lesson you will learn how pancakes are served all around the world. You will learn how to select healthy toppings for your pancakes.
Breakfast Foods.
JBehave.
Knife Skills.
Procedure Text.
Here are two chickens. cockerel hen
Cooking a traditional dish (Yeast pancakes)
Recipes, Videos, and Notes
Breakfast BEGINNING ESL LESSON.
BRITISH FOOD.
Scrolling text repeating until end of slide.
Filet Mignon with Arugula Salad
Pancakes.
Fall foods Part II.
VIAJEROS DEL MUNDO Around The World In 12 Weeks MI COMIDA - Argentina
2 ½ cups self-rising flour
Java External Libraries & Case Study
PANCAKES & WAFFLES.
Presentation transcript:

JBehave

Create and Run a Scenario Three files needed: –Scenario text file with given-when-then format –Java/file class to extend Scenario file –Java steps file for the method shells

Sample scenario text file (make_pancakes_scenario) Scenario: Making pancakes in a skillet Given some pancake batter And a hot frying pan When I pour the batter into the frying pan And wait for 2 minutes or until the sides are dry And flip the pancake over And wait for 1 minute Then I get a cooked pancake

Sample Java file/class (MakePancakesScenario.java) package com.cse.simple.stories; import org.jbehave.scenario.Scenario; public class MakePancakesScenario extends Scenario { public MakePancakesScenario() { super (new PancakeCookingSteps() ); }

Sample Java steps file(1) (PancakeCookingSteps.java) package com.cse.simple.steps; import org.jbehave.core.annotations.Given; import org.jbehave.core.annotations.Then; import org.jbehave.core.annotations.When; public class PancakeCookingSteps pancake batter”) public void howMuchBatter() { // add code for amount of batter frying pan”) public void heatFryingPan() { // add code to determine heat pour the batter into the frying pan”) public void startCooking() { // add code to start cooking } // continued on next slide

Sample Java steps file(2) (PancakeCookingSteps.java) // continued from previous for 2 minutes or until the sides are dry”) public void cookFirstSide() { // add code to cook first side the pancake”) public void flipPancake() { // add code to flip pancake for 1 minute”) public void cookSecondSide() { // add code to cook second side get a cooked pancake”) public void putPancakeOnPlate() { // add code to move pancake from frying pan to plate }