public virtual void GetLearningProgressionByID() { string[] tagsOfScenario = new string[] { "learningprogressions", "Smoke" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get Learning Progression by ID", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 15 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 table726 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table726.AddRow(new string[] { "DateProgressionRecorded", "2018-06-25T11:21:00Z" }); table726.AddRow(new string[] { "CurrentLearningStatus", "1" }); table726.AddRow(new string[] { "LearningHours", "1" }); table726.AddRow(new string[] { "DateLearningStarted", "2019-06-25T11:21:00Z" }); table726.AddRow(new string[] { "CurrentQualificationLevel", "2" }); table726.AddRow(new string[] { "DateQualificationLevelAchieved", "2019-07-25T11:21:00Z" }); table726.AddRow(new string[] { "LastLearningProvidersUKPRN", "12345678" }); #line 16 testRunner.Given("I post a Learning Progression record with the following details V3:", ((string)(null)), table726, "Given "); #line hidden #line 25 testRunner.When("I get a Learning Progression by ID V3", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 26 testRunner.Then("there should be a 200 response", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table727 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table727.AddRow(new string[] { "DateProgressionRecorded", "2018-06-25T11:21:00Z" }); table727.AddRow(new string[] { "CurrentLearningStatus", "1" }); table727.AddRow(new string[] { "LearningHours", "1" }); table727.AddRow(new string[] { "DateLearningStarted", "2019-06-25T11:21:00Z" }); table727.AddRow(new string[] { "CurrentQualificationLevel", "2" }); table727.AddRow(new string[] { "DateQualificationLevelAchieved", "2019-07-25T11:21:00Z" }); table727.AddRow(new string[] { "LastLearningProvidersUKPRN", "12345678" }); #line 27 testRunner.And("the response body should contain:", ((string)(null)), table727, "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void PostValidInteractionWithAllFields() { string[] tagsOfScenario = new string[] { "interactions", "smoke" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Post Valid Interaction with all Fields", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 15 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 table715 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table715.AddRow(new string[] { "DateandTimeOfInteraction", "2018-06-25T11:21:00Z" }); table715.AddRow(new string[] { "Channel", "2" }); table715.AddRow(new string[] { "InteractionType", "2" }); table715.AddRow(new string[] { "LastModifiedDate", "2018-06-22T16:52:10Z" }); #line 16 testRunner.Given("I post a Valid Interaction with the following details:", ((string)(null)), table715, "Given "); #line hidden #line 22 testRunner.Then("there should be a 201 response", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table716 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table716.AddRow(new string[] { "DateandTimeOfInteraction", "2018-06-25T11:21:00Z" }); table716.AddRow(new string[] { "Channel", "2" }); table716.AddRow(new string[] { "InteractionType", "2" }); table716.AddRow(new string[] { "LastModifiedDate", "2018-06-22T16:52:10Z" }); #line 23 testRunner.And("the response body should contain:", ((string)(null)), table716, "And "); #line hidden #line 29 testRunner.Given("I wait for 5 Seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 30 testRunner.And("there should be a record in the dss-interactions table with InteractionId", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void UserCanActivateExperianPlug_InConfiguration() { string[] tagsOfScenario = new string[] { "regression", "TEST_QAR-7809", "sanity" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User can activate experian plug-in configuration", 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("I have navigated to the application url", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 7 testRunner.When("I login as system administrator", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 8 testRunner.Then("I should be on the homepage", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 9 testRunner.When("I click the \'appLauncher\' button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 10 testRunner.And("I search for \'ncino administration\' in the \'Search apps and items...\' textfield", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 11 testRunner.Then("I should see the \'Quick Links\' tab", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 12 testRunner.When("I click on the \'Quick Links\' button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 13 testRunner.And("I click the configure button under system configuration row \'2\' column \'2\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 14 testRunner.When("I click the \'nCino Experian (UK)\' plug-in checkbox to activate", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 15 testRunner.And("I wait \'5000\' ms", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 16 testRunner.Then("the \'nCino Experian (UK)\' plug-in checkbox should be selected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 17 testRunner.When("I click the \'nCino Experian (UK)\' plug-in checkbox to deactivate", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 18 testRunner.Then("the \'nCino Experian (UK)\' plug-in checkbox should be de-selected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void AddPatientRecord(string firstname, string lastname, string dob, string gender, string marital_Status, string expectedvalue, string[] exampleTags) { string[] @__tags = new string[] { "ignore" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } string[] tagsOfScenario = @__tags; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); argumentsOfScenario.Add("firstname", firstname); argumentsOfScenario.Add("lastname", lastname); argumentsOfScenario.Add("dob", dob); argumentsOfScenario.Add("gender", gender); argumentsOfScenario.Add("marital_status", marital_Status); argumentsOfScenario.Add("expectedvalue", expectedvalue); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Add Patient Record", 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("I have browser with openemr url", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 9 testRunner.When("I enter username as \'admin1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 10 testRunner.And("I enter password as \'pass\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 11 testRunner.And("I select the language as \'English (Indian)\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 12 testRunner.And("I click on login", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 13 testRunner.And("I do mousehover on patient-client menu", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 14 testRunner.And("I click on patients menu", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 15 testRunner.And("I click on Add New Patient", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "firstname", "lastname", "dob", "gender", "marital_status" }); table3.AddRow(new string[] { string.Format("{0}", firstname), string.Format("{0}", lastname), string.Format("{0}", dob), string.Format("{0}", gender), string.Format("{0}", marital_Status) }); #line 16 testRunner.And("I fill the form", ((string)(null)), table3, "And "); #line hidden #line 19 testRunner.And("I click on create new patient", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 20 testRunner.And("I click on confirm create new patient", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 21 testRunner.And("I handle the alert", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 22 testRunner.And("I close the happy birthday popup", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 23 testRunner.Then(string.Format("I should get the added recorde as \'{0}\'", expectedvalue), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void MessageType() { string[] tagsOfScenario = ((string[])(null)); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Message Type", null, ((string[])(null))); #line 8 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 9 testRunner.When("I parse \'K>eq`d@000000000\' with padding 0 as a Long Range Ais Broadcast", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 10 testRunner.Then("NmeaAisLongRangeAisBroadcastParser.Type is 27", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void FindAndAddItemToTheCart() { string[] tagsOfScenario = new string[] { "mytag" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Find and add item to the cart", 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("I am at home page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 6 testRunner.And("selected Women categeory for shopping", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 7 testRunner.And("apply three filters In stock, New, Fashion and search for results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 8 testRunner.When("Add an item of worth $27 and add to cart", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 9 testRunner.Then("Item should be available in the cart", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 10 testRunner.When("Go to Cart Page and proceed to checkout", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "email", "password" }); table1.AddRow(new string[] { "*****@*****.**", "Password@123" }); #line 11 testRunner.And("Enter username password, Address , Shipping_Details and Enter Address Shipping " + "details", ((string)(null)), table1, "And "); #line hidden #line 14 testRunner.And("Go to payment page and select payment type and proceed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 15 testRunner.Then("read the message in the final order confirmation summary page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void AddANewSOCCode() { string[] tagsOfScenario = new string[] { "EditorR2" }; TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Add a new SOCCode", null, new string[] { "EditorR2" }); #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 7 this.FeatureBackground(); #line hidden #line 12 testRunner.Given("I logon to the editor", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 13 testRunner.And("I Navigate to \"/Admin/Contents/ContentTypes/SOCCode/Create\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 15 testRunner.And("I capture the generated URI", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table314 = new TechTalk.SpecFlow.Table(new string[] { "Title", "Description" }); table314.AddRow(new string[] { "My Test SOCCode", "My test description" }); #line 16 testRunner.And("I Enter the following form data for \"SOCCode\"", ((string)(null)), table314, "And "); #line hidden #line 19 testRunner.When("I publish the item", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 20 testRunner.Then("the item is published succesfully", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 21 testRunner.And("the data is present in the DRAFT Graph database", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 22 testRunner.And("the data is present in the PUBLISH Graph database", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void CreateValidAdviser() { string[] tagsOfScenario = new string[] { "adviserdetails", "smoke" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create Valid Adviser", 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 table202 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table202.AddRow(new string[] { "AdviserName", "BillyAdviser" }); table202.AddRow(new string[] { "AdviserEmailAddress", "*****@*****.**" }); table202.AddRow(new string[] { "AdviserContactNumber", "98798678967967" }); #line 5 testRunner.Given("I post an adviser with the following details V2:", ((string)(null)), table202, "Given "); #line hidden #line 10 testRunner.Then("there should be a 201 response", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table203 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table203.AddRow(new string[] { "AdviserName", "BillyAdviser" }); table203.AddRow(new string[] { "AdviserEmailAddress", "*****@*****.**" }); table203.AddRow(new string[] { "AdviserContactNumber", "98798678967967" }); #line 11 testRunner.And("the response body should contain:", ((string)(null)), table203, "And "); #line hidden #line 16 testRunner.And("the response body should not contain the \"CreatedBy\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 17 testRunner.Given("I fetch a adviserdetails cosmos document from adviserdetails database using key A" + "dviserDetailId", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 18 testRunner.Then("the cosmos document should have property CreatedBy with value 9111111111", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void GetAPIRespnseUsingGivenEndpoint() { string[] tagsOfScenario = new string[] { "Test1" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get API respnse using given endpoint", 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("RestService \"getemployees\" with config in \"ServiceDetailsJSONString\" Json file", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Veriable", "Value" }); table1.AddRow(new string[] { "Connectionvalues", "Accept" }); table1.AddRow(new string[] { "Urlsuffix", "/users/1" }); #line 6 testRunner.Then("I call \"GET\" service \"getemployees\" with modified parameter with updated body \"\" " + "as \"False\"", ((string)(null)), table1, "Then "); #line hidden #line 10 testRunner.Given("verify response should return \"OK\" as statuscode", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "nodePath", "value" }); table2.AddRow(new string[] { "address.street", "Kulas Light" }); table2.AddRow(new string[] { "address.geo.lng", "81.1496" }); table2.AddRow(new string[] { "name", "Leanne Graham" }); table2.AddRow(new string[] { "website", "hildegard.org" }); #line 11 testRunner.Then("verify following response values", ((string)(null)), table2, "Then "); #line hidden #line 17 testRunner.Given("I have \"WELLSFARGO\" client database details", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 18 testRunner.Given("I execute Select Query \"query2\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "ROW_NUMBER", "COLUMN_NAME", "COLUMN_VALUE" }); table3.AddRow(new string[] { "1", "Name", "${EmpName}" }); table3.AddRow(new string[] { "1", "department", "Account" }); #line 19 testRunner.Then("verify from executed query", ((string)(null)), table3, "Then "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "Name", "department", "designation" }); table4.AddRow(new string[] { "${EmpName}", "Account", "Accountant" }); #line 23 testRunner.Then("I verify fields in database", ((string)(null)), table4, "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void PostingAnItem() { string[] tagsOfScenario = new string[] { "mytag" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Posting An Item", null, tagsOfScenario, argumentsOfScenario); #line 16 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 7 this.FeatureBackground(); #line hidden #line 17 testRunner.When("I enter click on Post item", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 18 testRunner.And("I enter item name \"FootBall\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 19 testRunner.And("I enter Item description \"Playing Football\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 20 testRunner.And("I click on item category", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 21 testRunner.And("I selecct Games from the dropdown", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 22 testRunner.And("I click on Item type", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 23 testRunner.And("I select Wanted", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 24 testRunner.And("I enter item weight \"30\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 25 testRunner.And("I enter location \"SE18 1NR\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 26 testRunner.And("I click on item image", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 27 testRunner.And("I click on choose file", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 28 testRunner.And("I click on Add item", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 29 testRunner.And("I click on my posted item", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 30 testRunner.Then("I should be able to see my post items", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void _1AddLanguageToTheProfile(string language, string languageLevel, string[] exampleTags) { string[] tagsOfScenario = exampleTags; TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("1 Add Language to the profile", null, exampleTags); #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 5 this.FeatureBackground(); #line hidden #line 12 testRunner.Given("User click Languages tab in profile page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 13 testRunner.And("User click Add New Language button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 14 testRunner.When(string.Format("add new language {0} and {1}", language, languageLevel), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 15 testRunner.Then("language should be added", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void DeleteTemplateWithCheckbox() { string[] tagsOfScenario = new string[] { "mytag" }; TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Delete template with checkbox", null, new string[] { "mytag" }); #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("I navigate to application", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 9 testRunner.And("I login into bravoTALENTS", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 10 testRunner.And("I navigate to templates screen", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 11 testRunner.When("I click on create template button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 12 testRunner.And("I enter template name", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 13 testRunner.And("I select template type is job", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 14 testRunner.And("I click create button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 15 testRunner.Then("The job template is created", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 16 testRunner.When("I back to template list", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 17 testRunner.And("I show deleted templates", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 18 testRunner.And("I click into the check box of the first template", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 19 testRunner.And("I click on delete icon", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 20 testRunner.Then("The first template should be deleted", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void TestWFWithMySql() { string[] tagsOfScenario = ((string[])(null)); System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Test WF with MySql", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 45 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 this.FeatureBackground(); #line hidden #line 46 testRunner.Given("I have a workflow \"MySqlTestWF\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table1000 = new TechTalk.SpecFlow.Table(new string[] { "Input to Service", "From Variable", "Output from Service", "To Variable" }); table1000.AddRow(new string[] { "", "", "name", "[[rec(*).name]]" }); table1000.AddRow(new string[] { "", "", "email", "[[rec(*).email]]" }); #line 47 testRunner.And("\"MySqlTestWF\" contains a mysql database service \"MySqlEmail\" with mappings for te" + "sting as", ((string)(null)), table1000, "And "); #line hidden #line 51 testRunner.And("I save workflow \"MySqlTestWF\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 52 testRunner.Then("the test builder is open with \"MySqlTestWF\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 53 testRunner.And("I click New Test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 54 testRunner.And("a new test is added", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 55 testRunner.And("test name starts with \"Test 1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 56 testRunner.And("I Add \"MySqlEmail\" as TestStep", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1001 = new TechTalk.SpecFlow.Table(new string[] { "Variable Name", "Condition", "Value" }); table1001.AddRow(new string[] { "[[MySqlEmail(1).name]]", "=", "Monk" }); table1001.AddRow(new string[] { "[[MySqlEmail(1).email]]", "=", "*****@*****.**" }); #line 57 testRunner.And("I add StepOutputs as", ((string)(null)), table1001, "And "); #line hidden #line 61 testRunner.When("I save", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 62 testRunner.And("I run the test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 63 testRunner.Then("test result is Passed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void GenerateFilesWithCustomTool() { string[] tagsOfScenario = ((string[])(null)); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Generate files with custom tool", null, ((string[])(null))); #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("the file manager", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 7 testRunner.And("the script \"TestCustomTool.tt\" with following content for automation", @"<#@ template debug=""false"" hostspecific=""true"" language=""C#"" #> <#@ assembly name=""System.Core"" #> <#@ import namespace=""System.Linq"" #> <#@ import namespace=""System.Text"" #> <#@ import namespace=""System.Collections.Generic"" #> <#@ output extension="".txt"" #> <#@ include file=""$(ProjectDir)\T4.FileManager.VisualStudio.ttinclude"" #> <# var files = new string[] { ""PersonDto"", ""OrderDto"" }; var fileManager = new T4FileManager(this.GenerationEnvironment, this.Host); var properties = new Dictionary<string, object>(); properties.Add(Property.CustomTool, (object)""TextTemplatingFileGenerator""); foreach(var itm in files) { fileManager.CreateNewFile(itm + ""WithCustom.g.cs"","""","""",properties); #> namespace Test { public class <#= itm #>WithCustom { } } <# } fileManager.Generate(); #>", ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 41 testRunner.When("i run the script for automation", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] { "File" }); table7.AddRow(new string[] { "PersonDtoWithCustom.g.cs" }); table7.AddRow(new string[] { "OrderDtoWithCustom.g.cs" }); #line 42 testRunner.Then("following files are generated:", ((string)(null)), table7, "Then "); #line hidden TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] { "File" }); table8.AddRow(new string[] { "PersonDtoWithCustom.g.cs" }); table8.AddRow(new string[] { "OrderDtoWithCustom.g.cs" }); #line 46 testRunner.And("custom tool is set to \"TextTemplatingFileGenerator\" for following files:", ((string)(null)), table8, "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void PerformBusinessLookupWithDueDil() { string[] tagsOfScenario = new string[] { "regression", "StandardDB", "TEST_QAR-7812", "sanity" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Perform business lookup with DueDil", null, tagsOfScenario, argumentsOfScenario); #line 6 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 7 testRunner.Given("I have navigated to the application url", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 8 testRunner.When("I login as system administrator", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 9 testRunner.Then("I should be on the homepage", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 10 testRunner.When("I click on the \'Relationships\' tab", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 11 testRunner.And("I search for \'(EQUUK) IMAGINATION TECHNOLOGIES LIMITED\' in the \'Account-search-in" + "put\' textfield", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 12 testRunner.Then("I should see \'(EQUUK) IMAGINATION TECHNOLOGIES LIMITED\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 13 testRunner.When("I click on \'(EQUUK) IMAGINATION TECHNOLOGIES LIMITED\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 14 testRunner.And("I click on the \'Business Lookup\' tab", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 15 testRunner.And("I click the \'providerSelect\' dropdown", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 16 testRunner.And("I select \'DueDil (UK)\' from the dropdown list", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 17 testRunner.And("I search for \'ncino global\' in the \'company-name\' textfield", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 18 testRunner.And("I click on the \'save-button\' button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 19 testRunner.When("I click the \'Ncino Global Ltd\' radio button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 20 testRunner.And("I click on the business look-up \'Continue\' button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 21 testRunner.Then("the modal \'Save Business\' should be displayed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 22 testRunner.And("the heading should be \'Ncino Global Ltd\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] { "CompanyId", "CompanyAddress", "TypeDescription", "VerifyAddress" }); table7.AddRow(new string[] { "10718055", "Floor 11, Whitefriars Lewins Mead, Bristol, BS1 2NT", "Private limited with share capital", "Floor 11, Whitefriars Lewins Mead, Bristol, BS1 2NT" }); #line 23 testRunner.Then("I should see the following information", ((string)(null)), table7, "Then "); #line hidden #line 26 testRunner.When("I click the search result save button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 27 testRunner.Then("the billing address changes to \'Floor 11, Whitefriars Lewins Mead Bristol, Avon B" + "S1 2NT\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void _22GetAPIRespnseUsingGivenEndpoint() { string[] tagsOfScenario = new string[] { "Test1" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("22Get API respnse using given endpoint", 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("RestService \"getemployees\" with config in \"ServiceDetailsJSONString\" Json file", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Veriable", "Value" }); table1.AddRow(new string[] { "Version", "1" }); table1.AddRow(new string[] { "Cval", "Accept" }); #line 6 testRunner.Then("I call \"GET\" service \"getemployees\" with modified parameter", ((string)(null)), table1, "Then "); #line hidden #line 10 testRunner.Given("verify response should return \"OK\" as statuscode", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "nodePath", "value" }); table2.AddRow(new string[] { "address.street", "Kulas Light" }); table2.AddRow(new string[] { "address.geo.lng", "81.1496" }); table2.AddRow(new string[] { "name", "Leanne Graham" }); table2.AddRow(new string[] { "website", "hildegard.org" }); #line 11 testRunner.Then("verify following response values", ((string)(null)), table2, "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void FillFormSucccefully(string username, string password, string[] exampleTags) { string[] @__tags = new string[] { "mytag" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } string[] tagsOfScenario = @__tags; TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Fill Form Succcefully", null, @__tags); #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 3 this.FeatureBackground(); #line hidden #line 8 testRunner.Given("I am on the login page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 9 testRunner.When(string.Format("I enter {0} and {1}", username, password), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 10 testRunner.When("I press login", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 11 testRunner.Then("i should be redirected to the form page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "initial", "firstname", "middlename" }); table1.AddRow(new string[] { "b", "billy", "sazu" }); #line 12 testRunner.When("I enter the following form details", ((string)(null)), table1, "When "); #line hidden #line 16 testRunner.And("I click save on form page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void ValidateBorrowingLimit(string type, string dependants, string purpose, string income, string otherIncome, string expense, string hlRepay, string otherLoan, string commitments, string creditCardLimit, string limit, string[] exampleTags) { string[] @__tags = new string[] { "smoke" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } string[] tagsOfScenario = @__tags; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); argumentsOfScenario.Add("Type", type); argumentsOfScenario.Add("Dependants", dependants); argumentsOfScenario.Add("Purpose", purpose); argumentsOfScenario.Add("Income", income); argumentsOfScenario.Add("OtherIncome", otherIncome); argumentsOfScenario.Add("Expense", expense); argumentsOfScenario.Add("HlRepay", hlRepay); argumentsOfScenario.Add("OtherLoan", otherLoan); argumentsOfScenario.Add("Commitments", commitments); argumentsOfScenario.Add("CreditCardLimit", creditCardLimit); argumentsOfScenario.Add("Limit", limit); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Validate borrowing limit", 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("I am at loan calculator page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Label", "Value" }); table1.AddRow(new string[] { "ApplicationType", string.Format("{0}", type) }); table1.AddRow(new string[] { "Dependants", string.Format("{0}", dependants) }); table1.AddRow(new string[] { "PropertyPurpose", string.Format("{0}", purpose) }); #line 9 testRunner.When("I enter your details as:", ((string)(null)), table1, "When "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Label", "Value" }); table2.AddRow(new string[] { "IncomeBeforeTax", string.Format("{0}", income) }); table2.AddRow(new string[] { "OtherIncome", string.Format("{0}", otherIncome) }); #line 14 testRunner.And("I enter your earnings as:", ((string)(null)), table2, "And "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "Label", "Value" }); table3.AddRow(new string[] { "LivingExpenses", string.Format("{0}", expense) }); table3.AddRow(new string[] { "CurrentHlRepay", string.Format("{0}", hlRepay) }); table3.AddRow(new string[] { "OtherLoanRepay", string.Format("{0}", otherLoan) }); table3.AddRow(new string[] { "OtherCommitments", string.Format("{0}", commitments) }); table3.AddRow(new string[] { "CreditCardLimit", string.Format("{0}", creditCardLimit) }); #line 18 testRunner.And("I enter your expenses as:", ((string)(null)), table3, "And "); #line hidden #line 25 testRunner.Then(string.Format("I verify borrowing estimate is \"{0}\"", limit), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void Account_Creation() { string[] tagsOfScenario = ((string[])(null)); System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Account_creation", 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 7 testRunner.Given("I navigate to \"https://jt-dev.azurewebsites.net/#/SignUp\" signup page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 8 testRunner.When("I click on language dropdown", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 9 testRunner.Then("I verify available languages \"English,Dutch\" from the dropdown", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 10 testRunner.When("I provide my full name \"test vatge\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 11 testRunner.And("I provide my organization name \"ThinkBridge\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 12 testRunner.And("I provide my email \"[email protected]\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 13 testRunner.And("I agree to terms and conditons", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 14 testRunner.And("I click on get started button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 15 testRunner.Then("I verify a welcome email has been sent message is displayed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 18 testRunner.Given("I navigate to \"https://www.outlook.com\" email client", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 19 testRunner.And("I login as \"[email protected]\" to email client", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 20 testRunner.Then("I verify welcome email from jabba talks email address \"[email protected]" + "om\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void LogActivitiesOfGenerationProcess() { string[] tagsOfScenario = ((string[])(null)); System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Log activities of generation process", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 10 this.ScenarioInitialize(scenarioInfo); #line hidden bool isScenarioIgnored = default(bool); bool isFeatureIgnored = default(bool); if ((tagsOfScenario != null)) { isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((this._featureTags != null)) { isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((isScenarioIgnored || isFeatureIgnored)) { testRunner.SkipScenario(); } else { this.ScenarioStart(); #line 7 this.FeatureBackground(); #line hidden #line 11 testRunner.Given("the script \"TestWithLogEnabled.tt\" with the following content", @"<#@ template debug=""false"" hostspecific=""true"" language=""C#"" #> <#@ assembly name=""System.Core"" #> <#@ import namespace=""System.Linq"" #> <#@ import namespace=""System.Text"" #> <#@ import namespace=""System.Collections.Generic"" #> <#@ output extension="".txt"" #> <#@ include file=""$(TargetDir)\T4.FileManager.VisualStudio.ttinclude"" #> <# var files = new string[] { ""PersonDto"", ""OrderDto"" }; var fileManager = new T4FileManager(this).EnableLog(); // <-- log output to main file TestWithLogEnabled.txt foreach(var itm in files) { fileManager.StartNewFile(itm + "".g.cs"", """", ""TestSubfolder""); #> namespace Test { public class <#= itm #> { } } <# } fileManager.Process(); #>", ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 42 testRunner.When("I run the script", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table24 = new TechTalk.SpecFlow.Table(new string[] { "Textfragment" }); table24.AddRow(new string[] { "Log to main output file enabled" }); table24.AddRow(new string[] { "Begin CreateNewFile PersonDto.g.cs" }); table24.AddRow(new string[] { "Start DeleteExistingFiles" }); table24.AddRow(new string[] { "2 files generated" }); #line 43 testRunner.Then("the file \"TestWithLogEnabled.txt\" contains following log fragments", ((string)(null)), table24, "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void RequestToRefreshLearnerDataForANewApprenticeshipIncentiveWhereNoLearnerDataExists() { string[] tagsOfScenario = ((string[])(null)); System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Request to refresh learner data for a new Apprenticeship Incentive where no learn" + "er data exists", null, tagsOfScenario, argumentsOfScenario); #line 6 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 7 testRunner.Given("an apprenticeship incentive exists and without a corresponding learner match reco" + "rd", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 8 testRunner.When("the learner data is refreshed for the apprenticeship incentive", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 9 testRunner.Then("the apprenticeship incentive learner data is created for the application without " + "any submission data", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void CreateFixedOddsPrize() { string[] tagsOfScenario = ((string[])(null)); System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create fixed odds Prize", 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(); #line 5 testRunner.Given("admin logged in", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 6 testRunner.And("click Fixed odds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 7 testRunner.When("click add new prize", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 8 testRunner.When("input Life Style prize (car) title randomly generated", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 9 testRunner.When("upload non house main picture", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 10 testRunner.When(@"input in about ""Mi Watch Lite is not just a smart watch, it has its own unique personality.There are three color options for the watch case, five color options for the strap,over 120 themed watch faces and watch face function customization* to satisfy your ever-changing style."" text", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 11 testRunner.When("go to Discount & ticket tab at Life prize", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 12 testRunner.When("input ticket price value 6", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 13 testRunner.When("input default number of tickets 10", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 14 testRunner.When("input Number of tickets value 15", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 15 testRunner.When("click on status in Discount tab", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 16 testRunner.When("click save button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 17 testRunner.Then("popup with message \"Fixed Odds saved\" appears", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 18 testRunner.And("created title exist in list", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void AsSellerIShouldAbleToAddEducation() { string[] tagsOfScenario = new string[] { "automate" }; TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("as seller I should able to add Education", null, new string[] { "automate" }); #line 8 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 table11 = new TechTalk.SpecFlow.Table(new string[] { "Email", "Password" }); table11.AddRow(new string[] { "*****@*****.**", "123456" }); #line 9 testRunner.Given("I login with valid user", ((string)(null)), table11, "Given "); #line hidden TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] { "University", "Country", "Title", "Degree", "GraduationYear" }); table12.AddRow(new string[] { "Auckland Univercity", "New Zealand", "B.Tech", "Bachlor", "2005" }); #line 12 testRunner.And("I can add this education", ((string)(null)), table12, "And "); #line hidden TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] { "University", "Country", "Title", "Degree", "GraduationYear" }); table13.AddRow(new string[] { "Auckland Univercity", "New Zealand", "B.Tech", "Bachlor", "2005" }); #line 15 testRunner.Then("I can see added education", ((string)(null)), table13, "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void AddRegistrationManualWithSpecialism(string uln, string firstName, string lastName, string day, string month, string year, string[] exampleTags) { string[] @__tags = new string[] { "RegressionTest", "ManaulRegistration" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } string[] tagsOfScenario = @__tags; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); argumentsOfScenario.Add("Uln", uln); argumentsOfScenario.Add("First Name", firstName); argumentsOfScenario.Add("Last Name", lastName); argumentsOfScenario.Add("Day", day); argumentsOfScenario.Add("Month", month); argumentsOfScenario.Add("Year", year); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Add Registration Manual With Specialism", 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("I have logged in as a \"RegistrationEditor\" user", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 9 testRunner.When("I click on Add a new registration link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 10 testRunner.And(string.Format("I enter {0} and click Continue button", uln), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 11 testRunner.And(string.Format("I enter {0} {1} in learners page and click Contiune", firstName, lastName), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 12 testRunner.And(string.Format("I enter {0} {1} {2} in DOB page and click Continue", day, month, year), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 13 testRunner.And("I select Provider from the list and click Continue", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 14 testRunner.And("I select Core from the list and click Continue", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 15 testRunner.And("I select Yes from has decided specialism and click Continue", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 16 testRunner.And("I select Specialism and click Continue", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 17 testRunner.And("I click Continue in Academic Year page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 18 testRunner.And("I click Submit button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 19 testRunner.Then("I should see ULN Added successfully message", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 20 testRunner.And("I cleared the data in DB", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void DefaultCheckingIsRecursiveChildItemLinksToWhichTheUserDoesntHaveAccessAreRemoved() { string[] tagsOfScenario = new string[] { "useChildObjects" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Default checking is recursive; child item links to which the user doesn\'t have ac" + "cess are removed", null, tagsOfScenario, argumentsOfScenario); #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 7 this.FeatureBackground(); #line hidden TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] { "Option" }); table7.AddRow(new string[] { "None" }); #line 36 testRunner.When("I ask the access checker to remove forbidden links from the HalDocument called \'t" + "arget\' with the following options", ((string)(null)), table7, "When "); #line hidden TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] { "Rel" }); table8.AddRow(new string[] { "self" }); table8.AddRow(new string[] { "itemInTargetToWhichUserHasPermission" }); #line 39 testRunner.Then("the HalDocument called \'target\' should contain only the following link relations", ((string)(null)), table8, "Then "); #line hidden TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] { "Rel" }); table9.AddRow(new string[] { "self" }); #line 43 testRunner.And("the HalDocument called \'embeddedDocument\' should contain only the following link " + "relations", ((string)(null)), table9, "And "); #line hidden TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] { "Rel" }); table10.AddRow(new string[] { "itemInTargetToWhichUserHasPermission" }); #line 46 testRunner.And("the HalDocument called \'target\' should contain only the following embedded resour" + "ces", ((string)(null)), table10, "And "); #line hidden #line 49 testRunner.And("the HalDocument called \'embeddedDocument\' should contain no embedded resources", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void AddTwoNumbers() { string[] tagsOfScenario = new string[] { "mytag" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Add two numbers", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #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 10 testRunner.Given("the first number is 50", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 11 testRunner.And("the second number is 70", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 12 testRunner.When("the two numbers are added", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 13 testRunner.Then("the result should be 120", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void CalculateCaloriesInMetricSystem(string age, string height, string weight, string gender, string expectedResult, string[] exampleTags) { string[] @__tags = new string[] { "Calories" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } string[] tagsOfScenario = @__tags; TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Calculate calories in metric system", null, @__tags); #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 table1 = new TechTalk.SpecFlow.Table(new string[] { "attribute", "value" }); table1.AddRow(new string[] { "height", string.Format("{0}", height) }); table1.AddRow(new string[] { "weight", string.Format("{0}", weight) }); table1.AddRow(new string[] { "age", string.Format("{0}", age) }); table1.AddRow(new string[] { "gender", string.Format("{0}", gender) }); #line 12 testRunner.Given("I enter the following data:", ((string)(null)), table1, "Given "); #line hidden #line 18 testRunner.When("I press Calculate", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 19 testRunner.Then(string.Format("the result should be {0} on the screen", expectedResult), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void _4002_4078_VerifyReviewTLevelToReviewPageAndBreadcrumbs() { string[] tagsOfScenario = new string[] { "RegressionTest", "ReviewJourney" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("4002_4078_Verify Review T Level to review page and breadcrumbs", 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 #line 12 testRunner.Given("I set all of the T Levels for NCFE to unconfirmed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 13 testRunner.And("I click on the TLevels link on the homepage", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 14 testRunner.When("I click the Review new T Levels link on the TLevels dashboard page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 15 testRunner.And("I select \"T Level in Agriculture, Environmental and Animal Care\" and click contin" + "ue", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 16 testRunner.Then("I am shown the Review T Level details page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 17 testRunner.And("the radio buttons are not prepopulated on the Review T Level page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 18 testRunner.And("the details for the \"T Level in Agriculture, Environmental and Animal Care\" T lev" + "el are displayed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 19 testRunner.When("I press the back link on the Review T Level details page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 20 testRunner.Then("I am navigated to the Select T Level to review page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 21 testRunner.And("I set all of the T Levels for NCFE to unconfirmed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void ProcessingFileWithMissingColumnSexeInEffectifsWorksheetShouldFail() { string[] tagsOfScenario = ((string[])(null)); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Processing file with missing column \'Sexe\' in \'effectifs\' worksheet should fail", 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 table50 = new TechTalk.SpecFlow.Table(new string[] { "Matricule", "Structure", "Nom", "Prenom", "Age", "CSP" }); table50.AddRow(new string[] { "1254", "Alcuin", "CAIO", "John", "33", "CADRE" }); table50.AddRow(new string[] { "1235", "Alcuin", "LEGROS", "Isabelle", "33", "CADRE" }); #line 5 testRunner.And("it has a workSheet effectifs with the following content", ((string)(null)), table50, "And "); #line hidden #line 9 testRunner.When("I start processing the file mybook.xlsx", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 10 testRunner.Then("the process should fail", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table51 = new TechTalk.SpecFlow.Table(new string[] { "Message" }); table51.AddRow(new string[] { "Dans l\'onglet \'effectifs\' la colonne \'Sexe\' n\'est pas présente. Cette colonne est" + " obligatoire, veuillez vérifier que la colonne est correctement nommée et que ce" + "lle-ci est présente dans l’onglet." }); #line 11 testRunner.And("I should found the following Erreur messages", ((string)(null)), table51, "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void CreateCommunity() { string[] tagsOfScenario = new string[] { "mytag" }; TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create Community", null, new string[] { "mytag" }); #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("I navigate to site \"https://www.qa.giftrete.com/\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 9 testRunner.And("I click on sign in", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Email", "Password" }); table1.AddRow(new string[] { "*****@*****.**", "bluesky" }); #line 10 testRunner.When("I enter email and password", ((string)(null)), table1, "When "); #line hidden #line 13 testRunner.And("I click sign in", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 14 testRunner.And("I click on community", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 15 testRunner.And("I click create", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 16 testRunner.And("I enter community name \"Fitness Class\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 17 testRunner.And("I select community type \"Public\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 18 testRunner.And("I enter community handle \"@fitnessclass\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 19 testRunner.And("I enter community description \"To get fit\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 20 testRunner.And("I select category \"4\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 21 testRunner.And("I enter location \"London, UK\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 22 testRunner.And("I upload an Image \"\\fitnessImage.jfif\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 23 testRunner.And("I click create community", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 24 testRunner.Then("my community should be created", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }