Created
February 23, 2010 14:57
-
-
Save jdar/312257 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As an anonymous user | |
I want to search to apicomparison.com | |
So that I can see what steps are necessary to do cross-site API | |
Scenario 1 - Add new framework is a select drop-down with event observer | |
Given | |
I am on the home page | |
When | |
I fill "framework_1" select with "Add new framework" | |
Then | |
I see "Please enter framework details." | |
And I am on the new framework form. | |
Scenario 2 - Add new framework validates unique version scoped by name | |
Given | |
I am on the home page | |
And a framework named "RubyonRails" with version "2.3.5" exists in the db | |
When | |
I fill "framework_1" select with "Add new framework" | |
And I fill "name" textbox with "RubyonRails" | |
And I fill "version" textbox with "2.3.5" | |
Then | |
I see "This version number of 'RubyonRails' is already in the system." | |
And I see a link to homepage which will pre-fill comparison of "RubyOnRails" of version "2.3.5" | |
And I am on the new framework page. | |
Scenario 2 - search for API compatibility | |
Given | |
I am on the home page | |
And a framework named "Flex" exists in the db | |
And a framework named "RubyonRails" with version "2.3.4" exists in the db | |
And a framework named "RubyonRails" with version "2.3.5" exists in the db | |
And a comparsion between "Flex" with version "" and "RubyonRails" with version "2.3.5" exists in the db | |
And a comparsion between "Flex" with version "" and "Django" with version "" exists in the db | |
When | |
I fill "framework_1" select with "Flex" | |
And I fill "framework_2" select with "RubyonRails" | |
Then | |
I see the title "Flex/RubyonRails API compatibility" | |
And I DO NOT see "Previous Compatibility Notes" | |
And I see 1 comparison | |
And I see "framework_1_version" select with "" selected | |
And I see "framework_2_version" select with "2.3.5" selected | |
Scenario 2 - search for API compatibility shows previous version compatibilities | |
Given | |
I am on the home page | |
And a framework named "Flex" exists in the db | |
And a framework named "RubyonRails" with version "2.3.4" exists in the db | |
And a framework named "RubyonRails" with version "2.3.5" exists in the db | |
And a comparsion between "Flex" with version "" and "RubyonRails" with version "2.3.5" exists in the db | |
And a comparsion between "Flex" with version "" and "Django" with version "" exists in the db | |
When | |
I fill "framework_1" select with "Flex" | |
And I fill "framework_2" select with "RubyonRails" | |
Then | |
I see the title "Flex/RubyonRails API compatibility" | |
And I see "No compatibility issues noted for current RubyOnRails version (x days old)" | |
And I see "Previous Compatibility Notes" | |
And I see 1 comparison | |
And I see "framework_1_version" select with "" selected | |
And I see "framework_2_version" select with "2.3.5" selected | |
Scenario 2 - advanced search for API compatibility by version | |
Given | |
I am on the home page | |
When | |
And I click "Advanced Search" | |
And I fill "framework_1" select with "Flex" | |
And I fill "framework_2" select with "RubyonRails" | |
And I fill "framework_2_version" select with "2.3.5" | |
Then | |
I see the title "Flex/RubyonRails 2.3.5 API compatibility" | |
And "Any" is an option for "framework_2_version" select | |
Scenario 2 - filter for XML API compatibility from home page | |
Given | |
I am on the home page | |
When | |
I fill "format" select with "XML" | |
I fill "framework_1" select with "Flex" | |
And I fill "framework_2" select with "RubyonRails" | |
Then | |
And I see the title "Flex/RubyonRails XML compatibility" | |
Scenario 2 - filter for XML API compatibility from search page | |
Given | |
I am on the home page | |
When | |
I fill "framework_1" select with "Flex" | |
And I fill "framework_2" select with "RubyonRails" | |
I fill "format" select with "XML" | |
Then | |
And I see the title "Flex/RubyonRails XML compatibility" | |
Scenario 2 - Find the 'out-of-the-box' compatibility of two apis | |
Scenario 25 - Show Compatibility | |
Given | |
And a comparsion between "Flex" with version "" and "RubyonRails" with version "2.3.5" exists in the db | |
And a comparsion between "Flex" with version "" and "Django" with version "" exists in the db | |
And a tutorial exists for the first compatibility with url "http://example.com/tutorial4" | |
And a tutorial exists for the first compatibility with url "http://example.com/tutorial5" | |
I am on the compatibilities page | |
When | |
I click on the first compatibility | |
Then | |
I see 2 tutorial links |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment