Exemplo n.º 1
0
        public void CollectSharedParameters()
        {
            string sharedFileName = "Parameter.xml";

            Parameter.Add <string>("SharedXML", sharedFileName);
            var collectionCriteria = new List <string>()
            {
                "/PARAMETER/SHARED", "/PARAMETER/QUESTIONS"
            };

            XmlParameterCollector.Collect(sharedFileName, collectionCriteria);

            // Collect Environment Based
            var environment = Parameter.Get <string>("Environment");
            var client      = Parameter.Get <string>("Client");

            collectionCriteria = new List <string>()
            {
                $"/PARAMETER/CLIENT/{client}/{environment}"
            };
            XmlParameterCollector.Collect(sharedFileName, collectionCriteria);

            // Collect Test Case Specific Parameters
            //this.CollectTestSpecificParameters(TestName);
        }
Exemplo n.º 2
0
        public void CollectTestSpecificParameters(string testName)
        {
            var collectionCriteria = new List <string>()
            {
                $"/PARAMETER/TESTSPECIFIC/{testName.Replace("(", "").Replace(")", "")}"
            };

            XmlParameterCollector.Collect(testParameterFile, collectionCriteria);
        }