コード例 #1
0
 /// <summary>
 /// Initializes the test suite
 /// </summary>
 /// <param name="config">Configure data</param>
 /// <param name="context">Context</param>
 /// <param name="testSuiteName">TestSuite name</param>
 /// <param name="testAssemblyName">Assembley name</param>
 public static void Initialize(
     IConfigurationData config,
     IProtocolTestContext context,
     string testSuiteName,
     string testAssemblyName)
 {
     TestSiteProvider.Initialize(config, context, testSuiteName, testAssemblyName);
 }
コード例 #2
0
 public void Initialize(
     IConfigurationData config,
     string configPath,
     string testSuiteName,
     string testAssemblyName)
 {
     TestSiteProvider.Initialize(config, configPath, testSuiteName, testAssemblyName);
 }
コード例 #3
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="testSuiteName">The test suite name which is used to get test site.</param>
        public PtfOptionParser(string testSuiteName)
        {
            if (string.IsNullOrEmpty(testSuiteName))
            {
                throw new InvalidOperationException("The test suite name cannot be null or empty.");
            }
            if (string.IsNullOrEmpty(testSuiteName.Trim()))
            {
                throw new InvalidOperationException("The test suite name cannot be null or empty.");
            }
            site = TestSiteProvider.GetTestSite(testSuiteName.Trim());

            if (site == null)
            {
                throw new InvalidOperationException(
                          "The test site specified dose not exist, please check whether the name is correct.");
            }
        }
コード例 #4
0
 /// <summary>
 /// Get Protocol Test notify
 /// </summary>
 /// <param name="testSuiteName">TestSuite Name</param>
 /// <returns></returns>
 public static IProtocolTestNotify GetProtocolTestNotify(string testSuiteName)
 {
     return(TestSiteProvider.GetProtocolTestNotify(testSuiteName));
 }
コード例 #5
0
 /// <summary>
 /// Cleanup Test Site
 /// </summary>
 /// <param name="testSuiteName"></param>
 public static void CleanupTestSite(string testSuiteName)
 {
     TestSiteProvider.DisposeTestSite(testSuiteName);
 }
コード例 #6
0
 /// <summary>
 /// TestRun cleanup
 /// </summary>
 public static void TestsRunCleanup()
 {
     TestSiteProvider.Cleanup();
 }
コード例 #7
0
 /// <summary>
 /// GetTestSite
 /// </summary>
 /// <param name="testSuiteName">TestSuite Name</param>
 /// <returns>Test Site</returns>
 public static ITestSite GetTestSite(string testSuiteName)
 {
     return(TestSiteProvider.GetTestSite(testSuiteName));
 }