Skip to content

Instantly share code, notes, and snippets.

View luke-hill's full-sized avatar

Luke Hill luke-hill

  • United Kingdom
View GitHub Profile
ChildProcess::Error: Access is denied. (5)
./features/support/hooks.rb:29:in `After'
1 scenario (1 failed)
###THEN I GET THIS STACKTRACE###
C:/Ruby22/lib/ruby/gems/2.2.0/gems/childprocess-0.6.1/lib/childprocess/abstract_process.rb:183:in `assert_started': process not started (ChildProcess::Error)
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/childprocess-0.6.1/lib/childprocess/windows/process.rb:39:in `exited?'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-3.0.7/lib/selenium/webdriver/common/service.rb:124:in `process_exited?'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-3.0.7/lib/selenium/webdriver/common/service.rb:110:in `stop_process'
def create_remote_driver(browser, platform)
if browser == :firefox
capabilities = Selenium::WebDriver::Remote::Capabilities.firefox(
platform: platform,
marionette: false,
)
elsif browser == :chrome
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
'chromeOptions' => chrome_switches,
################LITTLE BIT OF EXERPT FROM THE RUN THAT TIMED OUT (INITIALISATION)###################
11:37:32.698 INFO [13] org.openqa.selenium.remote.server.DriverServlet - Executing: [delete session: 7732ddeb-7cfd-46a6-a050-fa90e60373ca])
11:37:32.698 DEBUG [115] org.openqa.selenium.remote.RemoteWebDriver - Executing: quit [ab80b7803586383e0f1ba864b8a70f55, quit {}]
11:37:32.791 DEBUG [115] org.openqa.selenium.net.UrlChecker - Waiting for http://localhost:22853/shutdown
11:37:32.791 DEBUG [120] org.openqa.selenium.net.UrlChecker - Polling http://localhost:22853/shutdown
11:37:32.791 DEBUG [120] sun.net.www.protocol.http.HttpURLConnection - sun.net.www.MessageHeader@4b06ee5 pairs: {GET /shutdown HTTP/1.1: null}{User-Agent: Java/1.8.0_121}{Host: localhost:22853}{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}{Connection: keep-alive}
11:37:32.823 DEBUG [120] sun.net.www.protocol.http.HttpURLConnection - sun.net.www.MessageHeader@8ce9174 pairs: {null: HTTP/1.1 200 OK}{Content-Length: 40}{Content-
After do |scenario|
if Validation.new(@order_ref).cancel_order?
Cancel.cancel_pending_order(@order_ref)
end
if scenario.failed?
$LOG.info("FAILED: #{scenario_name(scenario)}")
$LOG.info("REASON: #{scenario.exception.message}")
Capybara.current_session.save_screenshot(screenshot_name(name_choice(scenario)), full: true)
else
[root@automated-testing-hub01.HQ (production) log]# grep 2d2262b2-f8fd-4a11-8d23-0202ebf03d1e grid_extras.2017-03-29.log
29 Mar 2017 09:23:24 [Forwarding ext. key 2d2262b2-f8fd-4a11-8d23-0202ebf03d1e to http://172.23.4.112:5555/wd/hub at 09:23:24] INFO video.RemoteVideoRecordingControlCallable - Creating new Video callable for proxy: http://172.23.4.112:5555, int key: b8b9c0c9-60a2-4d97-a632-dde0dbee469e, ex. key: 2d2262b2-f8fd-4a11-8d23-0202ebf03d1e, action: heartbeat, lastAction: getCurrentWindowHandle:
29 Mar 2017 09:23:24 [pool-1-thread-28913] INFO threads.SessionHistoryCallable - Associating internal key 2d2262b2-f8fd-4a11-8d23-0202ebf03d1e to external key 2d2262b2-f8fd-4a11-8d23-0202ebf03d1e
29 Mar 2017 09:23:24 [pool-1-thread-28915] ERROR videorecording.RemoteVideoRecorderHelper - Error building URI for host: 172.23.4.112, port: 3000, session: 2d2262b2-f8fd-4a11-8d23-0202ebf03d1e, action: heartbeat, params: {session=2d2262b2-f8fd-4a11-8d23-0202ebf03d1e, action=heartbeat, description=getCurrentWind
Element not found in the cache - perhaps the page has changed since it was looked up
For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'node13810620', ip: '172.23.4.108', os.name: 'Windows 8.1', os.arch: 'x86', os.version: '6.3', java.version: '1.8.0_102'
Driver info: driver.version: unknown (org.openqa.selenium.StaleElementReferenceException)
[remote server] <anonymous class>(resource://fxdriver/modules/web-element-cache.js):9454:in `fxdriver.cache.getElementAt'
[remote server] <anonymous class>(file:///C:/Users/ieuser/AppData/Local/Temp/anonymous6705458459645073067webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js):9039:in `Utils.getElementAt'
[remote server] <anonymous class>(file:///C:/Users/ieuser/AppData/Local/Temp/anonymous6705458459645073067webdriver-profile/extensions/fxdriver@googlecode.com/components/command-p
2017-08-18 14:58:38 +0100:INFO - stage5_1 loaded in 2.482623697s
2017-08-18 15:00:40 +0100:INFO - FAILED: User books a Flight to Tenerife from London with full payment
2017-08-18 15:00:40 +0100:DEBUG - REASON: Net::ReadTimeout
2017-08-18 15:00:40 +0100:DEBUG - Writing to screenshot /var/lib/jenkins/workspace/Adhoc-IE/screenshots/flight_only_order_feature_5_2017-08-18-15-00-40.png
2017-08-18 15:03:10 +0100:INFO -
******************************************************************************************************************************************************
2017-08-18 15:03:10 +0100:INFO - Starting Feature: Place an order for Flight Only
Using rubocop 0.50.0
Using selenium-webdriver 3.7.0 from source at `.`
Using webmock 2.3.2
Using rspec 3.6.0
Updating files in ../third_party/rb/vendor/cache
Bundle complete! 6 Gemfile dependencies, 28 gems now installed.
Bundled gems are installed into ./build/third_party/rb/vendor/bundle.
/home/osboxes/Code/selenium/rake-tasks/buck.rb:37 warning: multiple Java methods for arguments (Java::OrgApacheHttpClientMethods::HttpGet), using first:
public org.apache.http.client.methods.CloseableHttpResponse org.apache.http.impl.client.CloseableHttpClient.execute(org.apache.http.client.methods.HttpUriRequest) throws java.io.IOException,org.apache.http.client.ClientProtocolException
public org.apache.http.HttpResponse org.apache.http.impl.client.CloseableHttpClient.execute(org.apache.http.client.methods.HttpUriRequest) throws java.io.IOException,org.apache.http.client.ClientProtocolException
def register_remote_driver(capabilities)
Capybara.register_driver :selenium do |app|
client = Selenium::WebDriver::Remote::Http::Default.new
client.timeout = 120
if browser == :firefox
Capybara::Selenium::Driver.new(
app,
browser: :remote,
url: ENV['hub_url'],
2017-11-08 11:10:37 WARN Selenium [DEPRECATION] :timeout= is deprecated. Use #read_timeout= and #open_timeout= instead.
2017-11-08 11:10:37 INFO Selenium -> POST session
2017-11-08 11:10:37 INFO Selenium >>> http://automated-testing-hub01.hq.otbeach.com:4444/wd/hub/session | {"desiredCapabilities":{"browserName":"chrome","version":"","platform":"WIN10","javascriptEnabled":true,"cssSelectorsEnabled":true,"takesScreenshot":true,"nativeEvents":false,"rotatable":false,"chromeOptions":{"args":["--disable-infobars","--start-maximized","enable-automation"]}},"capabilities":{"firstMatch":[{"browserName":"chrome"}]}}
2017-11-08 11:10:37 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"339"}
2017-11-08 11:10:37 INFO Selenium <- {"status":13,"value":{"class":"java.lang.NullPointerException","stackTrace":[{"fileName":"HashMap.java","className":"java.util.HashMap","methodName":"putMapEntries","lineNumber":501},{"fileName":"HashMap.java","classNam