public virtual void CanAddDocumentToAddedDocuments()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Can add document to Added Documents", new string[] {
                        "createsAddedDocument"});
#line 7
this.ScenarioSetup(scenarioInfo);
#line 8
 testRunner.Given("I have logged in as company with id \'55881\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 9
 testRunner.And("I navigate to added documents", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 10
 testRunner.And("I press link with ID \'AddNewDocumentsLink\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 11
 testRunner.And("It is simulated that an added document has been uploaded", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 12
 testRunner.And("I have entered \'Checklist\' into the \'DocumentGridRow_53984_DocumentType\' field", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 13
 testRunner.And("I have entered \'Barnsley\' into the \'DocumentGridRow_53984_Site\' field", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 14
 testRunner.And("I have entered \'test title\' into the \'DocumentGridRow_53984_Title\' field", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 15
 testRunner.And("I have entered \'test description\' into the \'DocumentGridRow_53984_Description\' fi" +
                    "eld", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 16
 testRunner.When("I press \'SaveAddedDocuments\' button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 17
 testRunner.Then("the file is saved to the database", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void AListContainingSyntax()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("a list containing syntax", ((string[])(null)));
#line 6
this.ScenarioSetup(scenarioInfo);
#line 7
 testRunner.Given("I am a list specification", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "colours"});
            table1.AddRow(new string[] {
                        "Red"});
            table1.AddRow(new string[] {
                        "Green"});
            table1.AddRow(new string[] {
                        "Blue"});
#line 8
 testRunner.And("I can see the list of available colours", ((string)(null)), table1, "And ");
#line hidden
            TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
                        "colours"});
            table2.AddRow(new string[] {
                        "Red"});
            table2.AddRow(new string[] {
                        "Green"});
            table2.AddRow(new string[] {
                        "Blue"});
#line 13
 testRunner.Then("I should see a list of available colours containing", ((string)(null)), table2, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 3
0
        public virtual void ICanCreateAndPublishANewPageWithInternationalCharactersInItsRoute()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can create and publish a new Page with international characters in its route", ((string[])(null)));
#line 6
this.ScenarioSetup(scenarioInfo);
#line 7
    testRunner.Given("I have installed Orchard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 8
    testRunner.When("I go to \"admin/contents/create/page\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "name",
                        "value"});
            table1.AddRow(new string[] {
                        "Title.Title",
                        "Χελλο"});
#line 9
        testRunner.And("I fill in", ((string)(null)), table1, "And ");
#line 12
        testRunner.And("I hit \"Publish Now\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 13
        testRunner.And("I go to \"Χελλο\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 14
    testRunner.Then("I should see \"<h1[^>]*>.*?Χελλο.*?</h1>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 4
0
        public virtual void SeeTheLast2BuildsAtAGlanceWithTheLatestOneOnTop()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("See the last 2 builds at a glance with the latest one on top", ((string[])(null)));
#line 10
this.ScenarioSetup(scenarioInfo);
#line 11
 testRunner.Given("I have registered project \"p1\"");
#line 12
 testRunner.When("I check for updates");
#line 13
 testRunner.And("I am on the status page for project \"p1\"");
#line 14
 testRunner.And("I see the build is completed with status SUCCESS");
#line 15
 testRunner.And("I add a test task \"t2\" with comment \"commit 2\" and content \"testoutput\" to projec" +
                    "t \"p1\"");
#line 16
 testRunner.And("I check for updates");
#line 17
 testRunner.And("I am on the status page for project \"p1\"");
#line 18
 testRunner.Then("I see the build is completed with status SUCCESS");
#line 19
 testRunner.And("I see build history contains 2 items");
#line 20
 testRunner.And("I see build history item 1 contains \"commit 2\"");
#line 21
 testRunner.And("I see build history item 2 contains \"commit 1\"");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void StepsCanDefinedInAnExternal_NETE_G_COrVB_NETProject()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Steps can defined in an external .NET (e.g. c# or VB.NET) project", ((string[])(null)));
#line 6
this.ScenarioSetup(scenarioInfo);
#line 7
 testRunner.Given("there is an external class library project \'ExternalSteps\'");
#line hidden
#line 8
 testRunner.And("the following step definition in the external library", "[When(@\"I do something\")]\r\npublic void WhenIDoSomething()\r\n{\r\n}", ((TechTalk.SpecFlow.Table)(null)));
#line 15
 testRunner.And("there is a SpecFlow project with a reference to the external library");
#line hidden
#line 16
 testRunner.And("a scenario \'Simple Scenario\' as", "When I do something", ((TechTalk.SpecFlow.Table)(null)));
#line hidden
#line 20
 testRunner.And("the specflow configuration is", "<specFlow>\r\n<stepAssemblies>\r\n<stepAssembly assembly=\"ExternalSteps\" />\r\n</stepAs" +
                    "semblies>\r\n</specFlow>", ((TechTalk.SpecFlow.Table)(null)));
#line 28
 testRunner.When("I execute the tests");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Succeeded"});
            table1.AddRow(new string[] {
                        "1"});
#line 29
 testRunner.Then("the execution summary should contain", ((string)(null)), table1);
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 6
0
        public virtual void RegisterUser()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Register User", ((string[])(null)));
#line 10
this.ScenarioSetup(scenarioInfo);
#line 11
 testRunner.Given("I navigate to the homepage", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 12
 testRunner.Then("I should see \"Register\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 13
 testRunner.Then("I click on \"Register\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 14
 testRunner.And("I fill in \"Email\" with \"[email protected]\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 15
 testRunner.And("I fill in \"Password\" with \"Atestpass!0\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 16
 testRunner.And("I fill in \"ConfirmPassword\" with \"Atestpass!0\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 17
 testRunner.And("I fill in \"Nickname\" with \"atestUser\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 18
 testRunner.And("I fill in \"DateOfBirth\" with \"01/01/1993\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 19
 testRunner.And("I press enter inside \"DateOfBirth\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 20
 testRunner.Then("I should see \"Log off\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 7
0
        public virtual void LookUpTests_Normal()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("LookUpTests - Normal", ((string[])(null)));
#line 5
this.ScenarioSetup(scenarioInfo);
#line 6
 testRunner.Given("SpecAid Setting UseHashTag is \'true\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Tag It",
                        "anInt"});
            table1.AddRow(new string[] {
                        "#Everything",
                        "12"});
#line 8
 testRunner.Given("There are EveryThing Objects", ((string)(null)), table1, "Given ");
#line hidden
            TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
                        "!LookUp",
                        "anInt"});
            table2.AddRow(new string[] {
                        "#Everything",
                        "12"});
#line 12
 testRunner.Then("There are EveryThing Objects via Lookup", ((string)(null)), table2, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void FullyArmed()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Fully armed", ((string[])(null)));
#line 7
  this.ScenarioSetup(scenarioInfo);
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Field",
                        "Value"});
            table1.AddRow(new string[] {
                        "BeltLevel",
                        "third"});
            table1.AddRow(new string[] {
                        "Katana",
                        "two"});
            table1.AddRow(new string[] {
                        "Sake",
                        "three"});
            table1.AddRow(new string[] {
                        "Fought",
                        "samurai"});
            table1.AddRow(new string[] {
                        "Magic",
                        "five"});
#line 8
 testRunner.Given("a ninja with the following parameterized experience", ((string)(null)), table1);
#line 16
 testRunner.When("attacked by a samurai");
#line 17
 testRunner.Then("the ninja should engage the opponent");
#line hidden
            testRunner.CollectScenarioErrors();
        }
        public virtual void ExistingCommentForumAmendContactEmailAddress()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Existing comment forum amend contact email address", new string[] {
                        "ignore"});
#line 7
this.ScenarioSetup(scenarioInfo);
#line 8
testRunner.Given("an exisiting comment forum", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 9
testRunner.And("a contact email address has already been associated to it", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 10
testRunner.And("I am logged in as an editor", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 11
testRunner.When("I go to the CommentForumList page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 12
testRunner.And("amend the email address to \'<email_address>\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 13
testRunner.And("submit my changes", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "email_address"});
            table1.AddRow(new string[] {
                        "*****@*****.**"});
#line 14
testRunner.Then("the chosen Forum is updated with the new \'<email_address>\'", ((string)(null)), table1, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void BuildTwoSlightlyDifferentObjectsUsingTheSameBuilder(string type, string something, string aValue, string anOtherValue, string[] exampleTags)
        {
            string[] @__tags = new string[] {
                    "building"};
            if ((exampleTags != null))
            {
                @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
            }
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Build two slightly different objects using the same builder", @__tags);
#line 7
this.ScenarioSetup(scenarioInfo);
#line 8
 testRunner.Given("I have an instance of the BuilderFactory", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 9
 testRunner.When(string.Format("I request the BuilderFactory to give me a builder for an instance of type {0} wit" +
                        "h {1} of value {2}", type, something, aValue), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 10
 testRunner.And("I request this first builder to give me the built value", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 11
 testRunner.And(string.Format("I request this first builder to give me a new builder for an instance of type {0}" +
                        " with {1} of value {2}", type, something, anOtherValue), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 12
 testRunner.And("I request this second builder to give me the built value", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 13
 testRunner.Then(string.Format("I will receive two different built values one matching {0} and the other matching" +
                        " {1}", aValue, anOtherValue), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void FullyArmed()
        {
            var scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Fully armed", ((string[]) (null)));
#line 7
            this.ScenarioSetup(scenarioInfo);
#line hidden
            var table1 = new TechTalk.SpecFlow.Table(new string[]
                                                         {
                                                             "belt_level",
                                                             "katana",
                                                             "sake",
                                                             "fought",
                                                             "magic"
                                                         });
            table1.AddRow(new string[]
                              {
                                  "third",
                                  "two",
                                  "three",
                                  "samurai",
                                  "five"
                              });
#line 8
            testRunner.Given("a ninja with the following experience", ((string) (null)), table1);
#line 11
            testRunner.When("attacked by a samurai");
#line 12
            testRunner.Then("the ninja should engage the opponent");
#line hidden
            testRunner.CollectScenarioErrors();
        }
        public virtual void ViewAllDocuments()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("View all documents", ((string[])(null)));
#line 9
this.ScenarioSetup(scenarioInfo);
#line 6
this.FeatureBackground();
#line 10
 testRunner.Given("I am on the businesssafe system document library page for company \'55881\' and doc" +
                    "umentGroup \'AllDocuments\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Document Type",
                        "Title"});
            table1.AddRow(new string[] {
                        "Type C",
                        "Test Title 3"});
            table1.AddRow(new string[] {
                        "Type D",
                        "Test Title 4"});
#line 11
 testRunner.Then("the BS system document results table should contain the following data:", ((string)(null)), table1, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void AddPizza()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Add Pizza", ((string[])(null)));
#line 4
this.ScenarioSetup(scenarioInfo);
#line 5
 testRunner.Given("I have navigated to Pizza/Compose page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 6
 testRunner.And("I wait 5 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Name"});
            table1.AddRow(new string[] {
                        "pizzaName"});
#line 7
 testRunner.When("I enter pizza data", ((string)(null)), table1, "When ");
#line 10
 testRunner.And("I have selected ingredients", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 11
 testRunner.And("I press add pizza button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 12
 testRunner.Then("I wait 5 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 13
 testRunner.And("Should go to Pizza", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void TheDefaultCultureIsUsedForBindingsIfNotSpecified()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("The default culture is used for bindings if not specified", ((string[])(null)));
#line 3
this.ScenarioSetup(scenarioInfo);
#line hidden
#line 4
 testRunner.Given("a scenario \'Simple Scenario\' as", "Given I have entered 3.14 into the calculator", ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 8
 testRunner.And("the following step definition", "[Given(@\"I have entered (.+) into the calculator\")]\r\npublic void GivenIHaveEntere" +
                    "d(double number)\r\n{\r\nif (number != 3.14) throw new Exception(\"number converted i" +
                    "ncorrectly\");\r\n}", ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 16
 testRunner.When("I execute the tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Succeeded"});
            table1.AddRow(new string[] {
                        "1"});
#line 17
 testRunner.Then("the execution summary should contain", ((string)(null)), table1, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void InsertForAllFilterTypeAndDefaultProvider(string testName, string varlist, string filterType, string input, string index, string dropDownList, string option, string result, string provider, string caretposition, string[] exampleTags)
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Insert for All FilterType and Default Provider", exampleTags);
#line 8
this.ScenarioSetup(scenarioInfo);
#line 9
 testRunner.Given(string.Format("I have the following variable list \'{0}\'", varlist), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 10
 testRunner.And(string.Format("the filter type is \'{0}\'", filterType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 11
 testRunner.And(string.Format("the current text in the textbox is \'{0}\'", input), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 12
 testRunner.And(string.Format("the cursor is at index \'{0}\'", index), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 13
 testRunner.And(string.Format("the provider used is \'{0}\'", provider), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 14
 testRunner.And(string.Format("the drop down list as \'{0}\'", dropDownList), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 15
 testRunner.When(string.Format("I select the following option \'{0}\'", option), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 16
 testRunner.Then(string.Format("the result text should be \'{0}\'", result), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 17
 testRunner.And(string.Format("the caret position will be \'{0}\'", caretposition), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 16
0
        public virtual void DisplayAndDismissAnAlertBox()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Display and dismiss an alert box", ((string[])(null)));
#line 3
this.ScenarioSetup(scenarioInfo);
#line 4
 testRunner.Given("I navigated to the Home page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 5
   testRunner.And("I chose New Information", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 6
   testRunner.And("I was on the Information page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 7
  testRunner.When("I choose Alert Box", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 8
   testRunner.And("I see an alert box and select Ok", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Field",
                        "Rule",
                        "Value"});
            table1.AddRow(new string[] {
                        "Result",
                        "Equals",
                        "Alert Cleared"});
#line 9
  testRunner.Then("I see", ((string)(null)), table1, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 17
0
        public virtual void RegisterUser()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Register User", ((string[])(null)));
#line 6
this.ScenarioSetup(scenarioInfo);
#line 7
 testRunner.Given("I am on the site home page");
#line 8
 testRunner.When("I click the Register link");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Control",
                        "Value"});
            table1.AddRow(new string[] {
                        "User Name",
                        "RegisterUserTest"});
            table1.AddRow(new string[] {
                        "Email",
                        "*****@*****.**"});
            table1.AddRow(new string[] {
                        "Password",
                        "password"});
            table1.AddRow(new string[] {
                        "Display Name",
                        "RegisterUserTest DN"});
#line 9
 testRunner.And("I fill in the Register User form", ((string)(null)), table1);
#line 15
 testRunner.And("I click the Register button");
#line 16
 testRunner.Then("I am logged in as the RegisterUserTest DN user");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void DeadCellWith0NeighborsStaysDead()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Dead cell with 0 neighbors stays dead", ((string[])(null)));
#line 6
  this.ScenarioSetup(scenarioInfo);
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "*",
                        "*",
                        "*"});
            table1.AddRow(new string[] {
                        ".",
                        ".",
                        "."});
            table1.AddRow(new string[] {
                        ".",
                        ".",
                        "."});
            table1.AddRow(new string[] {
                        ".",
                        ".",
                        "."});
#line 7
    testRunner.Given("the following setup", ((string)(null)), table1);
#line 12
    testRunner.When("I evolve the board");
#line 13
    testRunner.Then("the center cell should be dead");
#line hidden
            testRunner.CollectScenarioErrors();
        }
Esempio n. 19
0
        public virtual void LowestInterest()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Lowest Interest", new string[] {
                        "mytag"});
#line 4
this.ScenarioSetup(scenarioInfo);
#line 5
 testRunner.Given("Purchase Price is $ 200,000", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 6
 testRunner.And("Downpayment is 120", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 7
 testRunner.And("Mortgage term is 30 years", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 8
 testRunner.And("Interest rate is 0.01 %", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 9
 testRunner.And("Property tax is 0 %", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 10
 testRunner.And("Property insurance is $ 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 11
 testRunner.And("First payment date is Jan,2012", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 12
 testRunner.And("Amortization period is Year", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 13
 testRunner.When("I press calculate", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 14
 testRunner.Then("Total monthly payment is $ 13,334.06", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 15
 testRunner.And("Total payment is $ 160,008.67", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 16
 testRunner.And("Payoff date is Dec,2013", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void ChangeTextOnALabelInASubreport()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Change text on a label in a subreport", new string[] {
                        "mytag"});
#line 7
this.ScenarioSetup(scenarioInfo);
#line 8
 testRunner.Given("A report exists");
#line 9
 testRunner.And("the report has an XRLabel named ChangeMe in the header");
#line 10
 testRunner.And("ChangeMe\'s text property has a value of Brodie");
#line 11
 testRunner.And("the report has another XRLabel named DontChangeMe in header");
#line 12
 testRunner.And("DontChangeMe\'s text property has a value of GreenBayPackers");
#line 13
 testRunner.And("an action exists against an XRLabel named ChangeMe to change the name to Camp and" +
                    " increment a counter");
#line 14
 testRunner.And("the xtrasubreport engine is initialized");
#line 15
 testRunner.When("the report engine runs");
#line 16
 testRunner.Then("ChangeMe\'s text property should have a value of Camp");
#line 17
 testRunner.And("DontChangeMe\'s text property should have a value of GreenBayPackers");
#line 18
 testRunner.And("the counter incremented by the action should have a count of 1");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void CreateTaskBasedStep(string status, string result, string[] exampleTags)
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create Task Based Step", exampleTags);
#line 7
this.ScenarioSetup(scenarioInfo);
#line 8
  testRunner.Given("I have access to the solution", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 9
  testRunner.And("the solution has a Features/tasks.json file", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 10
  testRunner.And("the file has the following format for a task", string.Format("[{{\r\n  \"name\": \"I should be able to do something\",\r\n  \"status\": \"{0}\"\r\n}}]", status), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 17
  testRunner.When("I define a step like this", "Then I should be able to do something --TASK", ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 21
  testRunner.And("I end the step with --TASK", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 22
  testRunner.And(string.Format("I specify a status of {0} in the task list", status), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 23
  testRunner.And("I run the step", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 24
  testRunner.Then(string.Format("the step should return a value of {0}", result), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void GetReposForUser()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get repos for user", ((string[])(null)));
#line 3
this.ScenarioSetup(scenarioInfo);
#line 4
 testRunner.When("I do a repo search for user erikdietrich", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 5
 testRunner.Then("I should have 15 repos", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Name",
                        "Url",
                        "Language",
                        "Download",
                        "Sha",
                        "FileCount"});
            table1.AddRow(new string[] {
                        "ASPNETWebAPISamples",
                        "https://github.com/erikdietrich/ASPNETWebAPISamples",
                        "JavaScript",
                        "https://github.com/erikdietrich/ASPNETWebAPISamples/archive/master.zip",
                        "ef4ee82d94f1d07b12f3b3981fbfef573ae9fd72",
                        "796"});
#line 6
 testRunner.And("First repo should have the following properties", ((string)(null)), table1, "And ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void AddTitle()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Add Title", ((string[])(null)));
#line 11
this.ScenarioSetup(scenarioInfo);
#line 8
this.FeatureBackground();
#line 12
 testRunner.Given("I am on create riskassessment page in area \'PersonalRiskAssessments\' with company" +
                    " Id \'55881\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 13
 testRunner.And("I have entered \'Test Title\' into the \'Title\' field", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 14
 testRunner.And("I have entered \'Test Reference\' into the \'Reference\' field", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 15
 testRunner.When("I press \'createSummary\' button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 16
 testRunner.And("I have waited for the page to reload", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 17
 testRunner.Then("the text box with id \'Title\' should contain \'Test Title\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 18
 testRunner.Then("the text box with id \'Reference\' should contain \'Test Reference\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void DeletingASiteGroup()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Deleting a site group", ((string[])(null)));
#line 6
this.ScenarioSetup(scenarioInfo);
#line 7
 testRunner.Given("I have logged in as company with id \'37634\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 8
 testRunner.And("I have navigated to site structure page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 9
 testRunner.And("I have site group called \'site group to delete\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 10
 testRunner.And("I have selected site group called \'site group to delete\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 11
 testRunner.When("I press \'deleteSiteBtn\' button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 12
 testRunner.And("I select \'No\' on confirmation", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 13
 testRunner.Then("I should remain on the site group details", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 14
 testRunner.When("I press \'deleteSiteBtn\' button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 15
 testRunner.And("I select \'Yes\' on confirmation", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 16
 testRunner.Then("the site group should be deleted", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 25
0
        public virtual void RootRequestShowsSetupForm()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Root request shows setup form", ((string[])(null)));
#line 6
this.ScenarioSetup(scenarioInfo);
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "extension",
                        "names"});
            table1.AddRow(new string[] {
                        "Module",
                        "Orchard.Setup, Orchard.Pages, Orchard.ContentPicker, Orchard.Users, Orchard.Roles" +
                            ", Orchard.Messaging, Orchard.Comments, Orchard.PublishLater, Orchard.Themes, Orc" +
                            "hard.jQuery, TinyMce"});
            table1.AddRow(new string[] {
                        "Core",
                        "Common, Contents, Dashboard, Feeds, Navigation, Scheduling, Settings, Shapes, Xml" +
                            "Rpc, Title"});
            table1.AddRow(new string[] {
                        "Theme",
                        "SafeMode"});
#line 7
    testRunner.Given("I have a clean site with", ((string)(null)), table1, "Given ");
#line 12
    testRunner.When("I go to \"/\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 13
    testRunner.Then("I should see \"Welcome to Orchard\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 14
        testRunner.And("I should see \"Finish Setup\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 15
        testRunner.And("the status should be 200 \"OK\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 26
0
        public virtual void SignOutPreventsAccessToProtectedPages(string user, string[] exampleTags)
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Sign Out prevents access to protected pages", exampleTags);
#line 6
this.ScenarioSetup(scenarioInfo);
#line 8
 testRunner.Given(string.Format("I am signed in as {0}", user));
#line 9
 testRunner.Then("I should see a \"Sign Out\" link");
#line 11
 testRunner.When("I click the \"Sign Out\" link");
#line 12
 testRunner.Then("I should see the Sign Out page");
#line 14
    testRunner.When("I enter the URL for the Personal Home page");
#line 15
    testRunner.Then("I should see the Sign On page");
#line 17
    testRunner.When("I enter the URL for the Institutional Agreement Management page");
#line 18
    testRunner.Then("I should see the Sign On page");
#line 20
    testRunner.When("I enter the URL for the Institutional Agreement Configure Module page");
#line 21
    testRunner.Then("I should see the Sign On page");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void SchedulingHomePage()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Scheduling home page", new string[] {
                        "selenium"});
#line 7
this.ScenarioSetup(scenarioInfo);
#line 8
 testRunner.When("I navigate to the scheduling area");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Text",
                        "Url"});
            table1.AddRow(new string[] {
                        "ISIS",
                        "http://localhost:1481/"});
            table1.AddRow(new string[] {
                        "Course Scheduling",
                        "http://localhost:1481/Schedule"});
            table1.AddRow(new string[] {
                        "Home",
                        ""});
#line 9
 testRunner.Then("the page has breadcrumbs as follows", ((string)(null)), table1);
#line 14
 testRunner.And("the page has a link to Instructors");
#line 15
 testRunner.And("the page has a link to Templates");
#line 16
 testRunner.And("the page has a link to Sections");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 28
0
        public virtual void InvalidateCollection(string entityTagStore, string[] exampleTags)
        {
            string[] @__tags = new string[] {
                    "cachecow_server"};
            if ((exampleTags != null))
            {
                @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
            }
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Invalidate collection", @__tags);
#line 7
this.ScenarioSetup(scenarioInfo);
#line 8
 testRunner.Given(string.Format("I have an API running CacheCow Server and using {0} storage", entityTagStore), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 9
 testRunner.And("I Create a new item", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 10
 testRunner.And("Get the collection ETag as ETag1", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 11
 testRunner.When("I create a new item", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 12
 testRunner.And("Get the collection ETag as ETag2", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 13
 testRunner.Then("I expect ETag1 to be different from ETag2", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void RemoveFurtherActionTaskToRiskAssessment()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Remove Further Action Task To Risk Assessment", new string[] {
                        "Acceptance",
                        "RemoveFurtherActionTask"});
#line 11
this.ScenarioSetup(scenarioInfo);
#line 6
this.FeatureBackground();
#line 12
 testRunner.Given("I am on the risk assessment index page for company \'55881\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 13
 testRunner.And("I have clicked on the edit risk assessment link for id \'39\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 14
 testRunner.And("I press \'controlmeasures\' link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 15
 testRunner.And("I have waited for the page to reload", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 16
 testRunner.And("I click on the further action task row for id \'11\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 17
 testRunner.When("I press \'Remove\' button on the further action task row", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 18
 testRunner.And("I select \'yes\' on confirmation", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 19
 testRunner.Then("the further action task with id \'11\' should be deleted", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 30
0
        public virtual void RealizarLogin()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Realizar login", ((string[])(null)));
#line 12
this.ScenarioSetup(scenarioInfo);
#line 10
this.FeatureBackground();
#line 13
 testRunner.Given("que exista um usuario \"adminUser\" e estar acom status \"ativo\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Dado ");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "NomeUsuario",
                        "Senha"});
            table1.AddRow(new string[] {
                        "riguel",
                        "123456"});
#line 14
 testRunner.And("que o usuario inpute as informações", ((string)(null)), table1, "E ");
#line 18
testRunner.When("visita \"/\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Quando ");
#line 19
testRunner.Then("eu tente efetuar o login", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Entao ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 31
0
        public ScenarioContext(ScenarioInfo scenarioInfo)
        {
            Stopwatch = new Stopwatch();
            Stopwatch.Start();

            CurrentScenarioBlock = ScenarioBlock.None;
            ScenarioInfo         = scenarioInfo;
            TestStatus           = TestStatus.OK;
            PendingSteps         = new List <string>();
            MissingSteps         = new List <string>();
        }
Esempio n. 32
0
        internal ScenarioContext(ScenarioInfo scenarioInfo, ITestRunner testRunner, IObjectContainer parentContainer)
        {
            this.objectContainer = parentContainer == null ? new ObjectContainer() : new ObjectContainer(parentContainer);
            TestRunner           = testRunner;

            Stopwatch = new Stopwatch();
            Stopwatch.Start();

            CurrentScenarioBlock = ScenarioBlock.None;
            ScenarioInfo         = scenarioInfo;
            TestStatus           = TestStatus.OK;
            PendingSteps         = new List <string>();
            MissingSteps         = new List <string>();
        }
Esempio n. 33
0
        internal ScenarioContext(IObjectContainer scenarioContainer, ScenarioInfo scenarioInfo, ITestObjectResolver testObjectResolver)
        {
            this.ScenarioContainer  = scenarioContainer;
            this.testObjectResolver = testObjectResolver;

            Stopwatch = new Stopwatch();
            Stopwatch.Start();

            CurrentScenarioBlock    = ScenarioBlock.None;
            ScenarioInfo            = scenarioInfo;
            ScenarioExecutionStatus = ScenarioExecutionStatus.OK;
            PendingSteps            = new List <string>();
            MissingSteps            = new List <StepInstance>();
        }
Esempio n. 34
0
        internal ScenarioContext(IObjectContainer scenarioContainer, ScenarioInfo scenarioInfo, IBindingInstanceResolver bindingInstanceResolver)
        {
            this.scenarioContainer       = scenarioContainer;
            this.bindingInstanceResolver = bindingInstanceResolver;

            Stopwatch = new Stopwatch();
            Stopwatch.Start();

            CurrentScenarioBlock = ScenarioBlock.None;
            ScenarioInfo         = scenarioInfo;
            TestStatus           = TestStatus.OK;
            PendingSteps         = new List <string>();
            MissingSteps         = new List <StepInstance>();
        }
Esempio n. 35
0
        internal ScenarioContext(ScenarioInfo scenarioInfo, IObjectContainer parentContainer)
        {
            if (parentContainer == null)
            {
                throw new ArgumentNullException("parentContainer");
            }

            this.scenarioContainer = new ObjectContainer(parentContainer);

            Stopwatch = new Stopwatch();
            Stopwatch.Start();

            CurrentScenarioBlock = ScenarioBlock.None;
            ScenarioInfo         = scenarioInfo;
            TestStatus           = TestStatus.OK;
            PendingSteps         = new List <string>();
            MissingSteps         = new List <StepInstance>();
        }
Esempio n. 36
0
        public virtual void _05BuildingOpponentFormationBaseOnTemplate_ManyCharacters()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("05 Building opponent formation base on template - many characters", null, ((string[])(null)));
#line 110
            this.ScenarioInitialize(scenarioInfo);
            this.ScenarioStart();
#line hidden
            TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] {
                "Level",
                "Name",
                "HP_range",
                "Min_Attack_range",
                "Defence_range",
                "Speed_range",
                "Attack_add_for_max"
            });
            table14.AddRow(new string[] {
                "1",
                "Goblin",
                "18-22",
                "8-12",
                "8-12",
                "8-10",
                "4"
            });
            table14.AddRow(new string[] {
                "2",
                "Goblin",
                "22-26",
                "12-16",
                "10-14",
                "9-11",
                "5"
            });
            table14.AddRow(new string[] {
                "3",
                "Goblin",
                "26-34",
                "16-24",
                "12-16",
                "10-12",
                "7"
            });
            table14.AddRow(new string[] {
                "4",
                "Goblin",
                "40-55",
                "30-40",
                "18-22",
                "11-13",
                "10"
            });
#line 111
            testRunner.Given("Some mercenary templates", ((string)(null)), table14, "Given ");
#line hidden
            TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] {
                "ID",
                "Name",
                "Level",
                "F1",
                "F2",
                "F3",
                "M1",
                "M2",
                "M3",
                "M4",
                "R1",
                "R2",
                "R3"
            });
            table15.AddRow(new string[] {
                "T_1",
                "Goblin pack - easy",
                "1",
                "Goblin@1",
                "",
                "",
                "",
                "",
                "",
                "",
                "",
                "",
                ""
            });
            table15.AddRow(new string[] {
                "T_2",
                "Goblin pack - normal",
                "2",
                "Goblin@2",
                "Goblin@2",
                "",
                "",
                "Goblin@2",
                "",
                "Goblin@1",
                "Goblin@4",
                "",
                "Goblin@4"
            });
#line 117
            testRunner.And("Have some formation templates", ((string)(null)), table15, "And ");
#line 121
            testRunner.When("System want to build opponent pack base on template \'T_2\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
            TechTalk.SpecFlow.Table table16 = new TechTalk.SpecFlow.Table(new string[] {
                "ID",
                "Name",
                "Level",
                "HP_range"
            });
            table16.AddRow(new string[] {
                "Front_1_Goblin_2",
                "Goblin",
                "1",
                "22-26"
            });
            table16.AddRow(new string[] {
                "Front_2_Goblin_2",
                "Goblin",
                "2",
                "22-26"
            });
            table16.AddRow(new string[] {
                "Middle_2_Goblin_2",
                "Goblin",
                "2",
                "22-26"
            });
            table16.AddRow(new string[] {
                "Middle_4_Goblin_1",
                "Goblin",
                "1",
                "18-22"
            });
            table16.AddRow(new string[] {
                "Rear_1_Goblin_4",
                "Goblin",
                "4",
                "40-55"
            });
            table16.AddRow(new string[] {
                "Rear_3_Goblin_4",
                "Goblin",
                "4",
                "40-55"
            });
#line 122
            testRunner.Then("Generated opponents collection should have characters below", ((string)(null)), table16, "Then ");
#line hidden
            TechTalk.SpecFlow.Table table17 = new TechTalk.SpecFlow.Table(new string[] {
                "Position",
                "Character_ID"
            });
            table17.AddRow(new string[] {
                "Front_1",
                "Front_1_Goblin_2"
            });
            table17.AddRow(new string[] {
                "Front_2",
                "Front_2_Goblin_2"
            });
            table17.AddRow(new string[] {
                "Front_3",
                ""
            });
            table17.AddRow(new string[] {
                "Middle_1",
                ""
            });
            table17.AddRow(new string[] {
                "Middle_2",
                "Middle_2_Goblin_2"
            });
            table17.AddRow(new string[] {
                "Middle_3",
                ""
            });
            table17.AddRow(new string[] {
                "Middle_4",
                "Middle_4_Goblin_1"
            });
            table17.AddRow(new string[] {
                "Rear_1",
                "Rear_1_Goblin_4"
            });
            table17.AddRow(new string[] {
                "Rear_2",
                ""
            });
            table17.AddRow(new string[] {
                "Rear_3",
                "Rear_3_Goblin_4"
            });
#line 130
            testRunner.And("Opponent pack formation should look like this", ((string)(null)), table17, "And ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 37
0
        public virtual void _01SettingCharacterInFront1()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("01 Setting character in Front 1", null, new string[] {
                "mytag"
            });
#line 6
            this.ScenarioInitialize(scenarioInfo);
            this.ScenarioStart();
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                "ID",
                "Login",
                "Password"
            });
            table1.AddRow(new string[] {
                "ID_1",
                "test",
                "test"
            });
#line 7
            testRunner.Given("Some accounts exists in system", ((string)(null)), table1, "Given ");
#line 10
            testRunner.And("I try to login for \'test\' and password \'test\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
                "ID",
                "Name",
                "MaxHp",
                "Hp",
                "Min_Att",
                "Max_Att",
                "Def",
                "Speed",
                "Skills"
            });
            table2.AddRow(new string[] {
                "Elf_A",
                "Elf",
                "20",
                "20",
                "10",
                "10",
                "5",
                "10",
                ""
            });
            table2.AddRow(new string[] {
                "Goblin_B",
                "Goblin",
                "10",
                "10",
                "5",
                "5",
                "0",
                "5",
                ""
            });
#line 11
            testRunner.And("Account \'ID_1\' already have some mercenaries", ((string)(null)), table2, "And ");
#line 15
            testRunner.When("Player will set character with ID \'Elf_A\' to position \'Front_1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
            TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] {
                "Position",
                "Character_ID"
            });
            table3.AddRow(new string[] {
                "Front_1",
                "Elf_A"
            });
            table3.AddRow(new string[] {
                "Front_2",
                ""
            });
            table3.AddRow(new string[] {
                "Front_3",
                ""
            });
            table3.AddRow(new string[] {
                "Middle_1",
                ""
            });
            table3.AddRow(new string[] {
                "Middle_2",
                ""
            });
            table3.AddRow(new string[] {
                "Middle_3",
                ""
            });
            table3.AddRow(new string[] {
                "Middle_4",
                ""
            });
            table3.AddRow(new string[] {
                "Rear_1",
                ""
            });
            table3.AddRow(new string[] {
                "Rear_2",
                ""
            });
            table3.AddRow(new string[] {
                "Rear_3",
                ""
            });
#line 16
            testRunner.Then("Pack formation should look like this", ((string)(null)), table3, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void UserEntersLocationManuallyThenChangesLocationManuallyAndSeesAListOfSuggestedLocations()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User enters location manually then changes location manually and sees a list of s" +
                                                                                             "uggested locations", new string[] {
                "USXXX",
                "SmokeTests"
            });
#line 74
            this.ScenarioSetup(scenarioInfo);
#line 6
            this.FeatureBackground();
#line 75
            testRunner.Given("I navigated to the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
            TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table9.AddRow(new string[] {
                "Location",
                "Manchester"
            });
#line 76
            testRunner.When("I enter data", ((string)(null)), table9, "When ");
#line 79
            testRunner.And("I wait for 5 seconds to see LocationAutoComplete", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 80
            testRunner.And("I choose SearchHeader", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 81
            testRunner.And("I choose Search", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 82
            testRunner.Then("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 83
            testRunner.Then("I clear the Location field", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table10.AddRow(new string[] {
                "Location",
                "Cov"
            });
#line 84
            testRunner.When("I enter data", ((string)(null)), table10, "When ");
#line 87
            testRunner.And("I wait for 5 seconds to see LocationAutoComplete", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 88
            testRunner.And("I choose SearchHeader", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 89
            testRunner.And("I choose Search", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 90
            testRunner.And("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 91
            testRunner.And("I wait 3 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table11.AddRow(new string[] {
                "Location",
                "Equals",
                "Coventry (West Midlands)"
            });
            table11.AddRow(new string[] {
                "LocationSuggestionsCount",
                "Greater Than",
                "0"
            });
#line 92
            testRunner.Then("I see", ((string)(null)), table11, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void UserEntersLocationManuallyThenSelectsFromAutocompleteThenRefinesTwiceAndSeesAListOfSuggestionsForTheFinalLocationSearch()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User enters location manually then selects from autocomplete then refines twice a" +
                                                                                             "nd sees a list of suggestions for the final location search", new string[] {
                "USXXX",
                "SmokeTests"
            });
#line 142
            this.ScenarioSetup(scenarioInfo);
#line 6
            this.FeatureBackground();
#line 143
            testRunner.Given("I navigated to the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
            TechTalk.SpecFlow.Table table19 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table19.AddRow(new string[] {
                "Location",
                "Leeds"
            });
#line 144
            testRunner.When("I enter data", ((string)(null)), table19, "When ");
#line 147
            testRunner.Then("I wait for 5 seconds to see LocationAutoComplete", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            TechTalk.SpecFlow.Table table20 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table20.AddRow(new string[] {
                "Text",
                "Equals",
                "Leeds (West Yorkshire)"
            });
#line 148
            testRunner.When("I am on LocationAutoCompletItems list item matching criteria", ((string)(null)), table20, "When ");
#line 151
            testRunner.And("I choose WrappedElement", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 152
            testRunner.And("I am on the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 153
            testRunner.Then("I clear the Location field", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            TechTalk.SpecFlow.Table table21 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table21.AddRow(new string[] {
                "Location",
                "Manchester"
            });
#line 154
            testRunner.When("I enter data", ((string)(null)), table21, "When ");
#line 157
            testRunner.And("I wait for 5 seconds to see LocationAutoComplete", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 158
            testRunner.And("I choose SearchHeader", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 159
            testRunner.And("I choose Search", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 160
            testRunner.And("I wait 3 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 161
            testRunner.And("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table22 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table22.AddRow(new string[] {
                "Location",
                "Equals",
                "Manchester (Greater Manchester)"
            });
            table22.AddRow(new string[] {
                "LocationSuggestionsCount",
                "Greater Than",
                "0"
            });
#line 162
            testRunner.Then("I see", ((string)(null)), table22, "Then ");
#line 166
            testRunner.Then("I clear the Location field", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            TechTalk.SpecFlow.Table table23 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table23.AddRow(new string[] {
                "Location",
                "Cov"
            });
#line 167
            testRunner.When("I enter data", ((string)(null)), table23, "When ");
#line 170
            testRunner.And("I wait for 5 seconds to see LocationAutoComplete", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 171
            testRunner.And("I choose SearchHeader", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 172
            testRunner.And("I choose Search", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 173
            testRunner.And("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 174
            testRunner.And("I wait 3 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table24 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table24.AddRow(new string[] {
                "Location",
                "Equals",
                "Coventry (West Midlands)"
            });
            table24.AddRow(new string[] {
                "LocationSuggestionsCount",
                "Greater Than",
                "0"
            });
#line 175
            testRunner.Then("I see", ((string)(null)), table24, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 40
0
 public void OnScenarioInitialize(ScenarioInfo scenarioInfo)
 {
     _executionEngine.OnScenarioInitialize(scenarioInfo);
 }
        public virtual void WhenSearchingByLocationTheResultsAreOrderedByDistanceAndOrderOptionsDoNotContainBestMatch()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("When searching by location the results are ordered by distance and order options " +
                                                                                             "do not contain best match", new string[] {
                "US449",
                "SmokeTests"
            });
#line 13
            this.ScenarioSetup(scenarioInfo);
#line 6
            this.FeatureBackground();
#line 14
            testRunner.Given("I navigated to the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table1.AddRow(new string[] {
                "Location",
                "Birmingham"
            });
            table1.AddRow(new string[] {
                "WithInDistance",
                "40 miles"
            });
            table1.AddRow(new string[] {
                "ApprenticeshipLevel",
                "All levels"
            });
#line 15
            testRunner.When("I enter data", ((string)(null)), table1, "When ");
#line 20
            testRunner.And("I choose Search", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 21
            testRunner.And("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table2.AddRow(new string[] {
                "SearchResultItemsCount",
                "Greater Than",
                "0"
            });
            table2.AddRow(new string[] {
                "SortOrderingDropDownItemsCount",
                "Equals",
                "3"
            });
            table2.AddRow(new string[] {
                "SortOrderingDropDownItemsText",
                "Equals",
                "Closing date,Distance,Recently added"
            });
            table2.AddRow(new string[] {
                "SortOrderingDropDown",
                "Equals",
                "Distance"
            });
#line 22
            testRunner.Then("I see", ((string)(null)), table2, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 42
0
        public virtual void OpenSkycopClaimHomepage()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Open Skycop claim homepage", null, ((string[])(null)));
#line 3
            this.ScenarioInitialize(scenarioInfo);
            this.ScenarioStart();
#line 4
            testRunner.Given("I navigate to claims", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 5
            testRunner.Then("I set Kaunas as departure airport", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 6
            testRunner.And("I set London Gatwick as arrival airport", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 7
            testRunner.Then("I select airlines", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 8
            testRunner.Then("I select flight number", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 9
            testRunner.Then("I select flight date", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 10
            testRunner.Then("I select flight problem", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 11
            testRunner.Then("I select delay duration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 12
            testRunner.Then("I choose reason provided by airlines", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 13
            testRunner.Then("I choose where did I hear about them", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 14
            testRunner.Then("I select next step", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 15
            testRunner.Then("I describe situation", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 16
            testRunner.Then("I enter reservation number", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 17
            testRunner.Then("I enter travellers details", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 18
            testRunner.Then("I enter name", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 19
            testRunner.Then("I enter surname", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 20
            testRunner.Then("I enter birthdate", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 21
            testRunner.Then("I enter e-mail", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 22
            testRunner.Then("I re-enter e-mail", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 23
            testRunner.Then("I enter mobile phone", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 24
            testRunner.Then("I enter adress", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 25
            testRunner.Then("I enter city", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 26
            testRunner.Then("I enter postcode", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 27
            testRunner.Then("I choose country", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 28
            testRunner.Then("I choose language", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 29
            testRunner.Then("I choose trevellers number", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
 public virtual void ScenarioInitialize(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
 {
     testRunner.OnScenarioInitialize(scenarioInfo);
 }
        public virtual void VerifyRegistrationDecideSpecialismPage(string uln, string firstName, string lastName, string[] exampleTags)
        {
            string[] @__tags = new string[] {
                    "RegressionTest",
                    "ManaulRegistration"};
            if ((exampleTags != null))
            {
                @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
            }
            string[] tagsOfScenario = @__tags;
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            argumentsOfScenario.Add("Uln", uln);
            argumentsOfScenario.Add("First Name", firstName);
            argumentsOfScenario.Add("Last Name", lastName);
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Verify Registration Decide Specialism Page", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 10
this.ScenarioInitialize(scenarioInfo);
#line hidden
            bool isScenarioIgnored = default(bool);
            bool isFeatureIgnored = default(bool);
            if ((tagsOfScenario != null))
            {
                isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
            }
            if ((this._featureTags != null))
            {
                isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
            }
            if ((isScenarioIgnored || isFeatureIgnored))
            {
                testRunner.SkipScenario();
            }
            else
            {
                this.ScenarioStart();
#line 6
this.FeatureBackground();
#line hidden
#line 11
testRunner.When("I click on Add a new registration link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 12
testRunner.And(string.Format("I enter {0} and click Continue button", uln), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 13
testRunner.And(string.Format("I enter {0} {1} in learners page and click Contiune", firstName, lastName), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 14
testRunner.And("I enter Date of Birth in DOB page and click continue", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 15
testRunner.And("I select Provider and click Contiune button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 16
testRunner.And("I select Core and click Continue button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 17
testRunner.Then("I should see Devide Specialism Page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
 public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
 {
     testRunner.OnScenarioStart(scenarioInfo);
 }
 public virtual void ScenarioInitialize(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
 {
     testRunner.OnScenarioInitialize(scenarioInfo);
     testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs<Xunit.Abstractions.ITestOutputHelper>(_testOutputHelper);
 }
 public virtual void ScenarioInitialize(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
 {
     testRunner.OnScenarioInitialize(scenarioInfo);
     testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs <NUnit.Framework.TestContext>(NUnit.Framework.TestContext.CurrentContext);
 }
Esempio n. 48
0
 public void OnScenarioStart(ScenarioInfo scenarioInfo)
 {
     ObjectContainer.ScenarioContext = new ScenarioContext(scenarioInfo);
     FireScenarioEvents(BindingEvent.ScenarioStart);
 }
Esempio n. 49
0
        public virtual void _03CharacterRepositioning()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("03 Character repositioning", null, ((string[])(null)));
#line 55
            this.ScenarioInitialize(scenarioInfo);
            this.ScenarioStart();
#line hidden
            TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] {
                "ID",
                "Login",
                "Password"
            });
            table7.AddRow(new string[] {
                "ID_1",
                "test",
                "test"
            });
#line 56
            testRunner.Given("Some accounts exists in system", ((string)(null)), table7, "Given ");
#line 59
            testRunner.And("I try to login for \'test\' and password \'test\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
                "ID",
                "Name",
                "MaxHp",
                "Hp",
                "Min_Att",
                "Max_Att",
                "Def",
                "Speed",
                "Skills"
            });
            table8.AddRow(new string[] {
                "Elf_A",
                "Elf",
                "20",
                "20",
                "10",
                "10",
                "5",
                "10",
                ""
            });
            table8.AddRow(new string[] {
                "Goblin_B",
                "Goblin",
                "10",
                "10",
                "5",
                "5",
                "0",
                "5",
                ""
            });
#line 60
            testRunner.And("Account \'ID_1\' already have some mercenaries", ((string)(null)), table8, "And ");
#line 64
            testRunner.When("Player will set character with ID \'Elf_A\' to position \'Middle_1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 65
            testRunner.And("Player will set character with ID \'Goblin_B\' to position \'Front_1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 66
            testRunner.And("Player will set character with ID \'Goblin_B\' to position \'Front_3\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] {
                "Position",
                "Character_ID"
            });
            table9.AddRow(new string[] {
                "Front_1",
                ""
            });
            table9.AddRow(new string[] {
                "Front_2",
                ""
            });
            table9.AddRow(new string[] {
                "Front_3",
                "Goblin_B"
            });
            table9.AddRow(new string[] {
                "Middle_1",
                "Elf_A"
            });
            table9.AddRow(new string[] {
                "Middle_2",
                ""
            });
            table9.AddRow(new string[] {
                "Middle_3",
                ""
            });
            table9.AddRow(new string[] {
                "Middle_4",
                ""
            });
            table9.AddRow(new string[] {
                "Rear_1",
                ""
            });
            table9.AddRow(new string[] {
                "Rear_2",
                ""
            });
            table9.AddRow(new string[] {
                "Rear_3",
                ""
            });
#line 67
            testRunner.Then("Pack formation should look like this", ((string)(null)), table9, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
 public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
 {
     testRunner.OnScenarioStart(scenarioInfo);
     testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs <Microsoft.VisualStudio.TestTools.UnitTesting.TestContext>(TestContext);
 }
Esempio n. 51
0
 public void OnScenarioStart(ScenarioInfo scenarioInfo)
 {
     executionEngine.OnScenarioStart(scenarioInfo);
 }
Esempio n. 52
0
        public virtual void Demo_ShowTrackingInformation_UC4_Contact_Classification_ExistingCustomerChecked()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Demo_Show Tracking Information_UC4_Contact_Classification_Existing customer check" +
                                                                                             "ed", new string[] {
                "InDesign"
            });
#line 88
            this.ScenarioSetup(scenarioInfo);
#line hidden
            TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] {
                "Email",
                "Password",
                "ConfirmPassword"
            });
            table4.AddRow(new string[] {
                "*****@*****.**",
                "k",
                "k"
            });
#line 90
            testRunner.Given("User with following data is registered in Habitat", ((string)(null)), table4, "Given ");
#line 93
            testRunner.When("User clicks on <Info-sign> in the right down corner", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 94
            testRunner.And("User expands Classification section", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] {
                "Area Name",
                "Checkbox state"
            });
            table5.AddRow(new string[] {
                "Unclassified",
                "unchecked"
            });
            table5.AddRow(new string[] {
                "Business Visitor",
                "unchecked"
            });
            table5.AddRow(new string[] {
                "ISP",
                "unchecked"
            });
            table5.AddRow(new string[] {
                "Existing Customer",
                "checked"
            });
            table5.AddRow(new string[] {
                "Analyst",
                "unchecked"
            });
            table5.AddRow(new string[] {
                "Press",
                "unchecked"
            });
            table5.AddRow(new string[] {
                "Supplier",
                "unchecked"
            });
            table5.AddRow(new string[] {
                "Business Partner",
                "unchecked"
            });
            table5.AddRow(new string[] {
                "Competitor",
                "unchecked"
            });
            table5.AddRow(new string[] {
                "My Company",
                "unchecked"
            });
            table5.AddRow(new string[] {
                "Bot - Feed Reader",
                "unchecked"
            });
            table5.AddRow(new string[] {
                "Bot - Search Engine",
                "unchecked"
            });
            table5.AddRow(new string[] {
                "Bot - Unidentified",
                "unchecked"
            });
            table5.AddRow(new string[] {
                "Bot - Auto-detected",
                "unchecked"
            });
            table5.AddRow(new string[] {
                "Bot - Malicious",
                "unchecked"
            });
#line 95
            testRunner.Then("Following check boxes present in list", ((string)(null)), table5, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void FindApprenticeshipsByLocationAndChangeOrderingToClosingDateAndBackAgain()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Find apprenticeships by location and change ordering to closing date and back aga" +
                                                                                             "in", new string[] {
                "SmokeTests"
            });
#line 242
            this.ScenarioSetup(scenarioInfo);
#line 6
            this.FeatureBackground();
#line 243
            testRunner.Given("I navigated to the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
            TechTalk.SpecFlow.Table table34 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table34.AddRow(new string[] {
                "Location",
                "Coventry"
            });
            table34.AddRow(new string[] {
                "WithInDistance",
                "40 miles"
            });
            table34.AddRow(new string[] {
                "ApprenticeshipLevel",
                "All levels"
            });
#line 244
            testRunner.When("I enter data", ((string)(null)), table34, "When ");
#line 249
            testRunner.And("I choose Search", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 250
            testRunner.And("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table35 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table35.AddRow(new string[] {
                "SearchResultItemsCount",
                "Equals",
                "5"
            });
            table35.AddRow(new string[] {
                "ResultsAreInDistanceOrder",
                "Equals",
                "True"
            });
#line 251
            testRunner.Then("I see", ((string)(null)), table35, "Then ");
#line hidden
            TechTalk.SpecFlow.Table table36 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table36.AddRow(new string[] {
                "SortOrderingDropDown",
                "Closing date"
            });
#line 255
            testRunner.And("I enter data", ((string)(null)), table36, "And ");
#line 258
            testRunner.And("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 259
            testRunner.And("I wait 3 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table37 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table37.AddRow(new string[] {
                "SearchResultItemsCount",
                "Equals",
                "5"
            });
            table37.AddRow(new string[] {
                "ResultsAreInClosingDateOrder",
                "Equals",
                "True"
            });
#line 260
            testRunner.And("I see", ((string)(null)), table37, "And ");
#line hidden
            TechTalk.SpecFlow.Table table38 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table38.AddRow(new string[] {
                "SortOrderingDropDown",
                "Distance"
            });
#line 264
            testRunner.And("I enter data", ((string)(null)), table38, "And ");
#line 267
            testRunner.And("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 268
            testRunner.And("I wait 3 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table39 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table39.AddRow(new string[] {
                "SearchResultItemsCount",
                "Equals",
                "5"
            });
            table39.AddRow(new string[] {
                "ResultsAreInDistanceOrder",
                "Equals",
                "True"
            });
#line 269
            testRunner.And("I see", ((string)(null)), table39, "And ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 54
0
        public virtual void Demo_ShowTrackingInformation_UC4_Contact_Classification_ListOfTheAvailableCheckBoxesUnclassified()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Demo_Show Tracking Information_UC4_Contact_Classification_List of the available c" +
                                                                                             "heck boxes(Unclassified)", new string[] {
                "NeedImplementation"
            });
#line 63
            this.ScenarioSetup(scenarioInfo);
#line 65
            testRunner.Given("Habitat website is opened on Main Page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 66
            testRunner.When("User clicks on <Info-sign> in the right down corner", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 67
            testRunner.And("User expands Classification section", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] {
                "Area Name",
                "Checkbox state"
            });
            table3.AddRow(new string[] {
                "Unclassified",
                "checked"
            });
            table3.AddRow(new string[] {
                "Business Visitor",
                "unchecked"
            });
            table3.AddRow(new string[] {
                "ISP",
                "unchecked"
            });
            table3.AddRow(new string[] {
                "Existing Customer",
                "unchecked"
            });
            table3.AddRow(new string[] {
                "Analyst",
                "unchecked"
            });
            table3.AddRow(new string[] {
                "Press",
                "unchecked"
            });
            table3.AddRow(new string[] {
                "Supplier",
                "unchecked"
            });
            table3.AddRow(new string[] {
                "Business Partner",
                "unchecked"
            });
            table3.AddRow(new string[] {
                "Competitor",
                "unchecked"
            });
            table3.AddRow(new string[] {
                "My Company",
                "unchecked"
            });
            table3.AddRow(new string[] {
                "Bot - Feed Reader",
                "unchecked"
            });
            table3.AddRow(new string[] {
                "Bot - Search Engine",
                "unchecked"
            });
            table3.AddRow(new string[] {
                "Bot - Unidentified",
                "unchecked"
            });
            table3.AddRow(new string[] {
                "Bot - Auto-detected",
                "unchecked"
            });
            table3.AddRow(new string[] {
                "Bot - Malicious",
                "unchecked"
            });
#line 68
            testRunner.Then("Following check boxes present in list", ((string)(null)), table3, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void FindApprenticeshipsByLocationAndChangeOrderingToClosingDate()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Find apprenticeships by location and change ordering to closing date", new string[] {
                "SmokeTests"
            });
#line 218
            this.ScenarioSetup(scenarioInfo);
#line 6
            this.FeatureBackground();
#line 219
            testRunner.Given("I navigated to the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
            TechTalk.SpecFlow.Table table30 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table30.AddRow(new string[] {
                "Location",
                "Coventry"
            });
            table30.AddRow(new string[] {
                "WithInDistance",
                "40 miles"
            });
            table30.AddRow(new string[] {
                "ApprenticeshipLevel",
                "All levels"
            });
#line 220
            testRunner.When("I enter data", ((string)(null)), table30, "When ");
#line 225
            testRunner.And("I choose Search", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 226
            testRunner.And("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table31 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table31.AddRow(new string[] {
                "SearchResultItemsCount",
                "Equals",
                "5"
            });
            table31.AddRow(new string[] {
                "ResultsAreInDistanceOrder",
                "Equals",
                "True"
            });
#line 227
            testRunner.Then("I see", ((string)(null)), table31, "Then ");
#line hidden
            TechTalk.SpecFlow.Table table32 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table32.AddRow(new string[] {
                "SortOrderingDropDown",
                "Closing date"
            });
#line 231
            testRunner.And("I enter data", ((string)(null)), table32, "And ");
#line 234
            testRunner.And("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 235
            testRunner.And("I wait 3 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table33 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table33.AddRow(new string[] {
                "SearchResultItemsCount",
                "Equals",
                "5"
            });
            table33.AddRow(new string[] {
                "ResultsAreInClosingDateOrder",
                "Equals",
                "True"
            });
#line 236
            testRunner.And("I see", ((string)(null)), table33, "And ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 56
0
        public virtual void PatchWithInvalidDateActionPlanSentToCustomer()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Patch with invalid DateActionPlanSentToCustomer", null, ((string[])(null)));
#line 180
            this.ScenarioInitialize(scenarioInfo);
            this.ScenarioStart();
#line 5
            this.FeatureBackground();
#line hidden
            TechTalk.SpecFlow.Table table22 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table22.AddRow(new string[] {
                "DateActionPlanCreated",
                "2018-07-30T09:00:00Z"
            });
            table22.AddRow(new string[] {
                "CustomerCharterShownToCustomer",
                "true"
            });
            table22.AddRow(new string[] {
                "DateAndTimeCharterShown",
                "2018-07-30T09:00:00Z"
            });
            table22.AddRow(new string[] {
                "DateActionPlanSentToCustomer",
                "2018-07-30T09:00:00Z"
            });
            table22.AddRow(new string[] {
                "ActionPlanDeliveryMethod",
                "1"
            });
            table22.AddRow(new string[] {
                "DateActionPlanAcknowledged",
                "2018-07-30T09:00:00Z"
            });
            table22.AddRow(new string[] {
                "PriorityCustomer",
                "1"
            });
            table22.AddRow(new string[] {
                "CurrentSituation",
                "looking for work"
            });
#line 181
            testRunner.Given("I post an ActionPlan with the following details:", ((string)(null)), table22, "Given ");
#line hidden
            TechTalk.SpecFlow.Table table23 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table23.AddRow(new string[] {
                "DateActionPlanSentToCustomer",
                "20181-07-30T09:00:00Z"
            });
#line 191
            testRunner.When("I patch the following:", ((string)(null)), table23, "When ");
#line 194
            testRunner.Then("there should be a 422 response", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void UserEntersLocationManuallyThenSelectsFromAutocompleteThenChangesLocationManuallyThenSelectsFromAutocompleteAndSeesAListOfSuggestedLocations()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User enters location manually then selects from autocomplete then changes locatio" +
                                                                                             "n manually then selects from autocomplete and sees a list of suggested locations" +
                                                                                             "", new string[] {
                "USXXX",
                "SmokeTests"
            });
#line 181
            this.ScenarioSetup(scenarioInfo);
#line 6
            this.FeatureBackground();
#line 182
            testRunner.Given("I navigated to the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
            TechTalk.SpecFlow.Table table25 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table25.AddRow(new string[] {
                "Location",
                "Coventry"
            });
#line 183
            testRunner.When("I enter data", ((string)(null)), table25, "When ");
#line 186
            testRunner.And("I wait for 5 seconds to see LocationAutoComplete", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 187
            testRunner.And("I choose SearchHeader", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 188
            testRunner.And("I choose Search", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 189
            testRunner.And("I wait 3 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 190
            testRunner.And("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table26 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table26.AddRow(new string[] {
                "Location",
                "Contains",
                "Cove"
            });
            table26.AddRow(new string[] {
                "LocationSuggestionsCount",
                "Greater Than",
                "0"
            });
#line 191
            testRunner.Then("I see", ((string)(null)), table26, "Then ");
#line 198
            testRunner.Then("I clear the Location field", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            TechTalk.SpecFlow.Table table27 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table27.AddRow(new string[] {
                "Location",
                "Covent"
            });
#line 199
            testRunner.When("I enter data", ((string)(null)), table27, "When ");
#line 202
            testRunner.Then("I wait for 5 seconds to see LocationAutoComplete", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            TechTalk.SpecFlow.Table table28 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table28.AddRow(new string[] {
                "Text",
                "Equals",
                "Coventry (West Midlands)"
            });
#line 203
            testRunner.When("I am on LocationAutoCompletItems list item matching criteria", ((string)(null)), table28, "When ");
#line 206
            testRunner.And("I choose WrappedElement", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 207
            testRunner.And("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 208
            testRunner.And("I choose Search", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 209
            testRunner.And("I wait 3 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 210
            testRunner.And("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table29 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table29.AddRow(new string[] {
                "Location",
                "Equals",
                "Coventry (West Midlands)"
            });
            table29.AddRow(new string[] {
                "LocationSuggestionsContainer",
                "Does Not Exist",
                ""
            });
#line 211
            testRunner.Then("I see", ((string)(null)), table29, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
Esempio n. 58
0
        public virtual void PatchCurrentSituation()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Patch CurrentSituation", null, ((string[])(null)));
#line 104
            this.ScenarioInitialize(scenarioInfo);
            this.ScenarioStart();
#line 5
            this.FeatureBackground();
#line hidden
            TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table13.AddRow(new string[] {
                "DateActionPlanCreated",
                "2018-07-30T09:00:00Z"
            });
            table13.AddRow(new string[] {
                "CustomerCharterShownToCustomer",
                "true"
            });
            table13.AddRow(new string[] {
                "DateAndTimeCharterShown",
                "2018-07-30T09:00:00Z"
            });
            table13.AddRow(new string[] {
                "DateActionPlanSentToCustomer",
                "2018-07-30T09:00:00Z"
            });
            table13.AddRow(new string[] {
                "ActionPlanDeliveryMethod",
                "1"
            });
            table13.AddRow(new string[] {
                "DateActionPlanAcknowledged",
                "2018-07-30T09:00:00Z"
            });
            table13.AddRow(new string[] {
                "PriorityCustomer",
                "1"
            });
            table13.AddRow(new string[] {
                "CurrentSituation",
                "looking for work"
            });
#line 105
            testRunner.Given("I post an ActionPlan with the following details:", ((string)(null)), table13, "Given ");
#line hidden
            TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table14.AddRow(new string[] {
                "CurrentSituation",
                "updated text here"
            });
#line 115
            testRunner.When("I patch the following:", ((string)(null)), table14, "When ");
#line 118
            testRunner.Then("there should be a 200 response", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table15.AddRow(new string[] {
                "DateActionPlanCreated",
                "2018-07-30T09:00:00Z"
            });
            table15.AddRow(new string[] {
                "CustomerCharterShownToCustomer",
                "true"
            });
            table15.AddRow(new string[] {
                "DateAndTimeCharterShown",
                "2018-07-30T09:00:00Z"
            });
            table15.AddRow(new string[] {
                "DateActionPlanSentToCustomer",
                "2018-07-30T09:00:00Z"
            });
            table15.AddRow(new string[] {
                "ActionPlanDeliveryMethod",
                "1"
            });
            table15.AddRow(new string[] {
                "DateActionPlanAcknowledged",
                "2018-07-30T09:00:00Z"
            });
            table15.AddRow(new string[] {
                "PriorityCustomer",
                "1"
            });
            table15.AddRow(new string[] {
                "CurrentSituation",
                "updated text here"
            });
#line 119
            testRunner.And("the response body should contain:", ((string)(null)), table15, "And ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void UserEntersLocationManuallyThenSelectsFromAutocompleteAndSeesOnlyTheirChosenLocation()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User enters location manually then selects from autocomplete and sees only their " +
                                                                                             "chosen location", new string[] {
                "USXXX",
                "SmokeTests"
            });
#line 98
            this.ScenarioSetup(scenarioInfo);
#line 6
            this.FeatureBackground();
#line 99
            testRunner.Given("I navigated to the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
            TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table12.AddRow(new string[] {
                "Location",
                "Leeds"
            });
#line 100
            testRunner.When("I enter data", ((string)(null)), table12, "When ");
#line 103
            testRunner.Then("I wait for 5 seconds to see LocationAutoComplete", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table13.AddRow(new string[] {
                "Text",
                "Equals",
                "Leeds (West Yorkshire)"
            });
#line 104
            testRunner.When("I am on LocationAutoCompletItems list item matching criteria", ((string)(null)), table13, "When ");
#line 107
            testRunner.And("I choose WrappedElement", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 108
            testRunner.And("I am on the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 109
            testRunner.And("I choose Search", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 110
            testRunner.And("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table14.AddRow(new string[] {
                "Location",
                "Equals",
                "Leeds (West Yorkshire)"
            });
            table14.AddRow(new string[] {
                "LocationSuggestionsContainer",
                "Does Not Exist",
                ""
            });
#line 111
            testRunner.Then("I see", ((string)(null)), table14, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
        public virtual void UserEntersLocationManuallyThenSelectsFromAutocompleteThenChangesLocationManuallyAndSeesAListOfSuggestedLocations()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User enters location manually then selects from autocomplete then changes locatio" +
                                                                                             "n manually and sees a list of suggested locations", new string[] {
                "USXXX",
                "SmokeTests"
            });
#line 117
            this.ScenarioSetup(scenarioInfo);
#line 6
            this.FeatureBackground();
#line 118
            testRunner.Given("I navigated to the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
            TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table15.AddRow(new string[] {
                "Location",
                "Leeds"
            });
#line 119
            testRunner.When("I enter data", ((string)(null)), table15, "When ");
#line 122
            testRunner.Then("I wait for 5 seconds to see LocationAutoComplete", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            TechTalk.SpecFlow.Table table16 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table16.AddRow(new string[] {
                "Text",
                "Equals",
                "Leeds (West Yorkshire)"
            });
#line 123
            testRunner.When("I am on LocationAutoCompletItems list item matching criteria", ((string)(null)), table16, "When ");
#line 126
            testRunner.And("I choose WrappedElement", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 127
            testRunner.And("I am on the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 128
            testRunner.Then("I clear the Location field", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            TechTalk.SpecFlow.Table table17 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Value"
            });
            table17.AddRow(new string[] {
                "Location",
                "Manchester"
            });
#line 129
            testRunner.When("I enter data", ((string)(null)), table17, "When ");
#line 132
            testRunner.And("I wait for 5 seconds to see LocationAutoComplete", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 133
            testRunner.And("I choose SearchHeader", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 134
            testRunner.And("I choose Search", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 135
            testRunner.Then("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            TechTalk.SpecFlow.Table table18 = new TechTalk.SpecFlow.Table(new string[] {
                "Field",
                "Rule",
                "Value"
            });
            table18.AddRow(new string[] {
                "Location",
                "Equals",
                "Manchester (Greater Manchester)"
            });
            table18.AddRow(new string[] {
                "LocationSuggestionsCount",
                "Greater Than",
                "0"
            });
#line 136
            testRunner.And("I see", ((string)(null)), table18, "And ");
#line hidden
            this.ScenarioCleanup();
        }