public virtual void CreateDynamicInstanceFromTableWithFieldAndValues() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create dynamic instance from table with Field and Values", new string[] { "mytag"}); #line 7 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value"}); table1.AddRow(new string[] { "Name", "Marcus"}); table1.AddRow(new string[] { "Age", "39"}); table1.AddRow(new string[] { "Birth date", "1972-10-09"}); table1.AddRow(new string[] { "Length in meters", "1.96"}); #line 8 testRunner.When("I create a dynamic instance from this table", ((string)(null)), table1, "When "); #line 14 testRunner.Then("the Name property should equal \'Marcus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void BrowseAvailableMovies() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Browse available movies", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "title"}); table1.AddRow(new string[] { "Blazing Saddles"}); table1.AddRow(new string[] { "Space Balls"}); #line 7 testRunner.Given("I have the following movies:", ((string)(null)), table1); #line 11 testRunner.When("I go to \"Movies\""); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "title"}); table2.AddRow(new string[] { "Blazing Saddles"}); table2.AddRow(new string[] { "Space Balls"}); #line 12 testRunner.Then("I should see in the listing:", ((string)(null)), table2); #line hidden testRunner.CollectScenarioErrors(); }
public virtual void AddingATask() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Adding a task", ((string[])(null))); #line 8 this.ScenarioSetup(scenarioInfo); #line 9 testRunner.Given("I am logged in", ((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[] { "Name", "Test Task"}); table1.AddRow(new string[] { "Note", "This is a test task note."}); #line 10 testRunner.And("I enter info for a new task", ((string)(null)), table1, "And "); #line 14 testRunner.When("I save the task", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 15 testRunner.Then("the task with title \"Test Task\" should appear in my list of tasks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void RegisterWithValidInformation() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Register with valid information", ((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 \"Log On\" link"); #line 9 testRunner.And("I click the \"Register\" link"); #line 10 testRunner.And("I enter a random username"); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value"}); table1.AddRow(new string[] { "Email", "*****@*****.**"}); table1.AddRow(new string[] { "Password", "password"}); table1.AddRow(new string[] { "ConfirmPassword", "password"}); #line 11 testRunner.And("I complete the form with the following information:", ((string)(null)), table1); #line 16 testRunner.And("I click the \"Register\" button"); #line 17 testRunner.Then("I should see a link with the text \"Log Off\" on the page"); #line hidden testRunner.CollectScenarioErrors(); }
public virtual void ExportTasks() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Export tasks", ((string[])(null))); #line 7 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Title"}); table1.AddRow(new string[] { "Foo"}); table1.AddRow(new string[] { "Bar"}); table1.AddRow(new string[] { "Baz"}); #line 8 testRunner.Given("that the following tasks already exist and are loaded:", ((string)(null)), table1); #line 13 testRunner.And("that everything is saved"); #line 14 testRunner.And("that I enter \"C:\\foo\\bar.taskboard\" in the export taskboard dialog"); #line 15 testRunner.When("I click export task"); #line 16 testRunner.Then("the tasks should be exported to a \"C:\\foo\\bar.taskboard\""); #line 17 testRunner.And("the exported tasks should contain 3 tasks"); #line 18 testRunner.And("task #2 in the exported tasks should have the title \"Bar\""); #line 19 testRunner.And("the exported tasks should not have empty IDs"); #line hidden testRunner.CollectScenarioErrors(); }
public virtual void SamuraiAreDangeousWithKatanasNoAdvancedKicks() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Samurai are dangeous with katanas, no advanced kicks", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "skills"}); table1.AddRow(new string[] { "katana"}); table1.AddRow(new string[] { "karate-kick"}); table1.AddRow(new string[] { "roundhouse-kick"}); #line 7 testRunner.Given("the following skills are allowed", ((string)(null)), table1); #line 12 testRunner.When("a ninja faces a samurai"); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "technique", "danger"}); table2.AddRow(new string[] { "katana", "high"}); table2.AddRow(new string[] { "karate-kick", "low"}); #line 13 testRunner.Then("he should expect the following attack techniques", ((string)(null)), table2); #line hidden testRunner.CollectScenarioErrors(); }
public virtual void VerifyingTheNavigationInBe_InspiredPage() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Verifying the navigation in Be-inspired page", ((string[])(null))); #line 10 this.ScenarioSetup(scenarioInfo); #line 11 testRunner.Given("I am on the AK homepage", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 12 testRunner.When("I click on BeInspired tab on homepage", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Value"}); table1.AddRow(new string[] { "PLACES TO VISIT"}); table1.AddRow(new string[] { "THINGS TO SEE & DO"}); table1.AddRow(new string[] { "WHERE TO STAY"}); table1.AddRow(new string[] { "MY PINBOARD"}); #line 13 testRunner.Then("Be-inspired Navigation Links displayed:", ((string)(null)), table1, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void TheAnswerWithTheHighestVoteGetsToTheTop() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("The answer with the highest vote gets to the top", new string[] { "mytag_is_here"}); #line 7 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Answer", "Vote"}); table1.AddRow(new string[] { "Red", "1"}); table1.AddRow(new string[] { "Green", "1"}); #line 8 testRunner.Given("There is a question \"What\'s your favourite color?\" with the answers", ((string)(null)), table1, "Given "); #line 12 testRunner.When("you upvote answer \"Green\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 13 testRunner.Then("the answer \"Green\" should be on top", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void StandardGameWith2Robots() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Standard game with 2 robots", ((string[])(null))); #line 3 this.ScenarioSetup(scenarioInfo); #line 4 testRunner.Given("that I have created a battle arena of size 5 5", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "InitialPosition", "MoveInstructions"}); table1.AddRow(new string[] { "1 2 N", "LMLMLMLMM"}); table1.AddRow(new string[] { "3 3 E", "MMRMMRMRRM"}); #line 5 testRunner.And("that I have deployed the following robots", ((string)(null)), table1, "And "); #line 9 testRunner.When("I play the game", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "FinalPosition"}); table2.AddRow(new string[] { "1 3 N"}); table2.AddRow(new string[] { "5 1 E"}); #line 10 testRunner.Then("the resulting positions of the robots should be", ((string)(null)), table2, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void LogsWriterShouldHaveNoLocks() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Logs writer should have no locks", new string[] { "unit"}); #line 7 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "User Id"}); table1.AddRow(new string[] { "*****@*****.**"}); table1.AddRow(new string[] { "*****@*****.**"}); table1.AddRow(new string[] { "*****@*****.**"}); table1.AddRow(new string[] { "*****@*****.**"}); table1.AddRow(new string[] { "*****@*****.**"}); #line 8 testRunner.Given("I have \'5\' users that work with a system simulteneously", ((string)(null)), table1, "Given "); #line 15 testRunner.When("I add \'1000\' simulteneous logs into dynamo db", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 16 testRunner.Then("the result should be \'1000\' logs in dynamo db", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void Tooltip1() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Tooltip 1", ((string[])(null))); #line 10 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Property", "Value"}); table1.AddRow(new string[] { "CreatedDate", "26.01.2005 15:55"}); table1.AddRow(new string[] { "StartedDate", "27.01.2006 8:32"}); table1.AddRow(new string[] { "StateChangedDate", "27.01.2006 8:32"}); table1.AddRow(new string[] { "ModifiedDate", "27.01.2006 19:23"}); #line 11 testRunner.Given("a task with the following attributes:", ((string)(null)), table1); #line hidden #line 17 testRunner.Then("the tooltip should show", "Created: 26.01.2005 15:55 \r\nLast modified: 27.01.2006 19:23\r\nStarted: 27.01.2006 " + "08:32\r\nState last changed: 27.01.2006 08:32", ((TechTalk.SpecFlow.Table)(null))); #line hidden testRunner.CollectScenarioErrors(); }
public virtual void ASimpleTableInTheGivenStatement() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("a simple table in the given statement", ((string[])(null))); #line 5 this.ScenarioSetup(scenarioInfo); #line 6 testRunner.Given("I am a table specification", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "answer", "vote"}); table1.AddRow(new string[] { "Red", "1"}); table1.AddRow(new string[] { "Cucumber green", "1"}); table1.AddRow(new string[] { "blue", "1"}); #line 7 testRunner.And("I can see the table whats your favourite colour", ((string)(null)), table1, "And "); #line 12 testRunner.When("I attempt to up vote the answer, Cucumber green", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 13 testRunner.Then("I should see the favourite colour is \'Cucumber green\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void LogCustomersRegistering() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Log customers registering", ((string[])(null))); #line 7 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Email", "Name", "Password"}); table1.AddRow(new string[] { "*****@*****.**", "Scott", "Cheese@123"}); table1.AddRow(new string[] { "*****@*****.**", "Jack", "B@rry123"}); table1.AddRow(new string[] { "*****@*****.**", "Mike", "Chemic@l"}); #line 8 testRunner.Given("I have registered these people:", ((string)(null)), table1); #line 13 testRunner.When("I check the regisration logs"); #line 14 testRunner.Then("I should find \"3\" \"Registration\" entries in the logs"); #line hidden testRunner.CollectScenarioErrors(); }
public virtual void VerifyTheNavigationLinksInTheCountryPage() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Verify the navigation links in the country page", new string[] { "mytag"}); #line 7 this.ScenarioSetup(scenarioInfo); #line 8 testRunner.Given("I reach the Botswana Page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Value"}); table1.AddRow(new string[] { "OVERVIEW"}); table1.AddRow(new string[] { "AREAS"}); table1.AddRow(new string[] { "GUIDED GROUP JOURNEYS"}); table1.AddRow(new string[] { "TAILOR MADE JOURNEYS"}); table1.AddRow(new string[] { "ACCOMMODATIONS"}); table1.AddRow(new string[] { "INSIDER ACCESS"}); table1.AddRow(new string[] { "USEFUL INFO"}); #line 9 testRunner.Then("The Navigation Links are present", ((string)(null)), table1, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void FeatureBackground() { #line 30 #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "TrackingID", "Status"}); table1.AddRow(new string[] { "{51EB626B-D5B4-4AE4-9FD5-3D0208E4E42A}", "OK"}); table1.AddRow(new string[] { "{0B4E7851-5EC1-4821-A4D2-F58B1F69F60F}", ""}); #line 31 testRunner.Given("tracking information of lot# 2003 has data as shown in the table", ((string)(null)), table1); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "TrackingID", "Status"}); table2.AddRow(new string[] { "{8B6000E4-7522-4660-B840-DAA31E136C55}", "OK"}); table2.AddRow(new string[] { "{24AB763D-0694-4304-ADBE-40067930B782}", "OK"}); table2.AddRow(new string[] { "{181A88E1-30DA-4F64-8EC8-B9A325F18CEE}", "OK"}); table2.AddRow(new string[] { "{4B103861-C7C8-4761-96F6-FB1EAC58CD69}", "Timeout"}); #line 35 testRunner.And("tracking information of lot# 2004 has data as shown in the table", ((string)(null)), table2); #line hidden }
public virtual void RetreiveCustomers() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Retreive Customers", new string[] { "retrieve_entities"}); #line 7 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "CustomerId", "CustomerName"}); table1.AddRow(new string[] { "ABCD", "Test Customer ABCD"}); table1.AddRow(new string[] { "EFGH", "Test Customer EFGH"}); #line 8 testRunner.Given("the following customers", ((string)(null)), table1, "Given "); #line 12 testRunner.When("I submit a GET request for customers", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 13 testRunner.Then("the request should return the customers", ((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(); }
public virtual void OptionWithValueReturnsValues() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("option with value returns values", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "short", "long", "description", "default"}); table1.AddRow(new string[] { "m", "message", "message", "god loves ugly"}); #line 7 testRunner.Given("I have the following option with a default param", ((string)(null)), table1); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "args"}); table2.AddRow(new string[] { "--message"}); table2.AddRow(new string[] { "bad clown, sad summmer"}); #line 10 testRunner.When("I pass in the arguments", ((string)(null)), table2); #line 14 testRunner.Then("the property message should return \"bad clown, sad summmer\""); #line hidden testRunner.CollectScenarioErrors(); }
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.Users, Orchard.Roles, Orchard.Messaging, Or" + "chard.Comments, Orchard.PublishLater, Orchard.Themes, Orchard.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); #line 12 testRunner.When("I go to \"/\""); #line 13 testRunner.Then("I should see \"Welcome to Orchard\""); #line 14 testRunner.And("I should see \"Finish Setup\""); #line 15 testRunner.And("the status should be 200 \"OK\""); #line hidden this.ScenarioCleanup(); }
public virtual void FeatureBackground() { #line 7 #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "numero", "valor"}); table1.AddRow(new string[] { "1", "10"}); table1.AddRow(new string[] { "2", "20"}); table1.AddRow(new string[] { "3", "30"}); table1.AddRow(new string[] { "4", "40"}); #line 8 testRunner.Given("os seguintes boletos em aberto no sistema", ((string)(null)), table1, "Dado "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "numero", "valor"}); table2.AddRow(new string[] { "10", "100"}); #line 14 testRunner.And("os seguintes boletos fechados no sistema", ((string)(null)), table2, "E "); #line hidden }
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 EachModuleInTheVisualStudioCoverageDataGeneratesAPackageInTheCoberturaFormat() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Each module in the visual studio coverage data generates a package in the cobertu" + "ra format", ((string[])(null))); #line 3 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "module name"}); table1.AddRow(new string[] { "UnitTests"}); table1.AddRow(new string[] { "FeatureTests"}); #line 5 testRunner.Given("the coverage data has the following modules:", ((string)(null)), table1, "Given "); #line 10 testRunner.When("I convert the data to cobertura", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 12 testRunner.Then("the cobertura xml has 2 packages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "package name"}); table2.AddRow(new string[] { "UnitTests"}); table2.AddRow(new string[] { "FeatureTests"}); #line 13 testRunner.And("the cobertura xml has the following packages:", ((string)(null)), table2, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void FeatureBackground() { #line 7 #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Author", "Title", "Price"}); table1.AddRow(new string[] { "Martin Fowler", "Analysis Patterns", "50.20"}); table1.AddRow(new string[] { "Eric Evans", "Domain Driven Design", "46.34"}); table1.AddRow(new string[] { "Ted Pattison", "Inside Windows SharePoint Services", "31.49"}); table1.AddRow(new string[] { "Gojko Adzic", "Bridging the Communication Gap", "24.75"}); #line 8 testRunner.Given("the following books", ((string)(null)), table1, "Given "); #line hidden }
public virtual void FeatureBackground() { #line 6 #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "SerialNumber", "Status"}); table1.AddRow(new string[] { "P-348-A", "Ready"}); table1.AddRow(new string[] { "S-232-G", "Ready"}); table1.AddRow(new string[] { "T-282-D", "Ready"}); table1.AddRow(new string[] { "V-517-U", "Retired"}); table1.AddRow(new string[] { "G-135-N", "Retired"}); #line 7 testRunner.Given("I have the following transports in the system", ((string)(null)), table1, "Given "); #line hidden }
public virtual void AlienE_T_OchJawsIFilmsamlingen() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("\"Alien\", \"E.T.\" och \"Jaws\" i filmsamlingen", ((string[])(null))); #line 7 this.ScenarioSetup(scenarioInfo); #line 8 testRunner.Given("att filmsamlingen innehåller \"Alien\", \"E.T.\", \"Jaws\""); #line 9 testRunner.When("jag anger kommando: ListaFilmer"); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Rad"}); table1.AddRow(new string[] { "Alien"}); table1.AddRow(new string[] { "E.T."}); table1.AddRow(new string[] { "Jaws"}); table1.AddRow(new string[] { "Du har 3 filmer i samlingen"}); #line 10 testRunner.Then("ska resultatet vara:", ((string)(null)), table1); #line hidden testRunner.CollectScenarioErrors(); }
public virtual void ALiveCellWithNoNeighboursDies() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("A live cell with no neighbours dies", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "0", "1"}); table1.AddRow(new string[] { "*", ""}); table1.AddRow(new string[] { "", ""}); #line 7 testRunner.Given("a game of life grid", ((string)(null)), table1); #line 11 testRunner.When("the next generation"); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "0", "1"}); table2.AddRow(new string[] { "", ""}); table2.AddRow(new string[] { "", ""}); #line 12 testRunner.Then("the grid should be", ((string)(null)), table2); #line hidden testRunner.CollectScenarioErrors(); }
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.Blogs, Orchard.MediaLibrary, Orchard.Modules, Orchard.Packaging, Orchard.PublishLater, Orchard.Themes, Orchard.Scripting, Orchard.Widgets, Orchard.Users, Orchard.ContentTypes, Orchard.Roles, Orchard.Comments, Orchard.jQuery, Orchard.Tags, TinyMce, Orchard.Recipes, Orchard.Warmup, Orchard.Alias, Orchard.Forms, Orchard.Tokens, Orchard.Autoroute, Orchard.Projections, Orchard.Fields, Orchard.MediaProcessing, Orchard.OutputCache, Orchard.Taxonomies, Orchard.Workflows, Orchard.Scripting.CSharp"}); table1.AddRow(new string[] { "Core", "Common, Containers, Dashboard, Feeds, Navigation, Contents, Scheduling, Settings," + " Shapes, XmlRpc, Title, Reports"}); 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(); }
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(); }
public virtual void GetTimeToWin() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get Time To Win", new string[] { "mytag"}); #line 7 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "field", "values"}); table1.AddRow(new string[] { "Cookies To Buy A Farm", "500.0"}); table1.AddRow(new string[] { "Frequency", "4.0"}); table1.AddRow(new string[] { "Cookies To Win", "2000.0"}); #line 8 testRunner.Given("I enter following values:", ((string)(null)), table1, "Given "); #line 13 testRunner.When("I start playing the game", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 14 testRunner.Then("I want to see total time \'526.1904762\' seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void SettingRelativePriority() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Setting relative priority", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Title"}); table1.AddRow(new string[] { "One"}); table1.AddRow(new string[] { "Two"}); table1.AddRow(new string[] { "Three"}); #line 7 testRunner.Given("that the following tasks already exist and are loaded:", ((string)(null)), table1); #line 12 testRunner.When("I set task \"Three\" to be more important than task \"One\""); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Title"}); table2.AddRow(new string[] { "Three"}); table2.AddRow(new string[] { "One"}); table2.AddRow(new string[] { "Two"}); #line 13 testRunner.Then("the tasks should be in this order:", ((string)(null)), table2); #line hidden testRunner.CollectScenarioErrors(); }
public virtual void RunATestExpectingAnErrorAsAnUnknownUser() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Run a test expecting an error as an unknown user", ((string[])(null))); #line 135 this.ScenarioSetup(scenarioInfo); #line 8 this.FeatureBackground(); #line 136 testRunner.Given("the test builder is open with existing service \"Hello World\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 137 testRunner.And("Tab Header is \"Hello World - Tests\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 138 testRunner.When("I click New Test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 139 testRunner.Then("a new test is added", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 140 testRunner.And("Tab Header is \"Hello World - Tests *\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 141 testRunner.And("test name starts with \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 142 testRunner.And("test AuthenticationType as \"User\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 143 testRunner.And("username is \"WrongUser\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 144 testRunner.And("password is \"badPassword\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1060 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value", "EmptyIsNull" }); table1060.AddRow(new string[] { "Name", "Bob", "true" }); #line 145 testRunner.And("I update inputs as", ((string)(null)), table1060, "And "); #line 148 testRunner.And("save is enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 149 testRunner.And("test status is pending", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 150 testRunner.And("test is enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 151 testRunner.And("I remove all Test Steps", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 152 testRunner.And("I save", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 153 testRunner.And("I expect Error \"The user\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 154 testRunner.When("I run the test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 155 testRunner.Then("the service debug assert Aggregate message contains \"Passed\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 156 testRunner.Then("test result is Passed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 157 testRunner.When("I delete \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 158 testRunner.Then("The \"DeleteConfirmation\" popup is shown I click Ok", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void RunATestExpectingNoErrorAsAnUnknownUser() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Run a test expecting no error as an unknown user", ((string[])(null))); #line 111 this.ScenarioSetup(scenarioInfo); #line 8 this.FeatureBackground(); #line 112 testRunner.Given("the test builder is open with existing service \"Hello World\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 113 testRunner.And("Tab Header is \"Hello World - Tests\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 114 testRunner.When("I click New Test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 115 testRunner.Then("a new test is added", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 116 testRunner.And("Tab Header is \"Hello World - Tests *\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 117 testRunner.And("test name starts with \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 118 testRunner.And("test AuthenticationType as \"User\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 119 testRunner.And("username is \"WrongUser\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 120 testRunner.And("password is \"badPassword\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1059 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value", "EmptyIsNull" }); table1059.AddRow(new string[] { "Name", "", "true" }); #line 121 testRunner.And("I update inputs as", ((string)(null)), table1059, "And "); #line 124 testRunner.And("save is enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 125 testRunner.And("test status is pending", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 126 testRunner.And("test is enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 127 testRunner.And("I remove all Test Steps", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 128 testRunner.And("I save", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 129 testRunner.When("I run the test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 130 testRunner.Then("the service debug assert Aggregate message contains \"Failed: The user running the" + " test is not authorized to execute resource Hello World\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 131 testRunner.Then("test result is Failed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 132 testRunner.When("I delete \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 133 testRunner.Then("The \"DeleteConfirmation\" popup is shown I click Ok", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void RunATestExpectingError() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Run a test expecting error", ((string[])(null))); #line 87 this.ScenarioSetup(scenarioInfo); #line 8 this.FeatureBackground(); #line 88 testRunner.Given("the test builder is open with existing service \"HelloWorldWithError\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 89 testRunner.And("Tab Header is \"HelloWorldWithError - Tests\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 90 testRunner.When("I click New Test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 91 testRunner.Then("a new test is added", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 92 testRunner.And("Tab Header is \"HelloWorldWithError - Tests *\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 93 testRunner.And("test name starts with \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 94 testRunner.And("username is blank", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 95 testRunner.And("password is blank", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1058 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value", "EmptyIsNull" }); table1058.AddRow(new string[] { "Name", "", "true" }); #line 96 testRunner.And("I update inputs as", ((string)(null)), table1058, "And "); #line 99 testRunner.And("I expect Error \"p\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 100 testRunner.And("save is enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 101 testRunner.And("test status is pending", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 102 testRunner.And("test is enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 103 testRunner.And("I remove all Test Steps", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 104 testRunner.And("I save", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 105 testRunner.When("I run the test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 106 testRunner.Then("the service debug assert message contains \"Failed: Expected Error containing \'p\' " + "but got \'variable not found\'\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 107 testRunner.Then("test result is Failed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 108 testRunner.When("I delete \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 109 testRunner.Then("The \"DeleteConfirmation\" popup is shown I click Ok", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void CreateNewTestWithServiceThatAsRecordsetInputs() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create New Test with Service that as recordset inputs", ((string[])(null))); #line 44 this.ScenarioSetup(scenarioInfo); #line 8 this.FeatureBackground(); #line 45 testRunner.Given("the test builder is open with \"Workflow 2\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 46 testRunner.And("Tab Header is \"Workflow 2 - Tests\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 47 testRunner.And("there are no tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 48 testRunner.When("I click New Test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 49 testRunner.Then("a new test is added", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 50 testRunner.And("Tab Header is \"Workflow 2 - Tests *\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 51 testRunner.And("test name starts with \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 52 testRunner.And("username is blank", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 53 testRunner.And("password is blank", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1053 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value" }); table1053.AddRow(new string[] { "rec(1).a", "" }); table1053.AddRow(new string[] { "rec(1).b", "" }); #line 54 testRunner.And("inputs are", ((string)(null)), table1053, "And "); #line hidden TechTalk.SpecFlow.Table table1054 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value" }); table1054.AddRow(new string[] { "rec(1).a", "val1" }); table1054.AddRow(new string[] { "rec(1).b", "" }); #line 58 testRunner.And("I update inputs as", ((string)(null)), table1054, "And "); #line hidden TechTalk.SpecFlow.Table table1055 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value" }); table1055.AddRow(new string[] { "rec(1).a", "val1" }); table1055.AddRow(new string[] { "rec(1).b", "" }); table1055.AddRow(new string[] { "rec(2).a", "" }); table1055.AddRow(new string[] { "rec(2).b", "" }); #line 62 testRunner.Then("inputs are", ((string)(null)), table1055, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void ErrorIsReturnedWhenCode_VerifierParameterIsMissing() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Error is returned when code_verifier parameter is missing", null, ((string[])(null))); #line 4 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line hidden TechTalk.SpecFlow.Table table47 = new TechTalk.SpecFlow.Table(new string[] { "Key", "Value" }); table47.AddRow(new string[] { "token_endpoint_auth_method", "pkce" }); table47.AddRow(new string[] { "response_types", "[code]" }); table47.AddRow(new string[] { "grant_types", "[authorization_code]" }); table47.AddRow(new string[] { "scope", "scope1" }); table47.AddRow(new string[] { "redirect_uris", "[http://localhost:8080]" }); #line 5 testRunner.When("execute HTTP POST JSON request \'http://localhost/register\'", ((string)(null)), table47, "When "); #line 13 testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.And("extract parameter \'client_id\' from JSON body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table48 = new TechTalk.SpecFlow.Table(new string[] { "Key", "Value" }); table48.AddRow(new string[] { "client_id", "$client_id$" }); table48.AddRow(new string[] { "grant_type", "authorization_code" }); table48.AddRow(new string[] { "code", "code" }); table48.AddRow(new string[] { "redirect_uri", "http://localhost:8080" }); #line 16 testRunner.And("execute HTTP POST request \'http://localhost/token\'", ((string)(null)), table48, "And "); #line 23 testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 25 testRunner.Then("JSON \'error\'=\'invalid_request\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 26 testRunner.Then("JSON \'error_description\'=\'missing parameter code_verifier\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void ProjectsNumberByAMajorPerCurrentPeriod() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("projects number by a major per current period", ((string[])(null))); #line 74 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] { "Id", "MajorId", "Name", "Faculty" }); table15.AddRow(new string[] { "1", "1", "Ing. Sistemas", "1" }); table15.AddRow(new string[] { "2", "2", "Mecatronica", "1" }); table15.AddRow(new string[] { "3", "3", "Ing. Civil", "1" }); table15.AddRow(new string[] { "4", "4", "Lic. Admon", "2" }); #line 75 testRunner.Given("I have this majors", ((string)(null)), table15, "Given "); #line hidden TechTalk.SpecFlow.Table table16 = new TechTalk.SpecFlow.Table(new string[] { "Id", "Number", "Year", "FromDate", "ToDate", "IsCurrent" }); table16.AddRow(new string[] { "1", "1", "2016", "08/08/16", "10/10/16", "True" }); #line 81 testRunner.And("This is the current period", ((string)(null)), table16, "And "); #line hidden TechTalk.SpecFlow.Table table17 = new TechTalk.SpecFlow.Table(new string[] { "MajorId", "Major", "Total" }); table17.AddRow(new string[] { "1", "Ing. Sistemas", "3" }); table17.AddRow(new string[] { "1", "Ing. Sistemas", "5" }); table17.AddRow(new string[] { "2", "Mecatronica", "4" }); table17.AddRow(new string[] { "3", "Ing. Civil", "3" }); table17.AddRow(new string[] { "3", "Ing. Civil", "2" }); table17.AddRow(new string[] { "4", "Lic. Admon", "3" }); #line 84 testRunner.And("I have the majors and it has many projects", ((string)(null)), table17, "And "); #line 92 testRunner.When("I execute the projects by major report", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table18 = new TechTalk.SpecFlow.Table(new string[] { "Carrera", "Proyectos" }); table18.AddRow(new string[] { "Ing. Sistemas", "8" }); table18.AddRow(new string[] { "Mecatronica", "4" }); table18.AddRow(new string[] { "Ing. Civil", "5" }); table18.AddRow(new string[] { "Lic. Admon", "3" }); #line 93 testRunner.Then("I have the projects", ((string)(null)), table18, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void RunATestWithSingleScalarInputsAndOutputsInvalidNoVariable() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Run a test with single scalar inputs and outputs invalid no variable", ((string[])(null))); #line 227 this.ScenarioSetup(scenarioInfo); #line 8 this.FeatureBackground(); #line 228 testRunner.Given("the test builder is open with existing service \"Hello World\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 229 testRunner.And("Tab Header is \"Hello World - Tests\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 230 testRunner.When("I click New Test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 231 testRunner.Then("a new test is added", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 232 testRunner.And("Tab Header is \"Hello World - Tests *\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 233 testRunner.And("test name starts with \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 234 testRunner.And("username is blank", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 235 testRunner.And("password is blank", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1065 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value" }); table1065.AddRow(new string[] { "Name", "" }); #line 236 testRunner.And("inputs are", ((string)(null)), table1065, "And "); #line hidden TechTalk.SpecFlow.Table table1066 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value" }); table1066.AddRow(new string[] { "Message", "" }); #line 239 testRunner.And("outputs as", ((string)(null)), table1066, "And "); #line 242 testRunner.And("save is enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 243 testRunner.And("test status is pending", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 244 testRunner.And("test is enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1067 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value" }); table1067.AddRow(new string[] { "Name", "Bob" }); #line 245 testRunner.And("I update inputs as", ((string)(null)), table1067, "And "); #line hidden TechTalk.SpecFlow.Table table1068 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value" }); table1068.AddRow(new string[] { "", "Hello Mary." }); #line 248 testRunner.And("I update outputs as", ((string)(null)), table1068, "And "); #line 251 testRunner.And("I save", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 252 testRunner.When("I run the test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 253 testRunner.Then("test result is Failed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 254 testRunner.When("I delete \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 255 testRunner.Then("The \"DeleteConfirmation\" popup is shown I click Ok", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void RunningOracleToolTest() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Running Oracle Tool Test", new string[] { "CreatingOracleToolInstance" }); #line 8 this.ScenarioSetup(scenarioInfo); #line 9 testRunner.Given("I open New Workflow containing an Oracle Connector", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 10 testRunner.And("I drag a Oracle Server database connector", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.And("Oracle Source is Enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 testRunner.And("Oracle Action is Disabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 testRunner.And("Oracle Inputs are Disabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.And("Oracle Outputs are Disabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 testRunner.When("I Selected GreenPoint as Source", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 16 testRunner.Then("Action is Enable", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 17 testRunner.When("I select HR.TESTPROC9 as the Oracle action", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 18 testRunner.Then("Inputs is Enable", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table2360 = new TechTalk.SpecFlow.Table(new string[] { "Input", "Value", "Empty is Null" }); table2360.AddRow(new string[] { "EID", "[[EID]]", "false" }); #line 19 testRunner.And("Oracle Inputs appear as", ((string)(null)), table2360, "And "); #line 22 testRunner.And("Validate is Enable", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 23 testRunner.When("I click Oracle Validate", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table2361 = new TechTalk.SpecFlow.Table(new string[] { "EID" }); table2361.AddRow(new string[] { "100" }); #line 24 testRunner.Then("Test Oracle Inputs appear as", ((string)(null)), table2361, "Then "); #line 27 testRunner.When("I click Oracle Tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 28 testRunner.When("I click Oracle OK", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table2362 = new TechTalk.SpecFlow.Table(new string[] { "Mapped From", "Mapped To" }); table2362.AddRow(new string[] { "Column1", "[[HR_TESTPROC9().Column1]]" }); #line 29 testRunner.Then("Oracle Outputs appear as", ((string)(null)), table2362, "Then "); #line 32 testRunner.Then("Oracle Recordset Name equals \"HR_TESTPROC9\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void ChangeRecordsetNameOnOracleTool() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Change Recordset Name on Oracle Tool", ((string[])(null))); #line 93 this.ScenarioSetup(scenarioInfo); #line 94 testRunner.Given("I open workflow with Oracle connector", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 95 testRunner.And("Oracle Source is Enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 96 testRunner.And("Oracle Source is \"testingDBSrc\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 97 testRunner.And("Oracle Action is \"dbo.Pr_CitiesGetCountries\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 98 testRunner.And("Inputs is Enable", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2370 = new TechTalk.SpecFlow.Table(new string[] { "Input", "Value", "Empty is Null" }); table2370.AddRow(new string[] { "Prefix", "[[Prefix]]", "false" }); #line 99 testRunner.Then("Oracle Inputs appear as", ((string)(null)), table2370, "Then "); #line 102 testRunner.And("Validate is Enable", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2371 = new TechTalk.SpecFlow.Table(new string[] { "Mapped From", "Mapped To" }); table2371.AddRow(new string[] { "CountryID", "[[dbo_Pr_CitiesGetCountries().CountryID]]" }); table2371.AddRow(new string[] { "Description", "[[dbo_Pr_CitiesGetCountries().Description]]" }); #line 103 testRunner.Then("Oracle Outputs appear as", ((string)(null)), table2371, "Then "); #line 107 testRunner.And("Oracle Recordset Name equals \"dbo_Pr_CitiesGetCountries\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 108 testRunner.When("Oracle Recordset Name is changed to \"Pr_Cities\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table2372 = new TechTalk.SpecFlow.Table(new string[] { "Mapped From", "Mapped To" }); table2372.AddRow(new string[] { "CountryID", "[[Pr_Cities().CountryID]]" }); table2372.AddRow(new string[] { "Description", "[[Pr_Cities().Description]]" }); #line 109 testRunner.Then("Oracle Outputs appear as", ((string)(null)), table2372, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void ChangingActionsOnOracleTool() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Changing Actions on Oracle Tool", new string[] { "ChangingOracleActions" }); #line 71 this.ScenarioSetup(scenarioInfo); #line 72 testRunner.Given("I open workflow with Oracle connector", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 73 testRunner.And("Oracle Source is Enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 74 testRunner.And("Oracle Source is \"testingDBSrc\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 75 testRunner.And("Oracle Action is \"dbo.Pr_CitiesGetCountries\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 76 testRunner.And("Inputs is Enable", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2367 = new TechTalk.SpecFlow.Table(new string[] { "Input", "Value", "Empty is Null" }); table2367.AddRow(new string[] { "Prefix", "[[Prefix]]", "false" }); #line 77 testRunner.Then("Oracle Inputs appear as", ((string)(null)), table2367, "Then "); #line 80 testRunner.And("Validate is Enable", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2368 = new TechTalk.SpecFlow.Table(new string[] { "Mapped From", "Mapped To" }); table2368.AddRow(new string[] { "CountryID", "[[dbo_Pr_CitiesGetCountries().CountryID]]" }); table2368.AddRow(new string[] { "Description", "[[dbo_Pr_CitiesGetCountries().Description]]" }); #line 81 testRunner.Then("Oracle Outputs appear as", ((string)(null)), table2368, "Then "); #line 85 testRunner.And("Oracle Recordset Name equals \"dbo_Pr_CitiesGetCountries\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 86 testRunner.When("Oracle Action is changed from to dbo.ImportOrder", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 87 testRunner.And("Inputs is Enable", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2369 = new TechTalk.SpecFlow.Table(new string[] { "Input", "Value", "Empty is Null" }); table2369.AddRow(new string[] { "ProductId", "[[ProductId]]", "false" }); #line 88 testRunner.Then("Oracle Inputs appear as", ((string)(null)), table2369, "Then "); #line 91 testRunner.And("Validate is Enable", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void _2137_NoRemoveEntryLinkInAssessmentIfResultAddedFromBulkUpload() { string[] tagsOfScenario = new string[] { "RegressionTest", "Results" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("2137_ No Remove entry link in assessment if result added from bulk upload", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 11 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 TechTalk.SpecFlow.Table table32 = new TechTalk.SpecFlow.Table(new string[] { "Registration", "Assessment", "Result" }); table32.AddRow(new string[] { "RegistrationsValidDataSingle.csv", "AssessmentUploadSingleData.csv", "ResultsUploadSingleData.csv" }); #line 12 testRunner.And("I uploaded following files", ((string)(null)), table32, "And "); #line hidden TechTalk.SpecFlow.Table table33 = new TechTalk.SpecFlow.Table(new string[] { "Uln" }); table33.AddRow(new string[] { "9900000001" }); #line 15 testRunner.When("I search Assessment entry for the Uln", ((string)(null)), table33, "When "); #line hidden #line 18 testRunner.Then("Remove Entry link should not exists in the assessment details page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 19 testRunner.And("I cleared the data in DB", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void ResumingAGame() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Resuming a game", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line 7 testRunner.Given("I have started a new game \"minefield size of 9 x 9 (10 mines)\""); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Row", "Column"}); table1.AddRow(new string[] { "0", "1"}); #line 8 testRunner.And("the minefield contains the following mines:", ((string)(null)), table1); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Row", "Column", "NumberOfMinesSurroundedBy"}); table2.AddRow(new string[] { "0", "0", "1"}); #line 11 testRunner.And("the following tiles are surrounded by mines:", ((string)(null)), table2); #line 14 testRunner.When("I navigate to the game play page"); #line 15 testRunner.And("I click on the tile at coordinate 0,0"); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "Row", "Column", "NumberOfMinesSurroundedBy"}); table3.AddRow(new string[] { "0", "0", "1"}); #line 16 testRunner.Then("the following tiles should be revealed:", ((string)(null)), table3); #line 19 testRunner.When("I return to the home page"); #line 20 testRunner.Then("I should see an option to resume my game"); #line 21 testRunner.When("I click resume"); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "Row", "Column", "NumberOfMinesSurroundedBy"}); table4.AddRow(new string[] { "0", "0", "1"}); #line 22 testRunner.Then("the following tiles should be revealed:", ((string)(null)), table4); #line hidden this.ScenarioCleanup(); }
public virtual void CostsReportByFaculties() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Costs report by faculties", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Id", "Name" }); table1.AddRow(new string[] { "1", "Ingenieria" }); table1.AddRow(new string[] { "2", "Licenciatura" }); #line 7 testRunner.Given("I have this faculties", ((string)(null)), table1, "Given "); #line 11 testRunner.And("the year is 2015", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "FacultyName", "ProjectCost" }); table2.AddRow(new string[] { "Ingenieria", "30" }); table2.AddRow(new string[] { "Ingenieria", "10" }); #line 12 testRunner.And("the cost for faculty 1 for the period 1 and year 2015 is", ((string)(null)), table2, "And "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "FacultyName", "ProjectCost" }); table3.AddRow(new string[] { "Ingenieria", "30" }); table3.AddRow(new string[] { "Ingenieria", "10" }); #line 16 testRunner.And("the cost for faculty 1 for the period 2 and year 2015 is", ((string)(null)), table3, "And "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "FacultyName", "ProjectCost" }); table4.AddRow(new string[] { "Ingenieria", "30" }); table4.AddRow(new string[] { "Ingenieria", "10" }); #line 20 testRunner.And("the cost for faculty 1 for the period 3 and year 2015 is", ((string)(null)), table4, "And "); #line hidden TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] { "FacultyName", "ProjectCost" }); table5.AddRow(new string[] { "Ingenieria", "30" }); table5.AddRow(new string[] { "Ingenieria", "10" }); #line 24 testRunner.And("the cost for faculty 1 for the period 5 and year 2015 is", ((string)(null)), table5, "And "); #line hidden TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] { "FacultyName", "ProjectCost" }); table6.AddRow(new string[] { "Licenciatura", "100" }); #line 28 testRunner.And("the cost for faculty 2 for the period 1 and year 2015 is", ((string)(null)), table6, "And "); #line hidden TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] { "FacultyName", "ProjectCost" }); table7.AddRow(new string[] { "Licenciatura", "100" }); #line 31 testRunner.And("the cost for faculty 2 for the period 2 and year 2015 is", ((string)(null)), table7, "And "); #line hidden TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] { "FacultyName", "ProjectCost" }); table8.AddRow(new string[] { "Licenciatura", "100" }); #line 34 testRunner.And("the cost for faculty 2 for the period 3 and year 2015 is", ((string)(null)), table8, "And "); #line hidden TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] { "FacultyName", "ProjectCost" }); table9.AddRow(new string[] { "Licenciatura", "100" }); #line 37 testRunner.And("the cost for faculty 2 for the period 5 and year 2015 is", ((string)(null)), table9, "And "); #line 40 testRunner.When("I execute the faculties cost report", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] { "Facultad", "Periodo 1", "Periodo 2", "Periodo 3", "Periodo 5" }); table10.AddRow(new string[] { "Ingenieria", "40", "40", "40", "40" }); table10.AddRow(new string[] { "Licenciatura", "100", "100", "100", "100" }); #line 41 testRunner.Then("the faculties cost report should be", ((string)(null)), table10, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void RunATestExpectingAWrongErrorAsAnUnknownUser() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Run a test expecting a wrong error as an unknown user", ((string[])(null))); #line 160 this.ScenarioSetup(scenarioInfo); #line 8 this.FeatureBackground(); #line 161 testRunner.Given("the test builder is open with existing service \"Hello World\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 162 testRunner.And("Tab Header is \"Hello World - Tests\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 163 testRunner.When("I click New Test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 164 testRunner.Then("a new test is added", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 165 testRunner.And("Tab Header is \"Hello World - Tests *\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 166 testRunner.And("test name starts with \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 167 testRunner.And("test AuthenticationType as \"User\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 168 testRunner.And("username is \"WrongUser\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 169 testRunner.And("password is \"badPassword\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1061 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value", "EmptyIsNull" }); table1061.AddRow(new string[] { "Name", "Bob", "true" }); #line 170 testRunner.And("I update inputs as", ((string)(null)), table1061, "And "); #line 173 testRunner.And("save is enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 174 testRunner.And("test status is pending", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 175 testRunner.And("test is enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 176 testRunner.And("I remove all Test Steps", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 177 testRunner.And("I save", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 178 testRunner.And("I expect Error \"Stackoverflow\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 179 testRunner.When("I run the test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 180 testRunner.Then("the service debug assert Aggregate message contains \"Failed: expected error conta" + "ining \'stackoverflow\' but got \'Failed: the user running the test is not authoriz" + "ed to execute resource hello world.\'\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 181 testRunner.Then("test result is Failed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 182 testRunner.When("I delete \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 183 testRunner.Then("The \"DeleteConfirmation\" popup is shown I click Ok", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void RunATestWithInvalidAndPendingResults() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Run a test with invalid and pending results", ((string[])(null))); #line 203 this.ScenarioSetup(scenarioInfo); #line 8 this.FeatureBackground(); #line 204 testRunner.Given("the test builder is open with existing service \"Hello World\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 205 testRunner.And("Tab Header is \"Hello World - Tests\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 206 testRunner.When("I click New Test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 207 testRunner.Then("a new test is added", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 208 testRunner.And("Tab Header is \"Hello World - Tests *\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 209 testRunner.And("test name starts with \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 210 testRunner.And("username is blank", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 211 testRunner.And("password is blank", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1063 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value" }); table1063.AddRow(new string[] { "Name", "Bob" }); #line 212 testRunner.And("I update inputs as", ((string)(null)), table1063, "And "); #line 215 testRunner.And("I Add Decision \"If [[Name]] <> (Not Equal)\" as TestStep", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 216 testRunner.And("I change Decision \"If [[Name]] <> (Not Equal)\" arm to \"Name Input\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 217 testRunner.And("I Add \"Assign a value to Name if blank (1)\" as TestStep", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 218 testRunner.And("I Add \"Set the output variable (1)\" as TestStep", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1064 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value" }); table1064.AddRow(new string[] { "Message", "Hello Bob." }); #line 219 testRunner.And("I update outputs as", ((string)(null)), table1064, "And "); #line 222 testRunner.When("I run the test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 223 testRunner.When("I delete \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 224 testRunner.Then("The \"DeleteConfirmation\" popup is shown I click Ok", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void ProcessingFileWithinColumnNatureDeLaFinDeContratInEffectifsWorksheetShouldHaveASuccessLog() { string[] tagsOfScenario = ((string[])(null)); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Processing file within column \'Nature de la fin de contrat\' in \'effectifs\' worksh" + "eet should have a success log", null, ((string[])(null))); #line 3 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 4 testRunner.Given("I have a workbook mybook.xlsx", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table38 = new TechTalk.SpecFlow.Table(new string[] { "Matricule", "Structure", "Nom", "Prenom", "Age", "CSP", "Sexe", "Date de naissance", "Type de contrat", "Date d\'entrée", "Date de sortie", "Nature de la fin de contrat" }); table38.AddRow(new string[] { "1254", "Alcuin", "CAIO", "John", "33", "CADRE", "Homme", "16/03/1986", "CDI", "12/11/2019", "12/11/2021", "Dem" }); table38.AddRow(new string[] { "1235", "Alcuin", "LEGROS", "Isabelle", "33", "CADRE", "Femme", "13/05/1993", "CDD", "14/11/2019", "14/11/2020", "Dem" }); #line 5 testRunner.And("it has a workSheet effectifs with the following content", ((string)(null)), table38, "And "); #line hidden #line 9 testRunner.When("I start processing the file mybook.xlsx for the period of 2015", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table39 = new TechTalk.SpecFlow.Table(new string[] { "Message" }); table39.AddRow(new string[] { "La colonne \'Nature de la fin de contrat\' de l’onglet \'effectifs\' est bien prise e" + "n compte." }); #line 10 testRunner.Then("I should found the following Succès messages", ((string)(null)), table39, "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void RunATestWithSingleScalarInputsAndOutputsInvalidNoInputVariable() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Run a test with single scalar inputs and outputs invalid no input variable", ((string[])(null))); #line 257 this.ScenarioSetup(scenarioInfo); #line 8 this.FeatureBackground(); #line 258 testRunner.Given("the test builder is open with existing service \"Hello World\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 259 testRunner.And("Tab Header is \"Hello World - Tests\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 260 testRunner.When("I click New Test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 261 testRunner.Then("a new test is added", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 262 testRunner.And("Tab Header is \"Hello World - Tests *\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 263 testRunner.And("test name starts with \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 264 testRunner.And("username is blank", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 265 testRunner.And("password is blank", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1069 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value" }); table1069.AddRow(new string[] { "Name", "" }); #line 266 testRunner.And("inputs are", ((string)(null)), table1069, "And "); #line hidden TechTalk.SpecFlow.Table table1070 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value" }); table1070.AddRow(new string[] { "Message", "" }); #line 269 testRunner.And("outputs as", ((string)(null)), table1070, "And "); #line 272 testRunner.And("save is enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 273 testRunner.And("test status is pending", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 274 testRunner.And("test is enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1071 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value" }); table1071.AddRow(new string[] { "", "" }); #line 275 testRunner.And("I update inputs as", ((string)(null)), table1071, "And "); #line hidden TechTalk.SpecFlow.Table table1072 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Value" }); table1072.AddRow(new string[] { "Message", "Hello Mary." }); #line 278 testRunner.And("I update outputs as", ((string)(null)), table1072, "And "); #line 281 testRunner.And("I save", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 282 testRunner.When("I run the test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 283 testRunner.Then("test result is Failed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 284 testRunner.When("I delete \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 285 testRunner.Then("The \"DeleteConfirmation\" popup is shown I click Ok", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void HoursReportByFaculties() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Hours report by faculties", ((string[])(null))); #line 46 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] { "Id", "Name" }); table11.AddRow(new string[] { "1", "Ingenieria" }); table11.AddRow(new string[] { "2", "Licenciatura" }); #line 47 testRunner.Given("I have this faculties", ((string)(null)), table11, "Given "); #line 51 testRunner.And("the year is 2015", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] { "FacultyName", "ProjectHours" }); table12.AddRow(new string[] { "Ingenieria", "70" }); table12.AddRow(new string[] { "Ingenieria", "80" }); table12.AddRow(new string[] { "Ingenieria", "50" }); table12.AddRow(new string[] { "Ingenieria", "60" }); table12.AddRow(new string[] { "Ingenieria", "95" }); table12.AddRow(new string[] { "Ingenieria", "74" }); table12.AddRow(new string[] { "Ingenieria", "76" }); table12.AddRow(new string[] { "Ingenieria", "65" }); #line 52 testRunner.And("the hours for faculty 1 for the year 2015 is", ((string)(null)), table12, "And "); #line hidden TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] { "FacultyName", "ProjectHours" }); table13.AddRow(new string[] { "Licenciatura", "80" }); table13.AddRow(new string[] { "Licenciatura", "95" }); table13.AddRow(new string[] { "Licenciatura", "85" }); table13.AddRow(new string[] { "Licenciatura", "84" }); #line 62 testRunner.And("the hours for faculty 2 for the year 2015 is", ((string)(null)), table13, "And "); #line 68 testRunner.When("I execute the faculties hours report", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] { "Facultad", "Horas" }); table14.AddRow(new string[] { "Ingenieria", "570" }); table14.AddRow(new string[] { "Licenciatura", "344" }); #line 69 testRunner.Then("the faculties hour report should be", ((string)(null)), table14, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void ProcessingFileWithEmptyCellInColumnNatureDeLaFinDeContratShouldHaveAWarrningMessage() { string[] tagsOfScenario = ((string[])(null)); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Processing file with empty cell in column \'Nature de la fin de contrat\' should ha" + "ve a warrning message", null, ((string[])(null))); #line 25 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 26 testRunner.Given("I have a workbook mybook.xlsx", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table42 = new TechTalk.SpecFlow.Table(new string[] { "Matricule", "Structure", "CSP", "Sexe", "Nature de la fin de contrat" }); table42.AddRow(new string[] { "12345", "Alcuin", "Cadre", "Homme", "" }); #line 27 testRunner.And("it has a workSheet effectifs with the following content", ((string)(null)), table42, "And "); #line hidden #line 30 testRunner.When("I start processing the file mybook.xlsx for the period of 2015", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table43 = new TechTalk.SpecFlow.Table(new string[] { "Message" }); table43.AddRow(new string[] { "Certaines cellules textes sont vides dans votre fichier, les données vides ne ser" + "ont pas prises en compte dans les calculs." }); #line 31 testRunner.Then("I should found the following Avertissement messages", ((string)(null)), table43, "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void ProcessingFileWithInvalidCellContentInColumnNatureDeLaFinDeContratShouldFaild() { string[] tagsOfScenario = ((string[])(null)); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Processing file with invalid cell content in column \'Nature de la fin de contrat\'" + " should faild", null, ((string[])(null))); #line 35 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 36 testRunner.Given("I have a workbook mybook.xlsx", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table44 = new TechTalk.SpecFlow.Table(new string[] { "Matricule", "Structure", "CSP", "Sexe", "Nature de la fin de contrat" }); table44.AddRow(new string[] { "1254", "Alcuin", "Cadre", "Homme", "Contrat" }); #line 37 testRunner.And("it has a workSheet effectifs with the following content", ((string)(null)), table44, "And "); #line hidden #line 40 testRunner.When("I start processing the file mybook.xlsx for the period of 2015", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table45 = new TechTalk.SpecFlow.Table(new string[] { "Message" }); table45.AddRow(new string[] { "Dans l\'onglet «effectifs», la colonne «Nature de la fin de contrat» à une valeur " + "qui texte n’est pas reconnue \'Contrat\'. Les valeurs pouvant être utilisées sont " + "«Retraite, Démission, Fin de CDD, Licenciement, Licenciement économique, Pré-ret" + "raite»." }); #line 41 testRunner.Then("I should found the following Erreur messages", ((string)(null)), table45, "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void FeatureBackground() { #line 6 #line hidden TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] { "OriginId", "FirstName", "LastName", "AddressLine1", "AddressLine2", "City", "PostalCode", "StateName", "CountryCode" }); table11.AddRow(new string[] { "1", "James", "Harper", "1 Market Street", "", "Sydney", "2000", "New South Wales", "AU" }); #line 7 testRunner.Given("Tom creates the following shipping origins:", ((string)(null)), table11, "Given "); #line hidden #line 10 testRunner.And("Tom enters shipping profile name Heavy Products", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 11 testRunner.And("Tom selects shipping origin 1", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 12 testRunner.And("Tom enters the zone name ANZ", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] { "CountryCode" }); table12.AddRow(new string[] { "AU" }); table12.AddRow(new string[] { "NZ" }); #line 13 testRunner.And("Tom selects the following shipping countries:", ((string)(null)), table12, "And "); #line hidden TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] { "CountryCode", "Name" }); table13.AddRow(new string[] { "AU", "New South Wales" }); table13.AddRow(new string[] { "AU", "Queensland" }); table13.AddRow(new string[] { "NZ", "Auckland" }); table13.AddRow(new string[] { "NZ", "Wellington" }); #line 17 testRunner.And("Tom selects the following shipping states:", ((string)(null)), table13, "And "); #line hidden TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] { "Index", "MethodType", "Name" }); table14.AddRow(new string[] { "1", "ByWeight", "By Weight" }); table14.AddRow(new string[] { "2", "ByQuantity", "By Quantity" }); table14.AddRow(new string[] { "3", "ByOrderTotal", "By Order Total" }); #line 23 testRunner.And("Tom enters the following shipping methods:", ((string)(null)), table14, "And "); #line hidden TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] { "ShippingMethod", "Min", "Max", "Rate" }); table15.AddRow(new string[] { "1", "0", "100", "50" }); table15.AddRow(new string[] { "1", "100", "200", "100" }); table15.AddRow(new string[] { "1", "200", "100000", "200" }); table15.AddRow(new string[] { "2", "0", "10", "50" }); table15.AddRow(new string[] { "2", "10", "20", "100" }); table15.AddRow(new string[] { "2", "20", "100000", "200" }); table15.AddRow(new string[] { "3", "0", "50", "50" }); table15.AddRow(new string[] { "3", "50", "500", "100" }); table15.AddRow(new string[] { "3", "500", "100000", "200" }); #line 28 testRunner.And("Tom enters the following shipping rates:", ((string)(null)), table15, "And "); #line hidden #line 39 testRunner.And("Tom saves the shipping profile", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table16 = new TechTalk.SpecFlow.Table(new string[] { "Index", "Name", "Description", "Price", "Retail", "Cost", "Length", "Width", "Height", "Weight", "ProductType", "Sku", "Barcode", "TrackInventory", "OutOfStockRule" }); table16.AddRow(new string[] { "1", "DDD", "DDD Description", "100", "120", "80", "1", "2", "3", "4", "DigitalProduct", "ddd-book", "1234567890111", "True", "Remove" }); table16.AddRow(new string[] { "2", "BDD", "BDD Description", "50", "110", "70", "2", "3", "4", "5", "PhysicalProduct", "bdd-book", "1234567890222", "False", "ContinueSelling" }); table16.AddRow(new string[] { "3", "TDD", "TDD Description", "80", "100", "60", "3", "4", "5", "6", "DigitalProduct", "tdd-book", "1234567890333", "True", "StopSelling" }); #line 40 testRunner.And("Tom creates the following products:", ((string)(null)), table16, "And "); #line hidden }
public virtual void ProcessingFileWithinColumnNatureDeLaFinDeContratInEffectifsShouldHaveAWarrningMessage() { string[] tagsOfScenario = ((string[])(null)); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Processing file within column \'Nature de la fin de contrat\' in \'effectifs\' should" + " have a warrning message", null, ((string[])(null))); #line 14 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 15 testRunner.Given("I have a workbook mybook.xlsx", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table40 = new TechTalk.SpecFlow.Table(new string[] { "Matricule", "Structure", "CSP", "Sexe" }); table40.AddRow(new string[] { "1254", "Alcuin", "CADRE", "Homme" }); table40.AddRow(new string[] { "1235", "Alcuin", "CADRE", "Femme" }); #line 16 testRunner.And("it has a workSheet effectifs with the following content", ((string)(null)), table40, "And "); #line hidden #line 20 testRunner.When("I start processing the file mybook.xlsx for the period of 2015", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table41 = new TechTalk.SpecFlow.Table(new string[] { "Message" }); table41.AddRow(new string[] { "La colonne \'Nature de la fin de contrat\' n\'est pas présente dans L\'onglet \'effect" + "ifs\', aucun indicateur lié à cette colonne ne sera calculé lors de la conversion" + "." }); #line 21 testRunner.Then("I should found the following Avertissement messages", ((string)(null)), table41, "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void FeatureBackground() { #line 3 #line hidden TechTalk.SpecFlow.Table table781 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table781.AddRow(new string[] { "AdviserName", "BillyAdviser" }); table781.AddRow(new string[] { "AdviserContactNumber", "98798678967967" }); #line 4 testRunner.Given("I post an adviser with the following details:", ((string)(null)), table781, "Given "); #line hidden TechTalk.SpecFlow.Table table782 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table782.AddRow(new string[] { "GivenName", "Bob" }); table782.AddRow(new string[] { "FamilyName", "Customer" }); #line 8 testRunner.And("I post a Customer with the following details:", ((string)(null)), table782, "And "); #line hidden TechTalk.SpecFlow.Table table783 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table783.AddRow(new string[] { "DateandTimeOfInteraction", "2018-06-25T11:21:00Z" }); table783.AddRow(new string[] { "Channel", "2" }); table783.AddRow(new string[] { "InteractionType", "2" }); table783.AddRow(new string[] { "LastModifiedDate", "2018-06-22T16:52:10Z" }); #line 12 testRunner.And("I post an Interaction with the following details:", ((string)(null)), table783, "And "); #line hidden TechTalk.SpecFlow.Table table784 = new TechTalk.SpecFlow.Table(new string[] { "field", "value" }); table784.AddRow(new string[] { "DateActionPlanCreated", "2018-07-30T09:00:00Z" }); table784.AddRow(new string[] { "CustomerCharterShownToCustomer", "true" }); table784.AddRow(new string[] { "DateAndTimeCharterShown", "2018-07-30T09:00:00Z" }); table784.AddRow(new string[] { "DateActionPlanSentToCustomer", "2018-07-30T09:00:00Z" }); table784.AddRow(new string[] { "ActionPlanDeliveryMethod", "1" }); table784.AddRow(new string[] { "DateActionPlanAcknowledged", "2018-07-30T09:00:00Z" }); table784.AddRow(new string[] { "PriorityCustomer", "1" }); table784.AddRow(new string[] { "CurrentSituation", "looking for work" }); #line 18 testRunner.And("I post an ActionPlan with the following details:", ((string)(null)), table784, "And "); #line hidden }
public virtual void AddShippingMethod() { string[] tagsOfScenario = ((string[])(null)); System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Add Shipping Method", null, tagsOfScenario, argumentsOfScenario); #line 46 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 TechTalk.SpecFlow.Table table17 = new TechTalk.SpecFlow.Table(new string[] { "Product", "Name", "Quantity" }); table17.AddRow(new string[] { "1", "DDD", "4" }); table17.AddRow(new string[] { "2", "BDD", "8" }); #line 47 testRunner.Given("Amy adds the following products to her shopping cart:", ((string)(null)), table17, "Given "); #line hidden #line 51 testRunner.And("Amy enters the email address [email protected]", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table18 = new TechTalk.SpecFlow.Table(new string[] { "FirstName", "LastName", "AddressLine1", "AddressLine2", "City", "PostalCode", "StateName", "CountryCode" }); table18.AddRow(new string[] { "James", "Harper", "Unit 7", "2 Market Street", "Melbourne", "3000", "Victoria", "AU" }); #line 52 testRunner.And("Amy enters the following shipping address", ((string)(null)), table18, "And "); #line hidden #line 55 testRunner.And("Amy saves her contact details and shipping address", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 56 testRunner.And("Amy selects shipping method 2", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 57 testRunner.When("Amy saves her shipping method", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 58 testRunner.Then("Amy should receive status codes OK", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 59 testRunner.And("checkout information should be saved as expected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void ReceiveListOfBooksMatchingTheSearchTermForTitle() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Receive list of books matching the search term for Title", null, ((string[])(null))); #line 72 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Id", "Author", "Title", "Description" }); table1.AddRow(new string[] { "1", "Author", "Test Title 1", "Description of book 1" }); table1.AddRow(new string[] { "2", "Author", "Title of the Test", "Description" }); table1.AddRow(new string[] { "3", "Author J Oliver", "TestTitle", "Description" }); table1.AddRow(new string[] { "4", "Author J Oliver", "TitleOfTheTest", "Description" }); table1.AddRow(new string[] { "5", "Author J Oliver", "TitleOfTestABC", "Description" }); table1.AddRow(new string[] { "6", "Author J Oliver", "%20Test", "Description" }); table1.AddRow(new string[] { "7", "Author J Oliver", "\\Test\\Title", "Description" }); table1.AddRow(new string[] { "8", "Author J Oliver", "$#!Test*&^%", "Description" }); #line 73 testRunner.Given("I create books with params", ((string)(null)), table1, "Given "); #line 83 testRunner.When("I search for a book \"Title\" with term \"Test\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 84 testRunner.Then("the list of books from search result and registered books are equal", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void PatchWithInvalidGoalStatus() { string[] tagsOfScenario = new string[] { "goals" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Patch with invalid GoalStatus", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 110 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 3 this.FeatureBackground(); #line hidden TechTalk.SpecFlow.Table table796 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table796.AddRow(new string[] { "DateGoalCaptured", "2018-06-21T14:45:00Z" }); table796.AddRow(new string[] { "DateGoalShouldBeCompletedBy", "2018-07-21T14:45:00Z" }); table796.AddRow(new string[] { "GoalSummary", "some goal text" }); table796.AddRow(new string[] { "GoalType", "1" }); table796.AddRow(new string[] { "GoalStatus", "1" }); #line 111 testRunner.Given("I post a goal with the following details:", ((string)(null)), table796, "Given "); #line hidden TechTalk.SpecFlow.Table table797 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table797.AddRow(new string[] { "GoalStatus", "4" }); #line 118 testRunner.When("I patch the following Goal:", ((string)(null)), table797, "When "); #line hidden #line 121 testRunner.Then("there should be a 422 response", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void CreateLabel() { string[] tagsOfScenario = new string[] { "LabelGenerator" }; TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create label", null, new string[] { "LabelGenerator" }); #line 5 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(); TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Company", "Name", "Surname", "Street", "HomeNo", "Zip", "City" }); table1.AddRow(new string[] { "Metapack", "Szef", "SzukaProgramisty", "Kostrzynska", "6", "65-127", "Zielona Gora" }); #line 7 testRunner.Given("I have provided sender address", ((string)(null)), table1, "Given "); #line hidden #line 11 testRunner.And("I have provided sender country of \'United States\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 13 testRunner.And("I have provided sender mobile number of \'number\' and sender email of \'address\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Company", "Name", "Surname", "Street", "HomeNo", "Zip", "City" }); table2.AddRow(new string[] { "", "Kamil", "Programista", "Konicza", "12", "65-127", "Zielona Gora" }); #line 15 testRunner.And("I have provided receiver address", ((string)(null)), table2, "And "); #line hidden #line 19 testRunner.And("I have provided receiver country of \'United Kingdom\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 21 testRunner.And("I have provided receiver mobile number of \'number\' and receiver email of \'address" + "\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 23 testRunner.And("I have provided Price of \'5\' with Currency \'PLN\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 25 testRunner.And("I have provided Delivery Instruction of \'test\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 27 testRunner.When("I send a consigment", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 29 testRunner.Then("The result should be correct label", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 31 testRunner.Given("I have provided label identcode of \'000000000001\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 33 testRunner.When("I send get request to get label", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 35 testRunner.Then("The result should be correct existing label", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 37 testRunner.Given("I have provided label identcode of \'000000000001\' to delete", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 39 testRunner.When("I send post request to delete label", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 41 testRunner.When("I send get request to get deletion label with identcode provided to deletion", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 43 testRunner.Then("The result should be Not Found status", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void CreatingAndUsingBooleanFields() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Creating and using Boolean fields", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line 9 testRunner.Given("I have installed Orchard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 10 testRunner.And("I have installed \"Orchard.Fields\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.When("I go to \"Admin/ContentTypes\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 12 testRunner.Then("I should see \"<a[^>]*>.*?Create new type</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 13 testRunner.When("I go to \"Admin/ContentTypes/Create\"", ((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[] { "DisplayName", "Event" }); table1.AddRow(new string[] { "Name", "Event" }); #line 14 testRunner.And("I fill in", ((string)(null)), table1, "And "); #line 18 testRunner.And("I hit \"Create\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 19 testRunner.And("I go to \"Admin/ContentTypes/\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 20 testRunner.Then("I should see \"Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 23 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 24 testRunner.And("I follow \"Add Field\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table2.AddRow(new string[] { "DisplayName", "Active" }); table2.AddRow(new string[] { "Name", "Active" }); table2.AddRow(new string[] { "FieldTypeName", "BooleanField" }); #line 25 testRunner.And("I fill in", ((string)(null)), table2, "And "); #line 30 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 31 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 32 testRunner.Then("I should see \"The \\\"Active\\\" field has been added.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 35 testRunner.When("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 36 testRunner.Then("I should see \"Active\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table3.AddRow(new string[] { "Event.Active.Value", "true" }); #line 37 testRunner.When("I fill in", ((string)(null)), table3, "When "); #line 40 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 41 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 42 testRunner.Then("I should see \"Your Event has been created.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 43 testRunner.When("I go to \"Admin/Contents/List\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 44 testRunner.Then("I should see \"Active:\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 45 testRunner.And("I should see \"Yes\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 48 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table4.AddRow(new string[] { "Fields[0].BooleanFieldSettings.Hint", "Check if the event is active" }); #line 49 testRunner.And("I fill in", ((string)(null)), table4, "And "); #line 52 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 53 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 54 testRunner.Then("I should see \"Check if the event is active\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 57 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table5.AddRow(new string[] { "Fields[0].BooleanFieldSettings.DefaultValue", "True" }); #line 58 testRunner.And("I fill in", ((string)(null)), table5, "And "); #line 61 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 62 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 63 testRunner.Then("I should see \"checked=\\\"checked\\\"\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 66 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table6.AddRow(new string[] { "Fields[0].BooleanFieldSettings.Optional", "false" }); table6.AddRow(new string[] { "Fields[0].BooleanFieldSettings.DefaultValue", "Neutral" }); #line 67 testRunner.And("I fill in", ((string)(null)), table6, "And "); #line hidden TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table7.AddRow(new string[] { "Fields[0].BooleanFieldSettings.NotSetLabel", "May be" }); #line 71 testRunner.And("I fill in", ((string)(null)), table7, "And "); #line hidden TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table8.AddRow(new string[] { "Fields[0].BooleanFieldSettings.SelectionMode", "Radiobutton" }); #line 74 testRunner.And("I fill in", ((string)(null)), table8, "And "); #line 77 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 78 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table9.AddRow(new string[] { "Event.Active.Value", "" }); #line 79 testRunner.And("I fill in", ((string)(null)), table9, "And "); #line 82 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 83 testRunner.Then("I should see \"The field Active is mandatory.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 86 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table10.AddRow(new string[] { "Fields[0].BooleanFieldSettings.Optional", "false" }); table10.AddRow(new string[] { "Fields[0].BooleanFieldSettings.DefaultValue", "True" }); #line 87 testRunner.And("I fill in", ((string)(null)), table10, "And "); #line hidden TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table11.AddRow(new string[] { "Fields[0].BooleanFieldSettings.SelectionMode", "Dropdown list" }); #line 91 testRunner.And("I fill in", ((string)(null)), table11, "And "); #line 94 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 95 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table12.AddRow(new string[] { "Event.Active.Value", "" }); #line 96 testRunner.And("I fill in", ((string)(null)), table12, "And "); #line 99 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 100 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 101 testRunner.Then("I should see \"Your Event has been created.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 102 testRunner.And("I should see \"selected=\\\"selected\\\" value=\\\"true\\\"\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void ListAllTheProjectsThatHasBeenMadeInAClass() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("List all the projects that has been made in a class", ((string[])(null))); #line 100 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table19 = new TechTalk.SpecFlow.Table(new string[] { "Code", "Class", "Period", "User" }); table19.AddRow(new string[] { "1", "1", "1", "1" }); #line 101 testRunner.Given("I have the section", ((string)(null)), table19, "Given "); #line 104 testRunner.And("The period is the number 1 of year 2016", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table20 = new TechTalk.SpecFlow.Table(new string[] { "Id", "ProjectId", "Name", "Description", "IsDeleted", "BeneficiarieOrganization" }); table20.AddRow(new string[] { "1", "1", "Vinculacion Unitec", "Vinculacion Unitec", "false", "Unitec" }); table20.AddRow(new string[] { "2", "2", "Mhotivo", "Mhotivo", "false", "Mhotivo" }); table20.AddRow(new string[] { "3", "3", "Proyecto CCIC", "Proyecto CCIC", "false", "CCIC" }); #line 105 testRunner.And("The class 1 has the projects", ((string)(null)), table20, "And "); #line hidden TechTalk.SpecFlow.Table table21 = new TechTalk.SpecFlow.Table(new string[] { "Id", "AccountId", "Name", "Password", "Major", "Campus", "Email", "CreationDate", "ModificationDate", "Finiquiteado", "Status" }); table21.AddRow(new string[] { "1", "1", "Andrea", "1234", "1", "SPS", "*****@*****.**", "08/08/16", "10/10/16", "False", "Active" }); #line 110 testRunner.And("The list of professors is", ((string)(null)), table21, "And "); #line 113 testRunner.When("I execute the list projects by class report", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table22 = new TechTalk.SpecFlow.Table(new string[] { "IdProyecto", "Nombre", "Beneficiario", "Maestro", "Periodo", "Anio" }); table22.AddRow(new string[] { "1", "Vinculacion Unitec", "Unitec", "Andrea", "1", "2016" }); table22.AddRow(new string[] { "2", "Mhotivo", "Mhotivo", "Andrea", "1", "2016" }); table22.AddRow(new string[] { "3", "Proyecto CCIC", "CCIC", "Andrea", "1", "2016" }); #line 114 testRunner.Then("The result should be", ((string)(null)), table22, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void ErrorIsReturnedWhenCode_VerifierIsInvalid() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Error is returned when code_verifier is invalid", null, ((string[])(null))); #line 28 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line hidden TechTalk.SpecFlow.Table table49 = new TechTalk.SpecFlow.Table(new string[] { "Key", "Value" }); table49.AddRow(new string[] { "token_endpoint_auth_method", "pkce" }); table49.AddRow(new string[] { "response_types", "[code]" }); table49.AddRow(new string[] { "grant_types", "[authorization_code]" }); table49.AddRow(new string[] { "scope", "scope1" }); table49.AddRow(new string[] { "redirect_uris", "[http://localhost:8080]" }); #line 29 testRunner.When("execute HTTP POST JSON request \'http://localhost/register\'", ((string)(null)), table49, "When "); #line 37 testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 38 testRunner.And("extract parameter \'client_id\' from JSON body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 39 testRunner.And("add user consent : user=\'administrator\', scope=\'scope1\', clientId=\'$client_id$\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table50 = new TechTalk.SpecFlow.Table(new string[] { "Key", "Value" }); table50.AddRow(new string[] { "response_type", "code" }); table50.AddRow(new string[] { "client_id", "$client_id$" }); table50.AddRow(new string[] { "state", "state" }); table50.AddRow(new string[] { "scope", "scope1" }); table50.AddRow(new string[] { "code_challenge", "code_challenge" }); table50.AddRow(new string[] { "code_challenge_method", "S256" }); #line 41 testRunner.And("execute HTTP GET request \'http://localhost/authorization\'", ((string)(null)), table50, "And "); #line 50 testRunner.And("extract parameter \'code\' from redirect url", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table51 = new TechTalk.SpecFlow.Table(new string[] { "Key", "Value" }); table51.AddRow(new string[] { "client_id", "$client_id$" }); table51.AddRow(new string[] { "client_secret", "BankCvSecret" }); table51.AddRow(new string[] { "grant_type", "authorization_code" }); table51.AddRow(new string[] { "code", "$code$" }); table51.AddRow(new string[] { "code_verifier", "invalid" }); table51.AddRow(new string[] { "redirect_uri", "http://localhost:8080" }); #line 52 testRunner.And("execute HTTP POST request \'http://localhost/token\'", ((string)(null)), table51, "And "); #line 61 testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 63 testRunner.Then("JSON \'error\'=\'invalid_grant\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 64 testRunner.Then("JSON \'error_description\'=\'code_verifier is invalid\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }