public void AcessarCadastroDeTitulo_6348()
        {
            // Para gerar código para este teste, selecione "Gerar Código para Teste de Interface do Usuário Codificado" no menu de atalho e selecione um dos itens do menu.

            OpenCash openCash = new OpenCash();

            openCash.OpenCashMethod();

            MultiClubesFunctions mcFunctions = new MultiClubesFunctions();
            MultiClubesMenus     mcMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            mcMenus.AcessarMenuOperacaoTituloCadastroDeTitulo();
            this.UIMap.ProcurarTextoCadastro();
            this.UIMap.ProcurarTextoNovoTítulo();
            this.UIMap.ProcurarBotaoTítulo();
            this.UIMap.ProcurarBotaoIncluirDependente();
            this.UIMap.ProcurarGroupBoxVenda();
            mcFunctions.CloseWindow("Cadastro de título");
        }
示例#2
0
        public void AcessarComputadores_6351()
        {
            // Para gerar código para este teste, selecione "Gerar Código para Teste de Interface do Usuário Codificado" no menu de atalho e selecione um dos itens do menu.
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuAdministracaoSegurancaComputadores();

            this.UIMap.ProcurarTituloMultiClubesComputadores();
            this.UIMap.ProcurarTextoComputadores();

            bool listViewDisplayed = false;

            if (driver.FindElement(By.Id("listView")).Displayed)
            {
                listViewDisplayed = true;
            }

            McFunctions.CloseWindow("Computadores");

            Assert.IsTrue(listViewDisplayed, "Lista de computadores exibida");
        }
示例#3
0
        public void SimulacaoDeGeracaoDeCobrancaSemConfirmacao_6392()
        {
            MultiClubesFunctions mcFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuOperacaoFinanceiroCobrancaSimulacaoDeCobranca();

            mcFunctions.SearchElementByIdAndClick("buttonSimulate", true);
            mcFunctions.SearchElementByNameAndClick("Não", true);

            mcFunctions.TreatWaitScreen();

            bool simulationScreenFound = false;

            if (driver.FindElementsById("FormDunSimulator").Count > 0)
            {
                simulationScreenFound = true;

                mcFunctions.SearchElementByNameAndClick("Cancelar", true);
                mcFunctions.SearchElementByNameAndClick("OK", true);
            }

            Assert.IsFalse(simulationScreenFound, "Criou a janela de geração de cobrança");

            mcFunctions.CloseWindow("Simulação de cobrança");
        }
        public void EnviarNotificacaoDeCobranca_9787()
        {
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuOperacaoFinanceiroCobrancaNotificacaoDeCobrancaEmail();

            McFunctions.SearchElementByIdAndClick("buttonOK");
            McFunctions.TreatWaitScreen();

            int counter = 0;

            while ((driver.FindElements(By.Name("Enviando...")).Count > 0) && counter < 200)
            {
                Thread.Sleep(1000);
                counter++;
                Console.WriteLine("Tela 'Enviando...' ativa {0}/{1}", counter, 200);
            }

            McFunctions.SearchElementByNameAndClick("OK");
            McFunctions.SearchElementByIdAndClick("buttonCancel");
        }
        public void CancelarEdicaoDePlanoDeVenda_7502()
        {
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            string ocupationMapName = "Mapa de ocupação criado em " + DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss");

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuAdministracaoFinanceiroPlanosDeVendaPlanos();

            driver.FindElement(By.Id("treeView")).FindElement(By.Name("Ingresso online individual")).Click();
            McFunctions.TreatWaitScreen();

            IWebElement listViewElement = driver.FindElement(By.Id("listView")).FindElement(By.Name(".Ingresso Teste"));

            new Actions(driver).MoveToElement(listViewElement).ContextClick(listViewElement).Build().Perform();
            driver.FindElement(By.Name("Editar")).Click();



            McFunctions.SearchElementByIdAndClick("buttonCancel");
            McFunctions.TreatWaitScreen();

            Assert.AreEqual(driver.FindElements(By.Id("FormSalePlanOnlineEdit")).Count, 0, "Janela fechada");

            McFunctions.CloseWindow("Planos de venda");
        }
        public void EditarCobrancaBoleto_10524()
        {
            MultiClubesFunctions mcFunctions = new MultiClubesFunctions();
            MultiClubesMenus     mcMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            mcMenus.AcessarMenuOperacaoTituloCentralDeAtendimento();

            mcFunctions.SearchHolder("N/S9440-0");

            mcFunctions.AcessarCobrancasEditarCobrancas();
            mcFunctions.SearchElementByIdAndClick("linkLabelEdit", true);

            mcFunctions.SearchElementByIdAndClick("comboBoxDunType", true);
            mcFunctions.SearchElementByNameAndClick("Boleto bancário");
            mcFunctions.SearchElementByIdAndClick("buttonDetail", true);
            mcFunctions.SearchElementByIdAndClick("comboBoxDunInstitution", true);
            mcFunctions.SearchElementByNameAndClick("BANRISUL BOLETO");

            mcFunctions.SearchElementByIdAndClick("buttonOK", true);
            mcFunctions.SearchElementByIdAndClick("buttonOK", true);

            mcFunctions.CloseWindow("Cobranças do título");
            mcFunctions.FinalizarAtendimentoTitulo();
            mcFunctions.CloseWindow("Central de Atendimento");
        }
        public void AcessarParentesco_5331()
        {
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuAdministracaoTituloParentescos();

            // Para gerar código para este teste, selecione "Gerar Código para Teste de Interface do Usuário Codificado" no menu de atalho e selecione um dos itens do menu.
            bool correctTitle = false;

            if (driver.FindElement(By.Id("labelMessage")).GetAttribute("Name") == "Parentescos")
            {
                correctTitle = true;
            }

            bool listViewDisplayed = false;

            if (driver.FindElement(By.Id("listView")).Displayed)
            {
                listViewDisplayed = true;
            }

            McFunctions.CloseWindow("Parentescos");
            Assert.IsTrue(correctTitle, "Título 'Parentescos' encontrado");
            Assert.IsTrue(listViewDisplayed, "Lista de parentescos exibida");
        }
        public void VenderTituloNoCaixaComConfirmacao_5589()
        {
            string name = "Sócio criado em " + DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss");

            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();
            OpenCash             openCash    = new OpenCash();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            openCash.OpenCashMethod();

            McMenus.AcessarMenuOperacaoTituloCadastroDeTitulo();

            McFunctions.SearchElementByIdAndClick("comboBoxSalePlan");
            McFunctions.SearchElementByNameAndClick("AGE - AGEPES");

            McFunctions.TreatWaitScreen();

            McFunctions.SearchElementByIdAndSendKeys("maskedTextBoxPostalCode", "01311000");

            McFunctions.SearchElementByIdAndClick("buttonSearch");
            McFunctions.TreatWaitScreen();

            McFunctions.SearchElementByIdAndSendKeys("textBoxNumber", "100");

            McFunctions.SearchElementByIdAndClick("buttonOK");

            McFunctions.SearchElementByIdAndSendKeys("textBoxName", name);
            McFunctions.SearchElementByIdAndSendKeys("textBox", "123");
            McFunctions.SearchElementByIdAndClick("buttonOK");

            McFunctions.SearchElementByIdAndClick("buttonFinalize", true);
            McFunctions.SearchElementByNameAndClick("Sim", true);
            McFunctions.TreatWaitScreen();

            McFunctions.SearchElementByIdAndClick("buttonClose");

            McMenus.AcessarMenuOperacaoTituloCentralDeAtendimento();
            McFunctions.SendAndCheckKeys("textBoxKeyword", name);
            Keyboard.SendKeys("{Enter}");

            McFunctions.TreatWaitScreen();

            bool foundHolder = false;

            if (driver.FindElement(By.Id("listView")).FindElements(By.Name(name)).Count > 0)
            {
                foundHolder = true;
            }

            Assert.IsTrue(foundHolder, "Título não foi criado");

            McFunctions.CloseWindow("Central de Atendimento");
        }
示例#9
0
        public void CriarPlanoDeVenda_10720()
        {
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            string planName = "Plano de venda criado em " + DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss");

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuAdministracaoFinanceiroPlanosDeVendaPlanos();

            McFunctions.WaitForElementLoad(By.Id("treeView"));

            driver.FindElement(By.Id("treeView")).FindElement(By.Name("Título local")).Click();

            McFunctions.WaitForElementLoad(By.Id("listView"), 2);

            IWebElement listViewElement = driver.FindElement(By.Id("listView"));

            new Actions(driver).MoveToElement(listViewElement).ContextClick(listViewElement).Build().Perform();
            driver.FindElement(By.Name("Incluir")).Click();

            McFunctions.TreatWaitScreen();

            McFunctions.WaitForElementLoad(By.Id("textBoxName"), 2);
            McFunctions.SearchElementByIdAndSendKeys("textBoxName", planName);

            driver.FindElement(By.Id("comboBoxTitleType")).Click();
            driver.FindElement(By.Name("AA - Teste")).Click();

            driver.FindElement(By.Id("comboBoxTitleCodeSequence")).Click();
            driver.FindElement(By.Name("AE")).Click();

            McFunctions.SearchElementByNameAndClick("Venda");

            driver.FindElement(By.Id("comboBoxProduct")).Click();
            driver.FindElement(By.Name("Título A")).Click();

            driver.FindElement(By.Id("comboBoxDunInstitution")).Click();
            driver.FindElement(By.Name("BRADESCO BOLETO MULTICLUBES")).Click();

            McFunctions.SearchElementByIdAndClick("buttonOK");
            McFunctions.TreatWaitScreen();

            bool createdPlan = false;

            if (listViewElement.FindElements(By.Name(planName)).Count > 0)
            {
                createdPlan = true;
            }

            McFunctions.CloseWindow("Planos de venda");

            Assert.IsTrue(createdPlan, "Plano criado");
        }
示例#10
0
        public void EmissaoDeRemessa_8679()
        {
            MultiClubesFunctions mcFunctions = new MultiClubesFunctions();
            MultiClubesMenus     mcMenus     = new MultiClubesMenus();

            string folderPath = "C:/TestesAutomatizados/TestResults";
            string fileName   = "REMESSA" + DateTime.Now.ToString("_dd_MM_yyyy_HH_mm_ss") + ".rem";
            string filePath   = folderPath + "/" + fileName;

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            mcMenus.AcessarMenuOperacaoFinanceiroTransacoesBancariasRemessasAnteriores();

            mcFunctions.WaitForElementLoad(By.Id("listView"));
            driver.FindElement(By.Id("listView")).FindElements(By.Id(""))[0].Click();

            mcFunctions.SearchElementByIdAndClick("buttonOptions");
            mcFunctions.SearchElementByNameAndClick("Desfazer");

            mcFunctions.SearchElementByNameAndClick("Sim", true);
            mcFunctions.WaitForElementLoad(By.Id("OPERATION_FINANCIAL+BANK+REMITTANCE_HISTORY"));
            mcFunctions.CloseWindow("Remessas anteriores", "OPERATION_FINANCIAL+BANK+REMITTANCE_HISTORY");

            mcMenus.AcessarMenuOperacaoFinanceiroTransacoesBancariasEmissaoDeRemessa();

            mcFunctions.SearchElementByIdAndClick("comboBoxDunInstitution", true);
            mcFunctions.SearchElementByNameAndClick("BANRISUL BOLETO");

            mcFunctions.SearchElementByIdAndClick("comboBoxRemittanceType");
            mcFunctions.SearchElementByNameAndClick("Impressão");

            mcFunctions.SearchElementByIdAndSendKeys("textBoxFileName", filePath);

            mcFunctions.SearchElementByIdAndClick("buttonOK");
            mcFunctions.SearchElementByNameAndClick("Sim", true);

            bool finishedRemittance = false;

            if (driver.FindElements(By.Name("Erro")).Count > 0)
            {
                Assert.Fail(driver.FindElement(By.Id("ContentText")).GetAttribute("Name"));
            }
            else if (driver.FindElements(By.Name("Concluído")).Count > 0)
            {
                finishedRemittance = true;
            }
            Assert.IsTrue(finishedRemittance, "Gerou a cobrança com sucesso");
            Assert.IsTrue(File.Exists(filePath), "Arquivo criado com sucesso");

            mcFunctions.SearchElementByIdAndClick("buttonOK");
            mcFunctions.CloseWindow("Emissão de remessa", "OPERATION_FINANCIAL+BANK+REMITTANCE_GENERATION");
        }
        public void EditarCobrancaPagamentoOnline_8661()
        {
            string holder         = "n/s41344-0";
            string paymentGateway = "Cielo Qa";
            string cardHolderName = "Usuario Teste QA";
            string cardNumber     = "4111111111111111";
            string cardValidity   = "12/21";
            string securityCode   = "123";

            MultiClubesFunctions mcFunctions = new MultiClubesFunctions();
            MultiClubesMenus     mcMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            mcFunctions.ChangePaymentGateway(paymentGateway);

            mcMenus.AcessarMenuOperacaoTituloCentralDeAtendimento();

            mcFunctions.SearchHolder(holder);

            mcFunctions.AcessarCobrancasEditarCobrancas();
            mcFunctions.SearchElementByIdAndClick("linkLabelEdit", true);

            mcFunctions.SearchElementByIdAndClick("comboBoxDunType");
            mcFunctions.SearchElementByNameAndClick("À vista");
            mcFunctions.SearchElementByIdAndClick("buttonOK");
            mcFunctions.CloseWindow("Cobranças do título");
            mcFunctions.AcessarCobrancasEditarCobrancas();
            mcFunctions.SearchElementByIdAndClick("linkLabelEdit");
            mcFunctions.SearchElementByIdAndClick("comboBoxDunType");
            mcFunctions.SearchElementByNameAndClick("Pagamento online");
            mcFunctions.SearchElementByIdAndClick("buttonDetail");

            mcFunctions.SearchElementByIdAndClick("buttonCreditCardEdit");

            mcFunctions.SearchElementByIdAndClick("comboBoxCardType");

            mcFunctions.SearchElementByNameAndClick("Visa");

            mcFunctions.SearchElementByIdAndSendKeys("textBoxCardHolderName", cardHolderName);
            mcFunctions.SearchElementByIdAndSendKeys("textBoxCardNumber", cardNumber);
            mcFunctions.SearchElementByIdAndSendKeys("maskedTextBoxCardValidity", "{HOME}" + cardValidity);
            mcFunctions.SearchElementByIdAndSendKeys("textBoxSecurityCode", securityCode);

            mcFunctions.SearchElementByIdAndClick("buttonOK", true);
            mcFunctions.SearchElementByIdAndClick("buttonOK", true);
            mcFunctions.SearchElementByIdAndClick("buttonOK", true);

            mcFunctions.CloseWindow("Cobranças do título");
            mcFunctions.FinalizarAtendimentoTitulo();
            mcFunctions.CloseWindow("Central de atendimento");
        }
示例#12
0
        public void VisualizacaoDeBoletoIndividualSemImpressoraInstalada_8942()
        {
            string holder = "A28282";

            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();
            OpenCash             openCash    = new OpenCash();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuOperacaoTituloCentralDeAtendimento();
            McFunctions.SearchHolder(holder);

            McFunctions.AcessarCobrancasAtivas();

            McFunctions.WaitForElementLoad(By.Id("listViewDun"));

            McFunctions.WaitForElementLoad(By.Id("listViewYear"));
            driver.FindElement(By.Id("listViewYear")).FindElements(By.Id(""))[0].Click();

            var listViewDunElements = driver.FindElement(By.Id("listViewDun")).FindElements(By.Id(""));

            Console.WriteLine("Valor da cobrança: {0}", listViewDunElements[4].GetAttribute("Name"));

            new Actions(driver).MoveToElement(driver.FindElement(By.Id("listViewDun")).FindElements(By.Id(""))[0]).Build().Perform();
            new Actions(driver).DoubleClick(driver.FindElement(By.Id("listViewDun")).FindElements(By.Id(""))[0]).Build().Perform();

            McFunctions.SearchElementByIdAndClick("buttonOptions");
            McFunctions.SearchElementByNameAndClick("Boleto");
            McFunctions.SearchElementByNameAndClick("Imprimir");
            McFunctions.SearchElementByNameAndClick("Visualizar");

            McFunctions.TreatWaitScreen(5);

            McFunctions.WaitForElementLoad(By.Id("labelMessage"));
            Assert.AreEqual("Boleto bancário", driver.FindElement(By.Id("labelMessage")).GetAttribute("Name"));
            Assert.IsTrue(driver.FindElement(By.Id("printPreviewControl")).Enabled);

            Assert.Inconclusive("É necessário validar os dados do boleto manualmente");

            SendKeys.SendWait("(%{F4})");
            McFunctions.SearchElementByIdAndClick("buttonCancel", true);
            McFunctions.TreatWaitScreen(5);
            McFunctions.CloseWindow("Detalhes da cobrança");
            McFunctions.TreatWaitScreen(5);
            McFunctions.CloseWindow("Cobranças ativas");
            McFunctions.FinalizarAtendimentoTitulo();
            McFunctions.CloseWindow("Central de atendimento");
        }
        public void VendaDeTituloPorBoleto_7221()
        {
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();
            OpenCash             openCash    = new OpenCash();

            openCash.OpenCashMethod();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            string name     = "Sócio criado em " + DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss");
            string planName = "Gratuito";

            McMenus.AcessarMenuOperacaoTituloCadastroDeTitulo();

            McFunctions.SearchElementByIdAndClick("comboBoxSalePlan");
            McFunctions.SearchElementByNameAndClick("AGE - AGEPES");

            McFunctions.SearchElementByIdAndSendKeys("maskedTextBoxPostalCode", "01311000", true);

            McFunctions.SearchElementByIdAndClick("buttonSearch");

            McFunctions.SearchElementByIdAndSendKeys("textBoxNumber", "100", true);

            McFunctions.SearchElementByIdAndClick("buttonOK");

            McFunctions.SearchElementByIdAndSendKeys("textBoxName", name);
            McFunctions.SearchElementByIdAndSendKeys("textBox", "123");
            McFunctions.SearchElementByIdAndClick("buttonOK");

            McFunctions.SearchElementByIdAndClick("buttonFinalize", true);
            McFunctions.SearchElementByNameAndClick("Sim", true);

            McFunctions.SearchElementByIdAndClick("buttonService", true);

            McFunctions.AcessarProdutosAReceber();

            McFunctions.WaitForElementLoad(By.Id("listViewParcel"), 2);

            var listViewParcelElements = driver.FindElement(By.Id("listViewParcel")).FindElements(By.Id(""));

            Assert.AreEqual(planName, listViewParcelElements[0].GetAttribute("Name"));
            Assert.IsNotNull(listViewParcelElements[6].GetAttribute("Name"));

            McFunctions.CloseWindow("Parcelas");
            McFunctions.FinalizarAtendimentoTitulo();
            McFunctions.CloseWindow("Central de atendimento");
        }
        public void VerificarCobrancaDeDependente_7866()
        {
            string holder      = "A28234";
            string billingType = "Mensalidade Dependente";

            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuOperacaoTituloCentralDeAtendimento();
            McFunctions.SearchHolder(holder);

            McFunctions.AcessarCobrancasEditarCobrancas();

            McFunctions.WaitForElementLoad(By.Id("listView"));
            var listViewDunElements = driver.FindElement(By.Id("listView")).FindElements(By.Id(""));

            int    counter = 0;
            bool   dependentBillingFound = false;
            string valueBilling          = String.Empty;

            foreach (IWebElement i in listViewDunElements)
            {
                if (i.GetAttribute("Name") == billingType)
                {
                    valueBilling          = listViewDunElements[counter + 3].GetAttribute("Name");
                    dependentBillingFound = true;
                    break;
                }
                counter++;
            }

            bool dependentBillingValueFound = false;

            if (valueBilling.Contains("R$ ") && valueBilling.Contains(","))
            {
                dependentBillingValueFound = true;
            }

            McFunctions.CloseWindow("Cobranças do título");
            McFunctions.FinalizarAtendimentoTitulo();
            McFunctions.CloseWindow("Central de atendimento");

            Assert.IsTrue(dependentBillingFound, "Cobrança de dependente encontrada");
            Assert.IsTrue(dependentBillingValueFound, "Valor da cobrança de dependente encontrada");
        }
示例#15
0
        public void VenderTituloNoCaixaDefinirDesconto_5591()
        {
            string name = "Sócio criado em " + DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss");

            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();
            OpenCash             openCash    = new OpenCash();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            openCash.OpenCashMethod();

            McMenus.AcessarMenuOperacaoTituloCadastroDeTitulo();

            McFunctions.SearchElementByIdAndClick("comboBoxSalePlan", true, 2);
            McFunctions.SearchElementByNameAndClick("AGE - AGEPES");

            McFunctions.TreatWaitScreen();

            McFunctions.SearchElementByIdAndSendKeys("maskedTextBoxPostalCode", "01311000");

            McFunctions.SearchElementByIdAndClick("buttonSearch");
            McFunctions.TreatWaitScreen();

            McFunctions.SearchElementByIdAndSendKeys("textBoxNumber", "100");

            McFunctions.SearchElementByIdAndClick("buttonOK");

            McFunctions.WaitForElementLoad(By.Id("textBoxName"));
            McFunctions.SearchElementByIdAndSendKeys("textBoxName", name);
            McFunctions.SearchElementByIdAndSendKeys("textBox", "123");
            McFunctions.SearchElementByIdAndClick("buttonOK");

            McFunctions.SearchElementByIdAndSendKeys("numericUpDownParcelQuantity", "10", true, 2);
            McFunctions.SearchElementByIdAndSendKeys("numericUpDownEntranceValue", "10,00", true, 2);
            McFunctions.SearchElementByIdAndClick("radioButtonParcelValue");
            McFunctions.SearchElementByIdAndSendKeys("numericUpDownParcelValue", "89,00", true, 2);
            McFunctions.SearchElementByIdAndClick("numericUpDownParcelQuantity");

            this.UIMap.VerificarValorTotal();
            this.UIMap.VerificarValorDoDesconto();
            this.UIMap.VerificarValorOriginal();

            McFunctions.SearchElementByIdAndClick("buttonCancel");
            McFunctions.SearchElementByNameAndClick("Sim");
        }
示例#16
0
        public void ImpressaoDeExtratoDaCobranca_9024()
        {
            string holder = "A28282";

            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();
            OpenCash             openCash    = new OpenCash();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuOperacaoTituloCentralDeAtendimento();
            McFunctions.SearchHolder(holder);

            McFunctions.AcessarCobrancasAtivas();

            McFunctions.WaitForElementLoad(By.Id("listViewYear"));
            driver.FindElement(By.Id("listViewYear")).FindElements(By.Id(""))[0].Click();

            McFunctions.WaitForElementLoad(By.Id("listViewDun"));

            var listViewDunElements = driver.FindElement(By.Id("listViewDun")).FindElements(By.Id(""));

            Console.WriteLine("Valor da cobrança: {0}", listViewDunElements[4].GetAttribute("Name"));

            new Actions(driver).MoveToElement(driver.FindElement(By.Id("listViewDun")).FindElements(By.Id(""))[0]).Build().Perform();
            new Actions(driver).DoubleClick(driver.FindElement(By.Id("listViewDun")).FindElements(By.Id(""))[0]).Build().Perform();

            McFunctions.SearchElementByIdAndClick("buttonOptions", true);
            McFunctions.SearchElementByNameAndClick("Imprimir extrato");

            McFunctions.WaitForElementLoad(By.Id("DocumentViewer"));

            Assert.Inconclusive("Verificar se a imagem em anexo no relatório de testes consta com os dados corretos");

            //this.UIMap.PrintExtractBilling();

            //SendKeys.SendWait("(%{F4})");

            //McFunctions.CloseWindow("Detalhes da cobrança");
            //McFunctions.TratarTelaAguarde();
            //McFunctions.CloseWindow("Cobranças ativas");
            //McFunctions.FinalizarAtendimentoTitulo();
            //McFunctions.CloseWindow("Central de atendimento");
        }
示例#17
0
        public void InclusaoDeDependenteComPendenciaAutomaticaAtiva_9761()
        {
            MultiClubesFunctions mcFunctions = new MultiClubesFunctions();
            MultiClubesMenus     mMcMenus    = new MultiClubesMenus();
            OpenCash             openCash    = new OpenCash();

            openCash.OpenCashMethod();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            string dependentName = "Dependente criado em " + DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss");

            mcFunctions.AcessarCentralDeAtendimento();
            mcFunctions.SearchHolder("age0399");

            mcFunctions.SearchElementByNameAndClick("Título", true);

            mcFunctions.SearchElementByIdAndClick("sideButtonNewMember", true);

            mcFunctions.SearchElementByIdAndSendKeys("textBoxName", dependentName, true);
            mcFunctions.SearchElementByIdAndClick("comboBoxParentage");
            mcFunctions.SearchElementByNameAndClick("Nora");
            mcFunctions.SearchElementByIdAndSendKeys("textBox", "123");
            mcFunctions.SearchElementByIdAndClick("buttonOK");

            mcFunctions.WaitForElementLoad(By.Id("labelWarning"));

            bool foundText = driver.FindElement(By.Id("labelWarning")).GetAttribute("Name").Contains("Cadastro de dependente local");

            IWebElement holderElement = driver.FindElement(By.Name("Dependente"));

            holderElement.Click();
            new Actions(driver).MoveToElement(holderElement).ContextClick(holderElement).Build().Perform();

            mcFunctions.SearchElementByNameAndClick("Status", true);
            mcFunctions.SearchElementByNameAndClick("Excluir", true);
            mcFunctions.SearchElementByNameAndClick("Sim", true);
            mcFunctions.SearchElementByNameAndClick("OK", true);

            mcFunctions.FinalizarAtendimentoTitulo();
            mcFunctions.CloseWindow();

            Assert.IsTrue(foundText, "Texto \"Cadastro de dependente local\" presente na \"labelWarning\"");
        }
        public void ImpressaoDeBoletoIndividual_9018()
        {
            string holder = "A28282";

            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();
            OpenCash             openCash    = new OpenCash();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuOperacaoTituloCentralDeAtendimento();
            McFunctions.SearchHolder(holder);

            McFunctions.AcessarCobrancasAtivas();

            McFunctions.WaitForElementLoad(By.Id("listViewDun"));

            var listViewDunElements = driver.FindElement(By.Id("listViewDun")).FindElements(By.Id(""));

            Console.WriteLine("Valor da cobrança: {0}", listViewDunElements[4].GetAttribute("Name"));

            new Actions(driver).MoveToElement(driver.FindElement(By.Id("listViewDun")).FindElements(By.Id(""))[0]).Build().Perform();
            new Actions(driver).DoubleClick(driver.FindElement(By.Id("listViewDun")).FindElements(By.Id(""))[0]).Build().Perform();

            McFunctions.SearchElementByIdAndClick("buttonOptions");
            McFunctions.SearchElementByNameAndClick("Boleto");
            McFunctions.SearchElementByNameAndClick("Imprimir");
            McFunctions.SearchElementByIdAndClick("buttonPrint");

            this.UIMap.ImprimirDoPdf();

            McFunctions.WaitForElementLoad(By.Name("Impressão concluída"));
            SendKeys.SendWait("(%{F4})");

            McFunctions.CloseWindow("Imprimir boletos");
            McFunctions.TreatWaitScreen();
            McFunctions.CloseWindow("Detalhes da cobrança");
            McFunctions.CloseWindow("Cobranças ativas");
            McFunctions.FinalizarAtendimentoTitulo();
            McFunctions.CloseWindow("Central de atendimento");

            Assert.Inconclusive("Verificar o boleto gerado em C:/TestesAutomatizados/TestResults/boleto_tc9018.pdf");
        }
示例#19
0
        public void AcessarSeguranca_6350()
        {
            // Para gerar código para este teste, selecione "Gerar Código para Teste de Interface do Usuário Codificado" no menu de atalho e selecione um dos itens do menu.
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuAdministracaoSegurancaPermissoes();
            this.UIMap.ProcurarTituloPermissoes();
            this.UIMap.ProcurarTextoGruposEPermissoes();
            this.UIMap.ProcurarTextoSeguranca();
            McFunctions.CloseWindow("Permissões");
        }
示例#20
0
        public void TestIsolado_Metodo()
        {
            MultiClubesFunctions mcFunctions = new MultiClubesFunctions();
            MultiClubesMenus     mcMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            //Console.WriteLine(DateTime.Now.ToString("HH:mm:ss"));
            //mcMenus.AcessarMenu("Completo");

            //mcFunctions.FinalizarAtendimentoTitulo();
            //mcFunctions.CloseWindow();

            //driver.FindElement(By.Id("OPERATION_FINANCIAL+DUN+SIMULATION")).FindElement(By.Id("buttonClose")).Click();
        }
        public void AcessarGruposDeProduto_5885()
        {
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            // Para gerar código para este teste, selecione "Gerar Código para Teste de Interface do Usuário Codificado" no menu de atalho e selecione um dos itens do menu.
            McMenus.AcessarMenuAdministracaoFinanceiroGruposDeProdutos();
            McFunctions.TreatWaitScreen();
            this.UIMap.ProcurarTituloMultiClubesGruposDeProduto();
            this.UIMap.ProcurarTextoGruposDeProduto();
            this.UIMap.ProcurarColunaGrupo();
            McFunctions.CloseWindow("Grupos de produto");
        }
        public void IncluirControleDeAcesso_8704()
        {
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            string accessControlName            = "Controle de Acesso criado em " + DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss");
            string descriptionAccessControlName = "Descrição " + accessControlName;

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuAdministracaoAcessoControlesDeAcesso();

            IWebElement listViewElement = driver.FindElement(By.Id("listView"));

            new Actions(driver).MoveToElement(listViewElement).ContextClick(listViewElement).Build().Perform();
            driver.FindElement(By.Name("Incluir")).Click();

            McFunctions.SearchElementByIdAndSendKeys("textBoxName", accessControlName);
            McFunctions.SearchElementByIdAndSendKeys("textBoxDescription", descriptionAccessControlName);

            McFunctions.SearchElementByIdAndClick("buttonRules");

            //verificar quais regras serão aplicadas

            McFunctions.SearchElementByIdAndClick("buttonOK");
            McFunctions.SearchElementByIdAndClick("buttonOK");
            McFunctions.TreatWaitScreen();

            bool createdAcessControl = false;

            if (listViewElement.FindElements(By.Name(accessControlName)).Count > 0)
            {
                createdAcessControl = true;
            }

            McFunctions.CloseWindow("Controle de Acesso");

            Assert.IsTrue(createdAcessControl, "Controle de acesso criado");
        }
示例#23
0
        public void GerarCobrancaIndividual_7688()
        {
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuOperacaoTituloCentralDeAtendimento();
            McFunctions.SearchHolder("A28248");

            McFunctions.AcessarCobrancasEditarCobrancas();

            McFunctions.WaitForElementLoad(By.Id("listViewDuns"));
            string billing      = driver.FindElement(By.Id("listViewDuns")).FindElements(By.Id(""))[0].GetAttribute("Name");
            string billingValue = billing.Substring(billing.IndexOf("R$"));

            Console.WriteLine(billingValue);

            McFunctions.SearchElementByIdAndClick("linkLabelGenerate");

            McFunctions.SearchElementByIdAndClick("buttonGenerate", true);

            McFunctions.SearchElementByNameAndClick("Sim", true);

            McFunctions.WaitForElementLoad(By.Name("OK"));

            string generatedBilling = driver.FindElement(By.Id("labelTotalValue")).GetAttribute("Name");

            McFunctions.SearchElementByNameAndClick("OK");

            McFunctions.CloseWindow("Cobranças do título");

            McFunctions.FinalizarAtendimentoTitulo();
            McFunctions.CloseWindow("Central de Atendimento");

            Assert.AreEqual(billingValue, generatedBilling, "Valor previsto foi o valor gerado");
        }
示例#24
0
        public void ReemissaoDeRemessa_7483()
        {
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuOperacaoFinanceiroTransacoesBancariasRemessasAnteriores();

            McFunctions.WaitForElementLoad(By.Id("listView"), 15);
            driver.FindElement(By.Id("listView")).FindElements(By.Id(""))[0].Click();

            string fileName = driver.FindElement(By.Id("listView")).FindElements(By.Id(""))[0].GetAttribute("Name");

            McFunctions.SearchElementByIdAndClick("buttonOptions", true);
            McFunctions.SearchElementByNameAndClick("Reemitir", true);

            McFunctions.WaitForElementLoad(By.Id("textBoxFolder"));

            string folderPath = "C:/TestesAutomatizados/TestResults";

            McFunctions.SearchElementByIdAndSendKeys("textBoxFolder", folderPath);

            McFunctions.SearchElementByIdAndClick("buttonOK");

            McFunctions.WaitForElementLoad(By.Name("Concluído"), 10);
            McFunctions.SearchElementByIdAndClick("buttonOK");

            McFunctions.CloseWindow("Diretório Saída Remessa");
            McFunctions.CloseWindow("Remessas anteriores");

            string filePath = folderPath + "/" + fileName;

            Assert.IsTrue(File.Exists(filePath), "Arquivo gerado corretamente");
        }
        public void SimulacaodeGeracaodeCobrancaTodas_6387()
        {
            MultiClubesFunctions mcFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuOperacaoFinanceiroCobrancaSimulacaoDeCobranca();


            mcFunctions.WaitForElementLoad(By.Id("buttonSimulate"));
            driver.FindElement(By.Id("buttonSimulate")).Click();

            mcFunctions.WaitForElementLoad(By.Name("Sim"));
            driver.FindElement(By.Name("Sim")).Click();

            mcFunctions.CheckBillingForecast();

            int counter = 0;

            Thread.Sleep(1000);
            while ((driver.FindElements(By.Name("Simulando...")).Count > 0) && (driver.FindElements(By.Name("OK")).Count < 1) && (counter < 100))
            {
                Console.WriteLine(DateTime.Now.ToString("HH:mm:ss"));
                // Waiting 3 minutes:
                Thread.Sleep(180000);
                counter++;
            }

            Console.WriteLine("Término da simulação de cobrança: {0} (margem de erro menor que 5 minutos)", DateTime.Now.ToString("HH:mm"));

            driver.FindElement(By.Name("OK")).Click();

            mcFunctions.CloseWindow();
        }
        public void GerarCobrancaEmMassaComImportacaoDeConsumoTodas_7031()
        {
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            // Para gerar código para este teste, selecione "Gerar Código para Teste de Interface do Usuário Codificado" no menu de atalho e selecione um dos itens do menu.
            McMenus.AcessarMenuOperacaoFinanceiroCobrancaGeracaoDeCobranca();

            McFunctions.WaitForElementLoad(By.Id("OPERATION_FINANCIAL+DUN+DUN_GENERATION"));

            McFunctions.SearchElementByIdAndClick("buttonGenerate");
            McFunctions.SearchElementByNameAndClick("Sim", true);

            McFunctions.CheckBillingForecast();
            McFunctions.WaitBillingGeneration();
        }
        public void InclusaoDeMapaDeOcupacao_9265()
        {
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            string ocupationMapName = "Mapa de ocupação criado em " + DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss");

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            // Para gerar código para este teste, selecione "Gerar Código para Teste de Interface do Usuário Codificado" no menu de atalho e selecione um dos itens do menu.
            McMenus.AcessarMenuAdministracaoMapasDeOcupacao();

            IWebElement listViewElement = driver.FindElement(By.Id("listView"));

            new Actions(driver).MoveToElement(listViewElement).ContextClick(listViewElement).Build().Perform();
            driver.FindElement(By.Name("Incluir")).Click();

            McFunctions.WaitForElementLoad(By.Id("textBoxName"));
            McFunctions.SearchElementByIdAndSendKeys("textBoxName", ocupationMapName);

            McFunctions.SearchElementByIdAndClick("buttonOK");
            McFunctions.TreatWaitScreen();

            bool createdAcessControl = false;

            if (listViewElement.FindElements(By.Name(ocupationMapName)).Count > 0)
            {
                createdAcessControl = true;
            }

            McFunctions.CloseWindow("Mapas de ocupação");

            Assert.IsTrue(createdAcessControl, "Mapa de ocupação criado");
        }
示例#28
0
        public void ImpressaoDeBoletoEmMassa_8685()
        {
            MultiClubesFunctions mcFunctions = new MultiClubesFunctions();
            MultiClubesMenus     mcMenus     = new MultiClubesMenus();

            string folderPath = "C:/TestesAutomatizados/TestResults";
            string fileName   = string.Empty;
            string filePath   = folderPath + "/" + fileName;

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            mcMenus.AcessarMenuOperacaoFinanceiroTransacoesBancariasImpressaoDeBoleto();

            this.UIMap.AcessarArquivoDeRemessa();

            //mcFunctions.SearchElementByIdAndClick("buttonPrint");

            //mcFunctions.CloseWindow("Impressão de boleto");
        }
        public void GerarCobrancaEmMassaSemImportacaoDeConsumoTodas6283Metodo()
        {
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuOperacaoFinanceiroCobrancaGeracaoDeCobranca();

            //this.UIMap.DesabilitarOpcaoImportarConsumosAte();
            McFunctions.SearchElementByIdAndClick("checkBoxConsumption");

            //this.UIMap.ClicarBotaoGeracaoCobranca();
            McFunctions.SearchElementByIdAndClick("buttonGenerate");
            McFunctions.SearchElementByNameAndClick("Sim");

            McFunctions.CheckBillingForecast();

            //McFunctions.WaitBillingGeneration();
        }
        public void DesfazerCobrancaIndividual_7695()
        {
            MultiClubesFunctions McFunctions = new MultiClubesFunctions();
            MultiClubesMenus     McMenus     = new MultiClubesMenus();

            var dc = new DesiredCapabilities();

            dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application");
            dc.SetCapability("debugConnectToRunningApp", true);
            RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:9999"), dc);

            McMenus.AcessarMenuOperacaoTituloCentralDeAtendimento();
            McFunctions.SearchHolder("A28248");

            McFunctions.AcessarCobrancasAtivas();

            McFunctions.WaitForElementLoad(By.Id("listViewYear"));
            driver.FindElement(By.Id("listViewYear")).FindElements(By.Id(""))[0].Click();

            McFunctions.WaitForElementLoad(By.Id("listViewDun"));
            var listViewDunElements = driver.FindElement(By.Id("listViewDun")).FindElements(By.Id(""));

            int counter = 0;

            foreach (IWebElement i in listViewDunElements)
            {
                if (i.GetAttribute("Name") == "")
                {
                    break;
                }
                counter++;
            }
            string billing = listViewDunElements[counter - 3].GetAttribute("Name");

            listViewDunElements[counter - 3].Click();

            new Actions(driver).DoubleClick(listViewDunElements[counter - 3]).Build().Perform();

            McFunctions.SearchElementByIdAndClick("buttonOptions");

            McFunctions.SearchElementByNameAndClick("Desfazer cobrança");

            McFunctions.SearchElementByNameAndClick("Sim");

            if (driver.FindElements(By.Name("Informação")).Count > 0)
            {
                McFunctions.SearchElementByNameAndClick("OK");
                McFunctions.SearchElementByNameAndClick("Erros");
            }

            McFunctions.SearchElementByNameAndClick("OK", true);

            McFunctions.WaitForElementLoad(By.Id("listViewDun"));

            bool undoneBilling = true;

            if (driver.FindElement(By.Id("listViewDun")).FindElements(By.Name(billing)).Count > 0)
            {
                undoneBilling = false;
            }
            McFunctions.CloseWindow("Cobranças ativas");
            McFunctions.FinalizarAtendimentoTitulo();
            McFunctions.CloseWindow("Central de atendimento");

            Assert.IsTrue(undoneBilling, "Cobrança desfeita");
        }