This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# cucumber profiles that define settings and require code (including a common support/env.rb file) | |
default: --require features/support/ --require features/step_definitions --format html --out report.html | |
# this profile includes another profile | |
verbose: --verbose --require features/support2/ --profile pretty | |
# sets one option | |
pretty: --format pretty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'watir/screen_capture' | |
include Watir::ScreenCapture | |
# http://wtr.rubyforge.org/rdoc/classes/Watir/ScreenCapture.html | |
screen_capture('screenshot.jpg', true) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# spec/cucumber/formatter/html_spec.rb | |
require File.dirname(__FILE__) + '/../../spec_helper' | |
require File.dirname(__FILE__) + '/spec_helper' | |
require 'cucumber/formatter/html' | |
require 'nokogiri' | |
require 'cucumber/rb_support/rb_language' | |
module Cucumber | |
module Formatter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# detail_reports_page.rb | |
# | |
class DetailReportsPage < ::Taza::Page | |
element(:add_report) {browser.link(:href, 'javascript:createReport();')} | |
field(:level_dropdown) {browser.select_list(:name, 'Level')} | |
end | |
# | |
# steps.rb |
NewerOlder