首页 开发技术 C#     /    C#模仿实现自动化测试架构

C#模仿实现自动化测试架构

上传者: fl815824 | 上传时间:2015/3/8 6:19:03 | 文件大小:112KB | 文件类型:zip
C#模仿实现自动化测试架构
一个简单的自动化测试架构的实现(C#).属性会作为元数据嵌入到程序集,通过反射机制能够得到这些元数据信息。
程序员可以自己定义属性,对属性进行某种格式的定义,并利用属性来影响自己编写代码编译后的程序集(assmbly)自定义属性在编译时作为元数据被编译到程序集中,运行时通过反射机制被读取。
这应该是这个自动化测试架构的立足点。

文件下载

资源详情

[{"title":"(55个子文件112KB)C#模拟实现自动化测试架构","children":[{"title":"PropertyDemoTest","children":[{"title":"PropertyDemoTest","children":[{"title":"Program.cs <span style='color:#111;'>808B</span>","children":null,"spread":false},{"title":"PropertyDemoTest.csproj <span style='color:#111;'>3.00KB</span>","children":null,"spread":false},{"title":"PropertyOperator.cs <span style='color:#111;'>8.72KB</span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'>1.43KB</span>","children":null,"spread":false}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"PropertyDemoTest.pdb <span style='color:#111;'>19.50KB</span>","children":null,"spread":false},{"title":"ResolveAssemblyReference.cache <span style='color:#111;'>4.28KB</span>","children":null,"spread":false},{"title":"PropertyDemoTest.exe <span style='color:#111;'>8.00KB</span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"PropertyDemoTest.csproj.FileListAbsolute.txt <span style='color:#111;'>1.13KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"PropertyDemoTest.csproj.user <span style='color:#111;'>254B</span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"PropertyDemoTest.pdb <span style='color:#111;'>19.50KB</span>","children":null,"spread":false},{"title":"AttributesClass.dll <span style='color:#111;'>5.50KB</span>","children":null,"spread":false},{"title":"AttributesClass.pdb <span style='color:#111;'>29.50KB</span>","children":null,"spread":false},{"title":"PropertyDemoTest.exe <span style='color:#111;'>8.00KB</span>","children":null,"spread":false},{"title":"PropertyDemo.dll <span style='color:#111;'>5.50KB</span>","children":null,"spread":false},{"title":"PropertyDemoTest.vshost.exe <span style='color:#111;'>13.99KB</span>","children":null,"spread":false},{"title":"PropertyDemo.pdb <span style='color:#111;'>37.50KB</span>","children":null,"spread":false},{"title":"PropertyDemoTest.vshost.exe.manifest <span style='color:#111;'>490B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"PropertyDemoTest.suo <span style='color:#111;'>17.50KB</span>","children":null,"spread":false},{"title":"PropertyDemoTest.sln <span style='color:#111;'>938B</span>","children":null,"spread":false}],"spread":true},{"title":"AttributesClass","children":[{"title":"AttributesClass.sln <span style='color:#111;'>935B</span>","children":null,"spread":false},{"title":"AttributesClass.suo <span style='color:#111;'>8.50KB</span>","children":null,"spread":false},{"title":"AttributesClass","children":[{"title":"AttributesClass.csproj <span style='color:#111;'>2.85KB</span>","children":null,"spread":false},{"title":"TestPropertyAttribute.cs <span style='color:#111;'>1008B</span>","children":null,"spread":false},{"title":"PropertyAttribute.cs <span style='color:#111;'>315B</span>","children":null,"spread":false},{"title":"ClassInitializeAttribute.cs <span style='color:#111;'>327B</span>","children":null,"spread":false},{"title":"ClassCleanupAttribute.cs <span style='color:#111;'>321B</span>","children":null,"spread":false},{"title":"DescriptionAttribute.cs <span style='color:#111;'>564B</span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'>1.43KB</span>","children":null,"spread":false}],"spread":true},{"title":"TestClassAttribute.cs <span style='color:#111;'>314B</span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"AttributesClass.dll <span style='color:#111;'>5.50KB</span>","children":null,"spread":false},{"title":"AttributesClass.pdb <span style='color:#111;'>29.50KB</span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"AttributesClass.csproj.FileListAbsolute.txt <span style='color:#111;'>636B</span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"TestMethodAttribute.cs <span style='color:#111;'>317B</span>","children":null,"spread":false},{"title":"PriorityAttribute.cs <span style='color:#111;'>553B</span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"AttributesClass.dll <span style='color:#111;'>5.50KB</span>","children":null,"spread":false},{"title":"AttributesClass.pdb <span style='color:#111;'>29.50KB</span>","children":null,"spread":false},{"title":"AttributesClass.vshost.exe.manifest <span style='color:#111;'>490B</span>","children":null,"spread":false},{"title":"AttributesClass.vshost.exe <span style='color:#111;'>13.99KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"PropertyDemo","children":[{"title":"PropertyDemo.sln <span style='color:#111;'>926B</span>","children":null,"spread":false},{"title":"PropertyDemo.suo <span style='color:#111;'>31.50KB</span>","children":null,"spread":false},{"title":"PropertyDemo","children":[{"title":"DemoTestTwo.cs <span style='color:#111;'>1.39KB</span>","children":null,"spread":false},{"title":"PropertyDemo.csproj <span style='color:#111;'>2.83KB</span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'>1.43KB</span>","children":null,"spread":false}],"spread":true},{"title":"DemoTest.cs <span style='color:#111;'>1.50KB</span>","children":null,"spread":false},{"title":"DemoTestThree.cs <span style='color:#111;'>1.34KB</span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"ResolveAssemblyReference.cache <span style='color:#111;'>2.56KB</span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"PropertyDemo.csproj.FileListAbsolute.txt <span style='color:#111;'>832B</span>","children":null,"spread":false},{"title":"PropertyDemo.dll <span style='color:#111;'>5.50KB</span>","children":null,"spread":false},{"title":"PropertyDemo.pdb <span style='color:#111;'>37.50KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"AttributesClass.dll <span style='color:#111;'>5.50KB</span>","children":null,"spread":false},{"title":"AttributesClass.pdb <span style='color:#111;'>29.50KB</span>","children":null,"spread":false},{"title":"PropertyDemo.vshost.exe <span style='color:#111;'>13.99KB</span>","children":null,"spread":false},{"title":"PropertyDemo.dll <span style='color:#111;'>5.50KB</span>","children":null,"spread":false},{"title":"PropertyDemo.vshost.exe.manifest <span style='color:#111;'>490B</span>","children":null,"spread":false},{"title":"PropertyDemo.pdb <span style='color:#111;'>37.50KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • 努力新人:
    谢谢,群主的共享,非常感谢.2018-03-15
  • lininghongho:
    很好的资源2017-07-24
  • weifuchen1984:
    虽然不是我想要的东西,不过还是谢谢!2015-01-30
  • 张流程:
    怎么不能运行呢?2014-09-11
  • yuntian_zhongyi:
    难道是我机器的原因吗,不能用2014-05-14

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明