UI Testing with Puppeteer

UI Testing with Puppeteer
Author :
Publisher : Packt Publishing Ltd
Total Pages : 316
Release :
ISBN-10 : 9781800203761
ISBN-13 : 1800203764
Rating : 4/5 (61 Downloads)

Synopsis UI Testing with Puppeteer by : Dario Kondratiuk

Write fail-safe automation tests, device emulation, and browser automation using Puppeteer’s Google-powered API Key FeaturesGet up and running with Puppeteer and discover best practices for automation testingAutomate your modern web applications using Jest and Mocha with PuppeteerGenerate screenshots using Puppeteer and find out how they can be used for UI regression testsBook 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 learnUnderstand browser automation fundamentalsExplore end-to-end testing with Puppeteer and its best practicesApply CSS Selectors and XPath expressions to web automationDiscover how you can leverage the power of web automation as a developerEmulate different use cases of Puppeteer such as network speed tests and geolocationGet to grips with techniques and best practices for web scraping and web content generationWho 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.

Simplify Testing with React Testing Library

Simplify Testing with React Testing Library
Author :
Publisher : Packt Publishing Ltd
Total Pages : 246
Release :
ISBN-10 : 9781800565098
ISBN-13 : 1800565097
Rating : 4/5 (98 Downloads)

Synopsis Simplify Testing with React Testing Library by : Scottie Crump

A fast-paced, practical guide to helping you leverage React Testing Library to test the DOM output of components Key FeaturesGet to grips with React Testing Library and create tests that don't break with changes in implementationLearn how to put RTL into practice by implementing it in real-world scenariosTest apps to be more accessible and ensure your tests will work with actual DOM nodesBook Description React Testing Library (RTL) is a lightweight and easy-to-use tool for testing the document object model (DOM) output of components. This book will show you how to use this modern, user-friendly tool to test React components, reducing the risk that your application will not work as expected in production. The book demonstrates code snippets that will allow you to implement RTL easily, helping you to understand the guiding principles of the DOM Testing Library to write tests from the perspective of the user. You'll explore the advantages of testing components from the perspective of individuals who will actually use your components, and use test-driven development (TDD) to drive the process of writing tests. As you advance, you'll discover how to add RTL to React projects, test components using the Context API, and also learn how to write user interface (UI) end-to-end tests using the popular Cypress library. Throughout this book, you'll work with practical examples and useful explanations to be able to confidently create tests that don't break when changes are made. By the end of this React book, you will have learned all you need to be able to test React components confidently. What you will learnExplore React Testing Library and its use casesGet to grips with the RTL ecosystemApply jest-dom to enhance your tests using RTLGain the confidence you need to create tests that don't break with changes using RTLIntegrate Cucumber and Cypress into your test suiteUse TDD to drive the process of writing testsApply your existing React knowledge for using RTLWho this book is for This book is for software engineers, quality engineers and React developers who want to learn about modern practices used for testing React components using the latest testing tool, RTL. Basic knowledge of React development is required to get the most out of this book.

A A Frontend Web Developer’s Guide to Testing

A A Frontend Web Developer’s Guide to Testing
Author :
Publisher : Packt Publishing Ltd
Total Pages : 305
Release :
ISBN-10 : 9781803249674
ISBN-13 : 1803249676
Rating : 4/5 (74 Downloads)

Synopsis A A Frontend Web Developer’s Guide to Testing by : Eran Kinsbruner

This book is a comprehensive guide to frontend web app testing. You'll develop a solid understanding of the advanced features that lead testing frameworks offer and the pillars of a successful web app testing strategy. With this book, you’ll be able to devise a suitable testing strategy using both code coverage and test coverage measurements.

Node.js Cookbook

Node.js Cookbook
Author :
Publisher : Packt Publishing Ltd
Total Pages : 456
Release :
ISBN-10 : 9781804614105
ISBN-13 : 1804614106
Rating : 4/5 (05 Downloads)

Synopsis Node.js Cookbook by : Bethany Griggs

Master Node.js 22 through expert-led recipes in async programming, app development, Fastify, modules, testing, debugging, and optimization Key Features Explore the latest Node.js 22 features to stay at the forefront of modern development Learn to build, debug, and deploy Node.js applications flawlessly Gain expertise in Fastify Web Framework, Node.js module creation, and advanced testing techniques Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionNode.js is a game-changing technology for building modern web applications and tooling, bringing the power of JavaScript to the server and enabling full-stack development in a unified language. This updated edition of this Node.js cookbook, featuring Node.js 22, equips you with the latest advancements and enhancements in the Node.js framework ecosystem. From Bethany Griggs, who has served on the Node.js Technical Steering Committee and participated in the Node.js Release Working Group, and Manuel Spigolon, a core maintainer of Fastify, comes this fifth edition of the Node.js Cookbook to help you master Node.js 22. This book guides you step by step through crafting reusable code with Node.js modules, streamlining development using the Fastify web framework, and implementing data persistence in databases and rigorous testing practices for robust applications. You’ll address security concerns, optimize performance with worker threads, deploy Node.js microservices using containerization and orchestration, and tackle troubleshooting with effective debugging strategies. Packed with real-world examples, this guide empowers you to harness Node.js 22's full potential for creating secure, performant, and dynamic applications.What you will learn Grasp Node.js' async/sync programming to optimize code execution Build your coding skills from scratch by creating basic Node.js apps Debug and troubleshoot Node.js apps proficiently, ensuring smooth functionality Deploy apps confidently to production, reaching a wider user base Harness Fastify for web development to craft efficient frameworks Develop Node.js modules and enhance code reusability and project structure Who this book is for If you have basic knowledge of JavaScript or another programming language and want to build a solid understanding of Node.js, this book is for you. It provides the foundational knowledge you need to navigate the Node.js and npm ecosystem and start building applications. For readers with some Node.js experience, it offers the opportunity to deepen and expand their skills, while beginners can use practical recipes to quickly acquire a strong foundation in Node.js concepts and features.

Designing Web APIs with Strapi

Designing Web APIs with Strapi
Author :
Publisher : Packt Publishing Ltd
Total Pages : 310
Release :
ISBN-10 : 9781800566705
ISBN-13 : 1800566700
Rating : 4/5 (05 Downloads)

Synopsis Designing Web APIs with Strapi by : Khalid Elshafie

Leverage the power of Strapi to build self-hosted, customizable, and performant content APIs Key FeaturesDiscover how Strapi can help you build APIs quickly and focus on your products and featuresLearn how to put Strapi into practice by implementing it in real-world scenariosUnderstand how to use Strapi's powerful features to customize your APIsBook Description Strapi is a Node.js-based, flexible, open-source headless CMS with an integrated admin panel that anyone can use and helps save API development time. APIs built with Strapi can be consumed using REST or GraphQL from any client. With this book, you'll take a hands-on approach to exploring the capabilities of the Strapi platform and creating a custom API from scratch. This book will help JavaScript developers to put their knowledge to work by guiding them through building powerful backend APIs. You'll see how to effortlessly create content structures that can be customized according to your needs, and gain insights into how to write, edit, and manage your content seamlessly with Strapi. As you progress through the chapters, you'll discover a wide range of Strapi features, as well as understand how to add complex features to the API such as user authentication, data sorting, and pagination. You'll not only learn how to find and use existing plugins from the open-source community but also build your own plugins with custom functionality with the Strapi plugin API and add them to the admin panel. Finally, you'll learn how to deploy the API to Heroku and AWS. By the end of this book, you'll be able to build powerful, scalable, and secure APIs using Strapi. What you will learnExplore Strapi and understand how it worksDefine content types to build APIs quickly and efficientlyUnderstand authentication and authorization in StrapiCreate production-ready APIs with StrapiDeploy the Strapi API to various environments, including Heroku and AWSUse best practices to run the Strapi API in productionSync permissions to access the API between multiple environmentsWrite basic tests for API utilities as well as the endpointWho this book is for This book is for backend and frontend JavaScript developers. Experienced API developers will learn a new, fast, and flexible way of building APIs, while frontend developers will be able to take a step toward becoming full-stack developers by learning how to leverage Strapi for building APIs quickly. Basic knowledge of JavaScript and REST API concepts is assumed.

End-to-End Web Testing with Cypress

End-to-End Web Testing with Cypress
Author :
Publisher : Packt Publishing Ltd
Total Pages : 241
Release :
ISBN-10 : 9781839215636
ISBN-13 : 1839215631
Rating : 4/5 (36 Downloads)

Synopsis End-to-End Web Testing with Cypress by : Waweru Mwaura

Get to grips with the Cypress framework and learn how to best implement end-to-end automation testing with JavaScript with the help of expert tips, best practices, and real-world testing examples Key FeaturesWrite your first end-to-end test and find out how to modernize your testing environmentExecute test-driven web development and cross-browser testing using CypressDiscover the advantages of using Cypress over Selenium and refactor testing for modern web appsBook Description Cypress is a modern test automation framework for web-based frontend apps. Learning Cypress will help you overcome the shortcomings of conventional testing solutions such as dependency graph problems, the steep learning curve in setting up end-to-end testing packages, and difficulties in writing explicit time waits for your tests. In End-to-End Web Testing with Cypress, you’ll learn how to use different Cypress tools, including time travel, snapshots, errors, and console output, to write fail-safe and non-flaky tests. You’ll discover techniques for performing test-driven development (TDD) with Cypress and write cross-browser tests for your web applications. As you advance, you’ll implement tests for a sample application and work with a variety of tools and features within the Cypress ecosystem. Finally, this Cypress book will help you grasp advanced testing concepts such as visual testing and networking. By the end of this book, you’ll have the skills you need to be able to set up Cypress for any web app and understand how to use it to its full potential. What you will learnGet to grips with Cypress and understand its advantages over SeleniumExplore common Cypress commands, tools, and techniques for writing complete tests for web appsSet up and configure Cypress for cross-browser testingUnderstand how to work with elements and animation to write non-flaky testsDiscover techniques for implementing and handling navigation requests in testsImplement visual regression tests with Applitools eyesWho this book is for This book is for automation testing professionals, software and web testers, and frontend web developers who have intermediate-level JavaScript and beginner-level test automation knowledge, as well as for complete beginners who are looking to get started with Cypress and learn how it works. You’ll also find this book useful if you are a Selenium tester who wants to migrate to Cypress and leverage its capabilities. An intermediate-level understanding of JavaScript programming and beginner-level knowledge of web testing are required.

Testing JavaScript Applications

Testing JavaScript Applications
Author :
Publisher : Simon and Schuster
Total Pages : 510
Release :
ISBN-10 : 9781617297915
ISBN-13 : 1617297917
Rating : 4/5 (15 Downloads)

Synopsis Testing JavaScript Applications by : Lucas da Costa

Automated testing will help you write high-quality software in less time, with more confidence, fewer bugs, and without constant manual oversight. Testing JavaScript Applications is a guide to building a comprehensive and reliable JS application testing suite, covering both how to write tests and how JS testing tools work under the hood. You''ll learn from Lucas de Costa, a core contributor to popular JS testing libraries, as he shares a quality mindset for making testing decisions that deliver a real contribution to your business. You''ll benefit from informative explanations and diagrams, easily-transferable code samples, and useful tips on using the latest and most consolidated libraries and frameworks of the JavaScript ecosystem. about the technology No developer wants to waste time making sure every application feature still works whenever they push new code to production. Thankfully, automated testing delivers quick and precise feedback on whether your application still functions correctly every time you update it. With automated testing, you can validate your application with a single command--and unlike humans, machines don''t forget steps or make mistakes! about the book Testing JavaScript Applications is a guide to creating JavaScript tests that are targeted to your application''s specific needs. Dripping with the insight author Lucas da Costa has developed as a core contributor to some of the most popular JS testing libraries, this book offers dozens of detailed code samples that you can apply to your own projects. You''ll learn how to write tests for both backend and frontend applications, covering the full spectrum of testing types so you can pick an approach that''s right for you. Taking on the role of a developer for a bakery''s web store, you''ll learn to validate different aspects including databases, third-party services, and how to spin-up a real browser instance to interact with the entire application. All examples are delivered using the popular testing tool Jest and modern packages of the JavaScript ecosystem. what''s inside Writing practical tests that make a real business contribution Writing tests for both front-end and back-end applications Managing the costs and complexity of your tests Practicing test-driven development Dealing with external dependencies, like databases or third-party APIs Supporting tests by creating a "culture of quality" about the reader For junior JavaScript developers. No testing experience required. about the author Lucas da Costa is a core maintainer of Chai and Sinon.JS, two of the most popular testing tools in the JavaScript ecosystem. He has also contributed to Jest and other relevant open-source projects. Lucas is committed to a culture of sharing and has spoken at major software engineering conferences, including JSConf Colombia, FluentConf, HolyJS, CityJSConf London, and many others.

Web Development with Node and Express

Web Development with Node and Express
Author :
Publisher : "O'Reilly Media, Inc."
Total Pages : 331
Release :
ISBN-10 : 9781491902301
ISBN-13 : 1491902302
Rating : 4/5 (01 Downloads)

Synopsis Web Development with Node and Express by : Ethan Brown

Learn how to build dynamic web applications with Express, a key component of the Node/JavaScript development stack. In this hands-on guide, author Ethan Brown teaches you the fundamentals through the development of a fictional application that exposes a public website and a RESTful API. You’ll also learn web architecture best practices to help you build single-page, multi-page, and hybrid web apps with Express. Express strikes a balance between a robust framework and no framework at all, allowing you a free hand in your architecture choices. With this book, frontend and backend engineers familiar with JavaScript will discover new ways of looking at web development. Create webpage templating system for rendering dynamic data Dive into request and response objects, middleware, and URL routing Simulate a production environment for testing and development Focus on persistence with document databases, particularly MongoDB Make your resources available to other programs with RESTful APIs Build secure apps with authentication, authorization, and HTTPS Integrate with social media, geolocation, and other third-party services Implement a plan for launching and maintaining your app Learn critical debugging skills This book covers Express 4.0.

Accelerating Software Quality

Accelerating Software Quality
Author :
Publisher : Independently Published
Total Pages : 357
Release :
ISBN-10 : 9798671126044
ISBN-13 :
Rating : 4/5 (44 Downloads)

Synopsis Accelerating Software Quality by : Eran Kinsbruner

The book "Accelerating Software Quality: Machine Learning and Artificial Intelligence in the Age of DevOps" is a complete asset for software developers, testers, and managers that are on their journey to a more mature DevOps workflow, and struggle with better automation and data-driven decision making. DevOps is a mature process across the entire market, however, with existing Non-AI/ML technologies and models, it comes short in expediting release cycle, identifying productivity gaps and addressing them. This book, that was implemented by myself with the help of leaders from the DevOps and test automation space, is covering topics from basic introduction to AI and ML in software development and testing, implications of AI and ML on existing apps, processes, and tools, practical tips in applying commercial and open-source AI/ML tools within existing tool chain, chat-bots testing, visual based testing using AI, automated security scanning for vulnerabilities, automated code reviews, API testing and management using AI/ML, reducing effort and time through test impact analysis (TIA), robotic process automation (RPA), AIOps for smarter code deployments and production defects prevention, and many more.When properly leveraging such tools, DevOps teams can benefit from greater code quality and functional and non-functional test automation coverage. This increases their release cycle velocity, reduces noise and software waste, and enhances their app quality.The book is divided into 3 main sections: *Section 1 covers the fundamentals of AI and ML in software development and testing. It includes introductions, definitions, 101 for testing AI-Based applications, classifications of AI/ML and defects that are tied to AI/ML, and more.*Section 2 focuses on practical advises and recommendations for using AI/ML based solutions within software development activities. This section includes topics like visual AI test automation, AI in test management, testing conversational AI applications, RPA benefits, API testing and much more.*Section 3 covers the more advanced and future-looking angles of AI and ML with projections and unique use cases. Among the topics in this section are AI and ML in logs observability, AIOps benefits to an entire DevOps teams, how to maintain AI/ML test automation, Test impact analysis with AI, and more.The book is packed with many proven best practices, real life examples, and many other open source and commercial solution recommendations that are set to shape the future of DevOps together with ML/AI

Node.js Web Development

Node.js Web Development
Author :
Publisher : Packt Publishing Ltd
Total Pages : 482
Release :
ISBN-10 : 9781788627368
ISBN-13 : 1788627369
Rating : 4/5 (68 Downloads)

Synopsis Node.js Web Development by : David Herron

Node.js is a server-side JavaScript platform using an event-driven, non-blocking I/O model allowing users to build fast and scalable data-intensive applications running in real time. JavaScript is no longer just for browsers and this exciting introduction to Node.js will show you how to build data-intensive applications that run in real time. ...