Thanks to updates in modern FFs handling of WebRTC the webrtcadapter wrapper had to be updated. To ensure this would be picked up, also added WebRTC REST integration test cases. The tests only run if the extension is enabled, which is still OFF by default. See Issue #1134 and #1083
43 lines
1.4 KiB
Ruby
43 lines
1.4 KiB
Ruby
#
|
|
# Copyright (c) 2006-2015 Wade Alcorn - wade@bindshell.net
|
|
# Browser Exploitation Framework (BeEF) - http://beefproject.com
|
|
# See the file 'doc/COPYING' for copying permission
|
|
#
|
|
|
|
# Common lib for BeEF tests
|
|
require '../common/ts_common'
|
|
|
|
require 'capybara'
|
|
Capybara.run_server = false # we need to run our own BeEF server
|
|
|
|
require 'selenium/webdriver'
|
|
|
|
require './check_environment' # Basic log in and log out tests
|
|
require './tc_debug_modules' # RESTful API tests (as well as debug modules)
|
|
require './tc_login' # Basic log in and log out tests
|
|
require './tc_jools' # Basic tests for jools
|
|
require './tc_network_rest' # Basic tests for Network extension RESTful API interface
|
|
#require './tc_dns_rest' # Basic tests for DNS RESTful API interface
|
|
require './tc_social_engineering_rest' # Basic tests for social engineering RESTful API interface
|
|
require './tc_webrtc_rest' # Basic tests for WebRTC extension
|
|
|
|
class TS_BeefIntegrationTests
|
|
def self.suite
|
|
|
|
suite = Test::Unit::TestSuite.new(name="BeEF Integration Test Suite")
|
|
suite << TC_CheckEnvironment.suite
|
|
suite << TC_Login.suite
|
|
suite << TC_DebugModules.suite
|
|
suite << TC_Jools.suite
|
|
suite << TC_NetworkRest.suite
|
|
#suite << TC_DnsRest.suite
|
|
suite << TC_SocialEngineeringRest.suite
|
|
suite << TC_WebRTCRest.suite
|
|
|
|
return suite
|
|
end
|
|
end
|
|
|
|
Test::Unit::UI::Console::TestRunner.run(TS_BeefIntegrationTests)
|
|
|