Automation Rhapsody

Posts with tag: Web Automation

Distributed system observability: Instrument Cypress tests with OpenTelemetry

Instrument Cypress tests with OpenTelemetry and be able to custom trace the tests.

Distributed system observability: Instrument Selenium tests with OpenTelemetry

Instrument Selenium tests with OpenTelemetry and be able to custom trace the tests themselves.

Distributed system observability: complete end-to-end example with OpenTracing, Jaeger, Prometheus, Grafana, Spring Boot, React and Selenium

Code examples and explanations on an end-to-end example showcasing a distributed system observability from the Selenium tests through React front end, all the way to the database calls of a Spring Boot application. Examples are implemented with the OpenTracing toolset and traces are saved in Jaeger. This example also shows a complete observability setup including tools like Grafana, Prometheus, Loki, and Promtail.

How to gather code coverage with Istanbul and Selenium and pitfalls to avoid

Istanbul does not seem to be recoding code coverage correctly, it turned out that the tests do navigation by changing the URL, which resets the code coverage.

Testing with Cypress - Basic API overview

Basic overview of the Cypress API with code samples for some of the interesting features.

Testing with Cypress - Custom logging of errors and JUnit results

Description of the custom error logger and also custom JUnit XML file creator.

Testing with Cypress - lessons learned in a complete framework

In the current post I will share some lessons I've learned using Cypress for quite a long time. Along this journey, I created a framework which solves some of the pain points that Cypress has.

Performance testing in the browser

Approaches for performance testing in the browser using Puppeteer, Lighthouse, and PerformanceTiming API.

What is The Test Mushroom and how to improve your testing

In contrast to Test Pyramid, Test Mushroom shows a test portfolio which is restricted to costly and slow UI tests only. In the current post, I will describe approaches to act on your Test Mushroom hence improve your testing.

Cypress vs. Selenium, is this the end of an era?

Blog post about a Cypress talk I did recently on a local conference. The presentation compares Cypress with well knows Selenium.

Soft assertions for C# unit testing frameworks (MSTest, NUnit, xUnit.net)

Code example of very easy and useful custom implementation of soft assertions in C# unit testing frameworks such as MSTest, NUnit or xUnit.net.

Soft assertions that do not fail JUnit test

Code examples how to use assertions that do not fail the unit test immediately.

Manage and automatically select needed WebDriver in Java 8 Selenium project

Example code how to efficiently manage and automatically select needed local WebDriver using Java 8 method reference used as lambda expression.

Retry JUnit failed tests immediately

How to retry failed JUnit tests immediately and if a retry is OK then report test as passed.

Complete guide to email verifications with Automation SMTP Server

How to do complete email verification with your own Automation SMTP server.

Extract and verify text from PDF with C#

How to extract text from PDF in C#.

Text verification

Verify actual text with expected one by ignoring what is not relevant during compare.

Multilingual automation testing with enumerations

Solution for automated testing of multilingual sites by using string values in all supported languages for enumerations.

Efficiently use of enumerations with string values in C#

Using enumerations or specialized classes makes your automation tests easy to understand and maintain. Show with code samples how to define and read string value to enumeration elements.

NTestsRunner for functional automated tests

NTestsRunner implementation details and features.

Running functional automation tests

.Unit testing frameworks are not very suitable for running functional tests. NTestsRunner is an alternative way of running functional automated tests.

Complete guide how to use design patterns in automation

Complete code example of how design patterns can be used in real life test automation.

Singleton and Null object patterns

Description with code samples of Singleton and Null object design patterns.

Factory design pattern

Description of code samples of Factory design pattern.

Facade design pattern

Description with code samples of Facade design pattern.

Page objects design pattern

Description of code samples of Page Objects design pattern.

Design patterns every test automation engineer should know

Description with examples of 5 design patterns that is good to know and use in our automation testing.

Selenium WebDriver cannot click UTF-8 icons

Selenium WebDriver is not able to click UTF-8 icons. The solution is to use jQuery code.

Efficient waiting for Ajax call data loading with Selenium WebDriver

This post is about implementing an efficient mechanism for Selenium WebDriver to wait for elements by execution of jQuery code.

Automating SignalR applications with Selenium WebDriver

This post is about a "No response from server for url" issue during automation of web application using SignalR with Selenium WebDriver. The issue was resolved by configuring the application to connect to the server through WebSocket protocol.