コード例 #1
0
        public String PegarIssueInserida(String summary)
        {
            //Após inserir uma issue aparece uma tela rapidamente informando o ID da issue

            WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(3));
            SeleniumMaps  Maps   = new SeleniumMaps();
            String        ID     = "";

            try
            {
                Maps.ClicarBotao(LtViewIssues, "");
                Maps.LimparCampo(tfSearch);
                Maps.PreencherCampo(tfSearch, "", summary);
                Maps.ClicarBotao(btFilter, "");
                Maps.ClicarBotao(btPicFilter, "");


                String URL = DriverFactory.INSTANCE.Url; //pegar a URL
                ID = URL.Substring(URL.Length - 4);      //tratamento da URL que contem o ID
            }
            catch (Exception e)
            {
            }



            return(ID);
        }
コード例 #2
0
        public void ProcurarIssue_Vazia()
        {
            SeleniumMaps Maps = new SeleniumMaps();

            try
            {
                Maps.LimparCampo(tfBugId);
                Maps.ClicarBotao(btJump);

                //Assert.AreEqual("A number was expected for bug_id.", _driver.FindElement(By.XPath("//p")).Text);
            }
            catch (Exception e)
            {
            }
        }
コード例 #3
0
        public void AcessarEdicaoIssue(String summary)
        {
            //Após inserir uma issue aparece uma tela rapidamente informando o ID da issue

            WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(3));
            SeleniumMaps  Maps   = new SeleniumMaps();
            String        ID     = "";

            try
            {
                Maps.ClicarBotao(LtViewIssues, "");
                Maps.LimparCampo(tfSearch);
                Maps.PreencherCampo(tfSearch, "", summary);
                Maps.ClicarBotao(btFilter, "");
                Maps.ClicarBotao(btPicFilter, "");
            }
            catch (Exception e)
            {
            }
        }