Beispiel #1
0
        static void Main(string[] args)
        {
            var dataProvider = new DataProvider();
            var ActiveList = dataProvider.GetClientOrgList();
            int processed = 0;
            var clientOrgs = dataProvider.GetClientOrgList();
            Program test = new Program();

            foreach (var activeFlags in ActiveList)
            {
                ++processed;
                _activeFlag = activeFlags;
                if (processed == Convert.ToInt16(clientOrgs.Count)) break;


                if (_activeFlag.Active == true)
                {
                    try
                    {
                        //Get List of clients
                        TestResultUtility testResultUtility = new TestResultUtility();
                       

                        foreach (var client in clientOrgs)
                        {
                            _currentClient = client;
                            InitTests(test);
                            ServiceLineExplorertests(test);
                            PatientExplorerTests(test);
                            CommunityExplorerTests(test);
                            GeographicExplorerTests(test);
                            FacilityExplorerTests(test);
                            test.TearDown();

                        }
                        
                        Console.WriteLine("Failed Test Count: {0}", test.ExceptionList.Count);
                        Environment.Exit(test.ExceptionList.Count);

                    }
                    catch (Exception e)
                    {
                        

                    }
                }


                else
                {

                }


            }
        }
Beispiel #2
0
        public void TearDown()
        {
            var dataProvider = new DataProvider();
            var clientOrgs = dataProvider.GetClientOrgList();
            Program test = new Program();

            foreach (var client in clientOrgs)
            {

                var filename = string.Format("{0}.html", _currentClient.Name);
                testResultUtility.EndTestResultString();
                testResultUtility.WriteToHtmlFile(testResultUtility.testResultHtmlString.ToString(), filename);
                PropertiesCollection.driver.Quit();
            }
        }