public virtual void PreenchimentoDoFormularioComEmailIncorreto(string browser) { InitializeSeleniumBrowser(browser); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Preenchimento do formulario com email incorreto", new string[] { "Browser:PhantomDocker", "negativo", "Browser:IE" }); this.ScenarioSetup(scenarioInfo); this.FeatureBackground(); TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Nome", "Email", "Telefone", "Mensagem" }); table2.AddRow(new string[] { "Franklin", "franklinjob@", "(21)991475281", "Teste de Mensagem" }); testRunner.But("informo o email incompleto", ((string)(null)), table2, "Mas "); testRunner.When("envio o formulario", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Quando "); testRunner.Then("recebo a mensagem de validação do e-mail \'Formato de e-mail inválido\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Então "); this.ScenarioCleanup(); }
public virtual void Authenticate(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)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Authenticate", @__tags); #line 6 this.ScenarioSetup(scenarioInfo); #line 7 testRunner.Given(string.Format("I have entered a valid {0} and {1}", username, password), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 8 testRunner.When("I press the Login button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 9 testRunner.Then("the result should be that the Home Page is displayed and the record of the login " + "should be saved", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 10 testRunner.But("an error message \'Invalid details. Please re-enter your details\' should be displa" + "yed if invalid details are entered", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 11 testRunner.But("an error message \'This user does not exist, would you like to Register?\' should b" + "e displayed if the username does not exist in the database", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 12 testRunner.But("an error message \'The password does not match the one we have saved. Please re-e" + "nter your password\' if the password is not correct", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line hidden this.ScenarioCleanup(); }
public virtual void PropriedadeComCamposNulos(string campo, string[] exampleTags) { string[] @__tags = new string[] { "Incorreto_Propriedade" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Propriedade com campos nulos", null, @__tags); #line 18 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 6 this.FeatureBackground(); #line 19 testRunner.And("clico em propriedade", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 20 testRunner.When("preencho os campos requeridos", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 21 testRunner.But(string.Format("preencho o campo {0} com um valor nulo", campo), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 22 testRunner.And("clico em calcular propriedade", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 23 testRunner.Then("o sistema avisa que estão faltando dados", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void BackdoorLoginVerifyPegasusDefaultPagesForInstructor() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Backdoor login Verify Pegasus default pages for Instructor", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line 7 testRunner.Given("I browsed the login url for \"HedBackdoorLoginInstructor\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 8 testRunner.Then("I should see the Url appended correctly", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 9 testRunner.But("I should not see the ForgotPassword and Registration link available on the page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 10 testRunner.When("I logged into the Pegasus as \"HedBackdoorLoginInstructor\" in \"CourseSpace\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 11 testRunner.Then("I should be on the \"Global Home\" page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 12 testRunner.And("I should not see the Enroll To Course and Search Catalog button on the MyCourses " + "and TestBank channel for \"HedBackdoorLoginInstructor\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 testRunner.And("I should not see the MyProfile and Feedback link on the global home page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.When("I enter in the \"HedCoreAcceptanceInstructorCourse\" from the Global Home page as \"" + "HedBackdoorLoginInstructor\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 15 testRunner.Then("I should be on the \"Today\'s View\" page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 16 testRunner.And("I should see \"Sign out\" link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 testRunner.When("I \"Sign out\" from the \"HedBackdoorLoginInstructor\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 18 testRunner.Then("I should see the successfull message \"You have been signed out of the application" + ".\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void CancelarExlusaoDeItemDeCue_Sheet(string produto, string episodio, string capitulo, string midia, string dia, string mes, string ano, string repriseRebatida, string obra, string utilizacao, string sincronismo, string tempo, string interprete, string[] exampleTags) { string[] @__tags = new string[] { "chrome", "ExcluirItensDeCueSheetCT03" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Cancelar exlusão de item de Cue-Sheet", null, @__tags); #line 34 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 8 this.FeatureBackground(); #line 35 testRunner.Given(string.Format("que tenha uma Cue-Sheet cadastrada no sistema {0}, {1}, {2}, {3}, {4}, {5}, {6}, " + "{7}", produto, episodio, capitulo, midia, dia, mes, ano, repriseRebatida), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Dado "); #line 36 testRunner.And(string.Format("que tenha um item cadastrado na Cue-Sheet {0}, {1}, {2}, {3}, {4}", obra, utilizacao, sincronismo, tempo, interprete), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "E "); #line 37 testRunner.When(string.Format("seleciono um item e clico em excluir {0}", obra), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Quando "); #line 38 testRunner.But("cancelo a exclusão do item da Cue-Sheet", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Mas "); #line 39 testRunner.Then(string.Format("visualizo os dados do item da Cue-Sheet na grid com sucesso {0}, {1}, {2}, {3}", obra, utilizacao, sincronismo, tempo), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Então "); #line hidden this.ScenarioCleanup(); }
public virtual void RegisterNewUser() { string[] tagsOfScenario = new string[] { "doRegister" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Register new user", null, tagsOfScenario, argumentsOfScenario); #line 40 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 41 testRunner.Given("name of user QA_Alex", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 42 testRunner.And("new email of user", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 43 testRunner.And("user password", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 44 testRunner.When("send post request to do register to /tasks/rest/doregister", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 45 testRunner.Then("account successful created status code OK", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 46 testRunner.And("response have name of user", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 47 testRunner.And("response have email of user", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 48 testRunner.But("response doesn\'t have a non-encrypted password", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line hidden } this.ScenarioCleanup(); }
public virtual void TryCreatingALabByNotGivingDataInRequiredFields() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Try creating a Lab by not giving data in required fields", null, ((string[])(null))); #line 55 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 56 testRunner.When("I Enter all details for Lab", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] { "Lab ID", "Laboratory Name", "Company", "Department", "Address 1", "Address 2", "Address 3", "City/Town", "State/Province", "Zip/Postal Code", "ISO Country", "Country", "Phone", "Fax", "Laboratory Status", "Contact Person" }); table8.AddRow(new string[] { "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" }); #line 57 testRunner.And("I see Active status for LaboratoryStatus", ((string)(null)), table8, "And "); #line 60 testRunner.And("I select Laboratory status as Blank", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 61 testRunner.And("I select Save lab button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 62 testRunner.Then("I see validation message againt each required field", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 63 testRunner.And("I select cancel button in AddLabPage", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 64 testRunner.But("I do not see Lab in LabManagement page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line hidden this.ScenarioCleanup(); }
public virtual void RealizarCadastroNoSistemaComDadosNulos(string campo, string[] exampleTags) { string[] @__tags = new string[] { "cadastroInvalido" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Realizar cadastro no sistema com dados nulos", null, @__tags); #line 20 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 7 this.FeatureBackground(); #line 21 testRunner.Given("que estou na página de cadastro", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 22 testRunner.When("preencho todos os campos obrigatórios", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 23 testRunner.But(string.Format("Não preenchoo campo {0}", campo), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 24 testRunner.And("clico para registrar cadastro", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 25 testRunner.Then("o sistema deve mostrar uma mensagem de aviso invalido", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void BuildingTheViewModelNoUserGameSelections() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Building the view model no user game selections", ((string[])(null))); #line 169 this.ScenarioSetup(scenarioInfo); #line 170 testRunner.Given("The data is loaded for GameFilterId 10", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 171 testRunner.But("there are no game user selections, game results, and user game results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 172 testRunner.When("the view model is built", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 173 testRunner.Then("the view model game rows should be correct for GameFilterId 10 defaulted to no wi" + "nner", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 174 testRunner.Then("the view model user data for GameFilterId 10 UserId 1 should be defaulted to no b" + "et (hardcoded)", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 175 testRunner.Then("the view model user data for GameFilterId 10 UserId 2 should be defaulted to no b" + "et (hardcoded)", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 176 testRunner.Then("the view model user data for GameFilterId 10 UserId 3 should be defaulted to no b" + "et (hardcoded)", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 177 testRunner.Then("the view model user data for GameFilterId 10 UserId 4 should be defaulted to no b" + "et (hardcoded)", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void VerifyNoOfLinksAppearingOnGooglePageWithWrongSearch(string keyword, string noOfLinks, string linkNo, string title, string[] exampleTags) { string[] @__tags = new string[] { "mytag2" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Verify No of links appearing on Google page with wrong search", @__tags); #line 25 this.ScenarioSetup(scenarioInfo); #line 6 this.FeatureBackground(); #line 27 testRunner.Given(string.Format("I enter search {0}", keyword), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 28 testRunner.But("I click on I\'m Feeling Lucky Button instead", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 29 testRunner.Then(string.Format("I should not see search result containing {0} with {1}", noOfLinks, keyword), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 30 testRunner.And(string.Format("I should not be able to click on {0} with {1}", linkNo, keyword), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 31 testRunner.Then(string.Format("I should see page with {0}", title), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void TryToDoubleBookARoom() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Try to double book a room", new string[] { "room", "block", "assign_room", "validation_error" }); #line 15 this.ScenarioSetup(scenarioInfo); #line 16 testRunner.Given("\'2\' blocks exists", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 17 testRunner.And("a room exists", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 18 testRunner.And("the block is assigned to the room", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 19 testRunner.When("another block at the same time needs to be assigned to the same room", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 20 testRunner.Then("the request is successful", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 21 testRunner.But("all the classes in the block does not have the room", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 22 testRunner.And("the room does not have the blocks classes in its schedule", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void PostToMassTerminateAndRollback(string groupID, string userID, string endpoint, string employeeNumber, string[] exampleTags) { string[] @__tags = new string[] { "mytag" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Post To Mass Terminate and rollback", @__tags); #line 7 this.ScenarioSetup(scenarioInfo); #line 8 testRunner.Given("I can access the Dataload API as an authenticated user", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 9 testRunner.And("I have the client initialized", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 testRunner.And(string.Format("I setup POST {0} request with {1} and {2}", endpoint, groupID, userID), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.And(string.Format("I setup employee with {0} data to post", employeeNumber), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 testRunner.When("I Post Request", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 13 testRunner.And("I pause for sometime", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.And(string.Format("I verify the user {0} of Group {1} is indeed terminated", employeeNumber, groupID), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 testRunner.Then("The employee must be verified terminated", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 16 testRunner.But(string.Format("Rollback {0} on {1} to previous state", employeeNumber, groupID), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line hidden this.ScenarioCleanup(); }
public virtual void MarcarPagamentoParaOAdministradorNoDetalheDoItemDePedido_Negativo(string autor, string dDA, string[] exampleTags) { string[] @__tags = new string[] { "chrome", "PagarParaAdministradorCT03" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Marcar pagamento para o administrador no detalhe do item de pedido - Negativo", null, @__tags); #line 32 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 8 this.FeatureBackground(); #line 33 testRunner.Given(string.Format("que tenha um pedido previamente cadastrado no sistema com apenas um autor e DDA n" + "a composição {0}, {1}", autor, dDA), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Dado "); #line 34 testRunner.But("nenhum item do pedido possui DDA com administrador", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Mas "); #line 35 testRunner.Then(string.Format("nao visualizo a opcao de pagar para o administrador {0}", autor), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Entao "); #line hidden this.ScenarioCleanup(); }
public virtual void UnsuccessfulLoginWithInvalidCredentials() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Unsuccessful Login With Invalid Credentials", null, new string[] { "negative" }); #line 23 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 4 this.FeatureBackground(); #line hidden TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] { "email", "password" }); table11.AddRow(new string[] { "*****@*****.**", "Test@123!" }); #line 24 testRunner.When("I Entered Invalid Login Credentials", ((string)(null)), table11, "When "); #line 27 testRunner.And("I Click Login Button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 28 testRunner.Then("Error message with text \"INCORRECT EMAIL OR PASSWORD.\" is displayed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 29 testRunner.And("Login should fail", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 30 testRunner.But("Relogin options should be available", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line hidden this.ScenarioCleanup(); }
public virtual void FailsToDeleteClassThatHasAttendance() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Fails to delete class that has attendance", new string[] { "class", "delete", "validation_error" }); #line 14 this.ScenarioSetup(scenarioInfo); #line 15 testRunner.Given("a block exists", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 16 testRunner.And("the current user enrols in the block", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 testRunner.And("a class needs to be deleted", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 18 testRunner.But("a user has attended the class", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 19 testRunner.When("the class is deleted", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 20 testRunner.And("the current user schedule is retrieved", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 21 testRunner.Then("validation errors are returned", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 22 testRunner.And("the class can be retrieved", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 23 testRunner.And("the current user\'s schedule is not emtpy", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void AScenarioWithStepsScopedOnTitle() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("A scenario with steps scoped on title", ((string[])(null))); #line 11 this.ScenarioSetup(scenarioInfo); #line 12 testRunner.Given("there is a certain phrase"); #line 13 testRunner.When("I might want to resuse it"); #line 14 testRunner.But("have it mean different things on different places"); #line 15 testRunner.Then("I should be able to"); #line hidden this.ScenarioCleanup(); }
public virtual void VotesAreTalliedCorrectly() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Votes are tallied correctly", new string[] { "mytag" }); #line 19 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Answer", "Vote" }); table2.AddRow(new string[] { "Blue", "40" }); table2.AddRow(new string[] { "Red", "5" }); #line 20 testRunner.Given("there is a question \"What\'s your favorite color?\" with the answers", ((string)(null)), table2, "Given "); #line 25 testRunner.When("you upvote answer Red", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 26 testRunner.Then("the answer Red should have 6 votes", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 27 testRunner.And("the answer Blue should have 40 votes", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 28 testRunner.But("the answer Green should have 0 votes", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line hidden this.ScenarioCleanup(); }
public virtual void NestedStepsAreEnqueuedToRunAsynchronously() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Nested steps are enqueued to run asynchronously", ((string[])(null))); this.ScenarioSetup(scenarioInfo); testRunner.When("I call a step from a step definition it is not exectued until after this step"); testRunner.But("it is executed before this step"); testRunner.CollectScenarioErrors(); }
public virtual void _1_0BUserEntersDetailsOnRegisterPage(string username, string password, string confirmpassword, string email, string firstname, string lastname, string nickname, string[] exampleTags) { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("1.0b User enters details on Register page", exampleTags); #line 12 this.ScenarioSetup(scenarioInfo); #line 13 testRunner.Given("I complete the Register Page with valid data", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 14 testRunner.When(string.Format("I enter {0} in the Username field", username), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 15 testRunner.And(string.Format("I enter {0} in the password field", password), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 testRunner.And(string.Format("I enter the {0} in the confirm password field", confirmpassword), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 testRunner.And(string.Format("I enter the {0} in the email field", email), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 18 testRunner.And(string.Format("I enter the {0} in the Firstname field", firstname), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 19 testRunner.And(string.Format("I enter the {0} in the Lastname field", lastname), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 20 testRunner.And(string.Format("I enter the {0} in the Nickname field", nickname), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 21 testRunner.And("the Register button is pressed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 22 testRunner.Then("the Home page should be displayed with a \'Welcome <firstmame>\' message should be " + "displayed and an email should be sent to all users in the \'Administrators\' Role " + "confirming the user has registered", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 23 testRunner.But(string.Format("an error message \'A user already exists with that {0}\' should be displayed if the" + " username is already in use.", username), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 24 testRunner.But(string.Format("an error message \'Password is not valid. Please enter a strong password\' should b" + "e displayed if the {0} is not a strong password", password), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 25 testRunner.But(string.Format("an error message \'Passwords do not match. Please re-enter your password\' should b" + "e displayed if the {0} does not match the {1}", confirmpassword, password), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 26 testRunner.But(string.Format("an error message \'Email is not valid. Please re-enter your email address\' should" + " be displayed if the {0} is not of the correct format", email), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 27 testRunner.But(string.Format("an error message \'Please complete all the fields\' if any of the fields {0},{1}, {" + "2}, {3},{4},{5},{6} are left blank", username, password, confirmpassword, email, firstname, lastname, nickname), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line hidden this.ScenarioCleanup(); }
public virtual void IUploadAnEmptyFile_() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I upload an empty file.", new string[] { "exception" }); #line 7 this.ScenarioSetup(scenarioInfo); #line 8 testRunner.Given("I have a file named \"scores.txt\" containing the scores", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 9 testRunner.But("it\'s empty", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 10 testRunner.When("I press upload file", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 11 testRunner.Then("an error should be shown saying \"Unable to upload an empty file.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void VoegEenDienstToeDieDeATWRegelsOvertreed() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Voeg een dienst toe die de ATW regels overtreed", ((string[])(null))); #line 18 this.ScenarioSetup(scenarioInfo); #line 20 testRunner.Given("de medewerker is 16 jaar oud", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Stel "); #line 21 testRunner.And("de niet werkbare tijden voor iemand van 16 of 17 jaar zijn van 23:00 tot 06:00", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "En "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "Dag", "Start tijd", "Eind tijd" }); table3.AddRow(new string[] { "Maandag", "08:00", "12:00" }); table3.AddRow(new string[] { "Dinsdag", "12:00", "16:00" }); #line 22 testRunner.And("de volgende diensten zijn reeds ingeroosterd", ((string)(null)), table3, "En "); #line 26 testRunner.When("ik een dienst van 05:00 tot 11:00 inrooster op Woensdag", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Als "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "Dag", "Start tijd", "Eind tijd" }); table4.AddRow(new string[] { "Maandag", "08:00", "12:00" }); table4.AddRow(new string[] { "Dinsdag", "12:00", "16:00" }); table4.AddRow(new string[] { "Woensdag", "05:00", "11:00" }); #line 27 testRunner.Then("zijn de volgende diensten ingeroosterd", ((string)(null)), table4, "Dan "); #line 32 testRunner.But("er zijn ATW regels overtreden", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Maar "); #line hidden this.ScenarioCleanup(); }
public virtual void PendantSerialNumberEmpty() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Pendant Serial Number Empty", ((string[])(null))); #line 19 this.ScenarioSetup(scenarioInfo); #line 20 testRunner.Given("I an on the Install Page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 21 testRunner.And("I enter a valid Gateway Number", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 22 testRunner.But("I don\'t enter any pendant serial number", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 23 testRunner.When("I press Next", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 24 testRunner.Then("the VBN should display a \"No Pendant Serial Number\" error message", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void MultipleShoutersOneHeard() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Multiple Shouters One Heard", null, ((string[])(null))); #line 19 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 5 this.FeatureBackground(); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "name", "x", "y" }); table1.AddRow(new string[] { "Lucy", "0", "0" }); table1.AddRow(new string[] { "Sean", "0", "500" }); table1.AddRow(new string[] { "Oscar", "1100", "0" }); #line 20 testRunner.Given("people are located at", ((string)(null)), table1, "Given "); #line 25 testRunner.When("Sean shouts", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 26 testRunner.And("Oscar shouts", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 27 testRunner.Then("Lucy should not hear Oscar", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 28 testRunner.But("Lucy should hear Sean", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line hidden this.ScenarioCleanup(); }
public virtual void CustomerOptsToBeNotifiedOfTheStoreWhenItComesOnlineWithAValidEmailAddress() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Customer opts to be notified of the store when it comes online with a valid email" + " address", null, ((string[])(null))); #line 9 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 10 testRunner.Given("I access the Poochwarehouse.co.uk website", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 11 testRunner.But("the store is not online for business", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 12 testRunner.And("the customer enters a valid email address to be notified of launch", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 testRunner.When("I press the notify me button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 14 testRunner.Then("the challenge contact password screen will be displayed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void AddTwoNumbers() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Add two numbers", ((string[])(null))); #line 3 this.ScenarioSetup(scenarioInfo); #line 4 testRunner.Given("I have entered a username of \'Sarah\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 5 testRunner.And("a password of \'mc82#RF92\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 6 testRunner.When("I choose login", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 7 testRunner.But("I don\'t choose remember me", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 8 testRunner.Then("I should be logged in", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 9 testRunner.And("taken to the home screen", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 testRunner.But("my username should not be remembered", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line hidden this.ScenarioCleanup(); }
public virtual void GameEndsWhenLastProvinceIsBought() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Game ends when last province is bought", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line 7 testRunner.Given("A new game with 3 players"); #line 8 testRunner.But("There is only 1 Province left"); #line 9 testRunner.And("Player1 has 5 Gold in hand"); #line 10 testRunner.When("Player1 moves to the buy step"); #line 11 testRunner.And("Player1 buys a Province"); #line 12 testRunner.And("Player1 ends their turn"); #line 13 testRunner.Then("The game should have ended"); #line hidden testRunner.CollectScenarioErrors(); }
public virtual void SuccessfullBrushing() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Successfull brushing", ((string[])(null))); #line 4 this.ScenarioSetup(scenarioInfo); #line 7 testRunner.Given("there is 1 gram of toothpaste of Brand X on the brush", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 8 testRunner.And("the mouth is open", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 9 testRunner.When("the back teeth are brushed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 10 testRunner.And("the front teeth are brushed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.Then("the teeth look clean", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 12 testRunner.And("the mouth feels fresh", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 testRunner.But("the braces aren\'t damaged", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line hidden this.ScenarioCleanup(); }
public virtual void CheckIfUserIsAbleToAddSkillWithoutEnteringTheValueInSkillField() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Check if user is able to add skill without entering the value in skill field", null, new string[] { "manual" }); #line 34 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 35 testRunner.Given("I am on the Skills tab", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 36 testRunner.When("I clicked on Add New button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 37 testRunner.And("I select the skill level", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 38 testRunner.But("I did not enter skill", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 39 testRunner.Then("The alert message \"Please enter skill and experience level\" should display", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 40 testRunner.And("New skill does not entered", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void TarefaNaoPodeSerDuplicada() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Tarefa não pode ser duplicada", null, new string[] { "TarefaDuplicada" }); #line 27 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 9 this.FeatureBackground(); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "Titulo", "Data" }); table3.AddRow(new string[] { "Tarefa duplicada", "31/12/2019" }); #line 28 testRunner.Given("que eu tenho uma tarefa com os seguintes atributos:", ((string)(null)), table3, "Dado "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "Tag" }); table4.AddRow(new string[] { "Automação" }); table4.AddRow(new string[] { "Csharp" }); table4.AddRow(new string[] { "Programação" }); table4.AddRow(new string[] { "Specflow" }); #line 31 testRunner.And("eu quero taguear esta tarefa com:", ((string)(null)), table4, "E "); #line 37 testRunner.But("eu já cadastrei esta tarefa e não tinha percebido", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Mas "); #line 38 testRunner.When("faço o cadastro dessa tarefa", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Quando "); #line 39 testRunner.Then("devo ver a mensagem \'Tarefa duplicada.\' ao tentar cadastrar", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Então "); #line 40 testRunner.And("devo ver somente 1 tarefa com o nome cadastrado", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "E "); #line hidden this.ScenarioCleanup(); }
public virtual void CheckIfUserIsAbleToAddLanguageWithoutEnteringTheValueInLanguageField() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Check if user is able to add language without entering the value in language fiel" + "d", null, new string[] { "manual" }); #line 44 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 45 testRunner.Given("I am on the Languages tab", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 46 testRunner.When("I clicked on Add New button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 47 testRunner.And("I select the language level", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 48 testRunner.But("I did not enter language", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "But "); #line 49 testRunner.Then("The alert message \"Please enter language and level\" should display", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 50 testRunner.And("New language does not entered", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }