Testing Python Web Applications: Selenium and PyTest: Master Web UI Testing, API Testing, and CI/CD Integration for Modern Web Applications
商品資訊
ISBN13:9798289754974
出版社:Independently published
作者:Pythquill Publishing
出版日:2025/06/26
裝訂:平裝
規格:27.9cm*21.6cm*1.9cm (高/寬/厚)
商品簡介
商品簡介
What You Will Learn in This Book
- Master the fundamentals of web application testing, including different testing types (functional, performance, security, etc.) and the testing pyramid model.
- Set up a complete Python testing environment from scratch, covering virtual environments, IDEs, and the installation of essential libraries like PyTest and Selenium WebDriver.
- Become proficient with PyTest, learning to write, organize, and run tests using its powerful features, including fixtures, markers, and parametrization for data-driven testing.
- Automate browser interactions using Selenium WebDriver, including navigating web pages, locating elements with various strategies (CSS Selectors, XPath), and interacting with forms, dropdowns, and alerts.
- Build a scalable and maintainable automation framework using the Page Object Model (POM) to write clean, reusable, and robust test code that is easy to manage.
- Handle dynamic web content and synchronization challenges by implementing effective waiting strategies to create reliable and stable tests.
- Integrate your test suite with CI/CD pipelines using tools like GitHub Actions or GitLab CI, enabling continuous testing and automated reporting.
- Generate comprehensive test reports using popular plugins like pytest-html and the powerful Allure Reporting Framework, complete with embedded screenshots and detailed steps.
- Run tests in parallel locally and on a distributed grid using pytest-xdist and Selenium Grid to significantly reduce test execution time.
- Expand your automation skills beyond UI testing by learning the basics of API testing with the requests library and using API calls to set up test data for your UI tests.
- Apply Behavior-Driven Development (BDD) principles using pytest-bdd to write human-readable tests that foster collaboration between technical and non-technical team members.
- Debug and troubleshoot common test failures effectively, analyzing error reports, utilizing logging, and implementing strategies to handle flaky tests.
- Implement best practices for writing maintainable test code, managing test data, and ensuring test independence to build a robust and scalable test automation framework.
- Explore advanced testing concepts such as performance and security testing, cross-browser compatibility, and testing modern Single Page Applications (SPAs).
主題書展
更多
主題書展
更多書展購物須知
外文書商品之書封,為出版社提供之樣本。實際出貨商品,以出版社所提供之現有版本為主。部份書籍,因出版社供應狀況特殊,匯率將依實際狀況做調整。
無庫存之商品,在您完成訂單程序之後,將以空運的方式為你下單調貨。為了縮短等待的時間,建議您將外文書與其他商品分開下單,以獲得最快的取貨速度,平均調貨時間為1~2個月。
為了保護您的權益,「三民網路書店」提供會員七日商品鑑賞期(收到商品為起始日)。
若要辦理退貨,請在商品鑑賞期內寄回,且商品必須是全新狀態與完整包裝(商品、附件、發票、隨貨贈品等)否則恕不接受退貨。

