type, buffer| assert_equal SSH2_AGENT_REQUEST_VERSION, type s.return(255) end assert_raises(Net::SSH::Authentication::AgentError) { agent.negotiate! } end Thursday, October 18, 12
type, buffer| assert_equal SSH2_AGENT_REQUEST_VERSION, type s.return(255) end assert_raises(Net::SSH::Authentication::AgentError) { agent.negotiate! } end Thursday, October 18, 12
fooforge.com I need to login remotely Scenario: Basic login Given I have no public keys set Then I can ssh to "fooforge.com" with the following credentials: | username | password | | mike | foobar | Thursday, October 18, 12
kirjautumaan etäyhteydellä Tapaus: Perus login Koska minulla ei ole public keys asetettu Sitten voin ssh “fooforge.com” seuraavat käyttäjätiedot: | username | password | | mike | foobar | Thursday, October 18, 12
generator: [ADDED] .gitignore [ADDED] .bzrignore [ADDED] Gemfile [ADDED] README [ADDED] features/steps [ADDED] features/support Your new cucumber-nagios project can be found in /Users/madolphs/ Development/Personal/Repositories/cucumber-nagios_examples/ fooforge.com. Next, install the necessary RubyGems with: bundle install Your project has been initialised as a git repository. Thursday, October 18, 12
fooforge.com It should be up Scenario: Visiting home page When I go to "http://fooforge.com" Then the request should succeed 1 scenario (1 passed) 2 steps (2 passed) 0m0.081s Thursday, October 18, 12
fooforge.com It should be up Scenario: Visiting home page When I go to "http://fooforge.com" getaddrinfo: nodename nor servname provided, or not known (SocketError) /Users/madolphs/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/net/http.rb:560:in `initialize' /Users/madolphs/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/net/http.rb:560:in `open' /Users/madolphs/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/net/http.rb:560:in `connect' /Users/madolphs/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/timeout.rb:53:in `timeout' /Users/madolphs/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/timeout.rb:101:in `timeout' /Users/madolphs/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/net/http.rb:560:in `connect' /Users/madolphs/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/net/http.rb:553:in `do_start' /Users/madolphs/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/net/http.rb:548:in `start' ./features/steps/http_steps.rb:12:in `/^I go to "(.*)"$/' features/fooforge.com/startpage.feature:5:in `When I go to "http://fooforge.con"' Then the request should succeed # features/steps/http_steps.rb:64 Failing Scenarios: cucumber features/fooforge.com/startpage.feature:4 # Scenario: Visiting home page 1 scenario (1 failed) 2 steps (1 failed, 1 skipped) 0m0.050s Thursday, October 18, 12
the best performance fooforge.com must be responsive Scenario: Benchmark startpage Given I am benchmarking When I go to "http://fooforge.com" Then the elapsed time should be less than 2 seconds 1 scenario (1 passed) 3 steps (3 passed) 0m0.619s Thursday, October 18, 12
should be up Scenario: Visiting home page When I go to "http://fooforge.com" Then the request should succeed Scenario: Benchmark startpage When I go to "http://fooforge.com" Then the elapsed time should be less than 1 seconds expected: > -1 got: -1.368603 (RSpec::Expectations::ExpectationNotMetError) ./features/steps/benchmark_steps.rb:6:in `/^the elapsed time should be less than (\d+) seconds$/' features/fooforge.com/startpage.feature:11:in `Then the elapsed time should be less than 1 seconds' Failing Scenarios: cucumber features/fooforge.com/startpage.feature:8 # Scenario: Benchmark startpage 2 scenarios (1 failed, 1 passed) 5 steps (1 failed, 4 passed) 0m1.708s Thursday, October 18, 12
I want to search for someone Scenario: Basic search Given I have the username “mike” and the password “foobar” When I login on “http://www.xing.com/” Then I can click on the search icon and lookup “Markus Lanz” Thursday, October 18, 12