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
import pytest | |
from pages import seller_page | |
import inspect | |
class DamageModalTest(): | |
@pytest.fixture | |
def load_seller_page(self, driver): | |
return seller_page.SellerPage(driver) |
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
from selenium.webdriver.common.by import By | |
from base_page import BasePage | |
class SellerPage(BasePage): | |
_login_form = {"by": By.ID, "value": "navbar-collapse"} | |
_username_input = {"by": By.ID, "value": "loginEmailInput"} | |
_password_input = {"by": By.ID, "value": "loginPasswordInput"} | |
_submit_button = {"by": By.ID, "value": "loginBtn"} | |
_success_message = {"by": By.CSS_SELECTOR, "value": ".myofferPanelBody"} |
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
source 'https://rubygems.org' | |
gem 'rspec', '~> 3.5.0' | |
gem 'selenium-webdriver', '~> 3.0.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
require 'selenium-webdriver' | |
describe 'Login' do | |
before(:each) do | |
#@driver = Selenium::WebDriver.for :firefox, desired_capabilities: { marionette: false } | |
geckodriver = File.join(Dir.pwd, 'vendor', 'geckodriver') | |
@driver = Selenium::WebDriver.for :firefox, driver_path: geckodriver | |
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
Powershell: | |
$client = new-object System.Net.WebClient | |
$client.DownloadFile("https://dl.bintray.com/oneclick/rubyinstaller/ruby-2.3.3-x64-mingw32.7z", "RubyInstaller.7z") | |
$client.DownloadFile("http://7-zip.org/a/7z1604-x64.exe", "7zip.exe") | |
& ls | |
& "${pwd}\7zip.exe" x RubyInstaller.7z | |
& ls |
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
/Library/Ruby/Gems/2.0.0/gems/selenium-webdriver-2.53.0/lib/selenium/webdriver/remote/response.rb:70:in `assert_ok': Could not find a device to launch. You requested 'iPhone 6 Plus (4.4)', but the available devices were: ["iPad 2 (9.3) [D71568CB-BDAE-49E8-941D-BAFBBCB01B2F] (Simulator)","iPad Air (9.3) [4BA020A7-ED89-4BB5-9E2F-63838BA252A4] (Simulator)","iPad Air 2 (9.3) [5BACEEA3-FDBA-4540-9727-0E984D4339CD] (Simulator)","iPad Pro (9.3) [F10F7582-E58E-4564-A58D-312012DD1F3C] (Simulator)","iPad Retina (9.3) [73EF5D2B-E519-449D-8D07-CC1786A197E3] (Simulator)","iPhone 4s (9.3) [9CD14920-B34F-41F5-82A6-F5131D61154E] (Simulator)","iPhone 5 (9.3) [C85F36C2-7065-425A-9BBE-C92E2E25081A] (Simulator)","iPhone 5s (9.3) [307025A5-92AB-4B32-BCE3-8E636731F6A4] (Simulator)","iPhone 6 (9.3) [707B0CDA-F95B-430E-BDBA-A8507E997E17] (Simulator)","iPhone 6 Plus (9.3) [3FBDF1F0-6A3A-4B34-8D02-63DBB9BA49C3] (Simulator)","iPhone 6s (9.3) [5AF04C2C-4304-4D22-8E33-C4C420780A28] (Simulator)","iPhone 6s (9.3) + Apple Watch - 38mm (2.2) |
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
--- | |
layout: post | |
title: "Running multiple tests with one command using the Monkeytest.it API and cURL" | |
date: 2016-05-29 19:18:16 | |
categories: Testing, QA, Automation, Shell, cURL, Cron | |
--- | |
A few weeks ago I discovered the MonkeyTest.it service on ProductHunt and wanted a way to run a single command to test my current organizations production help site for any broken links. (This site is hosted using desk.com making traditional automation slightly more tricky) | |
The problem is that MonkeyTest.it only supports a single URL per test (e.g. if you're in Slack you can run /monkeytest https://www.google.com ) this will test the specified page but not crawl the site as questioned within the ProductHunt comments [here](https://www.producthunt.com/tech/monkey-test-it){:target="_blank"} |
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
Applitools_Test ruby sauce_ios_web.rb | |
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- appium_lib (LoadError) | |
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' | |
from sauce_ios_web.rb:3:in `<main>' |
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
Evans-MacBook-Air:wikiful RAI$ rake db:seed | |
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message. |
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
Evans-MacBook-Air:wikiful RAI$ rake db:reset | |
-- enable_extension("plpgsql") | |
-> 0.0452s | |
-- create_table("article_categories", {:force=>true}) | |
-> 0.0115s | |
-- create_table("articles", {:force=>true}) | |
-> 0.0083s | |
-- create_table("categories", {:force=>true}) | |
-> 0.0083s | |
-- initialize_schema_migrations_table() |
NewerOlder