دانلود کتاب UI Testing with Puppeteer: Implement end-to-end testing and browser automation using JavaScript and Node.js (به فارسی: تست رابط کاربری با Puppeteer: اجرای آزمایش سرتاسر و اتوماسیون مرورگر با استفاده از JavaScript و Node.js) نوشته شده توسط «Dario Kondratiuk»
اطلاعات کتاب تست رابط کاربری با Puppeteer: اجرای آزمایش سرتاسر و اتوماسیون مرورگر با استفاده از JavaScript و Node.js
موضوع اصلی: کامپیوترها
نوع: کتاب الکترونیکی
ناشر: Packt Publishing
نویسنده: Dario Kondratiuk
زبان: english
فرمت کتاب: PDF (قابل تبدیل به سایر فرمت ها)
سال انتشار: 2021
تعداد صفحه: 316
حجم فایل: 7.77 مگابایت
کد کتاب: 180020678X , 9781800206786
توضیحات کتاب تست رابط کاربری با Puppeteer: اجرای آزمایش سرتاسر و اتوماسیون مرورگر با استفاده از JavaScript و Node.js
نوشتن تستهای اتوماسیون بدون خطا، شبیهسازی دستگاه، و اتوماسیون مرورگر با استفاده از API مبتنی بر Google Puppeteer
ویژگیهای کلیدی
- با Puppeteer راهاندازی کنید و بهترینها را کشف کنید روشهایی برای آزمایش اتوماسیون
- برنامههای وب مدرن خود را با استفاده از Jest و Mocha با Puppeteer خودکار کنید
- با استفاده از Puppeteer اسکرینشات ایجاد کنید و ببینید چگونه میتوان از آنها برای تستهای رگرسیون UI استفاده کرد
Book Description
Puppeteer یک کتابخانه اتوماسیون وب منبع باز است که توسط Google ایجاد شده است تا کارهایی مانند آزمایش سرتاسر، نظارت بر عملکرد و اتوماسیون کار را به راحتی انجام دهد. این کتاب با استفاده از موارد استفاده در دنیای واقعی، شما را به سفری عملی می برد و به شما کمک می کند تا Puppeteer را یاد بگیرید و بهترین شیوه ها را برای ارتقای کد اتوماسیون خود به سطح بعدی پیاده سازی کنید!
شروع با معرفی مرورگرهای بدون هدینگ. ، این کتاب شما را از پایه های اتوماسیون مرورگر عبور می دهد و به شما نشان می دهد که تا چه حد می توانید با استفاده از Puppeteer برای خودکارسازی گوگل کروم و موزیلا فایرفاکس پیش بروید. سپس اصول اولیه تست سرتاسری را یاد خواهید گرفت و نحوه ایجاد تست های قابل اعتماد را درک خواهید کرد. شما همچنین با یافتن عناصر با استفاده از انتخابگرهای CSS و عبارات XPath آشنا خواهید شد. با پیشرفت در فصلها، تمرکز به موضوعات پیشرفتهتر اتوماسیون مرورگر مانند اجرای کد جاوا اسکریپت در داخل مرورگر تغییر میکند. موارد استفاده مختلف از Puppeteer را یاد خواهید گرفت، مانند دستگاه های تلفن همراه یا تست سرعت شبکه، سنجش عملکرد سایت خود، و استفاده از Puppeteer به عنوان ابزار خراش دادن وب.
در پایان این کتاب تست رابط کاربری، شما خواهید آموخت که چگونه از API Puppeteer بهترین استفاده را بکنید و بتوانید آن را در پروژه های دنیای واقعی خود به کار ببرید.
آنچه یاد خواهید گرفت
- اصول اتوماسیون مرورگر را بدانید
- با Puppeteer و بهترین روشهای آن، آزمایشهای سرتاسری را کاوش کنید
- استفاده از انتخابگرهای CSS و عبارات XPath در اتوماسیون وب
- کشف کنید که چگونه میتوانید از قدرت اتوماسیون وب به عنوان یک توسعهدهنده استفاده کنید
- موارد مختلف استفاده از Puppeteer مانند تستهای سرعت شبکه و موقعیت جغرافیایی را شبیهسازی کنید
- با تکنیکها و بهترین روشها برای اسکرپینگ وب و تولید محتوای وب آشنا شوید
Who این کتاب برای
این کتاب برای مهندسین QA، متخصصان تست و توسعه دهندگان وب ظاهری است که میخواهند با استفاده از توسعهدهنده Google نیز تست سرتاسری انجام دهند. ls توسعه دهندگان وب که می خواهند یاد بگیرند چگونه از Puppeteer برای تولید محتوا، خراش دادن وب سایت ها و ارزیابی عملکرد وب سایت استفاده کنند، این کتاب را نیز مفید خواهند یافت. اگرچه دانش Node.js ضروری نیست، دانش پایه جاوا اسکریپت به درک مفاهیم تحت پوشش کمک می کند.
فهرست محتوا
- شروع به کار با Puppeteer
- تست و تست خودکار runners
- پیمایش در یک وب سایت
- تعامل با یک صفحه
- انتظار عناصر و تماس های شبکه
- اجرا و تزریق جاوا اسکریپت
- تولید محتوا با Puppeteer
- مشکل سازی محیط
- ابزارهای خراش دادن
- ارزیابی و بهبود عملکرد یک وب سایت
Write fail-safe automation tests, device emulation, and browser automation using Puppeteer’s Google-powered API
Key Features
- Get up and running with Puppeteer and discover best practices for automation testing
- Automate your modern web applications using Jest and Mocha with Puppeteer
- Generate screenshots using Puppeteer and find out how they can be used for UI regression tests
Book Description
Puppeteer is an open source web automation library created by Google to perform tasks such as end-to-end testing, performance monitoring, and task automation with ease. Using real-world use cases, this book will take you on a pragmatic journey, helping you to learn Puppeteer and implement best practices to take your automation code to the next level!
Starting with an introduction to headless browsers, this book will take you through the foundations of browser automation, showing you how far you can get using Puppeteer to automate Google Chrome and Mozilla Firefox. You’ll then learn the basics of end-to-end testing and understand how to create reliable tests. You’ll also get to grips with finding elements using CSS selectors and XPath expressions. As you progress through the chapters, the focus shifts to more advanced browser automation topics such as executing JavaScript code inside the browser. You’ll learn various use cases of Puppeteer, such as mobile devices or network speed testing, gauging your site’s performance, and using Puppeteer as a web scraping tool.
By the end of this UI testing book, you’ll have learned how to make the most of Puppeteer’s API and be able to apply it in your real-world projects.
What you will learn
- Understand browser automation fundamentals
- Explore end-to-end testing with Puppeteer and its best practices
- Apply CSS Selectors and XPath expressions to web automation
- Discover how you can leverage the power of web automation as a developer
- Emulate different use cases of Puppeteer such as network speed tests and geolocation
- Get to grips with techniques and best practices for web scraping and web content generation
Who this book is for
The book is for QA engineers, testing professionals, and frontend web developers alike who want to perform end-to-end testing using Google’s developer tools. Web developers who want to learn how to use Puppeteer for generating content, scraping websites, and evaluating website performance will also find this book useful. Although knowledge of Node.js isn’t necessary, basic JavaScript knowledge will assist with understanding the concepts covered.
Table of Contents
- Getting started with Puppeteer
- Automated Testing and Test runners
- Navigating through a website
- Interacting with a page
- Waiting for elements and network calls
- Executing and Injecting JavaScript
- Generating Content with Puppeteer
- Environments emulation
- Scraping tools
- Evaluating and Improving the Performance of a Website

برای دریافت کد تخفیف ۲۰ درصدی این کتاب، ابتدا صفحه اینستاگرام کازرون آنلاین (@kazerun.online ) را دنبال کنید. سپس، کلمه «بلیان» را در دایرکت ارسال کنید تا کد تخفیف به شما ارسال شود.