我正在使用脚手架通过 MS Test 和 Selenium 动态生成 UI 测试。我已经很好地生成了 selenium 测试,并且想要生成 .orderedtest 文件来订购测试。.orderedtest 文件是基于 xml 的:
<?xml version="1.0" encoding="UTF-8"?>
<OrderedTest name="CRUD_VendorRemark" storage="c:\users\mikeb\documents\visualstudio2010\projects\edimanagementqa\edimanagement.uitesting\orderedtests\crud_vendorremark.orderedtest" id="ca31cb3f-6802-46c5-9f17-53c3632b6681" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<TestLinks>
<TestLink id="d20974aa-59c6-fb5f-2567-dfff025078f2" name="CreateNew_Invalid_ErrorMessagePresent" storage="..\bin\debug\edimanagement.uitesting.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<TestLink id="2408cc97-59b6-7344-e5e1-0dd05592a6d8" name="CreateNew_Valid_SuccessMessagePresent" storage="..\bin\debug\edimanagement.uitesting.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<TestLink id="02528772-e3b7-3102-893c-808b3b8c50a8" name="Edit_LastItemInvalid_ErrorMessagePresent" storage="..\bin\debug\edimanagement.uitesting.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<TestLink id="1c215986-cfd9-9a57-9049-2f203199461f" name="Edit_LastItemValid_SuccessMessagePresent" storage="..\bin\debug\edimanagement.uitesting.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<TestLink id="16cd31fb-a73b-75b3-a886-48e4b0e4697b" name="Delete_LastItem_SuccessMessagePresent" storage="..\bin\debug\edimanagement.uitesting.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</TestLinks>
</OrderedTest>
id="guid" 似乎引用了各个测试方法,但我在项目的其他任何地方都看不到它。关于如何引用测试的任何见解?.orderedtest文件可以纯粹通过写xml来生成吗?