ui_changed 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -64,7 +64,8 @@ module UiChanged
64
64
  # if not, create it
65
65
  UiChanged::WorkerBase.remove_folder_contents_or_create(image_dir)
66
66
 
67
- driver = Selenium::WebDriver.for :chrome
67
+ driver = Selenium::WebDriver.for UiChanged::ConfigHelper.selenium_browser.to_sym
68
+
68
69
  driver.manage.window.resize_to(1024, 768) # this doesn't work (i dont think)
69
70
  driver.manage.timeouts.implicit_wait = 60 # seconds
70
71
 
@@ -1,3 +1,3 @@
1
1
  module UiChanged
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -2,6 +2,7 @@ defaults: &defaults
2
2
  control_path: "public/screenshots/control/"
3
3
  test_path: "public/screenshots/test/"
4
4
  compare_path: "public/screenshots/compare/"
5
+ selenium_browser: "firefox"
5
6
  auth_username:
6
7
  auth_password:
7
8
  control_url: "http://github.com"
@@ -28887,3 +28887,146 @@ Connecting to database specified by database.yml
28887
28887
   (0.1ms) SELECT version FROM `schema_migrations`
28888
28888
   (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203001050')
28889
28889
   (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203000059')
28890
+ Connecting to database specified by database.yml
28891
+  (10.6ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
28892
+  (47.0ms) DROP DATABASE IF EXISTS `ui_changed_test`
28893
+  (3.7ms) CREATE DATABASE `ui_changed_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
28894
+  (24.7ms) CREATE TABLE `ui_changed_screenshot_ignore_urls` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28895
+  (19.5ms) CREATE TABLE `ui_changed_screenshots` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `is_control` tinyint(1), `is_test` tinyint(1), `is_compare` tinyint(1), `diff_found` tinyint(1), `control_id` int(11), `test_id` int(11), `image_file_name` varchar(255), `image_content_type` varchar(255), `image_file_size` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28896
+  (8.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
28897
+  (12.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
28898
+  (0.1ms) SELECT version FROM `schema_migrations`
28899
+  (1.9ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203001050')
28900
+  (1.9ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203000059')
28901
+ Connecting to database specified by database.yml
28902
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
28903
+  (3.2ms) DROP DATABASE IF EXISTS `ui_changed_test`
28904
+  (0.3ms) CREATE DATABASE `ui_changed_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
28905
+  (17.0ms) CREATE TABLE `ui_changed_screenshot_ignore_urls` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28906
+  (12.0ms) CREATE TABLE `ui_changed_screenshots` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `is_control` tinyint(1), `is_test` tinyint(1), `is_compare` tinyint(1), `diff_found` tinyint(1), `control_id` int(11), `test_id` int(11), `image_file_name` varchar(255), `image_content_type` varchar(255), `image_file_size` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28907
+  (25.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
28908
+  (20.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
28909
+  (0.1ms) SELECT version FROM `schema_migrations`
28910
+  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203001050')
28911
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203000059')
28912
+ Connecting to database specified by database.yml
28913
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
28914
+  (2.5ms) DROP DATABASE IF EXISTS `ui_changed_test`
28915
+  (0.4ms) CREATE DATABASE `ui_changed_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
28916
+  (10.1ms) CREATE TABLE `ui_changed_screenshot_ignore_urls` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28917
+  (13.6ms) CREATE TABLE `ui_changed_screenshots` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `is_control` tinyint(1), `is_test` tinyint(1), `is_compare` tinyint(1), `diff_found` tinyint(1), `control_id` int(11), `test_id` int(11), `image_file_name` varchar(255), `image_content_type` varchar(255), `image_file_size` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28918
+  (7.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
28919
+  (9.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
28920
+  (0.3ms) SELECT version FROM `schema_migrations`
28921
+  (1.0ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203001050')
28922
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203000059')
28923
+ Connecting to database specified by database.yml
28924
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
28925
+  (2.5ms) DROP DATABASE IF EXISTS `ui_changed_test`
28926
+  (0.3ms) CREATE DATABASE `ui_changed_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
28927
+  (12.3ms) CREATE TABLE `ui_changed_screenshot_ignore_urls` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28928
+  (26.0ms) CREATE TABLE `ui_changed_screenshots` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `is_control` tinyint(1), `is_test` tinyint(1), `is_compare` tinyint(1), `diff_found` tinyint(1), `control_id` int(11), `test_id` int(11), `image_file_name` varchar(255), `image_content_type` varchar(255), `image_file_size` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28929
+  (7.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
28930
+  (8.8ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
28931
+  (0.1ms) SELECT version FROM `schema_migrations`
28932
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203001050')
28933
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203000059')
28934
+ Connecting to database specified by database.yml
28935
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
28936
+  (2.1ms) DROP DATABASE IF EXISTS `ui_changed_test`
28937
+  (0.3ms) CREATE DATABASE `ui_changed_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
28938
+  (7.8ms) CREATE TABLE `ui_changed_screenshot_ignore_urls` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28939
+  (8.7ms) CREATE TABLE `ui_changed_screenshots` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `is_control` tinyint(1), `is_test` tinyint(1), `is_compare` tinyint(1), `diff_found` tinyint(1), `control_id` int(11), `test_id` int(11), `image_file_name` varchar(255), `image_content_type` varchar(255), `image_file_size` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28940
+  (8.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
28941
+  (9.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
28942
+  (0.2ms) SELECT version FROM `schema_migrations`
28943
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203001050')
28944
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203000059')
28945
+ Connecting to database specified by database.yml
28946
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
28947
+  (2.5ms) DROP DATABASE IF EXISTS `ui_changed_test`
28948
+  (0.3ms) CREATE DATABASE `ui_changed_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
28949
+  (9.3ms) CREATE TABLE `ui_changed_screenshot_ignore_urls` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28950
+  (11.4ms) CREATE TABLE `ui_changed_screenshots` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `is_control` tinyint(1), `is_test` tinyint(1), `is_compare` tinyint(1), `diff_found` tinyint(1), `control_id` int(11), `test_id` int(11), `image_file_name` varchar(255), `image_content_type` varchar(255), `image_file_size` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28951
+  (7.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
28952
+  (10.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
28953
+  (0.2ms) SELECT version FROM `schema_migrations`
28954
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203001050')
28955
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203000059')
28956
+ Connecting to database specified by database.yml
28957
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
28958
+  (2.3ms) DROP DATABASE IF EXISTS `ui_changed_test`
28959
+  (0.2ms) CREATE DATABASE `ui_changed_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
28960
+  (9.5ms) CREATE TABLE `ui_changed_screenshot_ignore_urls` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28961
+  (11.3ms) CREATE TABLE `ui_changed_screenshots` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `is_control` tinyint(1), `is_test` tinyint(1), `is_compare` tinyint(1), `diff_found` tinyint(1), `control_id` int(11), `test_id` int(11), `image_file_name` varchar(255), `image_content_type` varchar(255), `image_file_size` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28962
+  (9.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
28963
+  (12.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
28964
+  (0.1ms) SELECT version FROM `schema_migrations`
28965
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203001050')
28966
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203000059')
28967
+ Connecting to database specified by database.yml
28968
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
28969
+  (2.5ms) DROP DATABASE IF EXISTS `ui_changed_test`
28970
+  (0.2ms) CREATE DATABASE `ui_changed_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
28971
+  (8.6ms) CREATE TABLE `ui_changed_screenshot_ignore_urls` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28972
+  (10.1ms) CREATE TABLE `ui_changed_screenshots` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `is_control` tinyint(1), `is_test` tinyint(1), `is_compare` tinyint(1), `diff_found` tinyint(1), `control_id` int(11), `test_id` int(11), `image_file_name` varchar(255), `image_content_type` varchar(255), `image_file_size` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28973
+  (5.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
28974
+  (8.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
28975
+  (0.1ms) SELECT version FROM `schema_migrations`
28976
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203001050')
28977
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203000059')
28978
+ Connecting to database specified by database.yml
28979
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
28980
+  (2.2ms) DROP DATABASE IF EXISTS `ui_changed_test`
28981
+  (0.3ms) CREATE DATABASE `ui_changed_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
28982
+  (8.4ms) CREATE TABLE `ui_changed_screenshot_ignore_urls` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28983
+  (12.3ms) CREATE TABLE `ui_changed_screenshots` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `is_control` tinyint(1), `is_test` tinyint(1), `is_compare` tinyint(1), `diff_found` tinyint(1), `control_id` int(11), `test_id` int(11), `image_file_name` varchar(255), `image_content_type` varchar(255), `image_file_size` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28984
+  (7.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
28985
+  (10.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
28986
+  (0.1ms) SELECT version FROM `schema_migrations`
28987
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203001050')
28988
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203000059')
28989
+ Connecting to database specified by database.yml
28990
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
28991
+  (2.4ms) DROP DATABASE IF EXISTS `ui_changed_test`
28992
+  (0.3ms) CREATE DATABASE `ui_changed_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
28993
+  (8.7ms) CREATE TABLE `ui_changed_screenshot_ignore_urls` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28994
+  (14.4ms) CREATE TABLE `ui_changed_screenshots` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `is_control` tinyint(1), `is_test` tinyint(1), `is_compare` tinyint(1), `diff_found` tinyint(1), `control_id` int(11), `test_id` int(11), `image_file_name` varchar(255), `image_content_type` varchar(255), `image_file_size` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
28995
+  (7.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
28996
+  (10.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
28997
+  (0.5ms) SELECT version FROM `schema_migrations`
28998
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203001050')
28999
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203000059')
29000
+ Connecting to database specified by database.yml
29001
+  (10.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
29002
+  (45.5ms) DROP DATABASE IF EXISTS `ui_changed_test`
29003
+  (2.7ms) CREATE DATABASE `ui_changed_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
29004
+  (30.1ms) CREATE TABLE `ui_changed_screenshot_ignore_urls` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
29005
+  (27.2ms) CREATE TABLE `ui_changed_screenshots` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `is_control` tinyint(1), `is_test` tinyint(1), `is_compare` tinyint(1), `diff_found` tinyint(1), `control_id` int(11), `test_id` int(11), `image_file_name` varchar(255), `image_content_type` varchar(255), `image_file_size` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
29006
+  (7.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
29007
+  (16.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
29008
+  (0.1ms) SELECT version FROM `schema_migrations`
29009
+  (1.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203001050')
29010
+  (2.0ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203000059')
29011
+ Connecting to database specified by database.yml
29012
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
29013
+  (3.2ms) DROP DATABASE IF EXISTS `ui_changed_test`
29014
+  (0.3ms) CREATE DATABASE `ui_changed_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
29015
+  (8.0ms) CREATE TABLE `ui_changed_screenshot_ignore_urls` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
29016
+  (10.1ms) CREATE TABLE `ui_changed_screenshots` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `is_control` tinyint(1), `is_test` tinyint(1), `is_compare` tinyint(1), `diff_found` tinyint(1), `control_id` int(11), `test_id` int(11), `image_file_name` varchar(255), `image_content_type` varchar(255), `image_file_size` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
29017
+  (7.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
29018
+  (10.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
29019
+  (0.1ms) SELECT version FROM `schema_migrations`
29020
+  (0.9ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203001050')
29021
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203000059')
29022
+ Connecting to database specified by database.yml
29023
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
29024
+  (2.6ms) DROP DATABASE IF EXISTS `ui_changed_test`
29025
+  (0.2ms) CREATE DATABASE `ui_changed_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
29026
+  (16.8ms) CREATE TABLE `ui_changed_screenshot_ignore_urls` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
29027
+  (11.8ms) CREATE TABLE `ui_changed_screenshots` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url` text, `is_control` tinyint(1), `is_test` tinyint(1), `is_compare` tinyint(1), `diff_found` tinyint(1), `control_id` int(11), `test_id` int(11), `image_file_name` varchar(255), `image_content_type` varchar(255), `image_file_size` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
29028
+  (7.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
29029
+  (13.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
29030
+  (0.3ms) SELECT version FROM `schema_migrations`
29031
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203001050')
29032
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130203000059')