在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → C#借助Code UI Automation实现黑盒自动化测试工具.rar

C#借助Code UI Automation实现黑盒自动化测试工具.rar

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:3.20M
  • 下载次数:8
  • 浏览次数:139
  • 发布时间:2021-11-24
  • 实例类别:一般编程问题
  • 发 布 人:js2021
  • 文件格式:.rar
  • 所需积分:2
 

实例介绍

【实例简介】
1:使用Code UI Automation来录制手工操作UI的动作,让VS根据这些操作自动生成测试代码; 2:新建WINFORM项目(也即黑盒工具),在这个WINFORM项目调用这些自动生成的代码;
【实例截图】
【核心代码】
4744302542909149130.rar
└── WindowsFormsApplicationTest
├── Local.testsettings
├── TestProject1
│   ├── bin
│   │   ├── Debug
│   │   │   ├── Microsoft.VisualStudio.TestTools.TestSettings.Common.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.TestSettings.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.IE.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.MSAA.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.Uia.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Framework.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Playback.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Recorder.dll
│   │   │   ├── TestProject1.dll
│   │   │   ├── TestProject1.pdb
│   │   │   ├── WindowsFormsApplication1.exe
│   │   │   ├── WindowsFormsApplication1.pdb
│   │   │   └── zh-Hans
│   │   │   ├── Microsoft.VisualStudio.TestTools.TestSettings.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.IE.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.MSAA.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.Uia.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Framework.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Playback.resources.dll
│   │   │   └── Microsoft.VisualStudio.TestTools.UITest.Recorder.resources.dll
│   │   └── Release
│   ├── CodedUITest1.cs
│   ├── CodedUITest2.cs
│   ├── obj
│   │   └── Debug
│   │   ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   ├── ResolveAssemblyReference.cache
│   │   ├── TempPE
│   │   ├── TestProject1.csproj.FileListAbsolute.txt
│   │   ├── TestProject1.dll
│   │   └── TestProject1.pdb
│   ├── Properties
│   │   └── AssemblyInfo.cs
│   ├── StudentBizTest.cs
│   ├── TestInit.cs
│   ├── testprg.snk
│   ├── TestProject1.csproj
│   ├── UIMap.cs
│   ├── UIMap.Designer.cs
│   └── UIMap.uitest
├── TestResults
│   ├── Administrator_LMJ-PC 2010-11-08 15_37_57.trx
│   ├── Administrator_LMJ-PC 2010-11-10 16_30_25
│   │   └── In
│   │   └── a83392d8-422f-485b-8c98-96df98b163aa
│   │   └── LMJ-PC
│   │   └── CodedUITestMethod1.png
│   ├── Administrator_LMJ-PC 2010-11-10 16_30_25.trx
│   ├── Administrator_LMJ-PC 2010-11-10 16_31_45
│   │   └── In
│   │   └── e8a9ae59-ab8d-4ccd-b5e2-7ea59621a890
│   │   └── LMJ-PC
│   │   └── CodedUITestMethod1.png
│   ├── Administrator_LMJ-PC 2010-11-10 16_31_45.trx
│   ├── Administrator_LMJ-PC 2010-11-10 16_40_11
│   │   └── In
│   │   └── c5b74126-c032-47ea-83c1-beeba9bd7e10
│   │   └── LMJ-PC
│   │   └── CodedUITestMethod1.png
│   ├── Administrator_LMJ-PC 2010-11-10 16_40_11.trx
│   ├── Administrator_LMJ-PC 2010-11-10 16_41_33.trx
│   ├── Administrator_LMJ-PC 2010-11-10 17_30_27.trx
│   ├── Administrator_LMJ-PC 2010-11-10 17_53_17
│   │   ├── In
│   │   │   └── LMJ-PC
│   │   └── Out
│   │   └── AgentRestart.dat
│   ├── Administrator_LMJ-PC 2010-11-10 17_53_17.trx
│   ├── Administrator_LMJ-PC 2010-11-10 17_59_18.trx
│   ├── Administrator_LMJ-PC 2010-11-10 18_01_55
│   │   ├── In
│   │   │   └── LMJ-PC
│   │   └── Out
│   │   └── AgentRestart.dat
│   ├── Administrator_LMJ-PC 2010-11-10 18_01_55.trx
│   ├── Administrator_LMJ-PC 2010-11-10 18_10_28
│   │   ├── In
│   │   │   └── LMJ-PC
│   │   └── Out
│   │   └── AgentRestart.dat
│   ├── Administrator_LMJ-PC 2010-11-10 18_10_28.trx
│   ├── Administrator_LMJ-PC 2010-11-11 09_46_01
│   │   ├── In
│   │   │   └── LMJ-PC
│   │   └── Out
│   │   └── AgentRestart.dat
│   ├── Administrator_LMJ-PC 2010-11-11 09_46_01.trx
│   ├── Administrator_LMJ-PC 2010-11-12 17_40_53.trx
│   ├── Administrator_LMJ-PC 2010-11-17 15_06_37
│   │   └── In
│   │   └── b9cef991-819e-4c5f-b1e2-9bae8a1aa2db
│   │   └── LMJ-PC
│   │   └── CodedUITestMethod1.png
│   ├── Administrator_LMJ-PC 2010-11-17 15_06_37.trx
│   └── Administrator_LMJ-PC 2010-11-17 15_08_06.trx
├── TraceAndTestImpact.testsettings
├── WindowsFormsApplication1
│   ├── betestprg.snk
│   ├── bin
│   │   ├── Debug
│   │   │   ├── WindowsFormsApplication1.exe
│   │   │   ├── WindowsFormsApplication1.pdb
│   │   │   └── WindowsFormsApplication1.vshost.exe
│   │   └── Release
│   │   ├── WindowsFormsApplication1.exe
│   │   ├── WindowsFormsApplication1.pdb
│   │   ├── WindowsFormsApplication1.vshost.exe
│   │   └── WindowsFormsApplication1.vshost.exe.manifest
│   ├── FormTobeTest.cs
│   ├── FormTobeTest.Designer.cs
│   ├── FormTobeTest.resx
│   ├── obj
│   │   └── x86
│   │   ├── Debug
│   │   │   ├── DesignTimeResolveAssemblyReferences.cache
│   │   │   ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   │   ├── GenerateResource.read.1.tlog
│   │   │   ├── GenerateResource.write.1.tlog
│   │   │   ├── TempPE
│   │   │   ├── WindowsFormsApplication1.csproj.FileListAbsolute.txt
│   │   │   ├── WindowsFormsApplication1.exe
│   │   │   ├── WindowsFormsApplication1.Form1.resources
│   │   │   ├── WindowsFormsApplication1.FormTobeTest.resources
│   │   │   ├── WindowsFormsApplication1.pdb
│   │   │   ├── WindowsFormsApplication1.Properties.Resources.resources
│   │   │   └── WindowsFormsToBeTest.csproj.FileListAbsolute.txt
│   │   └── Release
│   │   ├── DesignTimeResolveAssemblyReferences.cache
│   │   ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   ├── GenerateResource.read.1.tlog
│   │   ├── GenerateResource.write.1.tlog
│   │   ├── TempPE
│   │   ├── WindowsFormsApplication1.csproj.FileListAbsolute.txt
│   │   ├── WindowsFormsApplication1.exe
│   │   ├── WindowsFormsApplication1.Form1.resources
│   │   ├── WindowsFormsApplication1.pdb
│   │   └── WindowsFormsApplication1.Properties.Resources.resources
│   ├── Program.cs
│   ├── Properties
│   │   ├── AssemblyInfo.cs
│   │   ├── Resources.Designer.cs
│   │   ├── Resources.resx
│   │   ├── Settings.Designer.cs
│   │   └── Settings.settings
│   ├── StudentBiz.cs
│   └── WindowsFormsToBeTest.csproj
├── WindowsFormsApplication2
│   ├── app.config
│   ├── bin
│   │   ├── Debug
│   │   │   ├── Microsoft.Office.Interop.MSProject.dll
│   │   │   ├── Microsoft.TeamFoundation.TestManagement.Controller.dll
│   │   │   ├── Microsoft.VisualStudio.QualityTools.CodedUITestFramework.dll
│   │   │   ├── Microsoft.VisualStudio.QualityTools.OperationalStore.ClientHelper.dll
│   │   │   ├── Microsoft.VisualStudio.QualityTools.Sqm.dll
│   │   │   ├── Microsoft.VisualStudio.QualityTools.WarehouseCommon.dll
│   │   │   ├── Microsoft.VisualStudio.TeamSystem.Common.dll
│   │   │   ├── Microsoft.VisualStudio.TeamSystem.Integration.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.TestSettings.Common.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.TestSettings.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Common.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.IE.Communication.Interop.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.IE.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.MSAA.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.Uia.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Framework.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITesting.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Playback.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Recorder.dll
│   │   │   ├── TestProject1.dll
│   │   │   ├── TestProject1.pdb
│   │   │   ├── UITestPlaybackResults_WindowsFormsApplication2.htm
│   │   │   ├── UITestPlaybackResults_WindowsFormsApplication2.vshost.htm
│   │   │   ├── WindowsFormsApplication1.exe
│   │   │   ├── WindowsFormsApplication1.pdb
│   │   │   ├── WindowsFormsApplication2.exe
│   │   │   ├── WindowsFormsApplication2.exe.config
│   │   │   ├── WindowsFormsApplication2.pdb
│   │   │   ├── WindowsFormsApplication2.vshost.exe
│   │   │   ├── WindowsFormsApplication2.vshost.exe.config
│   │   │   └── zh-Hans
│   │   │   ├── Microsoft.TeamFoundation.TestManagement.Controller.resources.dll
│   │   │   ├── Microsoft.VisualStudio.QualityTools.CodedUITestFramework.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TeamSystem.Common.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TeamSystem.Integration.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.TestSettings.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Common.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.IE.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.MSAA.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Extension.Uia.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Framework.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITesting.resources.dll
│   │   │   ├── Microsoft.VisualStudio.TestTools.UITest.Playback.resources.dll
│   │   │   └── Microsoft.VisualStudio.TestTools.UITest.Recorder.resources.dll
│   │   └── Release
│   ├── FormMain.cs
│   ├── FormMain.Designer.cs
│   ├── FormMain.resx
│   ├── obj
│   │   └── x86
│   │   └── Debug
│   │   ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   ├── GenerateResource.read.1.tlog
│   │   ├── GenerateResource.write.1.tlog
│   │   ├── ResolveAssemblyReference.cache
│   │   ├── TempPE
│   │   │   └── Properties.Resources.Designer.cs.dll
│   │   ├── WindowsFormsApplication2.csproj.FileListAbsolute.txt
│   │   ├── WindowsFormsApplication2.exe
│   │   ├── WindowsFormsApplication2.Form2.resources
│   │   ├── WindowsFormsApplication2.FormMain.resources
│   │   ├── WindowsFormsApplication2.pdb
│   │   ├── WindowsFormsApplication2.Properties.Resources.resources
│   │   └── WindowsFormsTester.csproj.FileListAbsolute.txt
│   ├── Program.cs
│   ├── Properties
│   │   ├── AssemblyInfo.cs
│   │   ├── Resources.Designer.cs
│   │   ├── Resources.resx
│   │   ├── Settings.Designer.cs
│   │   └── Settings.settings
│   └── WindowsFormsTester.csproj
├── WindowsFormsApplicationTest.sln
├── WindowsFormsApplicationTest.suo
└── WindowsFormsApplicationTest.vsmdi

64 directories, 172 files

标签:

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警