Ưu đãi trong tuần: Nhập mã UD50 giảm 50k cho đơn từ 300k!
Trang chủ
Menu

Design & Build Test Framework with Python Pytest | API Tests

Thiết kế & Xây dựng Khung Kiểm thử với Python Pytest | Kiểm thử API

Thiết kế & Xây dựng Khung Kiểm thử với Python Pytest | Kiểm thử API

Xây dựng Khung Tự động hóa Kiểm thử với Pytest, Hướng dẫn Kiểm thử/Tự động hóa API Rest & Kiểm thử Phần mềm/SDET/Kiến trúc sư

4.5
(222 đánh giá)
2,007 học viên
Giảng viên
Kumar S
Phụ đề Việt chất lượng cao Phụ đề tiếng Anh Bán chạy Đánh giá cao
50.000đ 349.000đ -86%
✓ Xem giỏ hàng và thanh toán
Bao gồm phụ đề tiếng Việt, tiếng Anh
10.0 giờ video
78 bài giảng
7 bài quiz
1 bài coding
Truy cập vĩnh viễn
Học trên mọi thiết bị
Cập nhật: 30/05/2026

Bạn sẽ học được gì

Thiết kế & Xây dựng Khung Tự động hóa Kiểm thử từ Con số 0
Tự động hóa Kiểm thử Với Python & Pytest
Kiểm thử Phần mềm Tự động Với Python
Các module và thành phần của Khung Kiểm thử Phần mềm
Kiểm thử và Tự động hóa API Rest
Sử dụng hiệu quả Python và khung Pytest cho Tự động hóa
Viết mã tự động hóa kiểm thử tốt hơn và có cấu trúc

Yêu cầu

Một máy tính có kết nối internet và sự tò mò đủ lớn về tự động hóa kiểm thử.
Kiến thức cơ bản về viết script Python

Đối tượng phù hợp

Dành cho bất kỳ ai muốn tìm hiểu về kiểm thử phần mềm và tự động hóa
Chuyên viên phát triển phần mềm, kiểm thử hoặc đảm bảo chất lượng tò mò về Khung Kiểm thử
Lập trình viên tự động hóa kiểm thử từ cấp độ mới bắt đầu đến trung cấp
Bất kỳ ai muốn học tự động hóa kiểm thử phần mềm với Python

Nội dung khóa học

13 phần • 78 bài giảng
1 Giới thiệu
1 Cài đặt Python (Windows)
2 Cài đặt Pycharm Mới & Tạo Dự án
1 Giới thiệu về Pytest
2 Pycharm: Tạo Dự án & Môi trường Ảo (tùy chọn)
3 Pycharm: Cài đặt các Module Python
4 Pytest: Bài kiểm thử Đầu tiên và Quy tắc Đặt tên Test
5 Pytest: Thực thi Test
6 Sử dụng Câu lệnh Khẳng định (Assertion) trong Python
7 Pytest: Tìm kiếm Test (Test Discovery)
8 Giới thiệu về __init__.py
9 Pytest: Markers
10 Pytest: Tùy chọn Dòng lệnh
11 Pytest: Kiểm thử Tham số hóa (Parametrized Tests)
12 Pytest: Fixtures
13 Lưu ý Quan trọng & Tài liệu
14 Liên kết mã nguồn
1 Thao tác với Tệp tin
2 Giới thiệu về JSON
3 Thao tác JSON: Chuyển Dữ liệu sang JSON
4 Thao tác JSON: Chuyển JSON sang Dữ liệu
5 Thao tác JSON: Xác thực JSON
6 Các URL API Công khai/Miễn phí
7 Module Requests: Các Yêu cầu Đơn giản
8 Thao tác Requests: với tham số
9 Thao tác Requests: Phương thức POST
10 Thao tác Requests: Tiêu đề tùy chỉnh (Custom headers)
11 Thao tác với CSV
1 Giới thiệu Phần
2 API và Dịch vụ Web
3 API Rest là gì
4 Cấu trúc Yêu cầu API
5 Cấu trúc Phản hồi API
6 Chiến lược và Kiểm thử API
1 Giới thiệu Phần
2 Giới thiệu về Khung Kiểm thử
3 Đề cương Khung Kiểm thử
4 Kiểm thử/Tự động hóa API: Cách tiếp cận Cơ bản (1/2)
5 Kiểm thử/Tự động hóa API: Cách tiếp cận Cơ bản (2/2)
6 Thiết kế/Xây dựng Khung: Tiện ích/Thư viện (1/2)
7 Thiết kế/Xây dựng Khung: Tiện ích/Thư viện (2/2)
8 Thiết kế/Xây dựng Khung: Tại sao cần Cấu hình
9 Thiết kế/Xây dựng Khung: Configparser
10 Kiểm thử/Tự động hóa API: Yêu cầu PUT
11 Kiểm thử/Tự động hóa API: Yêu cầu DELETE
1 Thiết kế/Xây dựng Khung: Ghi nhật ký (1/2)
2 Thiết kế/Xây dựng Khung: Ghi nhật ký (2/2)
1 Giới thiệu về Máy chủ API
2 Máy chủ API trên GitHub
3 Lệnh CURL (1/3)
4 Lệnh CURL (2/3)
5 Lệnh CURL (3/3)
1 Giới thiệu Phần
2 Khung: Thêm các Bài kiểm thử (1/3)
3 Khung: Thêm các Bài kiểm thử (2/3)
4 Khung: Thêm các Bài kiểm thử (3/3)
5 Kịch bản Kiểm thử Tham số hóa
6 Dữ liệu Kiểm thử - Dữ liệu Yêu cầu Từ Tệp tin
7 Xác thực API
8 Kịch bản Mã thông báo Xác thực API (1/2)
9 Kịch bản Mã thông báo Xác thực API (2/2) [Sử dụng Fixtures]
1 Kiểm thử Hướng dữ liệu - Cách tiếp cận Cơ bản (1/2)
2 Kiểm thử Hướng dữ liệu - Cách tiếp cận Cơ bản (2/2)
3 Kiểm thử Hướng dữ liệu - Tham số hóa (1/4)
4 Kiểm thử Hướng dữ liệu - Tham số hóa (2/4)
5 Kiểm thử Hướng dữ liệu - Tham số hóa (3/4)
6 Kiểm thử Hướng dữ liệu - Tham số hóa (4/4)
1 Tại sao cần Thiết lập/Dọn dẹp
2 Thiết lập/Dọn dẹp: Thực hiện Thiết lập
3 Thiết lập/Dọn dẹp: Viết các Bài kiểm thử
4 Thiết lập/Dọn dẹp: Thực hiện Dọn dẹp
5 Thiết lập/Dọn dẹp: Thực thi & Xác thực các Điều kiện Khác nhau
6 Thiết lập/Dọn dẹp: Với Phạm vi Fixture (Fixture Scope)
1 Giới thiệu về Allure
2 Cài đặt Allure (Windows)
3 Báo cáo với Allure
1 Phần thưởng
2 Cài đặt Pycharm (phiên bản cũ)

Giới thiệu khóa học

Welcome!

Test frameworks are tools that software developers and quality assurance professionals use to automate the process of testing software applications. These frameworks provide a set of predefined rules, guidelines, and features that help in organizing, executing, and reporting the results of the tests.

Some of the key features of test frameworks include the ability to define test cases, assertions, and fixtures, which are reusable components that simplify the process of testing. They also often provide integration with other tools, such as continuous integration and deployment (CI/CD) pipelines, to automate the testing process and improve the efficiency of the development process.

Test frameworks are typically designed to support different types of testing, including unit, functional, API, Usability, Integration and performance testing. They can also support different programming languages and platforms, allowing developers to choose the one that best suits their needs.


Examples of popular test frameworks include JUnit for Java applications, NUnit for .NET applications, and Pytest for Python applications. There are also specialized test frameworks available for specific types of testing, such as Selenium for web application testing and Appium for mobile application testing.


In this course we are going to learn how to Design and Build a Test Automation Framework. The underlying framework will be PYTEST and we will build a Hybrid kind of framework which will be:

  • Modular-Based,

  • Data-driven, & also

  • Library/Utils Driven Architecture.

This framework will be extensible and scalable where in you extend to any types of tests like e.g. DB testing, UI testing and others. We will structure our test project framework to be able to handle complex scenarios also.


Some of the modules or components we will have in our Hybrid Test Framework are as:

- Test Runner: This is the module responsible for executing tests and reporting the results. Pytest is what we will be using here, to take the benefits of Python.

- Utils/Library module: Will contain all reusable functions such as databases, generic functions, application functions etc.

- Config Management module: Separate config files and config manager to enable different config files.

- Data Management module: Should support Data Driven capability. Handle Scripts and Data separately.

- Logging & Reporting: Separate the logging code from the main code, making it easier to maintain and update the test code base.

These are some of the modules found in test frameworks we will talk about in this course. And also how to incorporate them in our framework and build a structured automation framework that will be easy to maintain and flexible enough to add new test scenarios or new functions.

Of-course the specific modules you need in your test framework will depend on the needs of your testing process, such as the types of tests you need to run, the technologies you're using, and the size and complexity of your testing infrastructure. But this course will give you a really good start towards your automation journey, and also make it easier for you to design a test automation framework.

After taking this course you will:

  • Have the skills and knowledge needed to build and implement a successful test framework that can improve the quality and reliability of software applications.

  • Be able to easily start adding test scripts functions and modules in a test framework.

  • Be able to design and build your own test framework from scratch.

  • Understand the components in any testing framework.

  • Be able to suggest changes to existing frameworks your team might be using.

  • Design organize your tests properly in any test automation project.

  • Learn API testing automation as well.

  • Be able to take test automation interviews easily.

  • And, Improve your career prospects

  • Finally, take another big step towards Test Architect.

Overall, taking the course on "Building a Test Framework" can be a great investment in your professional development and can help you build the skills and knowledge needed to succeed in the software industry.

Sign in and lets learn to build test automation frameworks and write tests in a structured way.

Thank you and see you in the course!

Tags: Python Test Framework, Pytest Framework Automation, API Test Framework, API Automation, Integration Testing, Software Testing

Khóa học liên quan

Khám phá thêm các khoá học cùng chủ đề

Hiển thị tất cả khoá học Pytest
Hiển thị tất cả khoá học Python
Hiển thị tất cả khoá học Python Testing
Hiển thị tất cả khoá học Test Automation
Zalo
Tôi có thể tư vấn khoá học cho bạn 😊