selenium rc: run tests churned browsers automatically


so, i've started emanate flush section tests exam web app directly browser. i'm controlling ruby. i've combined bottom category selenium tests get from.



this creates countless seleniumdriver instances methods blank called any instance. radically runs tests parallel.



how have involuntary this?



this implementation:



class seleniumtest < test::unit::testcase
def setup
@seleniums = %w(*firefox *iexplore).map |browser|
puts 'creating browser ' + browser
selenium::seleniumdriver.new("localhost", 4444, browser, "http://localhost:3003", 10000)
end

start
open start_address
end

def teardown
stop
end

#sub-classes should overrule wish change it
def start_address
"http://localhost:3003/"
end

# overrides customary "open" method
def open(addr)
method_missing 'open', addr
end

# overrides customary "type" method
def type(inputlocator, value)
method_missing 'type', inputlocator, value
end

# overrides customary "select" method
def select(inputlocator, optionlocator)
method_missing 'select', inputlocator, optionlocator
end

def method_missing(method_name, *args)
@seleniums.each |selenium_driver|
args.empty?
selenium_driver.send method_name
else
selenium_driver.send method_name, *args
end

end
end
end


this works, nonetheless browser fails, whole exam fails there proceed know browser unsuccessful on.



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members