<commit_before>﻿using System;
using NUnit.Framework;
using OpenQA.Selenium;
using WIQuest.Web.UaTests.Base;

namespace WiQuest.Web.UaTests
{
    [TestFixture("Chrome", "61.0", "Windows 10", "1920x1080", "", "")]
    [TestFixture("Firefox", "55.0", "Windows 10", "1920x1080", "", "")]
    public class UaTestClass : UaTestBaseClass
    {
        public UaTestClass(string browser, string version, string os, string screenResultion, string deviceName, string deviceOrientation) 
            : base(browser, version, os, screenResultion, deviceName, deviceOrientation, applicationName: "WIQuest.Web") { }


        [Test]
        public void RegisterUserTest()
        {
            Driver.Navigate().GoToUrl(BaseUrl + "/WiQuiz/Development/Dev");
            Driver.FindElement(By.LinkText("Zur Anmeldung/Registrierung »")).Click();
            Driver.FindElement(By.LinkText("Register as a new user")).Click();
            Driver.FindElement(By.Id("UserName")).Clear();
            Driver.FindElement(By.Id("UserName")).SendKeys("TestUser");
            Driver.FindElement(By.Id("Password")).Clear();
            Driver.FindElement(By.Id("Password")).SendKeys("<PASSWORD>");
            Driver.FindElement(By.Id("ConfirmPassword")).Clear();
            Driver.FindElement(By.Id("ConfirmPassword")).SendKeys("<PASSWORD>");
            Driver.FindElement(By.CssSelector("input.btn.btn-default")).Click();
            Driver.Navigate().GoToUrl(BaseUrl + "/WiQuiz/Development/Dev");
            Driver.FindElement(By.LinkText("Zur Anmeldung/Registrierung »")).Click();
            Assert.AreEqual("Hello TestUser!", Driver.FindElement(By.CssSelector("a[title=\"Manage\"]")).Text);
        }

        [Test]
        public void LogoutUserTest()
        {
            Driver.Navigate().GoToUrl(BaseUrl + "/WiQuiz/Development/Dev/Quiz/Home");
            Driver.FindElement(By.LinkText("Log off")).Click();
            Driver.FindElement(By.LinkText("Zur Anmeldung/Registrierung »")).Click();
            Assert.AreEqual("Log in.", Driver.FindElement(By.XPath("//h2")).Text);
        }

        [Test]
        public void LoginUserTest()
        {
            Driver.Navigate().GoToUrl(BaseUrl + "/WiQuiz/Development/Dev");
            Driver.FindElement(By.LinkText("Zur Anmeldung/Registrierung »")).Click();
            Driver.FindElement(By.Id("Email")).Clear();
            Driver.FindElement(By.Id("Email")).SendKeys("TestUser");
            Driver.FindElement(By.Id("Password")).Clear();
            Driver.FindElement(By.Id("Password")).SendKeys("<PASSWORD>");
            Driver.FindElement(By.CssSelector("input.btn.btn-default")).Click();
            Assert.AreEqual("Hello TestUser!", Driver.FindElement(By.CssSelector("a[title=\"Manage\"]")).Text);

        }
    }
}
<commit_msg>Path fixed in sample UAT<commit_after>﻿using System;
using NUnit.Framework;
using OpenQA.Selenium;
using WIQuest.Web.UaTests.Base;

namespace WiQuest.Web.UaTests
{
    [TestFixture("Chrome", "61.0", "Windows 10", "1280x720", "", "")]
    [TestFixture("Firefox", "55.0", "Windows 10", "1280x720", "", "")]
    public class UaTestClass : UaTestBaseClass
    {
        public UaTestClass(string browser, string version, string os, string screenResultion, string deviceName, string deviceOrientation) 
            : base(browser, version, os, screenResultion, deviceName, deviceOrientation, applicationName: "WIQuest.Web") { }


        [Test]
        public void RegisterUserTest()
        {
            Driver.Navigate().GoToUrl(BaseUrl);
            Driver.FindElement(By.LinkText("Zur Anmeldung/Registrierung »")).Click();
            Driver.FindElement(By.LinkText("Register as a new user")).Click();
            Driver.FindElement(By.Id("UserName")).Clear();
            Driver.FindElement(By.Id("UserName")).SendKeys("TestUser");
            Driver.FindElement(By.Id("Password")).Clear();
            Driver.FindElement(By.Id("Password")).SendKeys("<PASSWORD>");
            Driver.FindElement(By.Id("ConfirmPassword")).Clear();
            Driver.FindElement(By.Id("ConfirmPassword")).SendKeys("<PASSWORD>");
            Driver.FindElement(By.CssSelector("input.btn.btn-default")).Click();
            Driver.Navigate().GoToUrl(BaseUrl + "/WiQuiz/Development/Dev");
            Driver.FindElement(By.LinkText("Zur Anmeldung/Registrierung »")).Click();
            Assert.AreEqual("Hello TestUser!", Driver.FindElement(By.CssSelector("a[title=\"Manage\"]")).Text);
        }

        [Test]
        public void LogoutUserTest()
        {
            Driver.Navigate().GoToUrl(BaseUrl);
            Driver.FindElement(By.LinkText("Log off")).Click();
            Driver.FindElement(By.LinkText("Zur Anmeldung/Registrierung »")).Click();
            Assert.AreEqual("Log in.", Driver.FindElement(By.XPath("//h2")).Text);
        }

        [Test]
        public void LoginUserTest()
        {
            Driver.Navigate().GoToUrl(BaseUrl);
            Driver.FindElement(By.LinkText("Zur Anmeldung/Registrierung »")).Click();
            Driver.FindElement(By.Id("Email")).Clear();
            Driver.FindElement(By.Id("Email")).SendKeys("TestUser");
            Driver.FindElement(By.Id("Password")).Clear();
            Driver.FindElement(By.Id("Password")).SendKeys("<PASSWORD>");
            Driver.FindElement(By.CssSelector("input.btn.btn-default")).Click();
            Assert.AreEqual("Hello TestUser!", Driver.FindElement(By.CssSelector("a[title=\"Manage\"]")).Text);

        }
    }
}

{'fraction_non_alphanumeric': 0.16821747856230615, 'fraction_numerical': 0.009487319832147418, 'mean_word_length': 3.036818851251841, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '129129', 'n_tokens_mistral': 1710, 'n_tokens_neox': 1644, 'n_words': 219}