Course Code: unittest
Duration: 21 hours
Prerequisites:
  • 了解 Dot Net 基础知识

观众

  • 软件测试人员
Overview:

MSTest、xUnit 和 nUnit 是单元测试框架。MSTest 以其集成测试而闻名,它是 Microsoft 创建的官方单元测试框架。n单位归因于点网单元测试。xUnit 是专门处理 32 位和 64 位处理,是归因于 Dot Net 的另一个框架。

此讲师指导的现场培训(现场或远程)面向希望使用 MSTest、xUnit 和 nUnit 单元单元测试代码功能的软件测试人员。

培训结束时,学员将能够:

  • 使用 MSTest 创建单元测试以测试软件应用程序。
  • 使用 CodeLens 显示测试结果。
  • 了解测试驱动开发的不同测试工具。

课程格式

  • 互动讲座和讨论。
  • 大量的练习和练习。
  • 在实时实验室环境中实际实现。

课程自定义选项

  • 如需申请本课程的定制培训,请联系我们安排。
Course Outline:

介绍

Unit Testing 框架

  • 什么是单元测试?
  • 单元测试框架的基础知识

测试驱动开发

  • 重构概述
  • 不同的测试方法

准备开发环境

  • 安装和配置 Visual Studio Code
  • 安装和配置 .Net
  • 安装和配置 nUnit

编写 Unit Testing 框架

  • 创建测试
  • 应用更多测试
  • 重构测试运行程序
  • 使用 assert 类
  • 反映调用方法
  • 使用命名约定

Visual Studio Code 集成

  • 使用模板创建项目
  • 使用单元测试框架创建项目
  • 运行测试
  • 优化代码
  • 测试参数

n单位

  • 编写和运行测试单元
  • 使用约束
  • 测试参数

x单位

  • 编写和运行单元测试
  • 使用 InLine 测试参数
  • 测试多个参数
  • 使用自定义类成员

高级优化

  • 对测试进行分组
  • 使用测试属性
  • 使用播放列表进行自定义
  • 调试测试
  • 使用测试菜单
  • 使用 CodeLens 查看结果
  • 使用代码覆盖率
  • 使用 MSTest 运行测试

总结和结论

Sites Published:

United Arab Emirates - Unit Testing: MSTest, xUnit, and nUnit

Qatar - Unit Testing: MSTest, xUnit, and nUnit

Egypt - Unit Testing: MSTest, xUnit, and nUnit

Saudi Arabia - Unit Testing: MSTest, xUnit, and nUnit

South Africa - Unit Testing: MSTest, xUnit, and nUnit

Brasil - Unit Testing: MSTest, xUnit, and nUnit

Canada - Unit Testing: MSTest, xUnit, and nUnit

中国 - Unit Testing: MSTest, xUnit, and nUnit

香港 - Unit Testing: MSTest, xUnit, and nUnit

澳門 - Unit Testing: MSTest, xUnit, and nUnit

台灣 - Unit Testing: MSTest, xUnit, and nUnit

USA - Unit Testing: MSTest, xUnit, and nUnit

Österreich - Unit Testing: MSTest, xUnit, and nUnit

Schweiz - Unit Testing: MSTest, xUnit, and nUnit

Deutschland - Unit Testing: MSTest, xUnit, and nUnit

Czech Republic - Unit Testing: MSTest, xUnit, and nUnit

Denmark - Unit Testing: MSTest, xUnit, and nUnit

Estonia - Unit Testing: MSTest, xUnit, and nUnit

Finland - Unit Testing: MSTest, xUnit, and nUnit

Greece - Unit Testing: MSTest, xUnit, and nUnit

Magyarország - Unit Testing: MSTest, xUnit, and nUnit

Ireland - Unit Testing: MSTest, xUnit, and nUnit

Luxembourg - Unit Testing: MSTest, xUnit, and nUnit

Latvia - Unit Testing: MSTest, xUnit, and nUnit

España - Unit Testing: MSTest, xUnit, and nUnit

Italia - Unit Testing: MSTest, xUnit, and nUnit

Lithuania - Unit Testing: MSTest, xUnit, and nUnit

Nederland - Unit Testing: MSTest, xUnit, and nUnit

Norway - Unit Testing: MSTest, xUnit, and nUnit

Portugal - Unit Testing: MSTest, xUnit, and nUnit

România - Unit Testing: MSTest, xUnit, and nUnit

Sverige - Unit Testing: MSTest, xUnit, and nUnit

Türkiye - Unit Testing: MSTest, xUnit, and nUnit

Malta - Unit Testing: MSTest, xUnit, and nUnit

Belgique - Unit Testing: MSTest, xUnit, and nUnit

France - Unit Testing: MSTest, xUnit, and nUnit

日本 - Unit Testing: MSTest, xUnit, and nUnit

Australia - Unit Testing: MSTest, xUnit, and nUnit

Malaysia - Unit Testing: MSTest, xUnit, and nUnit

New Zealand - Unit Testing: MSTest, xUnit, and nUnit

Philippines - Unit Testing: MSTest, xUnit, and nUnit

Singapore - Unit Testing: MSTest, xUnit, and nUnit

Thailand - Unit Testing: MSTest, xUnit, and nUnit

Vietnam - Unit Testing: MSTest, xUnit, and nUnit

India - Unit Testing: MSTest, xUnit, and nUnit

Argentina - Unit Testing: MSTest, xUnit, and nUnit

Chile - Unit Testing: MSTest, xUnit, and nUnit

Costa Rica - Unit Testing: MSTest, xUnit, and nUnit

Ecuador - Unit Testing: MSTest, xUnit, and nUnit

Guatemala - Unit Testing: MSTest, xUnit, and nUnit

Colombia - Unit Testing: MSTest, xUnit, and nUnit

México - Unit Testing: MSTest, xUnit, and nUnit

Panama - Unit Testing: MSTest, xUnit, and nUnit

Peru - Unit Testing: MSTest, xUnit, and nUnit

Uruguay - Unit Testing: MSTest, xUnit, and nUnit

Venezuela - Unit Testing: MSTest, xUnit, and nUnit

Polska - Unit Testing: MSTest, xUnit, and nUnit

United Kingdom - Unit Testing: MSTest, xUnit, and nUnit

South Korea - Unit Testing: MSTest, xUnit, and nUnit

Pakistan - Unit Testing: MSTest, xUnit, and nUnit

Sri Lanka - Unit Testing: MSTest, xUnit, and nUnit

Bulgaria - Unit Testing: MSTest, xUnit, and nUnit

Bolivia - Unit Testing: MSTest, xUnit, and nUnit

Indonesia - Unit Testing: MSTest, xUnit, and nUnit

Kazakhstan - Unit Testing: MSTest, xUnit, and nUnit

Moldova - Unit Testing: MSTest, xUnit, and nUnit

Morocco - Unit Testing: MSTest, xUnit, and nUnit

Tunisia - Unit Testing: MSTest, xUnit, and nUnit

Kuwait - Unit Testing: MSTest, xUnit, and nUnit

Oman - Unit Testing: MSTest, xUnit, and nUnit

Slovakia - Unit Testing: MSTest, xUnit, and nUnit

Kenya - Unit Testing: MSTest, xUnit, and nUnit

Nigeria - Unit Testing: MSTest, xUnit, and nUnit

Botswana - Unit Testing: MSTest, xUnit, and nUnit

Slovenia - Unit Testing: MSTest, xUnit, and nUnit

Croatia - Unit Testing: MSTest, xUnit, and nUnit

Serbia - Unit Testing: MSTest, xUnit, and nUnit

Bhutan - Unit Testing: MSTest, xUnit, and nUnit

Nepal - Unit Testing: MSTest, xUnit, and nUnit

Uzbekistan - Unit Testing: MSTest, xUnit, and nUnit