Exemplo n.º 1
0
        public void RunTests()
        {
            //loadtestData

            if (testName == "PrintHeadlines")
            {
                this.EnsureNewBrowserInstance();
                if (getAllNewsHeadlines())
                {
                    Results = new TestResults("Print Headlines", "Pass", "Go to http://news.google.com/ and print out all the headlines displayed on the page.", testInformation);
                }
                else
                {
                    Results = new TestResults("Print Headlines", "Fail", "Go to http://news.google.com/ and print out all the headlines displayed on the page.", testInformation);
                }
                Report = new TestReportGenerator(Results);
                Report.generateTestReport();
                SelDriver.ShutDown();
            }
            else if (testName == "BetWayRegistration")
            {
                this.EnsureNewBrowserInstance();
                if (CaptureRegistrationDetails())
                {
                    Results = new TestResults("Betway Account Registration", "Pass", "Go to https://www.betway.co.za and complete a full Registration form on the site.", testInformation);
                }
                else
                {
                    Results = new TestResults("Betway Account Registration", "Fail", "Go to https://www.betway.co.za and complete a full Registration form on the site.", testInformation);
                }
                Report = new TestReportGenerator(Results);
                Report.generateTestReport();
                SelDriver.ShutDown();
            }
        }