<commit_before>﻿using NUnit.Framework;
using Selenium.WebDriver.Equip.Server;
using Selenium.WebDriver.Equip.Server.Json;
using Selenium.WebDriver.Equip.Settings;

namespace Selenium.WebDriver.Equip.Tests.Server
{
    [TestFixture]
    [Category(TestCategories.SeleniumServer)]
    [Category(TestCategories.LocalOnly)]
    public class SeleniumServerTests
    {
        public SeleniumServerProxy SeleniumServer;
        public SeleniumServerSettings Settings;

        [SetUp]
        public void Setup()
        {
            Settings = new SeleniumServerSettings { HostName = "localhost", Port = "4444", StandAlonePath = @"C:\Users\Rick\Documents\GitHub2\Selenium.WeDriver.Equip\selenium-server-standalone-3.141.59.jar" };
            SeleniumServer = new SeleniumServerProxy(Settings);
        }

        [TearDown]
        public void TearDown()
        {
            if (SeleniumServer.IsSeleniumServerRunning())
            {
                SeleniumServer.Stop();
                if (!SeleniumServer.WaitUntilStopped())
                    SeleniumServer.ServerProcess.Kill();
            }
        }

        #region single grid

        [Test]
        public void SingleGridStartStopWait()
        {
            SeleniumServer.Start();
            Assert.AreEqual(true, SeleniumServer.WaitUntilRunning());

            SeleniumServer.Stop();
            Assert.AreEqual(true, SeleniumServer.WaitUntilStopped());
        }

        #endregion

        #region node

        //[Test]
        //public void StartNodeByJsonFile()
        //{
        //    // hub
        //    var hubSettings = new SeleniumServerSettings { HostName = "localhost", Port = "5555", StandAlonePath = @"C:\Users\rcasady\Downloads\selenium-server-standalone-2.42.2.jar" };
        //    SeleniumServer.Start();



        //    // node


        //    //SeleniumServer = new ISeleniumServer(hubSettings);<commit_msg>Ignoring test that needs updating<commit_after>﻿using NUnit.Framework;
using Selenium.WebDriver.Equip.Server;
using Selenium.WebDriver.Equip.Server.Json;
using Selenium.WebDriver.Equip.Settings;

namespace Selenium.WebDriver.Equip.Tests.Server
{
    [TestFixture]
    [Category(TestCategories.SeleniumServer)]
    [Category(TestCategories.LocalOnly)]
    public class SeleniumServerTests
    {
        public SeleniumServerProxy SeleniumServer;
        public SeleniumServerSettings Settings;

        [SetUp]
        public void Setup()
        {
            Settings = new SeleniumServerSettings { HostName = "localhost", Port = "4444", StandAlonePath = @"C:\Users\Rick\Documents\GitHub2\Selenium.WeDriver.Equip\selenium-server-standalone-3.141.59.jar" };
            SeleniumServer = new SeleniumServerProxy(Settings);
        }

        [TearDown]
        public void TearDown()
        {
            if (SeleniumServer.IsSeleniumServerRunning())
            {
                SeleniumServer.Stop();
                if (!SeleniumServer.WaitUntilStopped())
                    SeleniumServer.ServerProcess.Kill();
            }
        }

        #region single grid

        [Test]
        [Ignore("Server poxy need to be updated")]
        public void SingleGridStartStopWait()
        {
            SeleniumServer.Start();
            Assert.AreEqual(true, SeleniumServer.WaitUntilRunning());

            SeleniumServer.Stop();
            Assert.AreEqual(true, SeleniumServer.WaitUntilStopped());
        }

        #endregion

        #region node

        //[Test]
        //public void StartNodeByJsonFile()
        //{
        //    // hub
        //    var hubSettings = new SeleniumServerSettings { HostName = "localhost", Port = "5555", StandAlonePath = @"C:\Users\rcasady\Downloads\selenium-server-standalone-2.42.2.jar" };
        //    SeleniumServer.Start();



        //    // node


        //    //SeleniumServer = new ISeleniumServer(hubSettings);
{'fraction_non_alphanumeric': 0.10643244639628004, 'fraction_numerical': 0.009816584861792819, 'mean_word_length': 2.181594083812654, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1216090', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1068, 'n_words': 177}