REST API Testing with Karate Framework

所在平台: Udemy

课程主页: https://www.udemy.com/course/rest-api-testing-with-karate-framework/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:** 使用 Karate 框架进行 REST API 测试 **课程概述:** 本课程将带领您深入了解 Karate 框架,这是一个开源的通用测试自动化框架,能够对 HTTP 端点进行脚本化调用,并断言 JSON 或 XML 响应是否符合预期。Karate 基于 Java 实现,但测试脚本采用 Gherkin 语言编写,最初是 Cucumber 框架的扩展。 **课程内容亮点:** * **Web 服务基础:** 了解 REST 服务、请求与响应的概念,以及 CRUD 操作。 * **Request 和 Response 格式:** 学习如何处理请求和响应的格式。 * **API 调用实战:** 通过实际示例演示 API 调用。 * **Karate 框架核心功能:** 掌握 GET、POST、PUT、PATCH、DELETE 请求的编写。 * **数据驱动测试:** * 使用 Scenario Outline 进行数据驱动测试。 * 学习动态 Scenario Outline 以实现更灵活的测试。 * **断言:** * 掌握 `match` 关键字进行断言。 * 学习 JSON 数组匹配和 Schema 验证。 * 利用 Fussy Matcher 实现灵活的断言。 * 理解 JSON Path 的使用。 * **标签管理:** * 学习如何使用标签(Tags)来组织和运行测试。 * 了解如何通过系统属性获取标签和 Feature 文件。 * 掌握如何通过标签和 Feature 文件来运行指定的测试。 * 学习如何忽略特定的 Scenario。 * **报告生成:** * 了解 Cucumber 报告的生成。 * 学习 Karate 自带的报告生成功能。 * **身份验证:** * 掌握硬编码凭证(Hard-Coded credentials)及 Token 认证。 * 学习如何使用 JavaScript 文件进行身份验证。 * **CI/CD 集成:** * 介绍 Jenkins 的 CI/CD 概念。 * 学习如何构建 Jenkins Pipeline 和 Multibranch pipeline。 **学习目标:** 通过本课程的学习,您将能够熟练使用 Karate 框架独立完成 REST API 的自动化测试,并了解如何将自动化测试集成到 CI/CD 流程中,从而提高测试效率和软件质量。

课程评论(0条)

课程详情

Karate is an open-source general-purpose test-automation framework that can script calls to HTTP end-points and assert that the JSON or XML responses are as expected. Karate is implemented in Java but test-scripts are written in Gherkin since Karate was originally an extension of the Cucumber framework.Karate is built on top of Cucumber, another BDD testing framework, and shares some of the same concepts. One of these is the use of a Gherkin file, which describes the tested feature. However, unlike Cucumber, tests aren't written in Java and are fully described in the Gherkin file.From this course, you will learn the following concepts.Web Service IntroductionWhat is the REST service?What are Requests and Responses?CRUD operationsRequest and Response formatLive example of API callsKarate Framework GET/POST/PUT/PATCH/DELETE RequestData-Driven with Scenario OutlineDynamic Scenario OutlineCreating Parallel runnerAssertionsUsing matchJSON Array matchingSchema validationFussy matcherJSON PathTagging Tags and Run with tagsHow to ignore a scenarioGetting a tag and feature file from the system propertyReport GenerationCucumber Report GenerationKarate Report GenerationAuthenticationHard-Coded credentials & Token basedUsing the Java Script fileCI/CD - JenkinsJenkins Pipeline ConceptJenkins Multibranch pipeline

课程标签

0人关注该课程

主题相关的课程