Skip to content
Jakub Raczek edited this page May 6, 2016 · 8 revisions
namespace Objectivity.Test.Automation.Tests.NUnit.Tests
{
    using System.Collections.Generic;

    using global::NUnit.Framework;

    using Objectivity.Test.Automation.Common;
    using Objectivity.Test.Automation.Tests.NUnit.DataDriven;
    using Objectivity.Test.Automation.Tests.PageObjects.PageObjects.TheInternet;

    [TestFixture]
    [Parallelizable(ParallelScope.Fixtures)]
    public class HerokuappTestsNUnit : ProjectTestBase
    {
    [TestFixture]
    public class HerokuappTestsNUnit : ProjectTestBase
    {

        [Test]
        public void FormAuthenticationPageTest()
        {
            new InternetPage(this.DriverContext).OpenHomePage().GoToFormAuthenticationPage();

            var formFormAuthentication = new FormAuthenticationPage(this.DriverContext);
            formFormAuthentication.EnterUserName("tomsmith");
            formFormAuthentication.EnterPassword("SuperSecretPassword!");
            formFormAuthentication.LogOn();
            Verify.That(
                this.DriverContext,
                () => Assert.AreEqual("You logged into a secure area!", formFormAuthentication.GetMessage));
        }
    }
}
Clone this wiki locally