Skip to content

Instantly share code, notes, and snippets.

@bradgignac
Created September 23, 2013 18:53
Show Gist options
  • Save bradgignac/6675126 to your computer and use it in GitHub Desktop.
Save bradgignac/6675126 to your computer and use it in GitHub Desktop.
Testing Server Creation
it 'can create server' do
# Login
visit 'https://ui.preprod.rackspace.com'
fill_in 'Username', 'this is my username'
fill_in 'Password', 'this is my password'
# Go to server create page
click_link 'Servers'
click_link 'Create Server'
# Fill in create form
fill_in 'Server Name', 'my-test-server'
fill_in 'Region', 'HKG'
click_button 'Save'
# Make a bunch of assertions that the server was created correctly.
# Clean up the newly created server.
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment