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
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
544ff11248f6 selenium/standalone-chrome-debug "/opt/bin/entry_point" 3 seconds ago Up 2 seconds 0.0.0.0:4422->4444/tcp, 0.0.0.0:5922->5900/tcp pensive_mestorf | |
~ $docker ps -a | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
544ff11248f6 selenium/standalone-chrome-debug "/opt/bin/entry_point" About a minute ago Exited (127) About a minute ago pensive_mestorf |
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 'bundler' | |
namespace :cuke do | |
desc "run cuke builds by cuke tag" | |
task :hub, [:tag] do |t, args| | |
file = "#{args[:tag]}".gsub(/@/, '') | |
Bundler.with_clean_env do | |
console_output = "" | |
IO.popen("cucumber -t #{args[:tag]} -f rerun --out #{file}.txt", 'r+') do |pipe| | |
puts console_output = pipe.read |
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 'bundler' | |
namespace :cuke do | |
desc "run cuke builds by cuke tag" | |
task :hub, [:tag] do |t, args| | |
file = "#{args[:tag]}".gsub(/@/, '') | |
Bundler.with_clean_env do | |
console_output = "" | |
IO.popen("cucumber -t #{args[:tag]} -f rerun --out #{file}.txt", 'r+') do |pipe| | |
console_output = pipe.read |
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
class Set < Thor | |
include Thor::Actions | |
no_tasks do | |
def copy_environment(new_environment) | |
run("cp features/support/envs/env.rb.#{new_environment} features/support/env.rb") | |
end | |
end | |
desc "Chrome", "Use CHROME" |
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 'cucumber' | |
require 'selenium-webdriver' | |
# require 'cukehub' # optional, but recommended. See cukehub.com for more details | |
caps = Selenium::WebDriver::Remote::Capabilities.chrome(chromeOptions: { binary: "/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary", | |
args: [ "--headless" ]}) | |
Before do | |
@browser = Selenium::WebDriver.for :chrome, desired_capabilities: caps | |
end |
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
caps = Selenium::WebDriver::Remote::Capabilities.chrome(chromeOptions: { binary: "/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary", args: [ "--headless" ]}) | |
@browser = Selenium::WebDriver.for :chrome, desired_capabilities: caps |
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
Feature: API Tests | |
@api_test | |
Scenario Outline: Test URLS for Response Codes and Message | |
* I verify <endpoint> <params> <response_code> and <response_message> | |
Examples: | |
| endpoint | params | response_code | response_message | | |
| "https://qa.cloudcheckr.com/api/inventory.xml/get_resources_ami_details" | "&use_account=2150ApiAuto" | "200" | "OK" | | |
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 'cucumber' | |
require 'selenium-webdriver' | |
require 'cukehub' | |
caps = Selenium::WebDriver::Remote::Capabilities.chrome(chromeOptions: { args: [ "--headless" ]}) | |
Before do | |
@browser = Selenium::WebDriver.for :chrome, desired_capabilities: caps | |
end |
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 'slack-notifier' | |
slack = Slack::Notifier.new "https://hooks.slack.com/services/<token", channel: 'your_channel', | |
username: 'TestBot' #slack_speak | |
git_branch = IO.popen("git symbolic-ref --short HEAD") {|pipe| pipe.read.chomp } | |
slack.ping "#{git_branch}" |