tddium-old 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ =begin
2
+ Copyright (c) 2010 tddium.com All Rights Reserved
3
+ =end
4
+ require 'tddium/tasks'
5
+
6
+ taskmap = {
7
+ :'config:init' => :'tddium:config:init',
8
+ :'config:reset' => :'tddium:config:reset',
9
+ :'dev' => :'tddium:dev',
10
+ :'stopdev' => :'tddium:stopdev',
11
+ :'parallel' => :'tddium:parallel',
12
+ :'sequential' => :'tddium:sequential',
13
+ }
14
+
15
+ taskmap.each do |new, old|
16
+ oldtask = Rake::Task[old]
17
+ task new, oldtask.arg_names => old
18
+ Rake::Task[new].comment = oldtask.comment
19
+ oldtask.clear_comment
20
+ end
21
+
@@ -0,0 +1,159 @@
1
+ =begin
2
+ Copyright (c) 2010 tddium.com All Rights Reserved
3
+ =end
4
+
5
+ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
6
+
7
+ require 'tddium'
8
+ require 'rubygems'
9
+ require 'rake'
10
+ require 'fileutils'
11
+
12
+ gem 'rspec', ">1.2.6"
13
+ require 'spec/rake/spectask'
14
+
15
+ gem "selenium-client", ">1.2.16"
16
+ require "selenium/rake/tasks"
17
+
18
+ namespace :tddium do
19
+ namespace :config do
20
+ desc "Initialize tddium configuration file"
21
+ task :init do
22
+ init_task
23
+ end
24
+
25
+ desc "Reset tddium configuration file"
26
+ task :reset do
27
+ reset_task
28
+ end
29
+ end
30
+
31
+ namespace :internal do
32
+ Spec::Rake::SpecTask.new('sequential') do |t|
33
+ conf = read_config
34
+
35
+ t.pattern = conf[:test_pattern] || '**/*_spec.rb'
36
+
37
+ t.spec_opts = Proc.new do
38
+ # Stub out result_path in case internal:sequential is run by itself
39
+ @result_path ||= default_report_path
40
+ opts = spec_opts(@result_path)
41
+ opts
42
+ end
43
+ t.fail_on_error = true
44
+ t.verbose = true
45
+ end
46
+
47
+ task :parallel, :threads, :environment do |t, args|
48
+ parallel_task(args)
49
+ end
50
+
51
+ task :start do
52
+ start_instance
53
+ end
54
+
55
+ task :startstop do
56
+ start_instance
57
+ stop_instance
58
+ end
59
+
60
+ task :stop do
61
+ stop_instance
62
+ end
63
+
64
+ task :stopall do
65
+ stop_all_instances
66
+ end
67
+
68
+ task :collectlogs do
69
+ collect_syslog
70
+ end
71
+
72
+ task :setup, :environment do |t, args|
73
+ setup_task(args)
74
+ end
75
+
76
+ task :prepare, :environment do |t,args|
77
+ prepare_task(args)
78
+ end
79
+ end
80
+
81
+ desc "Sequentially run specs on EC2"
82
+ task :sequential do
83
+ latest = result_directory
84
+ begin
85
+ puts "Stopping stale instances"
86
+ Rake::Task['tddium:internal:stopall'].execute
87
+ puts "starting EC2 Instance"
88
+ Rake::Task['tddium:internal:start'].execute
89
+ $result_path = File.join(latest, REPORT_FILENAME)
90
+ puts "Running tests. Results will be in #{$result_path}"
91
+ sleep 30
92
+ Rake::Task['tddium:internal:sequential'].execute
93
+ ensure
94
+ collect_syslog(latest)
95
+ Rake::Task['tddium:internal:stop'].execute
96
+ end
97
+ end
98
+
99
+ desc "Run specs in parallel on EC2"
100
+ task :parallel do
101
+ latest = result_directory
102
+ begin
103
+ puts "Stopping stale instances"
104
+ Rake::Task['tddium:internal:stopall'].execute
105
+ puts "starting EC2 Instance at #{Time.now.inspect}"
106
+ Rake::Task['tddium:internal:start'].execute
107
+ sleep 30
108
+ args = Rake::TaskArguments.new([:result_directory], [latest])
109
+ Rake::Task['tddium:internal:parallel'].execute(args)
110
+ ensure
111
+ collect_syslog(latest)
112
+ Rake::Task['tddium:internal:stop'].execute
113
+ end
114
+ end
115
+
116
+ desc "Run tests matching pattern, use running dev instance if possible"
117
+ task :dev, :testpattern do |t, args|
118
+ args.with_defaults(:testpattern => nil)
119
+ latest = result_directory
120
+ begin
121
+ checkstart_dev_instance
122
+ @result_path = File.join(latest, REPORT_FILENAME)
123
+ puts "Running tests. Results will be in #{@result_path}"
124
+ if args.testpattern
125
+ puts "Selecting tests that match #{args.testpattern}"
126
+ ENV['SPEC'] = args.testpattern
127
+ end
128
+ Rake::Task['tddium:internal:sequential'].execute
129
+ ensure
130
+ collect_syslog(latest)
131
+ end
132
+ end
133
+
134
+ desc "Stop EC2 dev instance"
135
+ task :stopdev do
136
+ stop_instance('dev')
137
+ end
138
+
139
+ desc "Recycle Selenium on dev instance"
140
+ task :recycle do
141
+ recycle_dev
142
+ end
143
+
144
+ desc "Recycle Selenium on all instances"
145
+ task :recycle_all do
146
+ recycle_servers
147
+ end
148
+ end
149
+
150
+ module Rake
151
+ class Task
152
+ def clear_comment
153
+ @comment = nil
154
+ end
155
+ end
156
+ end
157
+
158
+ Rake.application.tasks.select{|obj| /^tddium:internal/.match(obj.name)}.map{|obj| obj.clear_comment}
159
+
@@ -0,0 +1,62 @@
1
+ # Copyright (c) 2010 Sauce Labs Inc
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining
4
+ # a copy of this software and associated documentation files (the
5
+ # "Software"), to deal in the Software without restriction, including
6
+ # without limitation the rights to use, copy, modify, merge, publish,
7
+ # distribute, sublicense, and/or sell copies of the Software, and to
8
+ # permit persons to whom the Software is furnished to do so, subject to
9
+ # the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be
12
+ # included in all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+ #
22
+ module SpecStorm
23
+ def self.set_db_prefix(prefix)
24
+ ActiveRecord::Base.prefix_and_reset_all_table_names_to prefix
25
+ ActiveRecord::Base.show_all_subclasses
26
+ end
27
+
28
+ def self.db_prefix_for(file)
29
+ #puts "Calculating for #{file}"
30
+ dummy = File.join(File.expand_path(File.dirname(file)), (file).split('/').last)
31
+ prefix = Digest::SHA1.hexdigest( dummy )
32
+ prefix = prefix[0,15]
33
+ "ss_#{prefix}_"
34
+ end
35
+
36
+ def self.patch_selenium_driver(file)
37
+ db_prefix = self.db_prefix_for(file)
38
+
39
+ # Monkey-patch like there's no tomorrow
40
+ Selenium::Client::Driver.class_eval do
41
+ attr_accessor :db_prefix
42
+ end
43
+
44
+ Selenium::Client::Driver.class_eval do
45
+ # Make sure we don't define this twice
46
+ unless self.instance_methods.include? "original_open"
47
+ alias :original_open :open
48
+
49
+ def open(url)
50
+ # TODO: Regex stuff to append query properly
51
+ new_url = url.include?("db_prefix=") ? url :"#{url}?db_prefix=#{db_prefix}"
52
+ puts "Patching url, opening #{new_url}"
53
+ original_open( new_url )
54
+ end
55
+ end
56
+ end
57
+ end
58
+
59
+ def self.find_tests(root)
60
+ Dir["#{root}**/**/*_spec.rb"]
61
+ end
62
+ end
@@ -0,0 +1,38 @@
1
+ # Copyright (c) 2010 Sauce Labs Inc
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining
4
+ # a copy of this software and associated documentation files (the
5
+ # "Software"), to deal in the Software without restriction, including
6
+ # without limitation the rights to use, copy, modify, merge, publish,
7
+ # distribute, sublicense, and/or sell copies of the Software, and to
8
+ # permit persons to whom the Software is furnished to do so, subject to
9
+ # the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be
12
+ # included in all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+ #
22
+ module SpecStorm
23
+ class SpecStormError < StandardError; end #:nodoc
24
+ class NoDBPrefixSpecified < SpecStormError; end #:nodoc
25
+
26
+ if SpecStorm.const_defined?("USE_NAMESPACE_HACK") and SpecStorm::USE_NAMESPACE_HACK == true
27
+ puts 'Loading Tddium patches...'
28
+
29
+ # Used for creating/migrating the databases (if we don't have any urls to get db_prefix token from)
30
+ ActiveRecord::Base.table_name_prefix = ENV['DB_PREFIX'] unless ENV['DB_PREFIX'].nil?
31
+
32
+ require 'spec_storm/active_record_ext'
33
+ require 'spec_storm/action_controller_ext'
34
+ require 'spec_storm/action_view_ext'
35
+
36
+ puts 'Finished loading Tddium patches'
37
+ end
38
+ end
@@ -0,0 +1,295 @@
1
+ jmoorthi-mac:blueleaf moorthi$ rake tddium:parallel
2
+ (in /Users/moorthi/work/blueleaf)
3
+ Using test pattern /Users/moorthi/work/blueleaf/spec/**/RC_0*.rb
4
+ starting EC2 Instance
5
+ started instance i-4f049723 ec2-50-16-183-132.compute-1.amazonaws.com in group selenium-grid with tags {}
6
+ Selenium Console:
7
+ http://ec2-50-16-183-132.compute-1.amazonaws.com:4444/console
8
+ You can login via "ssh -i /Users/moorthi/.ec2/sg-keypair.pem ec2-user@ec2-50-16-183-132.compute-1.amazonaws.com"
9
+ Making /var/log/messages world readable
10
+ Warning: Permanently added 'ec2-50-16-183-132.compute-1.amazonaws.com,50.16.183.132' (RSA) to the list of known hosts.
11
+ {:result_directory=>"results/latest", :threads=>5, :environment=>"selenium"}
12
+ Running tests. Results will be in results/latest
13
+ 14 test files
14
+ [["/Users/moorthi/work/blueleaf/spec/selenium/RC_001_spec.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_015_-_OnlyAllAccountsPlusAnEmptyGroup.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_017_-_Password.rb"], ["/Users/moorthi/work/blueleaf/spec/selenium/RC_023_-_invitations_validation.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_024_-_message_validation.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_025_-_Verify_sharing_checkbox_behaviour.rb"], ["/Users/moorthi/work/blueleaf/spec/selenium/RC_026_-_SharingAnEmptyGroup.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_027_-_SharingAGroup.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_028_-_HideAccounts.rb"], ["/Users/moorthi/work/blueleaf/spec/selenium/RC_029_-_HideAccountsVerifyHoldings.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_030_-_EditAccounts.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_030_-_EditAccounts_spec.rb"], ["/Users/moorthi/work/blueleaf/spec/selenium/RC_031_-_PlanningValidations.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_031_-_PlanningValidations_spec.rb"]]
15
+ Running 'env RAILS_ENV=selenium RSPEC_COLOR=1 spec --color --require 'rubygems,selenium/rspec/reporting/selenium_test_report_formatter' --format=Selenium::RSpec::SeleniumTestReportFormatter:results/latest/0-selenium_report.html --format=progress /Users/moorthi/work/blueleaf/spec/selenium/RC_001_spec.rb /Users/moorthi/work/blueleaf/spec/selenium/RC_015_-_OnlyAllAccountsPlusAnEmptyGroup.rb /Users/moorthi/work/blueleaf/spec/selenium/RC_017_-_Password.rb '
16
+ Running 'env RAILS_ENV=selenium RSPEC_COLOR=1 spec --color --require 'rubygems,selenium/rspec/reporting/selenium_test_report_formatter' --format=Selenium::RSpec::SeleniumTestReportFormatter:results/latest/1-selenium_report.html --format=progress /Users/moorthi/work/blueleaf/spec/selenium/RC_023_-_invitations_validation.rb /Users/moorthi/work/blueleaf/spec/selenium/RC_024_-_message_validation.rb /Users/moorthi/work/blueleaf/spec/selenium/RC_025_-_Verify_sharing_checkbox_behaviour.rb '
17
+ Running 'env RAILS_ENV=selenium RSPEC_COLOR=1 spec --color --require 'rubygems,selenium/rspec/reporting/selenium_test_report_formatter' --format=Selenium::RSpec::SeleniumTestReportFormatter:results/latest/2-selenium_report.html --format=progress /Users/moorthi/work/blueleaf/spec/selenium/RC_026_-_SharingAnEmptyGroup.rb /Users/moorthi/work/blueleaf/spec/selenium/RC_027_-_SharingAGroup.rb /Users/moorthi/work/blueleaf/spec/selenium/RC_028_-_HideAccounts.rb '
18
+ Running 'env RAILS_ENV=selenium RSPEC_COLOR=1 spec --color --require 'rubygems,selenium/rspec/reporting/selenium_test_report_formatter' --format=Selenium::RSpec::SeleniumTestReportFormatter:results/latest/3-selenium_report.html --format=progress /Users/moorthi/work/blueleaf/spec/selenium/RC_029_-_HideAccountsVerifyHoldings.rb /Users/moorthi/work/blueleaf/spec/selenium/RC_030_-_EditAccounts.rb /Users/moorthi/work/blueleaf/spec/selenium/RC_030_-_EditAccounts_spec.rb '
19
+ Running 'env RAILS_ENV=selenium RSPEC_COLOR=1 spec --color --require 'rubygems,selenium/rspec/reporting/selenium_test_report_formatter' --format=Selenium::RSpec::SeleniumTestReportFormatter:results/latest/4-selenium_report.html --format=progress /Users/moorthi/work/blueleaf/spec/selenium/RC_031_-_PlanningValidations.rb /Users/moorthi/work/blueleaf/spec/selenium/RC_031_-_PlanningValidations_spec.rb '
20
+ Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
21
+ *Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
22
+ *
23
+
24
+ Pending:
25
+
26
+ 031 - Planning (Validations) test 031 - planning (empty fields, using 0) (Pivotal bug 8640447/Exception when someone tries to add a college plan with a tuition of $0)
27
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_031_-_PlanningValidations.rb:7
28
+
29
+ 031 - Planning (Validations) test 031 - planning (empty fields, using 0) (Pivotal bug 8640447/Exception when someone tries to add a college plan with a tuition of $0)
30
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_031_-_PlanningValidations_spec.rb:7
31
+
32
+ Finished in 19.367002 seconds
33
+
34
+ 2 examples, 0 failures, 2 pending
35
+ Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
36
+ .Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
37
+ FSelenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
38
+ .com, port=4444
39
+ *Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
40
+ FSelenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
41
+ F.
42
+
43
+ Pending:
44
+
45
+ 024 - Messages validation test 024 - Messages validation (Pivotal bug 5465006/'Message' page exception: 'To' must be mandatory)
46
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_024_-_message_validation.rb:7
47
+
48
+ 1)
49
+ '023 - Invitations test_023 - Invitations' FAILED
50
+ expected false to be true
51
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_023_-_invitations_validation.rb:16:
52
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
53
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
54
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
55
+
56
+ 2)
57
+ '025 - Sharing - Verify checkbox behaviour test 025 - Sharing - Verify checkbox behaviour on the modal window' FAILED
58
+ expected eql?(true) to return true, got false
59
+ ./spec/selenium/helpers/friendships.rb:25:in `people_is_checked_modal_window'
60
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_025_-_Verify_sharing_checkbox_behaviour.rb:21:
61
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
62
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
63
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
64
+
65
+ Finished in 132.643672 seconds
66
+
67
+ 4 examples, 2 failures, 1 pending
68
+ com, port=4444
69
+ FSelenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
70
+ F
71
+
72
+ 1)
73
+ '026 - Sharing an empty group 026 - Sharing an empty group' FAILED
74
+ expected eql?(true) to return true, got false
75
+ ./spec/selenium/helpers/friendships.rb:20:in `people_is_checked'
76
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_026_-_SharingAnEmptyGroup.rb:28:
77
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
78
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
79
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
80
+
81
+ 2)
82
+ '027 - Sharing a group 027 - Sharing a group' FAILED
83
+ expected eql?(false) to return true, got false
84
+ ./spec/selenium/helpers/friendships.rb:20:in `people_is_checked'
85
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_027_-_SharingAGroup.rb:27:
86
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
87
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
88
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
89
+
90
+ 3)
91
+ RuntimeError in '028 - Hide accounts 028 - Hide accounts'
92
+ Could not find account='NORTH AMERICAN' with balance='$8,083': //section[@id='selector-section']//a[@class='selector']/span[contains(text(),'NORTH AMERICAN') and @class='name']/../span[contains(text(),'$8,083') and @class='value']/..
93
+ ./spec/selenium/helpers/sidebar.rb:22:in `validate_sidebar'
94
+ ./spec/selenium/helpers/sidebar.rb:19:in `each'
95
+ ./spec/selenium/helpers/sidebar.rb:19:in `validate_sidebar'
96
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_028_-_HideAccounts.rb:20:
97
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
98
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
99
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
100
+
101
+ Finished in 135.960699 seconds
102
+
103
+ 3 examples, 3 failures
104
+ Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
105
+ FSelenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
106
+ .
107
+
108
+ 1)
109
+ '015 - Sharing - Only all accounts Plus an empty group 015 - Sharing - Only all accounts Plus an empty group' FAILED
110
+ expected eql?(true) to return true, got false
111
+ ./spec/selenium/helpers/friendships.rb:20:in `people_is_checked'
112
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_015_-_OnlyAllAccountsPlusAnEmptyGroup.rb:27:
113
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
114
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
115
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
116
+
117
+ Finished in 153.525276 seconds
118
+
119
+ 3 examples, 1 failure
120
+ com, port=4444
121
+ FSelenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
122
+ F
123
+
124
+ 1)
125
+ RuntimeError in '030 - Edit accounts 030 - Edit accounts'
126
+ Could not find account='Short-term savings' with balance='$9,090': //section[@id='selector-section']//a[@class='selector']/span[contains(text(),'Short-term savings') and @class='name']/../span[contains(text(),'$9,090') and @class='value']/..
127
+ ./spec/selenium/helpers/sidebar.rb:22:in `validate_sidebar'
128
+ ./spec/selenium/helpers/sidebar.rb:19:in `each'
129
+ ./spec/selenium/helpers/sidebar.rb:19:in `validate_sidebar'
130
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_030_-_EditAccounts.rb:33:
131
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
132
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
133
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
134
+
135
+ 2)
136
+ RuntimeError in '030 - Edit accounts 030 - Edit accounts'
137
+ Could not find account='Short-term savings' with balance='$9,090': //section[@id='selector-section']//a[@class='selector']/span[contains(text(),'Short-term savings') and @class='name']/../span[contains(text(),'$9,090') and @class='value']/..
138
+ ./spec/selenium/helpers/sidebar.rb:22:in `validate_sidebar'
139
+ ./spec/selenium/helpers/sidebar.rb:19:in `each'
140
+ ./spec/selenium/helpers/sidebar.rb:19:in `validate_sidebar'
141
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_030_-_EditAccounts_spec.rb:22:
142
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
143
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
144
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
145
+
146
+ Finished in 174.589804 seconds
147
+
148
+ 3 examples, 2 failures
149
+ >>>>>>>> ["/Users/moorthi/work/blueleaf/spec/selenium/RC_029_-_HideAccountsVerifyHoldings.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_030_-_EditAccounts.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_030_-_EditAccounts_spec.rb"]
150
+ Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
151
+ .Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
152
+ FSelenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
153
+ F
154
+
155
+ 1)
156
+ RuntimeError in '030 - Edit accounts 030 - Edit accounts'
157
+ Could not find account='Short-term savings' with balance='$9,090': //section[@id='selector-section']//a[@class='selector']/span[contains(text(),'Short-term savings') and @class='name']/../span[contains(text(),'$9,090') and @class='value']/..
158
+ ./spec/selenium/helpers/sidebar.rb:22:in `validate_sidebar'
159
+ ./spec/selenium/helpers/sidebar.rb:19:in `each'
160
+ ./spec/selenium/helpers/sidebar.rb:19:in `validate_sidebar'
161
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_030_-_EditAccounts.rb:33:
162
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
163
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
164
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
165
+
166
+ 2)
167
+ RuntimeError in '030 - Edit accounts 030 - Edit accounts'
168
+ Could not find account='Short-term savings' with balance='$9,090': //section[@id='selector-section']//a[@class='selector']/span[contains(text(),'Short-term savings') and @class='name']/../span[contains(text(),'$9,090') and @class='value']/..
169
+ ./spec/selenium/helpers/sidebar.rb:22:in `validate_sidebar'
170
+ ./spec/selenium/helpers/sidebar.rb:19:in `each'
171
+ ./spec/selenium/helpers/sidebar.rb:19:in `validate_sidebar'
172
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_030_-_EditAccounts_spec.rb:22:
173
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
174
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
175
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
176
+
177
+ Finished in 174.589804 seconds
178
+
179
+ 3 examples, 2 failures
180
+ >>>>>>>> ["/Users/moorthi/work/blueleaf/spec/selenium/RC_026_-_SharingAnEmptyGroup.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_027_-_SharingAGroup.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_028_-_HideAccounts.rb"]
181
+ Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
182
+ FSelenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
183
+ FSelenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
184
+ F
185
+
186
+ 1)
187
+ '026 - Sharing an empty group 026 - Sharing an empty group' FAILED
188
+ expected eql?(true) to return true, got false
189
+ ./spec/selenium/helpers/friendships.rb:20:in `people_is_checked'
190
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_026_-_SharingAnEmptyGroup.rb:28:
191
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
192
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
193
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
194
+
195
+ 2)
196
+ '027 - Sharing a group 027 - Sharing a group' FAILED
197
+ expected eql?(false) to return true, got false
198
+ ./spec/selenium/helpers/friendships.rb:20:in `people_is_checked'
199
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_027_-_SharingAGroup.rb:27:
200
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
201
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
202
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
203
+
204
+ 3)
205
+ RuntimeError in '028 - Hide accounts 028 - Hide accounts'
206
+ Could not find account='NORTH AMERICAN' with balance='$8,083': //section[@id='selector-section']//a[@class='selector']/span[contains(text(),'NORTH AMERICAN') and @class='name']/../span[contains(text(),'$8,083') and @class='value']/..
207
+ ./spec/selenium/helpers/sidebar.rb:22:in `validate_sidebar'
208
+ ./spec/selenium/helpers/sidebar.rb:19:in `each'
209
+ ./spec/selenium/helpers/sidebar.rb:19:in `validate_sidebar'
210
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_028_-_HideAccounts.rb:20:
211
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
212
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
213
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
214
+
215
+ Finished in 135.960699 seconds
216
+
217
+ 3 examples, 3 failures
218
+ >>>>>>>> ["/Users/moorthi/work/blueleaf/spec/selenium/RC_023_-_invitations_validation.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_024_-_message_validation.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_025_-_Verify_sharing_checkbox_behaviour.rb"]
219
+ Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
220
+ FSelenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
221
+ *Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
222
+ F.
223
+
224
+ Pending:
225
+
226
+ 024 - Messages validation test 024 - Messages validation (Pivotal bug 5465006/'Message' page exception: 'To' must be mandatory)
227
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_024_-_message_validation.rb:7
228
+
229
+ 1)
230
+ '023 - Invitations test_023 - Invitations' FAILED
231
+ expected false to be true
232
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_023_-_invitations_validation.rb:16:
233
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
234
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
235
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
236
+
237
+ 2)
238
+ '025 - Sharing - Verify checkbox behaviour test 025 - Sharing - Verify checkbox behaviour on the modal window' FAILED
239
+ expected eql?(true) to return true, got false
240
+ ./spec/selenium/helpers/friendships.rb:25:in `people_is_checked_modal_window'
241
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_025_-_Verify_sharing_checkbox_behaviour.rb:21:
242
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
243
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
244
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
245
+
246
+ Finished in 132.643672 seconds
247
+
248
+ 4 examples, 2 failures, 1 pending
249
+ >>>>>>>> ["/Users/moorthi/work/blueleaf/spec/selenium/RC_001_spec.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_015_-_OnlyAllAccountsPlusAnEmptyGroup.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_017_-_Password.rb"]
250
+ Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
251
+ .Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
252
+ FSelenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
253
+ .
254
+
255
+ 1)
256
+ '015 - Sharing - Only all accounts Plus an empty group 015 - Sharing - Only all accounts Plus an empty group' FAILED
257
+ expected eql?(true) to return true, got false
258
+ ./spec/selenium/helpers/friendships.rb:20:in `people_is_checked'
259
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_015_-_OnlyAllAccountsPlusAnEmptyGroup.rb:27:
260
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `instance_eval'
261
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:39:in `execute'
262
+ /Users/moorthi/.rvm/gems/ruby-1.8.7-p302@tddium/gems/selenium-client-1.2.18/lib/selenium/rspec/rspec_extensions.rb:36:in `execute'
263
+
264
+ Finished in 153.525276 seconds
265
+
266
+ 3 examples, 1 failure
267
+ >>>>>>>> ["/Users/moorthi/work/blueleaf/spec/selenium/RC_031_-_PlanningValidations.rb", "/Users/moorthi/work/blueleaf/spec/selenium/RC_031_-_PlanningValidations_spec.rb"]
268
+ Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
269
+ *Selenium is configured to use Jay's secure env against https://build.blueleaf.com/ with timeout 300, Browser:*firefox, Host: ec2-50-16-183-132.compute-1.amazonaws.com, port=4444
270
+ *
271
+
272
+ Pending:
273
+
274
+ 031 - Planning (Validations) test 031 - planning (empty fields, using 0) (Pivotal bug 8640447/Exception when someone tries to add a college plan with a tuition of $0)
275
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_031_-_PlanningValidations.rb:7
276
+
277
+ 031 - Planning (Validations) test 031 - planning (empty fields, using 0) (Pivotal bug 8640447/Exception when someone tries to add a college plan with a tuition of $0)
278
+ /Users/moorthi/work/blueleaf/spec/selenium/RC_031_-_PlanningValidations_spec.rb:7
279
+
280
+ Finished in 19.367002 seconds
281
+
282
+ 2 examples, 0 failures, 2 pending
283
+ skipping instance i-97f262fb ec2-174-129-121-204.compute-1.amazonaws.com created in another session
284
+ skipping instance i-bf0192d3 created in another session
285
+ skipping instance i-f107949d created in another session
286
+ selecting instance i-4f049723 ec2-50-16-183-132.compute-1.amazonaws.com from our session
287
+ selenium-hub.log 100% 361KB 180.7KB/s 00:02
288
+ selenium-rc.log 100% 703KB 175.8KB/s 00:04
289
+ skipping instance i-97f262fb ec2-174-129-121-204.compute-1.amazonaws.com created in another session
290
+ skipping instance i-bf0192d3 created in another session
291
+ skipping instance i-f107949d created in another session
292
+ selecting instance i-4f049723 ec2-50-16-183-132.compute-1.amazonaws.com from our session
293
+ stopping instance i-4f049723 ec2-50-16-183-132.compute-1.amazonaws.com from our session
294
+ jmoorthi-mac:blueleaf moorthi$ rake tddium:dev
295
+