// Creates test case class private CXmlDriverScenario CreateTestCase(string name, string desc, CXmlDriverParam param) { CXmlDriverScenario tmp = null; try { //Create this class (call the constructor with no arguments) tmp = new CRWFactoryDriverScenario(); tmp.Name = name; tmp.Desc = desc; tmp.TestModule = TestModule; tmp.XmlDriverParam = param; if (_isRequiredCultureInfoNeedToBeSet) { tmp.RequiredCultureInfo = _requiredCultureInfo; } } catch (Exception e) { throw new CXmlDriverException("XmlDriver: CreateIntance failed for TestCase '" + "CRWFactoryDriverScenario" /*type.Name*/ + "' (" + e.ToString() + ")"); } return(tmp); }
// Creates test case class private CXmlDriverScenario CreateTestCase(string name, string desc, CXmlDriverParam param) { CXmlDriverScenario tmp = null; try { //Create this class (call the constructor with no arguments) tmp = new CRWFactoryDriverScenario(); tmp.Name = name; tmp.Desc = desc; tmp.TestModule = TestModule; tmp.XmlDriverParam = param; if (_isRequiredCultureInfoNeedToBeSet) tmp.RequiredCultureInfo = _requiredCultureInfo; } catch (Exception e) { throw new CXmlDriverException("XmlDriver: CreateIntance failed for TestCase '" + "CRWFactoryDriverScenario"/*type.Name*/ + "' (" + e.ToString() + ")"); } return tmp; }