Sha256: 218e15e376c1ea2b67fa685145a711c8a80b166b5d360b46821d3437b1c73f8e
Contents?: true
Size: 761 Bytes
Versions: 15
Compression:
Stored size: 761 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'ruby-jmeter' module RubyJmeter class ExtendedDSL < DSL def test_method_here puts "here be dragons" end end end # Define your page objects class HomePage def initialize(dsl) @dsl = dsl end def test_method_unreachable puts "I can never be reached from ExtendedDSL" end def visit get name: 'home', url: '/' do test_method_here end end private def method_missing method, *args, &block @dsl.__send__ method, *args, &block end end test do threads count: 1 do # then re-use your page objects in your test plan home = HomePage.new(self) home.visit end end.run(path: '/usr/share/jmeter-2.11/bin/', gui: true)
Version data entries
15 entries across 15 versions & 1 rubygems