|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/webservices-api-testing-with-postmansoapui-restassured/
课程评论:没有评论
课程名称:使用Postman、SoapUI和RestAssured学习API测试 课程概述:掌握后端测试与API自动化 随着数字化时代的发展,网络应用程序越来越依赖于通过网络服务进行无缝通信。现代web服务开发的主导架构——表现层状态转移(REST),已成为其基石。本课程旨在将您培养成熟练的后端测试专家,使您能够在不断发展的IT行业中游刃有余。 **模块1:API测试介绍** - 客户端-服务器架构 - 基本架构的理解 - 客户端和服务器的角色 - API基础知识 - 什么是API? - 为什么需要API测试? - API的类型 - SOAP与REST - 理解Web服务 - API与Web服务的区别 - REST API基础知识 - REST API方法(GET、POST、PUT、DELETE) - HTTP与HTTPS - HTTP状态码 **模块2:使用Postman进行API测试** - Postman介绍 - Postman安装 - 创建工作区 - 创建集合 - 创建HTTP请求(GET、POST、PUT、DELETE) - 保存与编辑请求 - 集合操作 - 响应验证 - 状态码、Cookie、Headers、响应体 - JSON和JSON路径的理解 - 使用Chai断言进行响应验证 - 测试状态码、头信息、Cookie和响应时间 - 使用Pre-request和Test脚本 - 数据驱动测试,使用JSON和CSV文件 - 项目工作:在线商店API测试 - 使用Newman CLI与GitHub动作进行CI/CD管道的集成 - API文档编写和发布 - Mock服务器的设置与性能测试 - GraphQL基础知识及其与REST的比较 **模块3:使用RestAssured进行API测试** - RestAssured概述与重要性 - 设置RestAssured Maven项目 - 创建API自动化脚本并处理请求和响应 - 处理各种身份验证类型 - 解析JSON和XML响应体 - 高级RestAssured特性和API链式调用 - 框架开发与CI/CD集成 - bonus:使用SoapUI和Ready API进行API测试的讲解 本课程为学习和掌握API测试的基础与进阶知识提供了全面的指导,帮助学员增强在现代软件开发环境中的技术能力。
Course Overview: Mastering Back-End Testing and API AutomationIn today's digital landscape, web applications heavily rely on seamless communication through web services. The dominant architecture, Representational State Transfer (REST), has become a cornerstone in modern web service development. This course aims to transform you into a proficient back-end testing expert, equipping you with the skills to navigate the evolving IT industry landscape.Module 1: Introduction to API TestingClient-Server ArchitectureUnderstanding the Basic ArchitectureRoles of Client and ServerAPI BasicsWhat is an API?Why API Testing is Needed?Types of APIsSOAP vs. RESTUnderstanding Web ServicesAPI vs. Web ServiceREST API FundamentalsREST API Methods (GET, POST, PUT, DELETE)HTTP vs. HTTPSHTTP Status CodesModule 2: API Testing with PostmanPostman IntroductionPostman InstallationCreating WorkspaceCreating CollectionsCreating HTTP Requests (GET, POST, PUT, DELETE)Saving & Editing RequestsOperations on CollectionsResponse ValidationStatus CodesCookiesHeadersResponse BodySchemaExporting & Importing CollectionsCreating Dummy APIs for API TestingNodeJS InstallationJSON-Server InstallationJavaScript Object Notation (JSON) & JSON PathWhat is JSON?Understanding JSON Object & JSON ArrayJSON PathValidating Responses (Chai Assertions)Testing Status CodesTesting HeadersTesting CookiesTesting Response TimeTesting Response BodyScripts in PostmanPre-request ScriptsTest Scripts (Post Response Scripts)JSON Schema ValidationWorking with VariablesGlobal VariablesCollection VariablesEnvironment VariablesLocal VariablesData VariablesSet, Get & Unset Variables with ScriptsPostman ConsoleChaining RequestsCustomize Collection Run Order(Work flow)Working with Data Variables/External VariablesData-Driven TestingUsing JSON FilesUsing CSV FilesFile Upload & Download API RequestsAuthorization TypesBasic AuthorizationDigest AuthorizationAPI KeyBearer TokenOAuth2Project Work -Online StoreAPI testing Reference documentsWriting API Test CasesCreating Collections & Adding RequestsAdding Scripts (Chai Assertions)Running Collections ManuallyScheduling RunsNewman CLIInstall NewmanInstall newman-reporter-html for ReportingExporting and Sharing Collections from PostmanRun Collections Locally via Command PromptPush Collections to GitHub and Run in JenkinsPostman CLIInstall Postman CLIUse Postman CLI to Run a Collection from Command LineSet Up GitHub Actions with Postman CLI to Run Collections in CI/CD PipelineDocumenting APIsCreate Public DocumentationWrite Markdown Descriptions at Request, Folder, or Collection LevelEmbed "Run in Postman" Button with DocumentationPreview Docs Before PublishingPublish to API NetworkSwaggercURLMocking APIsSet Up Mock ServersCreate Dynamic Mock ResponsesPerformance TestingRun a performance testTypes of Load profiles in PostmanView performance test metricsInject data into virtual usersGraphQLWhat is GraphQL?GraphQL vs RESTGraphQL Core ConceptsGraphQL Queries - Fetching dataGraphQL Mutations - Writing dataGraphQL Subscriptions - Realtime updatesCreate GraphQL requests in PostmanPostman GraphQL interfaceModule 3: API Testing with RestAssuredIntroduction to RestAssuredOverview and ImportanceSetting up a RestAssured Maven ProjectInstall JDK & Eclipse IDECreating maven Project & Add dependenciesConfiguring IDE and TestNGWriting API Automation ScriptsHTTP Methods: GET, POST, PUT, DELETEDifferent ways to Create Request Body/PayloadUsing HashMapUsing org.json libraryUsing POJO ClassUsing External JSON FileHandling ParametersPath ParametersQuery ParametersHeaders and CookiesAuthentication TypesBasic AuthenticationDigest AuthenticationPreemptive AuthenticationOAuth 1 and OAuth 2File Upload & Download (Form parameters)Parsing Response BodyParsing JSON and XML Response bodyJSON Schema and XML Schema/XSD ValidationsAdvanced RestAssured FeaturesAPI ChainingSerialization and DeserializationRequest and Response Specification BuildersRoot PathLoggingRestAssured with GraphQLHandling GraphQL QueriesHandling GraphQL MutationsFramework DevelopmentBuilding a RestAssured FrameworkCreating Maven Project & Folder StructureAPI End Point(Routes)Understanding Schemas & ModelsCreating of POJO ClassesCreating PayloadsCreating Configuration & Test Data filesCreating API Tests and add validationsGenerating Extent & Allure ReportsRunning Tests using TestNG(Serial & Parallel mode)CI & CDWorking with Git & GithubIntegration with JenkinsBonus Lectures:API Testing with SoapUI & Ready API