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
1. Commit => run core functional test | |
2. Run tests in mock environment | |
3. Run Full Acceptance test |
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
profile = Selenium::WebDriver::Chrome::Profile.new | |
profile["intl.accept_languages"] = "de" | |
caps = Selenium::WebDriver::Remote::Capabilities.chrome(:profile => profile) | |
caps.platform = 'Linux' | |
caps.version = '' | |
caps[:name] = "Running tests in Chrome Linux" | |
driver = Selenium::WebDriver.for( | |
:remote, |
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
@safari @chrome @firefox @IE9 @IE10 | |
Feature: Insight Scenarios | |
Background: Setup Insight # features/Insight.feature:4 | |
File exists - /Users/richdownie/Library/Safari/Extensions.bak (Errno::EEXIST) | |
/Users/richdownie/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/fileutils.rb:513:in `block in mv' | |
/Users/richdownie/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/fileutils.rb:1551:in `block in fu_each_src_dest' | |
/Users/richdownie/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/fileutils.rb:1565:in `fu_each_src_dest0' | |
/Users/richdownie/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/fileutils.rb:1549:in `fu_each_src_dest' | |
/Users/richdownie/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/fileutils.rb:508:in `mv' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<jmeterTestPlan version="1.2" properties="2.4" jmeter="2.9 r1437961"> | |
<hashTree> | |
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true"> | |
<stringProp name="TestPlan.comments"></stringProp> | |
<boolProp name="TestPlan.functional_mode">false</boolProp> | |
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp> | |
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> | |
<collectionProp name="Arguments.arguments"/> | |
</elementProp> |
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
Given /I click_on "(.*)" "(.*)"/ do |value, type| | |
steps %Q{ | |
And I wait until "#{value}" "#{type}" renders | |
} | |
@driver.find_element(type.to_sym => value).click | |
end | |
When /I wait for "(.*)" "(.*)" to render/ do |what, how| | |
start_time = Time.now.to_i | |
wait = Selenium::WebDriver::Wait.new(:timeout => 60) |
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
<script type="text/javascript"> | |
window.jsErrors = []; | |
window.onerror = function(errorMessage, url, linenumber) { | |
window.jsErrors[window.jsErrors.length] = errorMessage + ' (' + url + ':' + linenumber + ')'; | |
} | |
</script> |
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
<script> | |
//persist errors in jsErrors for ui testing | |
//<![CDATA[ | |
window.jsErrors = []; | |
window.onerror = function(errorMessage, url, linenumber) { | |
window.jsErrors[window.jsErrors.length] = errorMessage + ' (' + url + ':' + linenumber + ')'; | |
} | |
//]]> | |
</script> |
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
Results from range NOW-15MINUTES — NOW for term ( *:* ) in inputs qajava,qaphp,qasearch | |
rich@doolli> search | |
2013-09-0407:29:24.257 | |
qasearch | |
50.19.78.193 | |
<85>Sep 4 11:29:24 qasearch sudo: root : TTY=console ; PWD=/home/ubuntu/scripts ; USER=root ; COMMAND=/usr/bin/indexer content_item_filter_delta content_item_search_delta collection_item_search_delta user_search_delta user_search_exact_delta template_search_delta keyword_search_delta content_keyword_search_delta content_field_type_search_delta --rotate | |
2013-09-0407:29:24.259 | |
qasearch | |
50.19.78.193 | |
<86>Sep 4 11:29:24 qasearch sudo: pam_unix(sudo:session): session opened for user root by (uid=0) |
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 Hax < ApplicationController | |
before_filter :authenticate_user! | |
before_filter :fail_unless_in_test_environment | |
def check_user_activity | |
u = User.last | |
puts u.user_activities.count | |
raise "#{u.activities.count} You were expecting #{(params[:count]).to_i} user_activities.count" unless u.activities.count == (params[:count]).to_i | |
redirect_to activities_path | |
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
AfterStep do | |
puts @js_errors = @driver.execute_script("return window.jsErrors") | |
if @js_errors == [] | |
#continue | |
elsif @js_errors == nil | |
#continue | |
else | |
raise "JAVASCRIPT ERRORS => #{@js_errors}" | |
end | |
end |