Class: VirtualUser
- Inherits:
-
Object
- Object
- VirtualUser
- Defined in:
- lib/smokey/virtual_user.rb
Instance Method Summary collapse
-
#initialize(testscript, base_url) ⇒ VirtualUser
constructor
A new instance of VirtualUser.
- #start ⇒ Object
Constructor Details
#initialize(testscript, base_url) ⇒ VirtualUser
Returns a new instance of VirtualUser.
3 4 5 6 7 |
# File 'lib/smokey/virtual_user.rb', line 3 def initialize(testscript, base_url) @testscript = testscript @base_url = base_url @logger = Logger.new end |
Instance Method Details
#start ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/smokey/virtual_user.rb', line 9 def start @logger.log("info", "Script started") script = Kernel.const_get(@testscript) script = script.new(@base_url) script.run @logger.log("info", "Script finished") end |