|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/k6-automate-performance-load-testing-of-api-microservices/
课程评论:没有评论
课程名称:K6- 自动化性能与负载测试API和微服务 概述:本课程将定期更新,以涵盖更多示例和实时项目。学习API和微服务性能测试的未来,使用开源工具K6自动化性能与负载测试。K6是一款旨在提高开发者和测试者快乐的开源负载测试工具,拥有超过100万次安装。 课程总结: - **通知功能**:提供通过性能目标的通行/失败行为,便于自动化和集成到CI流水线以及Gitlab中。 - **开发人员中心的负载测试**:K6帮助你自动化负载测试,尽可能真实地模拟现实用户。 - **目标导向的负载测试**:你将能够自动化测试,以覆盖性能和功能目标,例如响应时间的可接受水平和可接受的失败率。 - **存储和可视化性能测试结果**:K6可以将测试结果输出到不同源,如JSON文件和Grafana。 - **智能感知**:提供代码自动补全和上下文文档。 - **Visual Studio Code扩展**:执行VS Code命令以运行当前文件的K6测试。 - **性能监控**:对生产中的APIs和微服务进行性能监控。 - **负载测试**:快速构建测试用例以验证APIs或微服务的性能,确保系统能够处理预期的流量,并在CI中捕获关键性能回归。 - **自动化测试**:自动化性能测试,并获得关于性能目标的通行/失败行为。 - **使用JavaScript编写测试**:完整的脚本语言,用于编写真实的负载测试,重用模块和JavaScript库以构建和维护性能测试套件。 - **云端扩展**:设计用于在本地或云环境中使用相同的测试。 - **K6云**:加速性能测试,避免管理自己的基础设施。 - **GUI测试构建器**:使用浏览器扩展记录测试。 - **运行云测试**:在云中扩展测试,支持多达10万并发虚拟用户,从16个地理位置生成负载。 - **测试调度**:从Web应用、CLI和CI流水线调度和运行测试。 - **分析测试结果**:按位置、时间段和标签筛选测试结果,方便概览测试结果。 - **成为性能专家**:比较测试之间的性能结果,获取自动分析和建议以快速定位性能问题,并在性能测试中获得警报。 你是否还在使用JMeter?学习使用JavaScript进行GUI和基于代码的测试,升级到K6及K6云以获得更好的开发者体验。K6已被亚马逊、微软、Grafana、Gitlab、Citrix等公司使用,背靠20年的经验。 课程大纲摘要: - 促销视频演示 - 理解K6基础知识 - 理解API性能测试 - 设计并执行样本测试脚本 - 使用数百个虚拟用户运行K6 - 用户的增减、检查、断言及设计错误率和失败率 - 编写HTTP请求并解析响应 - 理解内置指标、计数器、趋势和重试机制 - 设定通过/失败负载测试的阈值 - 测试生命周期的设置、拆解和主函数 - 固定RPS示例 - 在Amazon EC2上使用InfluxDB、Grafana设计仪表板 - 理解负载影响以在各种地理位置的云上设计和执行脚本 - 定义标签和分组以便更好地筛选 - 通过Postman转换器设计性能测试框架 - 实时项目和自动化性能测试框架设计 - 理解虚拟用户、运行器和调试脚本 - 示例1:编写负载测试,使用k6 JavaScript API编写简单且真实的负载测试。 相信通过本课程,您将掌握使用K6进行API和微服务的自动化性能与负载测试的能力。
We will enhance this training course regularly to cover more examples and real-time projects.Summary - Learn the future of performance testing and automate Performance & Load Testing of API and micro-services using open-source tool K6. Open Source - K6 is an open-source load testing tool built for developers and testers' happiness. It has over 1 million installations.Notifications - Pass/Fail behavior for easy automation and integration into CI pipelines, GitlabDeveloper centric load testing - Everyone loves fast apps, APIs and websites. K6 helps you to automate Load tests that simulate real-world users as closely as possible.Goal-based load testing - You will be able to automate test which covers performance and functional goals like what level is a response time not acceptable, and/or what is an acceptable failure rateStore and Visualize Performance Test Results - K6 can output its test result data to different sources like JSON file, GrafanaIntelliSense - Get code auto-completion and in-context documentation.Visual Studio Code Extension - Execute VS Code commands to run a k6 test of your current file.Performance Monitoring - Performance monitoring of your APIs and micro-services in production.Load Testing - Quickly build test cases to validate the performance of your APIs or micro-services. Validate that your system can handle the expected volume of traffic, and catch critical performance regressions in CI before they reach production.Automated testing - Automate your performance tests. Get Pass/Fail behavior on performance goals.Write tests in Javascript code - Full scripting language to write realistic load tests. Reuse modules and Javascript libraries to build and maintain a performance test suite.Scaled to the cloud - Designed to use the same test in a local or cloud environment.k6 Cloud - Speed-up performance testing and Avoid managing your own infrastructure.GUI test builder - Record your tests using the browser extensionRun cloud tests - Scale tests in the cloud up to 100k concurrent virtual users and Generate load from 16 geographic locationsTest Scheduling - Schedule and run tests from the web app, CLI, and CI pipelinesAnalyze test results - Filter your test results by location, period, and tags. Get a convenient overview of your test results.Be a performance expert - Compare performance results between tests. Get automatic analysis and recommendations that quickly pinpoint performance issues. Get alert about your performance tests.Are you still stuck with JMeter? Then, learn GUI and Code-based testing with JavaScript and Upgrade to K6 & K6 Cloud for better developer experience.K6 is used by Amazon, Microsoft, Grafana, Gitlab, Citrix, etc. Backed by 20 years of experience.Course Curriculum SummaryPromotion Video WalkthroughUnderstand the Basics of K6Understand API Performance TestingDesign and execute Sample Test ScriptRunning K6 with 100S of virtual usersRamp-up and Ramp-down UsersChecks, Asserts and Design Error Rate and Failure RateWrite HTTP Requests and parse responsesUnderstand Built-in Metrics, Counter, Trend, Retry MechanismDesign Threshold on Checks to pass/fail load testTest Life Cycle, SetUp, TearDown, Main FunctionFixed RPS with ExampleInfluxDB, Grafana, Design DashboardK6, InfluxDB, Grafana on Amazon EC2Understand Load-impact to design and execute scripts on Cloud from the various geographic locationDefine tags and groups for better filteringPerformance Test Framework design using Postman to K6 Converter Real-time project and Automated Performance Testing Framework DesignUnderstand Virtual Users, Runners, Debugging ScriptsExample1. Write your load testUse the k6 Javascript API to write simple and realistic load test.export let options = { thresholds: { "http_req_duration": ["p(90)