Un-tabify and re-gen all specflow test files

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-07-17 13:46:20 -07:00
parent 8022b45560
commit cee82ae866
7 changed files with 161 additions and 153 deletions

View File

@@ -1,24 +1,24 @@
Feature: Media management
In order to reference images and such from content
As an author
I want to upload and manage files in a media folder
In order to reference images and such from content
As an author
I want to upload and manage files in a media folder
Scenario: Media admin is available
Given I have installed Orchard
And I have installed "Orchard.Media"
When I go to "admin/media"
Then I should see "Manage Media Folders"
And the status should be 200 OK
Given I have installed Orchard
And I have installed "Orchard.Media"
When I go to "admin/media"
Then I should see "Manage Media Folders"
And the status should be 200 OK
Scenario: Creating a folder
Given I have installed Orchard
And I have installed "Orchard.Media"
When I go to "admin/media/create"
And I fill in
| name | value |
| Name | Hello World |
And I hit "Save"
And I am redirected
Then I should see "Manage Media Folders"
And I should see "Hello World"
And the status should be 200 OK
Given I have installed Orchard
And I have installed "Orchard.Media"
When I go to "admin/media/create"
And I fill in
| name | value |
| Name | Hello World |
And I hit "Save"
And I am redirected
Then I should see "Manage Media Folders"
And I should see "Hello World"
And the status should be 200 OK

View File

@@ -1,14 +1,14 @@
Feature: Module management
In order add and enable features
As a root Orchard system operator
I want to install and enable modules and enable features
In order add and enable features
As a root Orchard system operator
I want to install and enable modules and enable features
Scenario: Installed modules are listed
Given I have installed Orchard
When I go to "admin/modules"
Then I should see "<h1>Installed Modules</h1>"
And I should see "<h2>Themes"
And the status should be 200 OK
Given I have installed Orchard
When I go to "admin/modules"
Then I should see "<h1>Installed Modules</h1>"
And I should see "<h2>Themes"
And the status should be 200 OK
Scenario: Features of installed modules are listed
Given I have installed Orchard

View File

@@ -1,49 +1,49 @@
Feature: Setup
In order to install orchard
As a new user
I want to setup a new site from the default screen
In order to install orchard
As a new user
I want to setup a new site from the default screen
Scenario: Root request shows setup form
Given I have a clean site
And I have module "Orchard.Setup"
And I have theme "SafeMode"
When I go to "/Default.aspx"
Then I should see "Welcome to Orchard"
And I should see "Finish Setup"
And the status should be 200 OK
Given I have a clean site
And I have module "Orchard.Setup"
And I have theme "SafeMode"
When I go to "/Default.aspx"
Then I should see "Welcome to Orchard"
And I should see "Finish Setup"
And the status should be 200 OK
Scenario: Setup folder also shows setup form
Given I have a clean site
And I have module "Orchard.Setup"
And I have theme "SafeMode"
When I go to "/Setup"
Then I should see "Welcome to Orchard"
And I should see "Finish Setup"
And the status should be 200 OK
Given I have a clean site
And I have module "Orchard.Setup"
And I have theme "SafeMode"
When I go to "/Setup"
Then I should see "Welcome to Orchard"
And I should see "Finish Setup"
And the status should be 200 OK
Scenario: Some of the initial form values are required
Given I have a clean site
And I have module "Orchard.Setup"
And I have theme "SafeMode"
When I go to "/Setup"
And I hit "Finish Setup"
Then I should see "Site name is required"
And I should see "Password is required"
Given I have a clean site
And I have module "Orchard.Setup"
And I have theme "SafeMode"
When I go to "/Setup"
And I hit "Finish Setup"
Then I should see "Site name is required"
And I should see "Password is required"
Scenario: Calling setup on a brand new install
Given I have a clean site with
| extension | names |
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, TinyMce |
| core | Common, Contents, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, XmlRpc |
| theme | SafeMode, Classic |
And I am on "/Setup"
When I fill in
| name | value |
| SiteName | My Site |
| AdminPassword | 6655321 |
| ConfirmPassword | 6655321 |
And I hit "Finish Setup"
And I go to "/Default.aspx"
Then I should see "<h1>My Site</h1>"
And I should see "Welcome, <strong>admin</strong>!"
And I should see "you've successfully set-up your Orchard site"
Given I have a clean site with
| extension | names |
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, TinyMce |
| core | Common, Contents, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, XmlRpc |
| theme | SafeMode, Classic |
And I am on "/Setup"
When I fill in
| name | value |
| SiteName | My Site |
| AdminPassword | 6655321 |
| ConfirmPassword | 6655321 |
And I hit "Finish Setup"
And I go to "/Default.aspx"
Then I should see "<h1>My Site</h1>"
And I should see "Welcome, <strong>admin</strong>!"
And I should see "you've successfully set-up your Orchard site"

View File

@@ -1,11 +1,11 @@
Feature: Using SpecFlow
In order to test Orchard
As a developer or contributor
I want to define scenarios that ensure functionality
In order to test Orchard
As a developer or contributor
I want to define scenarios that ensure functionality
Scenario: Spec flow generates and runs via nunit
Given I have a scenario
When I run steps
And they have values like "5"
Then they run
And values like five are captured
Given I have a scenario
When I run steps
And they have values like "5"
Then they run
And values like five are captured

View File

@@ -1,18 +1,21 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
// SpecFlow Version:1.2.0.0
// Runtime Version:2.0.50727.4927
// SpecFlow Version:1.3.2.0
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
#region Designer generated code
namespace Orchard.Specs
{
using TechTalk.SpecFlow;
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[NUnit.Framework.TestFixtureAttribute()]
[NUnit.Framework.DescriptionAttribute("Using SpecFlow")]
public partial class UsingSpecFlowFeature
@@ -58,17 +61,18 @@ namespace Orchard.Specs
#line 6
this.ScenarioSetup(scenarioInfo);
#line 7
testRunner.Given("I have a scenario");
testRunner.Given("I have a scenario");
#line 8
testRunner.When("I run steps");
testRunner.When("I run steps");
#line 9
testRunner.And("they have values like \"5\"");
testRunner.And("they have values like \"5\"");
#line 10
testRunner.Then("they run");
testRunner.Then("they run");
#line 11
testRunner.And("values like five are captured");
testRunner.And("values like five are captured");
#line hidden
testRunner.CollectScenarioErrors();
}
}
}
#endregion

View File

@@ -1,52 +1,52 @@
Feature: Web Hosting
In order to test orchard
As an integration runner
I want to verify basic hosting is working
In order to test orchard
As an integration runner
I want to verify basic hosting is working
Scenario: Returning static files
Given I have a clean site based on Simple.Web
When I go to "Content/Static.txt"
Then I should see "Hello world!"
And the status should be 200 OK
Given I have a clean site based on Simple.Web
When I go to "Content/Static.txt"
Then I should see "Hello world!"
And the status should be 200 OK
Scenario: Returning web forms page
Given I have a clean site based on Simple.Web
When I go to "Simple/Page.aspx"
Then I should see "Hello again"
And the status should be 200 OK
Given I have a clean site based on Simple.Web
When I go to "Simple/Page.aspx"
Then I should see "Hello again"
And the status should be 200 OK
Scenario: Returning a routed request
Given I have a clean site based on Simple.Web
When I go to "hello-world"
Then the status should be 200 OK
And I should see "Hello yet again"
Given I have a clean site based on Simple.Web
When I go to "hello-world"
Then the status should be 200 OK
And I should see "Hello yet again"
Scenario: Following a link
Given I have a clean site based on Simple.Web
When I go to "/simple/page.aspx"
And I follow "next page"
Then the status should be 200 OK
And I should see "Hello yet again"
Given I have a clean site based on Simple.Web
When I go to "/simple/page.aspx"
And I follow "next page"
Then the status should be 200 OK
And I should see "Hello yet again"
Scenario: Submitting a form with input, default, and hidden fields
Given I have a clean site based on Simple.Web
And I am on "/simple/page.aspx"
When I fill in
| name | value |
| input1 | gamma |
And I hit "Go!"
Then I should see "passthrough1:alpha"
And I should see "passthrough2:beta"
And I should see "input1:gamma"
Given I have a clean site based on Simple.Web
And I am on "/simple/page.aspx"
When I fill in
| name | value |
| input1 | gamma |
And I hit "Go!"
Then I should see "passthrough1:alpha"
And I should see "passthrough2:beta"
And I should see "input1:gamma"
Scenario: Cookies follow along your request
Given I have a clean site based on Simple.Web
When I go to "/simple/cookie-set.aspx"
And I go to "/simple/cookie-show.aspx"
Then I should see "foo:bar"
Given I have a clean site based on Simple.Web
When I go to "/simple/cookie-set.aspx"
And I go to "/simple/cookie-show.aspx"
Then I should see "foo:bar"
Scenario: Being redirected
Given I have a clean site based on Simple.Web
When I go to "/simple/redir.aspx"
And I am redirected
Then I should see "Hello again"
Given I have a clean site based on Simple.Web
When I go to "/simple/redir.aspx"
And I am redirected
Then I should see "Hello again"

View File

@@ -1,18 +1,21 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
// SpecFlow Version:1.2.0.0
// Runtime Version:2.0.50727.4200
// SpecFlow Version:1.3.2.0
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
#region Designer generated code
namespace Orchard.Specs
{
using TechTalk.SpecFlow;
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[NUnit.Framework.TestFixtureAttribute()]
[NUnit.Framework.DescriptionAttribute("Web Hosting")]
public partial class WebHostingFeature
@@ -58,13 +61,13 @@ namespace Orchard.Specs
#line 6
this.ScenarioSetup(scenarioInfo);
#line 7
testRunner.Given("I have a clean site based on Simple.Web");
testRunner.Given("I have a clean site based on Simple.Web");
#line 8
testRunner.When("I go to \"Content/Static.txt\"");
testRunner.When("I go to \"Content/Static.txt\"");
#line 9
testRunner.Then("I should see \"Hello world!\"");
testRunner.Then("I should see \"Hello world!\"");
#line 10
testRunner.And("the status should be 200 OK");
testRunner.And("the status should be 200 OK");
#line hidden
testRunner.CollectScenarioErrors();
}
@@ -77,13 +80,13 @@ this.ScenarioSetup(scenarioInfo);
#line 12
this.ScenarioSetup(scenarioInfo);
#line 13
testRunner.Given("I have a clean site based on Simple.Web");
testRunner.Given("I have a clean site based on Simple.Web");
#line 14
testRunner.When("I go to \"Simple/Page.aspx\"");
testRunner.When("I go to \"Simple/Page.aspx\"");
#line 15
testRunner.Then("I should see \"Hello again\"");
testRunner.Then("I should see \"Hello again\"");
#line 16
testRunner.And("the status should be 200 OK");
testRunner.And("the status should be 200 OK");
#line hidden
testRunner.CollectScenarioErrors();
}
@@ -96,13 +99,13 @@ this.ScenarioSetup(scenarioInfo);
#line 18
this.ScenarioSetup(scenarioInfo);
#line 19
testRunner.Given("I have a clean site based on Simple.Web");
testRunner.Given("I have a clean site based on Simple.Web");
#line 20
testRunner.When("I go to \"hello-world\"");
testRunner.When("I go to \"hello-world\"");
#line 21
testRunner.Then("the status should be 200 OK");
testRunner.Then("the status should be 200 OK");
#line 22
testRunner.And("I should see \"Hello yet again\"");
testRunner.And("I should see \"Hello yet again\"");
#line hidden
testRunner.CollectScenarioErrors();
}
@@ -115,15 +118,15 @@ this.ScenarioSetup(scenarioInfo);
#line 24
this.ScenarioSetup(scenarioInfo);
#line 25
testRunner.Given("I have a clean site based on Simple.Web");
testRunner.Given("I have a clean site based on Simple.Web");
#line 26
testRunner.When("I go to \"/simple/page.aspx\"");
testRunner.When("I go to \"/simple/page.aspx\"");
#line 27
testRunner.And("I follow \"next page\"");
testRunner.And("I follow \"next page\"");
#line 28
testRunner.Then("the status should be 200 OK");
testRunner.Then("the status should be 200 OK");
#line 29
testRunner.And("I should see \"Hello yet again\"");
testRunner.And("I should see \"Hello yet again\"");
#line hidden
testRunner.CollectScenarioErrors();
}
@@ -136,9 +139,9 @@ this.ScenarioSetup(scenarioInfo);
#line 31
this.ScenarioSetup(scenarioInfo);
#line 32
testRunner.Given("I have a clean site based on Simple.Web");
testRunner.Given("I have a clean site based on Simple.Web");
#line 33
testRunner.And("I am on \"/simple/page.aspx\"");
testRunner.And("I am on \"/simple/page.aspx\"");
#line hidden
TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
"name",
@@ -147,15 +150,15 @@ this.ScenarioSetup(scenarioInfo);
"input1",
"gamma"});
#line 34
testRunner.When("I fill in", ((string)(null)), table1);
testRunner.When("I fill in", ((string)(null)), table1);
#line 37
testRunner.And("I hit \"Go!\"");
testRunner.And("I hit \"Go!\"");
#line 38
testRunner.Then("I should see \"passthrough1:alpha\"");
testRunner.Then("I should see \"passthrough1:alpha\"");
#line 39
testRunner.And("I should see \"passthrough2:beta\"");
testRunner.And("I should see \"passthrough2:beta\"");
#line 40
testRunner.And("I should see \"input1:gamma\"");
testRunner.And("I should see \"input1:gamma\"");
#line hidden
testRunner.CollectScenarioErrors();
}
@@ -168,13 +171,13 @@ this.ScenarioSetup(scenarioInfo);
#line 42
this.ScenarioSetup(scenarioInfo);
#line 43
testRunner.Given("I have a clean site based on Simple.Web");
testRunner.Given("I have a clean site based on Simple.Web");
#line 44
testRunner.When("I go to \"/simple/cookie-set.aspx\"");
testRunner.When("I go to \"/simple/cookie-set.aspx\"");
#line 45
testRunner.And("I go to \"/simple/cookie-show.aspx\"");
testRunner.And("I go to \"/simple/cookie-show.aspx\"");
#line 46
testRunner.Then("I should see \"foo:bar\"");
testRunner.Then("I should see \"foo:bar\"");
#line hidden
testRunner.CollectScenarioErrors();
}
@@ -187,15 +190,16 @@ this.ScenarioSetup(scenarioInfo);
#line 48
this.ScenarioSetup(scenarioInfo);
#line 49
testRunner.Given("I have a clean site based on Simple.Web");
testRunner.Given("I have a clean site based on Simple.Web");
#line 50
testRunner.When("I go to \"/simple/redir.aspx\"");
testRunner.When("I go to \"/simple/redir.aspx\"");
#line 51
testRunner.And("I am redirected");
testRunner.And("I am redirected");
#line 52
testRunner.Then("I should see \"Hello again\"");
testRunner.Then("I should see \"Hello again\"");
#line hidden
testRunner.CollectScenarioErrors();
}
}
}
#endregion