Test Automation

2 minutes read

Nowadays, in the era of instant gratification, when everyone want everything in a matter of moments, understanding the performance of your website, web application, web service is more important than has ever been.

Monitor Web Performance With Lighthouse as a service
Performance Metrics from KissFront

Using web performance tools to understand how your application behaves is easy and a best practice that you should follow on a daily basis.

There are multiple things that you need to consider when you assess the overall performance of your app, and it’s not all about performance metrics and speed. You need to take into account accessibility, SEO, mobile usability and others.

Try to understand more about Google Lighthouse here.

There are tools, like KissFront.com which can help you run performance assessments on an hourly basis, check screenshots on loading behaviour of your app, SEO, accessibility and other important metrics.

Have a look at this example.

First Meaningful Paint
Speed Monitoring from KissFront

Start now to Monitor Your Website Performance With Lighthouse as a service from KissFront. Here are just a few benefits:

  • Get insights with modern metrics from Lighthouse.
  • Test your website every hour.
  • No coding & no configuration required.
  • Compare with previous runs or competitors.

Test Automation

2 minutes read

Selenium IDE is an open source record and playback tool used. Easy to use and fast in generating UI functional test cases.

selenium ide

End to End testing is quite fast when you create tests from the Selenium IDE Chrome Extension or Firefox Add-on.

Debugging tests, setting breakpoints, running an UI test to a specific test step work out of the box the new version of Selenium IDE.

Test suites are available in order to group previously generated test cases, and exporting your test cases is a click of a button away.

Concurrent execution of test cases is available from the command-line (terminal) and which lowers your execution time.

Multiple selector fallback happens automatically, basically when you click and record a test case and interact with an element, Selenium IDE generated 3-5 fallback selectors, so that in case first selector fails, Selenium IDE automatically verifies the other selectors before failing the test step.

selenium ide

You can have a look in more depth with the new Selenium IDE course created Understand Selenium IDE Test Automation Tool #seleniumide course

selenium ide course
Selenium IDE Video Course

Test Automation

2 minutes read

TestCafe is a Node.js tool to automate end-to-end web testing.


What are End to End tests and why are they important?

End to End tests cover real journeys that your customers do, they are slower to execute but can be much more valuable comparing to unit and integration tests.

E2E testing cons:

  • slow and non-consistently passing tests
  • long configuration time
  • too long execution time – much longer than unit tests
  • debugging time is too high

What is TestCafe? History of TestCafe and how does it work?

TestCafe is a Node.js tool to automate end-to-end web testing and functional testing.

TestCafe uses a URL-rewriting proxy called Hammerhead that emulates commands using the DOM API and injects JavaScript into the browser.

TestCafe supports multiple browsers without any browser drivers.

It runs every single test in its own isolated test environment to simulate new sessions.

Each test has finished being executed, it will lose the state (cookies, local storage etc) of the page and start from the beginning again.

Main TestCafe features:

  • Cross-browser testing
  • Open source
  • Easy setup/installation
  • UI End to End Tests
  • Builtin waits
  • Retry assertions
  • Uses standard CSS selectors to locate elements
  • Live Testing with TestCafe Live
  • Remote browser/mobile testing: run tests in any browser (including mobile devices and cloud services)
  • No complex configuration required
  • Can control the speed at which tests are run
  • Concurrency: run multiple tests with same or different browsers at the same time
  • CI/CD integration
  • Screenshots testing
  • Supports TypeScript

Example of Test in TestCafe:

import { Selector } from 'testcafe';

fixture `Getting Started`
    .page `http://devexpress.github.io/testcafe/example`;

test('My first test', async t => {
    // Test code

More details on How to Build an End to End Software Testing Framework with TestCafe in our Coursinator course.

More details on How to Build an End to End Software Testing Framework with TestCafe in our Coursinator course.

TestCafe Course

Cypress is one of the alternatives to TestCafe. More details on Cypress is available in the video screencast The Ultimate Cypress Testing Hands-on Guide Course

Test Automation

< 1 minute read

KissFront uses Google Lighthouse as a Service for continuous modern performance audits.

KissFront’s Chrome Extension for Google Lighthouse is live now. This will enable easier view of the modern performance metrics like Performance Score, First Meaningful Paint, First Contentful Paint, Speed Index and others. Try to understand more about Google Lighthouse here.

Monitor your website

Your website gets monitored every hour, and you can use this new extension to monitor your website performance, and understand how is your website’s performance changing over time..

More details on how easily is to run a test with KissFront and Google Lighthouse.

Get Started Now

Page Load Time Performance Testing Website Speed Testing

2 minutes readKissFront is a web performance monitoring tool running Lighthouse continuously or on-demand (using Lighthouse as a service) to monitor your website performance and get insights on speed with modern performance metrics.

Lighthouse is an open-source automated tool for analysing and improving the quality of web pages with audits for performance, accessibility, progressive web apps, SEO and best practices. Try to understand more about Google Lighthouse here.

KissFront.com uses Lighthouse as a Service to provide regression testing for developers and product people

Each time Lighthouse audit generates a comprehensive report that gives information on all of the tests that passed in addition to the ones that failed. Also it includes the ability to test progressive web applications for compliance with standards and best practices.

lighthouse metrics results

KissFront uses Lighthouse audits and it provides five categories of feedback, ranking from zero to 100. Lighthouse Audit references: Performance, Progressive Web App, Accessibility, Best Practices, SEO.

  • Performance: Modern metrics on how fast your website loads and how key elements become available to your customers – First Contentful Paint, First Meaningful Paint, Speed Index etc.
  • Progressive Web App: checks your site’s level of completeness, which improves mobile performance and may increase search engine rankings.
  • Accessibility: checks 35 accessibility traits, one of the most important things you can monitor, also you are legally obliged to provide an accessible website.
  • Best Practices: checks the use web development best practices, like HTTP/2.
  • SEO: less thorough than some third-party SEO audit tools, it can still help your business get an idea of how it will perform in search engines.

lighthouse report

Choose the Lighthouse usage

  • Use KissFront for Lighthouse as a service
  • Chrome DevTools
  • Command line (via shell scripts)
  • As Node module npm install -g lighthouse To run an audit: lighthouse To see audit options: lighthouse –help

KissFront.com Helps Improving Your Overall Website Experience. Easily store and share results with your team.

lighthouse multiple runs

KissFront gives you the ability to monitor all the metrics from above over a period of time during deployments and high load. Also gives you the ability to monitor not only your website but you competitors web sites.

Modern Performance Metrics Page Load Time Test Automation

< 1 minute readTime to First Meaningful Paint (TTFMT) is a modern performance metric introduced by few engineers from Google, and is the time to paint the main content that users are interested in, so the thing the users came here for.

Rendering some background color can be much easier and faster, but that’s definitely not what the users was looking for when they entered your website.

In order to identify the main content of the page, we define these primary elements as Hero Elements, but for now there is not a clear way for us to get paint times of specific elements of the DOM (Document Object Model).

first meaningful paint

No browsers exposes this metric at the moment, but it seems to get big traction. You can inspect the First Contentful Paint (FCP) and First Meaningful Paint (FMP) with KissFront, which allows easy monitoring and modern metrics inspection.

First Meaningful Paint can be also defined as the paint after which the biggest layout change has happened.

Modern Performance Metrics Page Load Time

< 1 minute readFirst Paint (FP) shows the time it took for something to happen, anything at all, however this can be not so useful, as this first render, may not be very useful for the user, and for the overall experience.

First Paint entry marks the first key moment developers care about in page load – when the browser has started to render the page. More details here https://w3c.github.io/paint-timing/#first-paint

How to improve the First Paint (FP)

One idea is to trim the size of your JavaScript bundles in order to improve the FP, especially for slow networks like 3G or Edge, which are still available in areas with poor connectivity, or on low-end mobile phones.
Have a look which functionality you use from a library, and try to mimic that in a much simpler fashion.

An improvement to First Paint (FP) is the First Contentful Paint (FCP) which helps you understand the time it took to render something useful for the user.

First Paint and First Contentful Paint metrics can be identical on fast websites, but on more complex websites, with various client and server side rendering, the First Contentful Paint would be the best metric to use.

More details on how to improve issues on your website can be found by running tests with KissFront.