stella / 0.6.0
| Short description: | Write functional tests in a sexy DSL | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Category: | Application/Utility | ||||||||||||||||
| Status: | beta | ||||||||||||||||
| Created: | 2009-02-13 14:07:32 GMT | ||||||||||||||||
| Last update: | 2009-03-31 19:35:54 GMT | ||||||||||||||||
| Owner: | delano (Projects of this owner) | ||||||||||||||||
| Homepage: | http://solutious.com/ | ||||||||||||||||
| Download: | http://github.com/solutious/stella/tarball/stella-0.6.0 | ||||||||||||||||
| License: | BSD-type | ||||||||||||||||
| Dependency: |
|
||||||||||||||||
| Description: | Stella - 0.6.0Stella is a Ruby library for writing functional tests in a sexy DSL (domain specific language). NOTE: The 0.6 release was a complete rewrite from previous versions. All commands, APIs, and documentation have changed!*Example 1
testplan :product_api do
desc "Maintain a value between requests"
auth :basic, "stella", "stella"
protocol :http
post "/upload" do
name "Add Product"
body "bill", "/path/2/file.txt"
header "X-Stella" => "Version #{Stella::VERSION}"
param :convert => true
param :rand => rand
response 200, 201 do |headers, body, objid|
data = YAML.load(body)
@product_id = data[:id] # Save a response value
end
end
get "/product" do
name "View Product"
param 'id' => @product_id # Use the saved value
response 200 do |header, body, objid|
data = YAML.load(body)
repeat :times => 2, :wait => 1.second # Repeat this request twice
end
end
end
functest :quick_test do
plan :product_api
verbose
end
environment :development do
machines "localhost:3114"
# machine "localhost:3115"
# ...
end
run :development, :quick_test
See bin/example_test.rb for a running example. InstallationGet it in one of the following ways:
More InformationCredits
Thanks
LicenseSee LICENSE.txt |
||||||||||||||||
| Versions: | [0.6.0 (2009-03-31)] [0.5.5 (2009-02-13)] | ||||||||||||||||