TestCaseEventArgs 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TestCaseEventArgs(DataCollectionContext, ITestElement, TcmInformation)
TestCaseEventArgs使用提供的信息初始化类的新实例。
protected:
TestCaseEventArgs(Microsoft::VisualStudio::TestTools::Execution::DataCollectionContext ^ context, Microsoft::VisualStudio::TestTools::Common::ITestElement ^ testElement, Microsoft::VisualStudio::TestTools::Common::TcmInformation ^ tcmInformation);
protected TestCaseEventArgs (Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext context, Microsoft.VisualStudio.TestTools.Common.ITestElement testElement, Microsoft.VisualStudio.TestTools.Common.TcmInformation tcmInformation);
new Microsoft.VisualStudio.TestTools.Execution.TestCaseEventArgs : Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext * Microsoft.VisualStudio.TestTools.Common.ITestElement * Microsoft.VisualStudio.TestTools.Common.TcmInformation -> Microsoft.VisualStudio.TestTools.Execution.TestCaseEventArgs
Protected Sub New (context As DataCollectionContext, testElement As ITestElement, tcmInformation As TcmInformation)
参数
- context
- DataCollectionContext
- testElement
- ITestElement
由对象表示的当前测试元素 ITestElement 。
- tcmInformation
- TcmInformation
一个 TcmInformation 对象,该对象用于从测试管理器获取有关测试的更多数据。
适用于
TestCaseEventArgs(DataCollectionContext, Guid, TcmInformation, String, Boolean)
TestCaseEventArgs使用给定的信息初始化类的新实例。
protected:
TestCaseEventArgs(Microsoft::VisualStudio::TestTools::Execution::DataCollectionContext ^ context, Guid testCaseId, Microsoft::VisualStudio::TestTools::Common::TcmInformation ^ tcmInformation, System::String ^ testCaseName, bool isChildTestCase);
protected TestCaseEventArgs (Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext context, Guid testCaseId, Microsoft.VisualStudio.TestTools.Common.TcmInformation tcmInformation, string testCaseName, bool isChildTestCase);
new Microsoft.VisualStudio.TestTools.Execution.TestCaseEventArgs : Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext * Guid * Microsoft.VisualStudio.TestTools.Common.TcmInformation * string * bool -> Microsoft.VisualStudio.TestTools.Execution.TestCaseEventArgs
Protected Sub New (context As DataCollectionContext, testCaseId As Guid, tcmInformation As TcmInformation, testCaseName As String, isChildTestCase As Boolean)
参数
- context
- DataCollectionContext
- testCaseId
- Guid
由对象表示的当前测试用例 ID ITestElement 。
- tcmInformation
- TcmInformation
一个 TcmInformation 对象,该对象用于从测试管理器获取有关测试的更多数据。
- testCaseName
- String
测试用例的名称。
- isChildTestCase
- Boolean
如果当前测试用例是另一个测试用例的子级,则为 true。