Small bump up to hook time to get more consistent test results.

This commit is contained in:
Jack Walker
2020-04-28 08:59:39 +10:00
parent 1784347dff
commit b0f6f02cb6
4 changed files with 4 additions and 7 deletions

View File

@@ -93,7 +93,7 @@ RSpec.describe 'AutoRunEngine Test', :run_on_browserstack => true do
@driver.navigate.to "#{VICTIM_URL}"
# Give time for browser hook to occur
sleep 2.5
sleep 3
@hooks = JSON.parse(RestClient.get "#{RESTAPI_HOOKS}?token=#{@token}")
@session = @hooks['hooked-browsers']['online']['0']['session']

View File

@@ -90,7 +90,7 @@ RSpec.describe 'Browser Details Handler', :run_on_browserstack => true do
@driver.navigate.to "#{VICTIM_URL}"
# Give time for browser hook to occur
sleep 2.5
sleep 3
@hooks = JSON.parse(RestClient.get "#{RESTAPI_HOOKS}?token=#{@token}")
@session = @hooks['hooked-browsers']['online']['0']['session']

View File

@@ -77,7 +77,7 @@ RSpec.describe 'BeEF WebSockets: Browser Hooking', :run_on_browserstack => true
puts @driver.current_url
# Give time for browser hook to occur
sleep 2.5
sleep 3
end
after(:all) do
@@ -95,9 +95,6 @@ RSpec.describe 'BeEF WebSockets: Browser Hooking', :run_on_browserstack => true
#prepare for the HTTP model
https = BeEF::Core::Models::Http
@debug_mod_ids = JSON.parse(RestClient.get "#{RESTAPI_MODULES}?token=#{@token}")
puts @debug_mod_ids
@hooks = JSON.parse(RestClient.get "#{RESTAPI_HOOKS}?token=#{@token}")
@session = @hooks['hooked-browsers']['online']

View File

@@ -89,7 +89,7 @@ RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do
@driver.navigate.to "#{VICTIM_URL}"
# Give time for browser hook to occur
sleep 2.5
sleep 3
@hooks = JSON.parse(RestClient.get "#{RESTAPI_HOOKS}?token=#{@token}")
@session = @hooks['hooked-browsers']['online']['0']['session']