Stella is an agile testing tool for web applications. Software development has changed in a way that demands a new kind of toolset. Stella integrates quickly into your existing development process to help you run functional and performance tests throughout your product lifecycle.
usecase "Simple search" do
get "/search", "Search Results" do
wait 2..5
param :what => 'Big Al'
param :where => 'Toronto'
response 200 do
listing = doc.css('div.listing').first
set :lid, listing['id'].match(/(\d+)/)[0]
end
end
get "/listing/:lid" do # URIs can contain
desc "Selected listing" # variables. See
wait 1..8 # the one set in
# the first request?
response 200 do
status # => 200
headers['Content-Type'] # => ['text/html']
body # => <html>...
doc # => Nokigiri doc
end
end
end