BDD with Cucumber and RSpec. Marcus Ahnve Valtech

Size: px
Start display at page:

Download "BDD with Cucumber and RSpec. Marcus Ahnve Valtech AB [email protected] @mahnve"

Transcription

1 BDD with Cucumber and RSpec Marcus Ahnve Valtech

2 Software Developer Polyglot Programmer About me

3 Q: How many are using Cucumber

4 Q: How many have heard of Cucumber

5 Q: How many are using RSpec

6 Q: How many have heard of RSpec

7 Q: How many are doing TDD/BDD?

8 Q: How many think I am asking too many questions?

9 My BDD history Java and Ruby developer TestDox, Joe Walnes Dan North Dave Astels, Aslak Hellesøy, David Chelimsky

10 $ rake Finished in seconds 285 examples, 0 failures 152 scenarios (152 passed) 1363 steps (1363 passed) 4m4.505s Finished in 8.06 seconds 77 examples, 0 failures

11 Why automatic testing? Make sure it works now Make sure it works whenever

12 Why TDD? Make sure it works now Make sure it works whenever Know when you're done

13 Method Testing class Klazz def method do_something end end class KlazzTest def = Klazz.new end def test_method result assert_equal("expected", result) end end

14 The Context Problem class KlazzTest def = Klazz.new end def test_method result assert_equal(:expected, result) end def test_another_context klazz = Klazz.new(:constructor_args) assert_equal(:expected_2, klazz.do_something) end end

15 Why BDD? Make sure it works now Make sure it works whenever Know when you're done Build just what's needed Design from functionality Documentation - why

16 What is BDD? "BDD is TDD done right" "TDD means 'write the test first'. BDD takes this idea to a more general level: 'write the client first' (the outside)" - Aslak Hellesøy

17 The BDD Flow Write a failing feature Implement feature 0.. * Implement spec Write a failing spec

18 $ rails new blog -T create create README create Rakefile create config.ru create.gitignore create Gemfile create app create app/controllers/application_controller.rb... create vendor/plugins/.gitkeep

19 source ' gem 'rails', '3.0.0' gem 'sqlite3-ruby', :require => 'sqlite3' group :test do gem 'rspec-rails' gem 'cucumber-rails' gem 'capybara' end

20 $ bundle install master(mon,apr04) Fetching source index for Using rake (0.8.7)... Installing rack (1.2.2) Installing rack-mount (0.6.14)... Installing gherkin (2.3.5) with native extensions Installing term-ansicolor (1.0.5) Installing cucumber (0.10.2) Installing cucumber-rails (0.4.0)... Installing rspec (2.5.0) Installing rspec-rails (2.5.0) Using sqlite3 (1.3.3) Using sqlite3-ruby (1.3.3)

21 $ rake db:migrate

22 $ rails generate cucumber:install create config/cucumber.yml create script/cucumber chmod script/cucumber create features/step_definitions create features/step_definitions/web_steps.rb create features/support create features/support/paths.rb create features/support/selectors.rb create features/support/env.rb exist lib/tasks create lib/tasks/cucumber.rake gsub config/database.yml gsub config/database.yml force config/database.yml

23 $ rails generate rspec:install master(mon,apr04) create.rspec create spec create spec/spec_helper.rb

24 Feature: User writes blog post In order for other people to read brilliant thoughts A user can post a blog post Scenario: Given I am on the new blog post page When I write a blog post And it has the title "My great Idea" And it has the body "Body body body" And I press "Save" Then I should see "My great Idea"

25 $ rake 1 scenario (1 failed) 6 steps (1 failed, 2 skipped, 3 undefined) 0m1.103s You can implement step definitions for undefined steps with these snippets:

26 When /^I write a blog post$/ do pending # express the regexp above with the code you wish you had end When /^it has the title "([^"]*)"$/ do arg1 pending # express the regexp above with the code you wish you had end When /^it has the body "([^"]*)"$/ do arg1 pending # express the regexp above with the code you wish you had end

27 $ rake Given I am on the new blog post page # features/step_definitions/web_steps.rb:44 Can't find mapping from "the new blog post page" to a path. Now, go and add a mapping in /home/mahnve/src/presentations/cucumber/src/blog/features/su

28 module NavigationHelpers def path_to(page_name) case page_name when /the home\s?page/ '/' when /the new blog post page/ '/blog_posts/new'

29 $ rake Scenario: # features/user_writes_blogpost.feature:6 Given I am on the new blog post page # features/step_definitions/web_steps.rb:44 No route matches "/blogpost/new" (ActionController::RoutingError)

30 $ rails generate resource BlogPost title:string body:string invoke active_record create db/migrate/ _create_blog_posts.rb create app/models/blog_post.rb invoke test_unit create test/unit/blog_post_test.rb create test/fixtures/blog_posts.yml invoke controller create app/controllers/blog_posts_controller.rb invoke erb create app/views/blog_posts invoke test_unit create test/functional/blog_posts_controller_test.rb invoke helper create app/helpers/blog_posts_helper.rb invoke test_unit create test/unit/helpers/blog_posts_helper_test.rb route resources :blog_posts

31 $ rake (in /home/mahnve/src/presentations/cucumber/src/blog) You have 1 pending migrations: CreateBlogPosts

32 class CreateBlogPosts < ActiveRecord::Migration def self.up create_table :blog_posts do t t.string :title t.string :body t.timestamps end end def self.down drop_table :blog_posts end end

33 $ rake db:migrate (in /home/mahnve/src/presentations/cucumber/src/blog) == CreateBlogPosts: migrating ====================================== -- create_table(:blog_posts) -> s == CreateBlogPosts: migrated (0.0010s) ================================

34 $ rake Given I am on the new blog post page # features/step_definitions/web_steps.rb:44 The action 'new' could not be found for BlogPostsController (AbstractController::ActionNotFound

35 gem 'inherited_resources'

36 class BlogPostsController < InheritedResources::Base end

37 $ rake Missing template blog_posts/new with...

38 gem 'formtastic' gem 'haml'

39 - do form = form.inputs = form.buttons

40 $ rake Given I am on the new blog post page # features/step_definitions/web_steps.rb:44 When I write a blog post # features/step_definitions/blogpost_steps.rb:1 TODO (Cucumber::Pending)./features/step_definitions/blogpost_steps.rb:2:in `/^I write a blog post$/'

41 Oops Steps where not really optimal

42 When /^I write a blog post with title "([^"]*)" and the body "([^"]*)"$/ do fill_in 'Title', :with => title fill_in 'Body', :with => body end

43 Given I am on the new blog post page When I write a blog post with title "My great Idea" and body "Body body body" And I press "Create Blog post" Then I should see "My great Idea"

44 $ rake... Missing template blog_posts/show

45

46 Scenario: Create without title Given I am on the new blog post page When I write a blog post without a title And I press "Create Blog post" Then I should see "can't be blank"

47 $ rake Then I should see "Required" # features/step_definitions/web_steps.rb:105 expected #has_content?("required") to return true, got false (RSpec::Expectations::Expectatio

48 require 'spec_helper' describe BlogPost do it {should validate_presence_of :title} end

49 group :test, :development do gem 'rspec-rails' end group :test do gem 'cucumber-rails' gem 'capybara' gem 'database_cleaner' gem 'shoulda-matchers' end

50 $ rake 1) BlogPost Failure/Error: it {should validate_presence_of :title} Expected errors to include "can't be blank" when title is set to nil, got no errors

51 class BlogPost < ActiveRecord::Base validates_presence_of :title end

52 $ rake. Finished in seconds 1 example, 0 failures 2 scenarios (2 passed) 8 steps (8 passed) 0m1.084s

53 Java package cukes; import cuke4duke.annotation.i18n.en.given; public class BlogPostSteps write a blog post with title \\"([^\\"]*)\\" and body \\"([^\\"]*)\\ public void writeblogpost (String title, String body) {... } }

54 Groovy this.metaclass.mixin(cuke4duke.groovydsl) Given(~/^I write a blog post with title "([^"]*)" and body "([^"]*)"$/) { String title, String body... }

55 Thank You!

Behavior Driven Development

Behavior Driven Development Behavior Driven Development For Ruby on Rails Using Cucumber, Capybara, Rspec, Selenium-WebDriver, Rcov, Launchy, etc... James Mason, @bear454 Friday, June 18, 2010 SUSE Appliance Hack Week /me grumbles.

More information

Cucumber: Finishing the Example. CSCI 5828: Foundations of Software Engineering Lecture 23 04/09/2012

Cucumber: Finishing the Example. CSCI 5828: Foundations of Software Engineering Lecture 23 04/09/2012 Cucumber: Finishing the Example CSCI 5828: Foundations of Software Engineering Lecture 23 04/09/2012 1 Goals Review the contents of Chapters 9 and 10 of the Cucumber textbook Testing Asynchronous Systems

More information

Application Testing with Capybara

Application Testing with Capybara Application Testing with Capybara Matthew Robbins Chapter No. 1 "Your First Scenario with Capybara" In this package, you will find: A Biography of the author of the book A preview chapter from the book,

More information

Most of the security testers I know do not have

Most of the security testers I know do not have Most of the security testers I know do not have a strong background in software development. Yes, they maybe know how to hack java, reverse-engineer binaries and bypass protection. These skills are often

More information

Guides.rubyonrails.org

Guides.rubyonrails.org More at rubyonrails.org: Overview Download Deploy Code Screencasts Documentation Ecosystem Community Blog Guides.rubyonrails.org Ruby on Rails Guides (v3.2.2) These are the new guides for Rails 3.2 based

More information

Evaluation. Chapter 1: An Overview Of Ruby Rails. Copy. 6) Static Pages Within a Rails Application... 1-10

Evaluation. Chapter 1: An Overview Of Ruby Rails. Copy. 6) Static Pages Within a Rails Application... 1-10 Chapter 1: An Overview Of Ruby Rails 1) What is Ruby on Rails?... 1-2 2) Overview of Rails Components... 1-3 3) Installing Rails... 1-5 4) A Simple Rails Application... 1-6 5) Starting the Rails Server...

More information

Cucumber and Capybara

Cucumber and Capybara Cucumber and Capybara A commons case study old vs new old new testingframework test-unit v1 cucumber browser-driver pure selenium v1 capybara vs Plain text scenarios with features Step definitions shamelessly

More information

Building and Deploying Web Scale Social Networking Applications Using Ruby on Rails and Oracle. Kuassi Mensah Group Product Manager

Building and Deploying Web Scale Social Networking Applications Using Ruby on Rails and Oracle. Kuassi Mensah Group Product Manager Building and Deploying Web Scale Social Networking Applications Using Ruby on Rails and Oracle Kuassi Mensah Group Product Manager The following is intended to outline our general product direction. It

More information

Rake Task Management Essentials

Rake Task Management Essentials Rake Task Management Essentials Andrey Koleshko Chapter No. 8 "Testing Rake Tasks" In this package, you will find: A Biography of the author of the book A preview chapter from the book, Chapter NO.8 "Testing

More information

The Cucumber Book. Extracted from: Behaviour-Driven Development for Testers and Developers. The Pragmatic Bookshelf

The Cucumber Book. Extracted from: Behaviour-Driven Development for Testers and Developers. The Pragmatic Bookshelf Extracted from: The Cucumber Book Behaviour-Driven Development for Testers and Developers This PDF file contains pages extracted from The Cucumber Book, published by the Pragmatic Bookshelf. For more information

More information

1. Was ist das? II. Wie funktioniert das? III. Wo funktioniert das nicht?

1. Was ist das? II. Wie funktioniert das? III. Wo funktioniert das nicht? RubyOnRails Jens Himmelreich 1. Was ist das? II. Wie funktioniert das? III. Wo funktioniert das nicht? 1. Was ist das? abstrakt RubyOnRails RubyOnRails Ruby Programmiersprache * 24. 2. 1993 geboren Yukihiro

More information

The NetBeans TM Ruby IDE: You Thought Rails Development Was Fun Before

The NetBeans TM Ruby IDE: You Thought Rails Development Was Fun Before The NetBeans TM Ruby IDE: You Thought Rails Development Was Fun Before Tor Norbye and Brian Leonard Sr. Software Engineers Sun Microsystems TS-5249 Learn how to jump-start your Ruby and Rails development

More information

SERVICE-ORIENTED DESIGN WITH RUBY AND RAILS

SERVICE-ORIENTED DESIGN WITH RUBY AND RAILS SERVICE-ORIENTED DESIGN WITH RUBY AND RAILS SERVICE-ORIENTED DESIGN WITH RUBY AND RAILS Paul Dix Upper Saddle River, NJ Boston Indianapolis San Francisco New York Toronto Montreal London Munich Paris Madrid

More information

Hudson Continous Integration Server. Stefan Saasen, [email protected]

Hudson Continous Integration Server. Stefan Saasen, stefan@coravy.com Hudson Continous Integration Server Stefan Saasen, [email protected] Continous Integration Software development practice Members of a team integrate their work frequently Each integration is verified by

More information

Pete Helgren [email protected]. Ruby On Rails on i

Pete Helgren pete@valadd.com. Ruby On Rails on i Pete Helgren [email protected] Ruby On Rails on i Value Added Software, Inc 801.581.1154 18027 Cougar Bluff San Antonio, TX 78258 www.valadd.com www.petesworkshop.com (c) copyright 2014 1 Agenda Primer on

More information

RailsApps Project Subscription Site with Recurly

RailsApps Project Subscription Site with Recurly RailsApps Project Subscription Site with Recurly Ruby on Rails tutorial for recurring billing using Recurly. Use for a Rails membership site, subscription site, or SaaS site (software-as-a-service). Contents

More information

How To Create A Model In Ruby 2.5.2.2 (Orm)

How To Create A Model In Ruby 2.5.2.2 (Orm) Gastvortrag Datenbanksysteme: Nils Haldenwang, B.Sc. 1 Institut für Informatik AG Medieninformatik Models mit ActiveRecord 2 Model: ORM pluralisierter snake_case Tabelle: users Klasse: User id first_name

More information

Lecture 3 ActiveRecord Rails persistence layer

Lecture 3 ActiveRecord Rails persistence layer Lecture 3 ActiveRecord Rails persistence layer Elektroniczne Przetwarzanie Informacji 9 maja 2013 Aga ActiveRecord basics Query language Associations Validations Callbacks ActiveRecord problems Alternatives

More information

Rails 4 Quickly. Bala Paranj. www.rubyplus.com

Rails 4 Quickly. Bala Paranj. www.rubyplus.com Rails 4 Quickly Bala Paranj 1 About the Author Bala Paranj has a Master s degree in Electrical Engineering from The Wichita State University. He has over 15 years of experience in the software industry.

More information

Content Management System (Dokument- og Sagsstyringssystem)

Content Management System (Dokument- og Sagsstyringssystem) Content Management System (Dokument- og Sagsstyringssystem) Magloire Segeya Kongens Lyngby 2010 IMM-B.Eng-2010-45 Technical University of Denmark DTU Informatics Building 321,DK-2800 Kongens Lyngby,Denmark

More information

Installing Rails 2.3 Under CentOS/RHEL 5 and Apache 2.2

Installing Rails 2.3 Under CentOS/RHEL 5 and Apache 2.2 Installing Rails 2.3 Under CentOS/RHEL 5 and Apache 2.2 Scott Taylor Tailor Made Software July 24, 2011 Version 1.2 1.0 Introduction Ruby On Rails (aka just Rails ) is a modern scripting system that allows

More information

This tutorial has been designed for beginners who would like to use the Ruby framework for developing database-backed web applications.

This tutorial has been designed for beginners who would like to use the Ruby framework for developing database-backed web applications. About the Tutorial Ruby on Rails is an extremely productive web application framework written in Ruby by David Heinemeier Hansson. This tutorial gives you a complete understanding on Ruby on Rails. Audience

More information

CS169.1x Lecture 5: SaaS Architecture and Introduction to Rails " Fall 2012"

CS169.1x Lecture 5: SaaS Architecture and Introduction to Rails  Fall 2012 CS169.1x Lecture 5: SaaS Architecture and Introduction to Rails " Fall 2012" 1" Web at 100,000 feet" The web is a client/server architecture" It is fundamentally request/reply oriented" Web browser Internet

More information

Ruby On Rails. CSCI 5449 Submitted by: Bhaskar Vaish

Ruby On Rails. CSCI 5449 Submitted by: Bhaskar Vaish Ruby On Rails CSCI 5449 Submitted by: Bhaskar Vaish What is Ruby on Rails? Ruby on Rails is a web application framework written in Ruby, a dynamic programming language. Ruby on Rails uses the Model-View-Controller

More information

How To Write A Book Purchase On An Ipad With A Bookshop On A Pcode On A Linux 2.5.2 (Windows) On A Macbook 2.2.2 On A Microsoft Powerbook 2 (Windows 2.

How To Write A Book Purchase On An Ipad With A Bookshop On A Pcode On A Linux 2.5.2 (Windows) On A Macbook 2.2.2 On A Microsoft Powerbook 2 (Windows 2. 4. Getting started with Cucumber Our first Cucumber project We are finally ready to add Cucumber to our testing toolbox. The downloaded source has a project we will start with. The project is in the learn_cucumber

More information

The IBM i on Rails + + Anthony Avison [email protected]. Copyright 2014 PowerRuby, Inc.

The IBM i on Rails + + Anthony Avison anthony@powerruby.com. Copyright 2014 PowerRuby, Inc. The IBM i on Rails + + Anthony Avison [email protected] Copyright 2014 PowerRuby, Inc. Rails on the the IBM i + + Anthony Avison [email protected] Copyright 2014 PowerRuby, Inc. There's something

More information

Writing Software not code With. Ben Mabey

Writing Software not code With. Ben Mabey Writing Software not code With Ben Mabey Writing Software not code With Ben Mabey Writing Software not code With Behaviour Driven Development Ben Mabey ? Tweet in the blanks... "most software projects

More information

Web Framework Performance Examples from Django and Rails

Web Framework Performance Examples from Django and Rails Web Framework Performance Examples from Django and Rails QConSF 9th November 2012 www.flickr.com/photos/mugley/5013931959/ Me Gareth Rushgrove Curate devopsweekly.com Blog at morethanseven.net Text Work

More information

Enterprise Recipes with Ruby and Rails

Enterprise Recipes with Ruby and Rails Extracted from: Enterprise Recipes with Ruby and Rails This PDF file contains pages extracted from Enterprise Recipes with Ruby and Rails, published by the Pragmatic Bookshelf. For more information or

More information

Comparison of modern web frameworks. Nikita Klyukin

Comparison of modern web frameworks. Nikita Klyukin Comparison of modern web frameworks Nikita Klyukin Bachelor s Thesis Degree Programme in BITE 2014 Abstract Päiväys Date Author(s) Nikita Klyukin Degree programme BITE Report/thesis title Comparison of

More information

Unit and Functional Testing for the ios Platform. Christopher M. Judd

Unit and Functional Testing for the ios Platform. Christopher M. Judd Unit and Functional Testing for the ios Platform Christopher M. Judd Christopher M. Judd President/Consultant of leader Columbus Developer User Group (CIDUG) Remarkable Ohio Free Developed for etech Ohio

More information

Ruby on Rails on Minitest

Ruby on Rails on Minitest Ruby on Rails on Minitest 1 Setting Expectations Introductory Talk. Very Little Code. Not going to teach testing or TDD. What & why, not how. 218 Slides, 5.45 SPM. 2 WTF is minitest? 3 What is Minitest?

More information

Ruby on Rails Web Mashup Projects

Ruby on Rails Web Mashup Projects Ruby on Rails Web Mashup Projects A step-by-step tutorial to building web mashups Chang Sau Sheong Chapter No. 2 "'Find closest' mashup plugin" In this package, you will find: A Biography of the author

More information

Installing Rails 2.3 Under Windows XP and Apache 2.2

Installing Rails 2.3 Under Windows XP and Apache 2.2 Installing Rails 2.3 Under Windows XP and Apache 2.2 Scott Taylor Tailor Made Software August 9, 2011 Version 1.0 1.0 Introduction Ruby On Rails (aka just Rails ) is a modern scripting system that allows

More information

Tools and Integration

Tools and Integration CHAPTER 8 Tools and Integration The Puppet community has written many tools for Puppet. In this chapter, we will cover a variety of these tools to help you write better modules and increase productivity.

More information

Certified Redmine Project Management Professional Sample Material

Certified Redmine Project Management Professional Sample Material Certified Redmine Project Management Professional Sample Material 1. INSTALLATION 1.1. Installing Redmine This is the installation documentation for Redmine 1.4.0 and higher. You can still read the document

More information

Capybara. Exemplos de configuração. Com cucumber-rails. Com cucumber sem Rails. Tags para uso de JS. Nos steps do cucumber. Utilizando com RSpec

Capybara. Exemplos de configuração. Com cucumber-rails. Com cucumber sem Rails. Tags para uso de JS. Nos steps do cucumber. Utilizando com RSpec Capybara Exemplos de configuração Com cucumber-rails Com cucumber sem Rails rails generate cucumber:install -- capybara require 'capybara/cucumber' Capybara.app = MyRackApp Nos steps do cucumber When /I

More information

Comparing Dynamic and Static Language Approaches to Web Frameworks

Comparing Dynamic and Static Language Approaches to Web Frameworks Comparing Dynamic and Static Language Approaches to Web Frameworks Neil Brown School of Computing University of Kent UK 30 April 2012 2012-05-01 Comparing Dynamic and Static Language Approaches to Web

More information

Ruby & Ruby on Rails for arkitekter. Kim Harding Christensen [email protected]

Ruby & Ruby on Rails for arkitekter. Kim Harding Christensen khc@kimharding.com Ruby & Ruby on Rails for arkitekter Kim Harding Christensen [email protected] Aga Intro & problemstilling Introduktion til Ruby DSL er Introduktion til Ruby on Rails Begreber (MVC & REST) Demo Intro Kim

More information

The Other mod_rails: Easy Rails Deployment with JRuby. Nick Sieger Sun Microsystems, Inc

The Other mod_rails: Easy Rails Deployment with JRuby. Nick Sieger Sun Microsystems, Inc The Other mod_rails: Easy Rails Deployment with JRuby Nick Sieger Sun Microsystems, Inc CGI/FCGI Mongrel omg puppiez! not nirvana... Processes: 68 total, 3 running, 1 stuck, 64 sleeping... 309 threads

More information

Open Source in Mobile Test Automation. Ru Cindrea - Altom [email protected]

Open Source in Mobile Test Automation. Ru Cindrea - Altom ru@altom.ro Open Source in Mobile Test Automation Ru Cindrea - Altom [email protected] About me software tester since 2002 BS in Computer Science 7 years of mobile application testing testing consultant and managing partner

More information

RESTful Rails Development. translated by Florian Görsdorf and Ed Ruder

RESTful Rails Development. translated by Florian Görsdorf and Ed Ruder RESTful Rails Development Ralf Wirdemann [email protected] Thomas Baustert [email protected] translated by Florian Görsdorf and Ed Ruder March 26, 2007 Acknowledgments Many thanks go

More information

Brakeman and Jenkins: The Duo Detects Defects in Ruby on Rails Code

Brakeman and Jenkins: The Duo Detects Defects in Ruby on Rails Code Brakeman and Jenkins: The Duo Detects Defects in Ruby on Rails Code Justin Collins Tin Zaw AppSec USA September 23, 2011 About Us Justin Collins - @presidentbeef Tin Zaw - @tzaw Our Philosophy: Light Touch

More information

Outline. Lecture 18: Ruby on Rails MVC. Introduction to Rails

Outline. Lecture 18: Ruby on Rails MVC. Introduction to Rails Outline Lecture 18: Ruby on Rails Wendy Liu CSC309F Fall 2007 Introduction to Rails Rails Principles Inside Rails Hello World Rails with Ajax Other Framework 1 2 MVC Introduction to Rails Agile Web Development

More information

Why Ruby On Rails? Aaron Bartell [email protected]. Copyright 2014 PowerRuby, Inc.

Why Ruby On Rails? Aaron Bartell aaron@powerruby.com. Copyright 2014 PowerRuby, Inc. Why Ruby On Rails? + Aaron Bartell [email protected] Copyright 2014 PowerRuby, Inc. There's something special going on with Ruby and Rails. Never before has there been such coordinated community efforts

More information

Ruby On Rails A Cheatsheet. Ruby On Rails Commands

Ruby On Rails A Cheatsheet. Ruby On Rails Commands Ruby On Rails A Cheatsheet blainekall.com Ruby On Rails Commands gem update rails rails application rake appdoc rake --tasks rake stats ruby script/server update rails create a new application generate

More information

Ruby on Rails. Computerlabor

Ruby on Rails. Computerlabor Ruby on Rails Computerlabor Ablauf Einführung in Ruby Einführung in Ruby on Rails ActiveRecord ActionPack ActiveResource Praxis Ruby Stichworte 1995 erschienen, Open Source Entwickelt von Yukihoro Matsumoto

More information

Ruby on Rails (Ruby 1.9.2, Rails 3.1.1) Installation

Ruby on Rails (Ruby 1.9.2, Rails 3.1.1) Installation Ruby on Rails (Ruby 1.9.2, Rails 3.1.1) Installation Ubuntu 11.10, 11.04 desktop or server (or on Linux Mint 11, 12) (You are welcomed to share this PDF freely, with no commercial purposes) First, we will

More information

A Puppet Approach To Application Deployment And Automation In Nokia. Oliver Hookins Principal Engineer Services & Developer Experience

A Puppet Approach To Application Deployment And Automation In Nokia. Oliver Hookins Principal Engineer Services & Developer Experience A Puppet Approach To Application Deployment And Automation In Nokia Oliver Hookins Principal Engineer Services & Developer Experience Who am I? - Rockstar SysAdmin Who am I? - Puppet User since 0.23 -

More information

Installing Ruby on Windows XP

Installing Ruby on Windows XP Table of Contents 1 Installation...2 1.1 Installing Ruby... 2 1.1.1 Downloading...2 1.1.2 Installing Ruby...2 1.1.3 Testing Ruby Installation...6 1.2 Installing Ruby DevKit... 7 1.3 Installing Ruby Gems...

More information

The Learn-Verified Full Stack Web Development Program

The Learn-Verified Full Stack Web Development Program The Learn-Verified Full Stack Web Development Program Overview This online program will prepare you for a career in web development by providing you with the baseline skills and experience necessary to

More information

Agile Web Development with Rails 4

Agile Web Development with Rails 4 Extracted from: Agile Web Development with Rails 4 This PDF file contains pages extracted from Agile Web Development with Rails 4, published by the Pragmatic Bookshelf. For more information or to purchase

More information

Testing Frameworks (MiniTest)

Testing Frameworks (MiniTest) Testing Frameworks (MiniTest) Computer Science and Engineering College of Engineering The Ohio State University Lecture 32 MiniTest and RSpec Many popular testing libraries for Ruby MiniTest (replaces

More information

Project(Submission(&(Assignment(System( PROJECT(REPORT(

Project(Submission(&(Assignment(System( PROJECT(REPORT( Project(Submission(&(Assignment(System( PROJECT(REPORT( Team(Jarvice( CSCE$606:SoftwareEngineering,Spring2015 Team(Members:( Deep Desai Jasmeet Singh Prannay Jain Pawan Kumar Singh Samaksh Kapoor Sai Spandana

More information

New Relic & JMeter - Perfect Performance Testing

New Relic & JMeter - Perfect Performance Testing TUTORIAL New Relic & JMeter - Perfect Performance Testing by David Sale Contents Introduction 3 Demo Application 4 Hooking Into New Relic 4 What Is JMeter? 6 Installation and Usage 6 Analysis In New Relic

More information

Dasharatham Bitla (Dash) [email protected] http://mobilog.bitlasoft.com www.bitlasoft.com

Dasharatham Bitla (Dash) dash@bitlasoft.com http://mobilog.bitlasoft.com www.bitlasoft.com Building Mobile (Smartphone) Apps with Ruby & HTML An introduction to Rhodes Dasharatham Bitla (Dash) [email protected] http://mobilog.bitlasoft.com www.bitlasoft.com Smartphones Market Smartphones sales

More information

Installation overview

Installation overview hroot - Hamburg registration and organization online tool Universität Hamburg School of Business, Economics and Social Sciences WiSo- Research Laboratory Von- Melle- Park 5 20146 Hamburg Germany Installation

More information

Ocean Support Tips and Tricks Webinar November 2015

Ocean Support Tips and Tricks Webinar November 2015 2015 Schlumberger Information Solutions All rights reserved V20151 2015 Schlumberger Information Solutions All rights reserved V20151 2015 Schlumberger Information Solutions All rights reserved V20151

More information

Praise for Michael Hartl s Books and Videos on Ruby on Rails

Praise for Michael Hartl s Books and Videos on Ruby on Rails Praise for Michael Hartl s Books and Videos on Ruby on Rails My former company (CD Baby) was one of the first to loudly switch to Ruby on Rails, and then even more loudly switch back to PHP (Google me

More information

automated acceptance testing of mobile apps

automated acceptance testing of mobile apps automated acceptance testing of mobile apps Karl Krukow, CTO, LessPainful Goto Aarhus, 2012 [email protected], @karlkrukow 1 Agenda Automated testing for mobile desirable properties for an acceptance

More information

Apache Thrift and Ruby

Apache Thrift and Ruby Apache Thrift and Ruby By Randy Abernethy In this article, excerpted from The Programmer s Guide to Apache Thrift, we will install Apache Thrift support for Ruby and build a simple Ruby RPC client and

More information

Ruby on Rails in GlassFish [email protected] http://weblogs.java.net/blog/vivekp/ Sun Microsystems

Ruby on Rails in GlassFish Vivek.Pandey@Sun.COM http://weblogs.java.net/blog/vivekp/ Sun Microsystems Ruby on Rails in GlassFish [email protected] http://weblogs.java.net/blog/vivekp/ Sun Microsystems Ruby On Rails in GlassFish 1 Agenda Introduction to RoR What is JRuby? GlassFish overview RoR on GlassFish

More information

Ruby on Rails is a web application framework written in Ruby, a dynamically typed programming language The amazing productivity claims of Rails is

Ruby on Rails is a web application framework written in Ruby, a dynamically typed programming language The amazing productivity claims of Rails is Chris Panayiotou Ruby on Rails is a web application framework written in Ruby, a dynamically typed programming language The amazing productivity claims of Rails is the current buzz in the web development

More information

Deep in the CRUD LEVEL 1

Deep in the CRUD LEVEL 1 Deep in the CRUD LEVEL 1 Prerequisites: TryRuby.org TwitteR for ZOMBIES {tweets Columns (we have 3) DB TABLE Rows { (we have 4) id status zombie Zombie Challenge #1 Retrieve the Tweet object with id =

More information

CompSci 125 Lecture 08. Chapter 5: Conditional Statements Chapter 4: return Statement

CompSci 125 Lecture 08. Chapter 5: Conditional Statements Chapter 4: return Statement CompSci 125 Lecture 08 Chapter 5: Conditional Statements Chapter 4: return Statement Homework Update HW3 Due 9/20 HW4 Due 9/27 Exam-1 10/2 Programming Assignment Update p1: Traffic Applet due Sept 21 (Submit

More information

Continuous integration with Jenkins CI

Continuous integration with Jenkins CI Continuous integration with Jenkins CI Vojtěch Juránek JBoss - a division by Red Hat 17. 2. 2012, Developer conference, Brno Vojtěch Juránek (Red Hat) Continuous integration with Jenkins CI 17. 2. 2012,

More information

Curriculum Vitae. Gastón Ramos - http://gastonramos.com.ar

Curriculum Vitae. Gastón Ramos - http://gastonramos.com.ar Curriculum Vitae Gastón Ramos - http://gastonramos.com.ar Personal Data Email: [email protected] D.N.I: 26.289.622 Nationality: Argentinian Born at: Santa Fe (Santa Fe, Argentina) Born Date: November

More information

Infopark CMS Fiona. Rails Connector for CMS Fiona

Infopark CMS Fiona. Rails Connector for CMS Fiona Infopark CMS Fiona Rails Connector for CMS Fiona Infopark CMS Fiona Rails Connector for CMS Fiona While every precaution has been taken in the preparation of all our technical documents, we make no expressed

More information

Overview. What is software testing? What is unit testing? Why/when to test? What makes a good test? What to test?

Overview. What is software testing? What is unit testing? Why/when to test? What makes a good test? What to test? Testing CMSC 202 Overview What is software testing? What is unit testing? Why/when to test? What makes a good test? What to test? 2 What is Software Testing? Software testing is any activity aimed at evaluating

More information

Scaling Rails with memcached

Scaling Rails with memcached Scaling Rails with memcached One Rubyist s Guide to Hazardous Hits memcached is your best fri and your worst enemy. 1 Who is this kid? CNET Networks PHP Developer GameSpot TV.com Rails Developer Chowhound

More information

Rebuilding Rails. Get Your Hands Dirty and Build Your Own Ruby Web Framework. DRM-free. Please copy for yourself and only yourself.

Rebuilding Rails. Get Your Hands Dirty and Build Your Own Ruby Web Framework. DRM-free. Please copy for yourself and only yourself. Rebuilding Rails Get Your Hands Dirty and Build Your Own Ruby Web Framework DRM-free. Please copy for yourself and only yourself. Locomotive Construction, New South Wales State Records (C) Noah Gibbs,

More information

A Beginner's Guide to Security with Ruby on Rails in BSD. Corey Benninger

A Beginner's Guide to Security with Ruby on Rails in BSD. Corey Benninger A Beginner's Guide to Security with Ruby on Rails in BSD Corey Benninger What's on Tap? Ruby on Rails BSD Security What's on Tap? Better able to securely develop, harden, and maintain Rails based applications.

More information

Makumba and Ruby on Rails

Makumba and Ruby on Rails Makumba and Ruby on Rails Comparing two web development frameworks SEBASTIAN ÖHRN Bachelor of Science Thesis Stockholm, Sweden 2010 Makumba and Ruby on Rails Comparing two web development frameworks SEBASTIAN

More information

J a v a Quiz (Unit 3, Test 0 Practice)

J a v a Quiz (Unit 3, Test 0 Practice) Computer Science S-111a: Intensive Introduction to Computer Science Using Java Handout #11 Your Name Teaching Fellow J a v a Quiz (Unit 3, Test 0 Practice) Multiple-choice questions are worth 2 points

More information