コード例 #1
0
        public void SetUp()
        {
            ExtentReportHelpers.AddTest();
            DriverFactory.CreateInstance();
            DriverFactory.INSTANCE.Manage().Window.Maximize();
            DriverFactory.INSTANCE.Navigate().GoToUrl(Properties.Settings.Default.DEFAUL_APPLICATION_URL);

            #region [AutoInstance] atribute methods calls to auto instace pages and flows
            //Necessário para realizar a instanciação automática das páginas e fluxos
            this.ProxyGenerator = new ProxyGenerator();
            InjectPageObjects(CollectPageObjects(), null);
            #endregion
        }
コード例 #2
0
ファイル: TestBase.cs プロジェクト: gerrysousa/Anki_NetCore
        public void OneTimeSetUp()
        {
            ExtentReportHelpers.CreateReport();
            DriverFactory.CreateInstance();
            ExtentReportHelpers.AddTest();
            DriverFactory.INSTANCE.Navigate().GoToUrl(GlobalParameters.CONFIG_DEFAULT_APPLICATION_URL);

            #region [AutoInstance] atribute methods calls to auto instace pages and flows
            //Necessário para realizar a instanciação automática das páginas e fluxos
            this.ProxyGenerator = new ProxyGenerator();
            InjectPageObjects(CollectPageObjects(), null);
            #endregion
        }
コード例 #3
0
        public void SetUp()
        {
            ExtentReportHelpers.AddTest();
            DriverFactory.CreateInstance();

            wait = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(GlobalParameters.CONFIG_DEFAULT_TIMEOUT_IN_SECONDS));

            #region [AutoInstance] atribute methods calls to auto instace pages and flows
            //Necessário para realizar a instanciação automática das páginas e fluxos
            this.ProxyGenerator = new ProxyGenerator();
            InjectPageObjects(CollectPageObjects(), null);
            #endregion
        }
コード例 #4
0
        public void SetUp()
        {
            //Limpa base se necessario retornar
            MassaStartDBSteps.ClearMassaDeTestsDB();
            //Criar projeto via Querie ao iniciar execução
            //GerenciarProjetosDBSteps.CriarProjetoViaQuerieBD("Sprint Automacao " + GeneralHelpers.ReturnStringWithRandomNumbers(4),Automacao Web B2 -");
            MassaStartDBSteps.CriaMassaDeTestesDB();

            ExtentReportHelpers.AddTest();
            DriverFactory.CreateInstance();
            DriverFactory.INSTANCE.Manage().Window.Maximize();
            DriverFactory.INSTANCE.Navigate().GoToUrl(ConfigurationManager.AppSettings["base_url"].ToString());

            #region [AutoInstance] atribute methods calls to auto instace pages and flows
            //Necessário para realizar a instanciação automática das páginas e fluxos
            this.ProxyGenerator = new ProxyGenerator();
            InjectPageObjects(CollectPageObjects(), null);
            #endregion
        }
コード例 #5
0
        public void NavegadorChrome()
        {
            #region
            string nomeProjeto = "Project " + GeneralHelpers.ReturnStringWithRandomNumbers(3);
            string descricao   = "Descrição gerada através de execução automática";
            #endregion

            ProjectsDBSteps.CreateProject(nomeProjeto, descricao);

            ExtentReportHelpers.AddTest();
            DriverFactory.CreateInstance();

            DriverFactory.INSTANCE.Url = "http://192.168.99.100:8989/login_page.php";
            DriverFactory.INSTANCE.Manage().Window.Maximize();

            #region [AutoInstance] atribute methods calls to auto instace pages and flows
            //Necessário para realizar a instanciação automática das páginas e fluxos
            this.ProxyGenerator = new ProxyGenerator();
            InjectPageObjects(CollectPageObjects(), null);
            #endregion
        }
コード例 #6
0
ファイル: TestBase.cs プロジェクト: diegotegs/Projeto_Mantis2
        public void SetUp()
        {
            //Zera algumas tabelas do banco ao iniciar um teste
            DeleteChargesDBSteps.SetUpDB();
            //cria um projeto ao iniciar um teste
            ProjectDBSteps.CriarProjetoBD("Test " + GeneralHelpers.ReturnStringWithRandomCharacters(3),
                                          "Descricao " + GeneralHelpers.ReturnStringWithRandomCharacters(3));

            ExtentReportHelpers.AddTest();
            DriverFactory.CreateInstance();
            DriverFactory.INSTANCE.Manage().Window.Maximize();
            DriverFactory.INSTANCE.Navigate().GoToUrl(Properties.Settings.Default.DEFAUL_APPLICATION_URL);



            #region [AutoInstance] atribute methods calls to auto instace pages and flows
            //Necessário para realizar a instanciação automática das páginas e fluxos
            this.ProxyGenerator = new ProxyGenerator();
            InjectPageObjects(CollectPageObjects(), null);
            #endregion
        }
コード例 #7
0
 public void Setup()
 {
     ExtentReportHelpers.AddTest();
     DriverFactory.CreateInstance();
     DriverFactory.INSTANCE.Navigate().GoToUrl(BuilderJson.ReturnParameterAppSettings("DEFAULT_APPLICATION_URL"));
 }
コード例 #8
0
 public void SetUp()
 {
     ExtentReportHelpers.AddTest();
 }
コード例 #9
0
        //issueDefaultParameters.description = "Teste Inserção Parâmetro"; //precisar inserir informação diferente da defaul
        //string variable = Environment.GetEnvironmentVariable("\\nomedavariaveldeambiente"); //retorna uma variável de ambiente criada
        #endregion parametersandinstance

        #region constructor
        public CreateIssueTests(ITestOutputHelper output) : base(output)
        {
            XunitContext.EnableExceptionCapture();
            ExtentReportHelpers.AddTest(Context.MethodName, Context.ClassName);
            tokenNumber.GenerateToken(out token); //váriaveis out no lugar de array
        }
コード例 #10
0
 public FindIssueTests(ITestOutputHelper output) : base(output)
 {
     XunitContext.EnableExceptionCapture();
     ExtentReportHelpers.AddTest(Context.MethodName, Context.ClassName);
     tokenNumber.GenerateToken(out token);
 }
コード例 #11
0
 public static void BeforeScenario()
 {
     ExtentReportHelpers.AddTest();
 }
コード例 #12
0
 public void Setup()
 {
     ExtentReportHelpers.AddTest(); //Ciar o Report com os dados do teste
     DriverFactory.CreateInstance();
     DriverFactory.INSTANCE.Navigate().GoToUrl(ConfigurationManager.AppSettings["URL"].ToString());
 }
コード例 #13
0
 public void SetUp()
 {
     ProjetoDBSteps.LimparProjeto();
     ExtentReportHelpers.AddTest();
     ProjetoDBSteps.CriarProjeto();
 }