public virtual void _03_WhenIUploadAndPublishTheStudyWithLocalLabsEnabledThenIShouldSeeLocalLabsInTheHeader_() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("03_When I Upload and publish the study with Local Labs Enabled then I should see " + "Local Labs in the header.", null, new string[] { "US68898.3" }); #line 14 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 15 testRunner.When("I click breadcrumb \"Study Management\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 16 testRunner.And("I upload a study \"Local_Labs_Enab.zip\" with study label \"Study1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 testRunner.Then("I see main tab \"Local Labs\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void CalculateReconciliationForAFundingClaimGroupThatHasSingleAllocationWhichInTurnHasAMultipleDeliverableGroup() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Calculate Reconciliation for a funding claim group that has single allocation whi" + "ch in turn has a multiple deliverable group", new string[] { "SingleAllocationMultipleDelGroup" }); #line 4 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Allocation Reference" }); table1.AddRow(new string[] { "ASC-1234" }); #line 5 testRunner.Given("A funding claim reconciliation allocation group exists with name \'AdultSkills1516" + "\' And Claim Type as \'MID YEAR\' that contains Allocation as follows", ((string)(null)), table1, "Given "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Deliverable Code", "Deliverable Name", "Deliverable Planned Value", "Deliverable Actuals to Date Value", "Deliverable Forecast Remaining Delivery Value", "Deliverable Exceptional Adjustments Value" }); table2.AddRow(new string[] { "1", "Apprenticeships Total Funding", "1000.00", "0.00", "0.00", "0.00" }); table2.AddRow(new string[] { "2", "19-23 Apprenticeships Programme Funding", "0.00", "100.00", "50.00", "0.00" }); table2.AddRow(new string[] { "3", "19-23 Apprenticeships Learning Support", "0.00", "250.00", "0.00", "0.00" }); table2.AddRow(new string[] { "4", "19+ Apprenticeships Learner Support", "0.00", "0.00", "0.00", "0.00" }); table2.AddRow(new string[] { "5", "24+ Apprenticeships Programme Funding", "0.00", "0.00", "0.00", "0.00" }); table2.AddRow(new string[] { "6", "24+ Apprenticeships Learning Support", "0.00", "0.00", "0.00", "0.00" }); table2.AddRow(new string[] { "7", "19-23 Trailblazer Apprenticeships Programme Funding", "0.00", "0.00", "0.00", "0.00" }); table2.AddRow(new string[] { "8", "19-23 Trailblazer Apprenticeships Learning Support", "0.00", "0.00", "0.00", "0.00" }); table2.AddRow(new string[] { "9", "24+ Trailblazer Apprenticeships Programme Funding", "0.00", "0.00", "0.00", "0.00" }); table2.AddRow(new string[] { "10", "24+ Trailblazer Apprenticeships Learning Support", "0.00", "0.00", "0.00", "0.00" }); #line 9 testRunner.And("the Allocation Reference \'ASC-1234\' contains Deliverable Group \'Apprenticeships\' " + "that contains following deliverables", ((string)(null)), table2, "And "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "Deliverable Code", "Deliverable Name", "Deliverable Planned Value", "Deliverable Actuals to Date Value", "Deliverable Forecast Remaining Delivery Value", "Deliverable Exceptional Adjustments Value" }); table3.AddRow(new string[] { "11", "Other ASB Total Funding", "500.00", "0.00", "0.00", "0.00" }); table3.AddRow(new string[] { "12", "Classroom Learning Programme Funding", "0.00", "300.00", "0.00", "-10.00" }); table3.AddRow(new string[] { "13", "Classroom Learning - Learning Support", "0.00", "270.00", "0.00", "0.00" }); table3.AddRow(new string[] { "14", "19-24 Traineeships Programme Funding", "0.00", "0.00", "0.00", "0.00" }); table3.AddRow(new string[] { "15", "19-24 Traineeships Learning Support", "0.00", "0.00", "0.00", "0.00" }); table3.AddRow(new string[] { "16", "19-24 Traineeships Learner Support", "0.00", "0.00", "0.00", "0.00" }); table3.AddRow(new string[] { "17", "19-23 Trailblazer Apprenticeships Programme Funding", "0.00", "0.00", "0.00", "0.00" }); table3.AddRow(new string[] { "18", "Workplace Learning Programme Funding", "0.00", "0.00", "0.00", "0.00" }); table3.AddRow(new string[] { "19", "Workplace Learning - Learning Support", "0.00", "0.00", "0.00", "0.00" }); #line 22 testRunner.And("the Allocation Reference \'ASC-1234\' contains Deliverable Group \'OtherASB\' that co" + "ntains following deliverables", ((string)(null)), table3, "And "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "ReconcileOverDelivery", "OverDeliveryDeminimis", "ReconcileUnderDelivery", "UnderDeliveryDeminimis" }); table4.AddRow(new string[] { "False", "0.00", "True", "-100.00" }); #line 34 testRunner.And("Policy Configuration Exists for Reconciliation Allocation Group \'AdultSkills1516\'" + " And Claim Type Name as \'MID YEAR\' with behaviour as :", ((string)(null)), table4, "And "); #line hidden TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] { "IsClaimToProfileCappingNeeded" }); table5.AddRow(new string[] { "False" }); #line 38 testRunner.And("Deliverable Group \'Apprenticeships\' exists as follows", ((string)(null)), table5, "And "); #line hidden TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] { "IsClaimToProfileCappingNeeded" }); table6.AddRow(new string[] { "True" }); #line 42 testRunner.And("Deliverable Group \'OtherASB\' exists as follows", ((string)(null)), table6, "And "); #line 46 testRunner.When("reconciliation is calculated", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] { "Planned Value", "Claimed Value", "Capped Claimed Value", "Proposed Reconciliation Value", "Reconciliation Value" }); table7.AddRow(new string[] { "1500.00", "960.00", "900.00", "-600.00", "-600.00" }); #line 48 testRunner.Then("the result should be at level of funding claim group", ((string)(null)), table7, "Then "); #line hidden TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] { "Allocation Reference", "Planned Value", "Claimed Value", "Capped Claimed Value", "Proposed Reconciliation Value", "Reconciliation Value" }); table8.AddRow(new string[] { "ASC-1234", "1500.00", "960.00", "900.00", "-600.00", "-600.00" }); #line 51 testRunner.And("the result at the Allocation level should be", ((string)(null)), table8, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void FeatureBackground() { #line 8 #line 9 testRunner.Given("test folder is cleaned", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table946 = new TechTalk.SpecFlow.Table(new string[] { "Input Var Name" }); table946.AddRow(new string[] { "[[a]]" }); #line 10 testRunner.And("I have \"Workflow 1\" with inputs as", ((string)(null)), table946, "And "); #line hidden TechTalk.SpecFlow.Table table947 = new TechTalk.SpecFlow.Table(new string[] { "Ouput Var Name" }); table947.AddRow(new string[] { "[[outputValue]]" }); #line 13 testRunner.And("\"Workflow 1\" has outputs as", ((string)(null)), table947, "And "); #line hidden TechTalk.SpecFlow.Table table948 = new TechTalk.SpecFlow.Table(new string[] { "Input Var Name" }); table948.AddRow(new string[] { "[[rec().a]]" }); table948.AddRow(new string[] { "[[rec().b]]" }); #line 16 testRunner.Given("I have \"Workflow 2\" with inputs as", ((string)(null)), table948, "Given "); #line hidden TechTalk.SpecFlow.Table table949 = new TechTalk.SpecFlow.Table(new string[] { "Ouput Var Name" }); table949.AddRow(new string[] { "[[returnVal]]" }); #line 20 testRunner.And("\"Workflow 2\" has outputs as", ((string)(null)), table949, "And "); #line hidden TechTalk.SpecFlow.Table table950 = new TechTalk.SpecFlow.Table(new string[] { "Input Var Name" }); table950.AddRow(new string[] { "[[A]]" }); table950.AddRow(new string[] { "[[B]]" }); table950.AddRow(new string[] { "[[C]]" }); #line 23 testRunner.Given("I have \"Workflow 3\" with inputs as", ((string)(null)), table950, "Given "); #line hidden TechTalk.SpecFlow.Table table951 = new TechTalk.SpecFlow.Table(new string[] { "Ouput Var Name" }); table951.AddRow(new string[] { "[[message]]" }); #line 28 testRunner.And("\"Workflow 3\" has outputs as", ((string)(null)), table951, "And "); #line hidden TechTalk.SpecFlow.Table table952 = new TechTalk.SpecFlow.Table(new string[] { "Input Var Name" }); table952.AddRow(new string[] { "[[input]]" }); #line 31 testRunner.Given("I have \"WorkflowWithTests\" with inputs as", ((string)(null)), table952, "Given "); #line hidden TechTalk.SpecFlow.Table table953 = new TechTalk.SpecFlow.Table(new string[] { "Ouput Var Name" }); table953.AddRow(new string[] { "[[outputValue]]" }); #line 34 testRunner.And("\"WorkflowWithTests\" has outputs as", ((string)(null)), table953, "And "); #line hidden TechTalk.SpecFlow.Table table954 = new TechTalk.SpecFlow.Table(new string[] { "TestName", "AuthenticationType", "Error", "TestFailing", "TestPending", "TestInvalid", "TestPassed" }); table954.AddRow(new string[] { "Test1", "Windows", "false", "false", "false", "false", "true" }); table954.AddRow(new string[] { "Test2", "Windows", "false", "true", "false", "false", "false" }); table954.AddRow(new string[] { "Test3", "Windows", "false", "false", "false", "true", "false" }); table954.AddRow(new string[] { "Test4", "Windows", "false", "false", "true", "false", "false" }); #line 37 testRunner.And("\"WorkflowWithTests\" Tests as", ((string)(null)), table954, "And "); #line hidden }
public virtual void ICanCreateANewBlogAndBlogPost() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can create a new blog and blog post", ((string[])(null))); #line 11 this.ScenarioSetup(scenarioInfo); #line 12 testRunner.Given("I have installed Orchard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 13 testRunner.When("I go to \"admin/blogs/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[] { "Title.Title", "My Blog" }); #line 14 testRunner.And("I fill in", ((string)(null)), table1, "And "); #line 17 testRunner.And("I hit \"Publish\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 18 testRunner.And("I go to \"admin/blogs\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 19 testRunner.And("I follow \"My Blog\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 20 testRunner.And("I follow \"New Post\" where class name has \"primaryAction\"", ((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[] { "Title.Title", "My Post" }); table2.AddRow(new string[] { "Body.Text", "Hi there." }); #line 21 testRunner.And("I fill in", ((string)(null)), table2, "And "); #line 25 testRunner.And("I hit \"Publish\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 26 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 27 testRunner.Then("I should see \"The Blog Post has been created and published.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 28 testRunner.When("I go to \"my-blog\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 29 testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 30 testRunner.And("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 31 testRunner.When("I go to \"my-blog/my-post\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 32 testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 33 testRunner.And("I should see \"Hi there.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void FeatureBackground() { #line 7 #line 8 testRunner.Given("I navigated to the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 9 testRunner.And("I am logged out", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 testRunner.And("I navigated to the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.Then("I am on the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden }
public virtual void ReportDirtyAreaPublicRoad() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("ReportDirtyArea Public Road", new string[] { "mytag1" }); #line 7 this.ScenarioSetup(scenarioInfo); #line 8 testRunner.Given("User is on the ReportDirtyArea Page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 9 testRunner.When("they select Yes to first time report & click on next", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 10 testRunner.And("they click on the next button after selecting the problem source as public road", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.When("User enters the Dirty Area location & clicks next", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 12 testRunner.And("They enter the relevant details on the public road information pages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 testRunner.Then("they get a confirmation screen with the case number", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void CreateEmployeeWithAllDetails() { string[] tagsOfScenario = new string[] { "smoke" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create Employee with all details", null, tagsOfScenario, argumentsOfScenario); #line 9 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 5 this.FeatureBackground(); #line hidden #line 10 testRunner.Given("I have navigated to the application", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 11 testRunner.And("I see application opened", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 12 testRunner.Then("I click login link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "UserName", "Password" }); table1.AddRow(new string[] { "admin", "password" }); #line 13 testRunner.When("I enter UserName and Password", ((string)(null)), table1, "When "); #line hidden #line 16 testRunner.Then("I click login button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 17 testRunner.And("I click employeeList link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 18 testRunner.Then("I click createnew button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Name", "Salary", "DurationWorked", "Grade", "Email" }); table2.AddRow(new string[] { "AutoUser", "4000", "30", "1", "*****@*****.**" }); #line 19 testRunner.And("I enter following details", ((string)(null)), table2, "And "); #line hidden #line 22 testRunner.And("I click create button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 23 testRunner.And("I click log off", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void BUG_UmColaboradorTrocaOStatusDeUmaEstoriaDeProntoParaReplanejado() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[BUG] - Um colaborador troca o status de uma estória de pronto para replanejado", new string[] { "rf_4.02", "bug" }); #line 10 this.ScenarioSetup(scenarioInfo); #line 11 testRunner.Given("um projeto \'Teste\' com o(s) ciclo(s) \'ciclo 1\', \'ciclo 2\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Dado "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "estória", "situação", "pontos", "tipo", "valor do negócio" }); table1.AddRow(new string[] { "Teste 01", "Pronto", "5", "EscopoContratado", "Mandatorio" }); table1.AddRow(new string[] { "Teste 02", "Replanejado", "3", "EscopoContratado", "Mandatorio" }); #line 12 testRunner.And("ciclo \'1\' do projeto \'Teste\' na situação \'Concluido\' com as estórias:", ((string)(null)), table1, "E "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "estória", "situação", "pontos", "tipo", "valor do negócio" }); table2.AddRow(new string[] { "Teste 03", "NaoIniciado", "5", "EscopoContratado", "Mandatorio" }); #line 16 testRunner.And("ciclo \'2\' do projeto \'Teste\' na situação \'NaoPlanejado\' com as estórias:", ((string)(null)), table2, "E "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "estória", "situação" }); table3.AddRow(new string[] { "Teste 01", "Replanejado" }); #line 19 testRunner.When("mudar a situacao do ciclo \'ciclo 1\' para \'Em Andamento\'", ((string)(null)), table3, "Quando "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "estória", "situação" }); table4.AddRow(new string[] { "Teste 01", "Replanejado" }); table4.AddRow(new string[] { "Teste 02", "Replanejado" }); #line 22 testRunner.Then("as estorias do projeto \'Teste\' devem estar com a situacao", ((string)(null)), table4, "Então "); #line hidden this.ScenarioCleanup(); }
public virtual void DeleteLastRecordInARecordset() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Delete last record in a recordset", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "rs", "val" }); table1.AddRow(new string[] { "rs().row", "1" }); table1.AddRow(new string[] { "rs().row", "2" }); table1.AddRow(new string[] { "rs().row", "3" }); #line 7 testRunner.Given("I have the following recordset", ((string)(null)), table1, "Given "); #line 12 testRunner.And("I delete a record \"[[rs()]]\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 testRunner.When("the delete tool is executed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 14 testRunner.Then("the delete result should be \"Success\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "rs", "val" }); table2.AddRow(new string[] { "rs().row", "1" }); table2.AddRow(new string[] { "rs().row", "2" }); #line 15 testRunner.And("the recordset \"[[rs().row]]\" will be as follows", ((string)(null)), table2, "And "); #line 19 testRunner.And("the execution has \"NO\" error", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "Records" }); table3.AddRow(new string[] { "[[rs(3).row]] = 3" }); #line 20 testRunner.And("the debug inputs as", ((string)(null)), table3, "And "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "" }); table4.AddRow(new string[] { "[[result]] = Success" }); #line 23 testRunner.And("the debug output as", ((string)(null)), table4, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void CreatedUserSuccessfully() { string[] tagsOfScenario = new string[] { "createUsertag" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Created user successfully", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 7 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 8 testRunner.Given("that I type the URL in my browser", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 9 testRunner.And("I click on the Sign In button to register", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 10 testRunner.And("I insert valid e-mail", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 11 testRunner.And("click in Create an Account", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 12 testRunner.And("I fill in all mandatory fields", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 13 testRunner.When("click in Register", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 14 testRunner.Then("I will be directed to my profile", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void _1_Criar_Promocao_Porcentagem(string percentual, string[] exampleTags) { string[] @__tags = new string[] { "web" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("1-Criar_Promocao-Porcentagem", @__tags); #line 5 this.ScenarioSetup(scenarioInfo); #line 6 testRunner.Given("visualizo a tela Painel de Promocoes Com EC Cadastrado", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Dado "); #line 7 testRunner.And("pressiono no botão Criar Promoção", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "E "); #line 8 testRunner.And(string.Format("preencho os dados da Promocao (Porcentagem) {0}", percentual), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "E "); #line 9 testRunner.And("pressiono botão Proximo Passo (Promocao)", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "E "); #line 10 testRunner.And(string.Format("visualizo tela para confirmacao(Porcentagem) {0}", percentual), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "E "); #line 11 testRunner.When("pressiono botão Criar Promocao", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Quando "); #line 12 testRunner.Then("visualizo a Mensagem de Confirmacao", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Então "); #line 13 testRunner.And(string.Format("Cupom de Porcentagem Criado(Porcentagem) {0}", percentual), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "E "); #line hidden this.ScenarioCleanup(); }
public virtual void FeatureBackground() { #line 4 #line hidden #line 5 testRunner.Given("the user navigates to the website \"https://dev.id.netwealth.com/account/registern" + "ew\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 6 testRunner.And("user accepts cookies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden }
public virtual void ICanTheTestWithConfigFile(string configurationType, string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { "3.4.1" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can the test with config file", null, @__tags); #line 7 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 3 this.FeatureBackground(); #line 8 testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 9 testRunner.And("I added successfulWithConfig method as SuccessfulTest to the class Foo.Tests.Unit" + "Tests1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 testRunner.And("I created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.And("I added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 testRunner.And("I copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 testRunner.And("I compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.And("I added config file mocks\\foo.tests.dll.config", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 testRunner.And("I added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 testRunner.And(string.Format("I want to use {0} configuration type", configurationType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 18 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "field", "value" }); table1.AddRow(new string[] { "Test Count", "1" }); table1.AddRow(new string[] { "Passed", "1" }); table1.AddRow(new string[] { "Failed", "0" }); table1.AddRow(new string[] { "Inconclusive", "0" }); table1.AddRow(new string[] { "Skipped", "0" }); #line 19 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table1, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void GetCustomerByID() { string[] tagsOfScenario = new string[] { "customers", "smoke", "subcontractorId" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get Customer by ID", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 4 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 table258 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table258.AddRow(new string[] { "DateOfRegistration", "2018-07-27T16:11:00Z" }); table258.AddRow(new string[] { "Title", "1" }); table258.AddRow(new string[] { "GivenName", "Bob" }); table258.AddRow(new string[] { "FamilyName", "Customer" }); table258.AddRow(new string[] { "DateofBirth", "2005-07-26T13:45:00Z" }); table258.AddRow(new string[] { "Gender", "1" }); table258.AddRow(new string[] { "UniqueLearnerNumber", "9876543210" }); table258.AddRow(new string[] { "OptInUserResearch", "true" }); table258.AddRow(new string[] { "OptInMarketResearch", "false" }); table258.AddRow(new string[] { "DateOfTermination", "2018-07-27T14:45:00Z" }); table258.AddRow(new string[] { "ReasonForTermination", "1" }); table258.AddRow(new string[] { "IntroducedBy", "1" }); table258.AddRow(new string[] { "IntroducedByAdditionalInfo", "additional info" }); table258.AddRow(new string[] { "LastModifiedDate", "2018-06-21T14:45:00Z" }); #line 5 testRunner.Given("I post a Customer with the following details V2:", ((string)(null)), table258, "Given "); #line hidden #line 21 testRunner.When("I get a Customer by ID V2", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 22 testRunner.Then("there should be a 200 response", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table259 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table259.AddRow(new string[] { "DateOfRegistration", "2018-07-27T16:11:00Z" }); table259.AddRow(new string[] { "Title", "1" }); table259.AddRow(new string[] { "GivenName", "Bob" }); table259.AddRow(new string[] { "FamilyName", "Customer" }); table259.AddRow(new string[] { "DateofBirth", "2005-07-26T13:45:00Z" }); table259.AddRow(new string[] { "Gender", "1" }); table259.AddRow(new string[] { "UniqueLearnerNumber", "9876543210" }); table259.AddRow(new string[] { "OptInUserResearch", "true" }); table259.AddRow(new string[] { "OptInMarketResearch", "false" }); table259.AddRow(new string[] { "DateOfTermination", "2018-07-27T14:45:00Z" }); table259.AddRow(new string[] { "ReasonForTermination", "1" }); table259.AddRow(new string[] { "IntroducedBy", "1" }); table259.AddRow(new string[] { "IntroducedByAdditionalInfo", "additional info" }); table259.AddRow(new string[] { "LastModifiedDate", "2018-06-21T14:45:00Z" }); #line 23 testRunner.And("the response body should contain:", ((string)(null)), table259, "And "); #line hidden #line 39 testRunner.And("the response body should contain the SubContractorId", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void ADASLearnerLevyAvailableLearnerFinishesOneMonthEarly() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("A DAS learner, levy available, learner finishes one month early", ((string[])(null))); #line 8 this.ScenarioSetup(scenarioInfo); #line 5 this.FeatureBackground(); #line 9 testRunner.Given("levy balance > agreed price for all months", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table414 = new TechTalk.SpecFlow.Table(new string[] { "learner type", "agreed price", "start date", "planned end date", "actual end date", "completion status" }); table414.AddRow(new string[] { "programme only DAS", "15000", "01/09/2017", "08/09/2018", "08/08/2018", "completed" }); #line 10 testRunner.When("an ILR file is submitted with the following data:", ((string)(null)), table414, "When "); #line hidden TechTalk.SpecFlow.Table table415 = new TechTalk.SpecFlow.Table(new string[] { "Type", "09/17", "10/17", "11/17", "...", "08/18", "09/18" }); table415.AddRow(new string[] { "Provider Earned Total", "1000", "1000", "1000", "...", "4000", "0" }); table415.AddRow(new string[] { "Provider Earned from SFA", "1000", "1000", "1000", "...", "4000", "0" }); table415.AddRow(new string[] { "Provider Paid by SFA", "0", "1000", "1000", "...", "1000", "4000" }); table415.AddRow(new string[] { "Levy account debited", "0", "1000", "1000", "...", "1000", "4000" }); table415.AddRow(new string[] { "SFA Levy employer budget", "1000", "1000", "1000", "...", "4000", "0" }); table415.AddRow(new string[] { "SFA Levy co-funding budget", "0", "0", "0", "...", "0", "0" }); #line 13 testRunner.Then("the provider earnings and payments break down as follows:", ((string)(null)), table415, "Then "); #line hidden TechTalk.SpecFlow.Table table416 = new TechTalk.SpecFlow.Table(new string[] { "Transaction type", "10/17", "11/17", "...", "08/18", "09/18" }); table416.AddRow(new string[] { "On-program", "1000", "1000", "...", "1000", "0" }); table416.AddRow(new string[] { "Completion", "0", "0", "...", "0", "3000" }); table416.AddRow(new string[] { "Balancing", "0", "0", "...", "0", "1000" }); #line 21 testRunner.And("the transaction types for the payments are:", ((string)(null)), table416, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void VerifyDefaultOptionSelectedInDropdown() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Verify default option selected in dropdown", null, new string[] { "Dropdown" }); #line 27 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 28 testRunner.Given("Default page is opened", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 29 testRunner.When("I click \"dropdown\" link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 30 testRunner.And("I see page Dropdown List", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 31 testRunner.And("I check selected option", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 32 testRunner.Then("Option with text \"Please select an option\" is selected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void VerifySelectionOfFavApps() { string[] tagsOfScenario = new string[] { "Chrome" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Verify Selection of fav Apps", null, tagsOfScenario, argumentsOfScenario); #line 4 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 5 testRunner.Given("Navigate to the Customer UI Login pagee", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 6 testRunner.When("I enter with valid login credentials", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 7 testRunner.Then("Customer Portal Home Page is displayed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 8 testRunner.When("I validate No Apps are favourite", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 9 testRunner.When("I click on favourites Apps Tab", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 10 testRunner.Then("View all Apps Tab should be displayed with No Fav Apps", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 11 testRunner.Then("All Apps displayed in dashboard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 12 testRunner.When("I favourites Apps from all 5 Apps in view and Navigate to DashBoard i validate th" + "rought dashboard and fav Apps Tab", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 13 testRunner.Then("Favourited Apps should be displayed in favourite App wrapper", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 14 testRunner.When("I remove all fav apps", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 15 testRunner.Then("selected Fav Should be removed and validated", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 16 testRunner.And("I Logout From Portal", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void RecordingHappyPath() { string[] tagsOfScenario = ((string[])(null)); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Recording happy path", null, ((string[])(null))); #line 9 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 this.FeatureBackground(); #line hidden TechTalk.SpecFlow.Table table80 = new TechTalk.SpecFlow.Table(new string[] { "var", "Destination" }); table80.AddRow(new string[] { "P2", "P1.ProxyUri" }); #line 10 testRunner.Given("the Slipka Proxy", ((string)(null)), table80, "Given "); #line hidden TechTalk.SpecFlow.Table table81 = new TechTalk.SpecFlow.Table(new string[] { "Uri", "Response Content", "StatusCode", "Method" }); table81.AddRow(new string[] { "/test", "Hello World", "200", "GET" }); #line 13 testRunner.Given("the Proxy \'P1\' injects the calls", ((string)(null)), table81, "Given "); #line hidden TechTalk.SpecFlow.Table table82 = new TechTalk.SpecFlow.Table(new string[] { "Uri" }); table82.AddRow(new string[] { "/test" }); #line 16 testRunner.Given("the Proxy \'P2\' records the calls", ((string)(null)), table82, "Given "); #line hidden TechTalk.SpecFlow.Table table83 = new TechTalk.SpecFlow.Table(new string[] { "var", "Host", "Path", "Method" }); table83.AddRow(new string[] { "C1", "P2.ProxyUri", "test", "GET" }); #line 19 testRunner.And("the Call", ((string)(null)), table83, "And "); #line hidden #line 22 testRunner.When("the Call \'C1\' is executed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 23 testRunner.And("wait 1000 ms", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 24 testRunner.Then("retrieving the recorded calls from Proxy \'P2\' as \'RC\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table84 = new TechTalk.SpecFlow.Table(new string[] { "Response Content", "StatusCode" }); table84.AddRow(new string[] { "Hello World", "200" }); #line 25 testRunner.And("\'RC[0]\' has the values", ((string)(null)), table84, "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void CreateAnUnregisteredInterface() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create an unregistered interface", ((string[])(null))); #line 10 this.ScenarioSetup(scenarioInfo); #line 6 this.FeatureBackground(); #line 11 testRunner.When("I create an instance of an interface using the test container", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 12 testRunner.Then("the test container should have given me an object", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 13 testRunner.And("the Autofac/Moq test container should have 1 registration for my test interface", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.And("the object retrieved by the test container should be a mock-based type", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void GetCurrentTeamTotalsWhenNoPlayersOrSeasonsCreated() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get current team totals when no players or seasons created", ((string[])(null))); #line 5 this.ScenarioSetup(scenarioInfo); #line 6 testRunner.Given("there are no players on the team", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 7 testRunner.And("the team has not started any seasons", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 8 testRunner.When("I get the teams current season totals", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 9 testRunner.Then("the year is CurrentYear", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 10 testRunner.And("the team has 0 wins", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.And("the team has 0 losses", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 testRunner.And("the team has the seasons CurrentYear", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 testRunner.And("the team does not have any player stats", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.And("the team batting totals are all zero", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void FeatureBackground() { #line 7 #line hidden #line 8 testRunner.Given("a new period", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 9 testRunner.And("the winning ticket is 1,2,3,4,5,6", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden }
public virtual void _001_341MeetingManagementPageAndDateSortingValidation() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("001 - 341 Meeting Management Page and Date Sorting Validation", new string[] { "US224527" }); #line 8 this.ScenarioSetup(scenarioInfo); #line 9 testRunner.Given("I enter to 341 Meeting page as superuser", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 10 testRunner.Then("I see number of cases in parentheses", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 12 testRunner.When("I click on filter search Icon", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 13 testRunner.Then("I input Current Date in the Fields", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 14 testRunner.And("I Click on Close Button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 testRunner.Then("I SignOut from the Unity Application", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void UserAddsHotelInDatabaseByProvidingValidInputs(string id, string name, string[] exampleTags) { string[] @__tags = new string[] { "AddHotel" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User adds hotel in database by providing valid inputs", @__tags); #line 7 this.ScenarioSetup(scenarioInfo); #line 8 testRunner.Given(string.Format("User provided valid Id \'{0}\' and \'{1}\' for hotel", id, name), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 9 testRunner.And("User has added required details for hotel", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 testRunner.When("User calls AddHotel api", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 11 testRunner.Then(string.Format("Hotel with name \'{0}\' should be present in the response", name), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void ChangeWorkflowMappingsAlertsAffectedOnSave() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("ChangeWorkflowMappingsAlertsAffectedOnSave", new string[] { "DesignerUISpecs" }); #line 7 this.ScenarioSetup(scenarioInfo); #line 8 testRunner.Given("I have Warewolf running", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 9 testRunner.And("all tabs are closed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 testRunner.And("I click \"EXPLORERFILTERCLEARBUTTON\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.And("I click \"EXPLORER,UI_localhost_AutoID\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 testRunner.And("I send \"InnerWF\" to \"EXPLORERFILTER\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 testRunner.And("I double click \"EXPLORERFOLDERS,UI_Acceptance Testing Resources_AutoID,UI_InnerWF" + "_AutoID\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 testRunner.And("I click \"VARIABLESCALAR,UI_Variable_result_AutoID,UI_IsInputCheckbox_AutoID\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 18 testRunner.When("I click \"RIBBONSAVE\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 19 testRunner.Then("\"UI_DeleteResourceNoBtn_AutoID\" is visible within \"2\" seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 20 testRunner.When("I click \"UI_ResourceChangedWarningDialog_AutoID,UI_ShowAffectedWorkflowsButton_Au" + "toID\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 21 testRunner.Given("I double click point \"500,96\" on \"UI_DocManager_AutoID,UI_SplitPane_AutoID,UI_Tab" + "Manager_AutoID,myScrollViewer\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 22 testRunner.Given("I double click point \"482,121\" on \"UI_DocManager_AutoID,UI_SplitPane_AutoID,UI_Ta" + "bManager_AutoID,myScrollViewer\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 23 testRunner.Given("I double click point \"649,200\" on \"UI_DocManager_AutoID,UI_SplitPane_AutoID,UI_Ta" + "bManager_AutoID,myScrollViewer\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden this.ScenarioCleanup(); }
public virtual void CreatingASketchWithExistingStepsAndOutcomes(string scenarioUserName, string scenarioPassword, string scenarioRole, string title, string description, string steps, string pre_Requsites, string[] exampleTags) { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Creating a Sketch with existing Steps and Outcomes", exampleTags); #line 6 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Role", "Permission", "Value" }); table1.AddRow(new string[] { "All Users", "View", "Allowed" }); #line 7 testRunner.Given("There is a Page called Sketches with these permissions", ((string)(null)), table1, "Given "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Role", "Permission", "Value" }); table2.AddRow(new string[] { "User Account Administrator", "View", "Allowed" }); #line 10 testRunner.And("There is a Sketch module on the page with these permissions", ((string)(null)), table2, "And "); #line 13 testRunner.Given(string.Format("Login as UID={0} PWD={1} Role={2}", scenarioUserName, scenarioPassword, scenarioRole), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 14 testRunner.When("Right click on the Feature in the Sketches tree and select Add Sketch", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 15 testRunner.And(string.Format("In the Title text box, enter the name of the Sketch {0}", title), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 testRunner.And("In the Page Permission grid set the permissions for the Page for this Sketch", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 testRunner.And("In the Module Permission grid set the permissions for the Module for this Sketch", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 18 testRunner.And(string.Format("In the Description field describe the main function of the Sketch and its expecte" + "d outcome {0}", description), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 19 testRunner.And(string.Format("In the Pre-requsites field start typing the Pre-requsite and select the Pre-requs" + "ite you wish to use from the autocomplete list {0}", pre_Requsites), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 20 testRunner.And(string.Format("In the Steps field start typing the step and select the Step you wish to use from" + " the autocomplete list {0}", steps), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 21 testRunner.And("In the Examples grid fill out a value for each field", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 22 testRunner.And("Click the Save button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 23 testRunner.Then("A new Sketch node will appear in the Sketches tree", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 24 testRunner.And("The Sketch editing form will switch to View mode", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void LoginToTicketManagementAsAdminIsFailedWithWrongCredentials() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Login to TicketManagement as Admin is failed with wrong credentials", null, ((string[])(null))); #line 6 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 7 testRunner.Given("User on the home page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 8 testRunner.When("User clicks LogIn link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 9 testRunner.And("Enters \"Admin\" to Name input on login form", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 testRunner.And("Enters \"asda\" to Password input on login form", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.And("Clicks Login button on login form", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 testRunner.Then("Login form has error \"The credentials are not recognized.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void AmazonInteraction() { string[] tagsOfScenario = new string[] { "mytag" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Amazon Interaction", null, tagsOfScenario, argumentsOfScenario); #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(); #line 6 testRunner.Given("Go to Amazon.com.mx", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 7 testRunner.When("Login with valid credentials", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 8 testRunner.And("Search for product: \'Samsung Galaxy S9 64GB\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 9 testRunner.And("Select first product with price and save the price", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 10 testRunner.And("Click on the product", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 11 testRunner.Then("Validate first price vs detail price", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 12 testRunner.When("Click on Add to Cart", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 13 testRunner.Then("Validate again, first price vs current price", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 14 testRunner.And("Validate that the Shop car has \'1\' as a number", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 15 testRunner.When("Search for another product: \'Alienware Aw3418DW\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 16 testRunner.And("Select First product", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 17 testRunner.And("Add to Cart", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 18 testRunner.Then("Verify that the cart number is now \'2\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void FeatureBackground() { #line 6 #line hidden #line 7 testRunner.Given("I have logged in as a \"ProviderBarnsleyPA\" user", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 8 testRunner.And("I have a created a registration without LRS data", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 9 testRunner.And("I navigate to the \'Has the learner achieved the required minimum standard for Eng" + "lish and maths\' page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden }
public virtual void _1SetAndTestFooAndBar() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("1 Set and Test Foo And Bar", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); #line 7 testRunner.When("I set Foo to 10", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 8 testRunner.And("I set Bar to 20", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 9 testRunner.Then("Foo has been set", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 10 testRunner.And("Foo is 10", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.And("Bar has been set", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 testRunner.And("Bar is 20", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 testRunner.And("Baz has been set", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.And("Baz is 30", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 testRunner.And("Qux has not been set", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 testRunner.And("Norf has not been set", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void CreatingNewStreamWithNoMetadataAndNoEventsFailsIfStreamIdAlreadyExists() { string[] tagsOfScenario = new string[] { "ExpectException" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Creating new stream with no metadata and no events fails if stream id already exi" + "sts", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #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(); #line 6 testRunner.Given("an event store backed by partitioned collection", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 7 testRunner.And("an existing stream S with 5 events", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 8 testRunner.When("I write a new stream S with 0 events", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 9 testRunner.Then("the action fails as stream S already exists", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 10 testRunner.And("no events are appended", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 11 testRunner.And("request charge is reported", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }