This file contains 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
Entire Output: | |
02-14 21:00:12.298 2416-3440/? D/SSRMv2:Monitor﹕ SIOP:: AP = 360 (read only) | |
02-14 21:00:12.468 2827-2827/? D/STATUSBAR-NetworkController﹕ refreshSignalCluster: data=-1 bt=false | |
02-14 21:00:12.488 2827-2827/? D/STATUSBAR-IconMerger﹕ checkOverflow(384), More:false, Req:false Child:2 | |
02-14 21:00:13.478 2827-2827/? D/STATUSBAR-NetworkController﹕ refreshSignalCluster: data=-1 bt=false | |
02-14 21:00:13.493 2827-2827/? D/STATUSBAR-IconMerger﹕ checkOverflow(384), More:false, Req:false Child:2 | |
02-14 21:00:14.803 2416-3440/? D/SSRMv2:Monitor﹕ SIOP:: AP = 360, Prev AP = 360, Duration = 10017 | |
02-14 21:00:17.308 2416-3440/? D/SSRMv2:Monitor﹕ SIOP:: AP = 360 (read only) | |
02-14 21:00:17.348 2827-2827/? D/STATUSBAR-NetworkController﹕ onSignalStrengthsChanged signalStrength=SignalStrength: 8 -1 -1 -1 -1 -1 -1 99 2147483647 2147483647 2147483647 -1 2147483647 gsm|lte 0x3 level=3 |
This file contains 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 BasePage.rb | |
def initialize | |
@browser = test_env[:browser] | |
@home = test_env[:url] | |
end | |
def verify_el(css) | |
@browser.find_element(:css, css) | |
end | |
This file contains 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: Flexible feature | |
Background: | |
Given I am on the home page as a logged out user | |
Scenario: home page layout as a logged out user | |
And I see the "#someId" on the home page | |
And I click ".some-class" on the home page | |
// and so on |
This file contains 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 File.join(File.dirname(__FILE__), '..', '..', 'lib', 'pages', 'BasePage') | |
And /^I click "([^"]*)" on the home page$/ do |selector| | |
@page = BasePage.new(@test_env) | |
@page.click_el(selector) | |
end | |
And /^I see the "([^"]*)" on the home page$/ do |selector| | |
@page = BasePage.new(@test_env) | |
@page.verify_el(selector) |
This file contains 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: Create new user | |
Scenario: Successfully create a new user with facebook | |
Given I am on the homepage | |
And I click the Sign Up button | |
And I click sign up with facebook | |
And I have authorized the facebook api | |
When I see my name in the user navigation | |
Then I have successfully created a new user with facebook |
This file contains 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: Login Screen | |
Background: | |
Given I am on the home page | |
@delete_cookies | |
Scenario Outline: | |
Given I click login | |
And I enter | |
And password as |
This file contains 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 File.join(File.dirname(__FILE__), '..', '..', 'lib', 'pages', 'HomePage') | |
And /^I click login$/ do | |
@page.header.click_login | |
end | |
And /^I enter ([A-za-z0-9.@]+)$/ do |email| | |
@email = email | |
end |
This file contains 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 'selenium-webdriver' | |
require 'capybara' | |
require 'rspec' | |
require 'launchy' | |
require 'active_support' | |
require 'active_support/inflector' | |
require 'headless' | |
require 'ruby-debug' | |
require 'webdriver-user-agent' | |
This file contains 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 'rubygems' | |
require 'appium_lib' | |
# Start Android driver | |
apk = { | |
device: :android, | |
app_path: (true && ENV['apk']) || (ENV['PWD'] + '/../App/build/apk/foo.apk'), | |
app_package: (true && ENV['package']) || 'com.google.foo', | |
app_activity: (true && ENV['activity']) || '.fooActivity', | |
app_wait_activity: (true && ENV['activity']) || 'foo.BarActivity', |