Giter Site home page Giter Site logo

vpolikarpov-akvelon / xk6-browser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grafana/xk6-browser

0.0 0.0 0.0 14.42 MB

k6 extension that adds support for browser automation and end-to-end web testing via the Chrome Devtools Protocol

Home Page: https://k6.io/docs/javascript-api/xk6-browser/

License: GNU Affero General Public License v3.0

JavaScript 3.46% Go 95.04% Makefile 0.10% HTML 1.35% Dockerfile 0.04%

xk6-browser's Introduction

xk6-browser

Browser automation and end-to-end web testing for k6

An extension for k6 adding browser-level APIs with rough Playwright compatibility.

Github release Build status Go Report Card
@k6_io on Twitter Slack channel

Download · Documentation · Community Forum


---


xk6-browser is a k6 extension that supports browser automation through the Chrome Devtools Protocol (CDP). It adds browser-level APIs to interact with browsers and collect frontend performance metrics as part of your k6 tests.

As of k6 version 0.43.0, xk6-browser is now bundled in k6 as an experimental module, and usable without a separate binary or compilation step!

xk6-browser-async-await.1.mp4

Special acknowledgment to the authors of Playwright and Puppeteer for their trailblazing work in this area. This project is heavily influenced and in some regards based on the code of those projects.

Goals

  • Bring browser automation to the k6 testing platform while supporting core k6 features like VU executors, scenarios, metrics, checks, thresholds, logging, DNS remapping, IP blocklists, etc.
  • Test stability as the top priority by supporting non-flaky selectors combined with auto-waiting for actions just like Playwright.
  • Aim for rough API compatibility with Playwright. The reason for this is two-fold; for one we don't want users to have to learn a completely new API just to use xk6-browser, and secondly, it opens up for using the Playwright RPC server as an optional backend for xk6-browser should we decide to support that in the future.
  • Support for Chromium compatible browsers first, and eventually Firefox and WebKit-based browsers.

See our project roadmap for more details.

Get started

Documentation

Get help

  • If you're having issues installing or running xk6-browser, refer to TROUBLESHOOTING.
  • To get help about usage, report bugs, suggest features, and discuss xk6-browser with other users see SUPPORT.md.
  • Community discussion happens at the xk6-browser forum.

Additional resources

To find out more about xk6-browser or browser testing in general, check out the following links.

Note: since our API is still transitioning, some of the code snippets from the links below might be inaccurate, though the concepts should still be correct. For the latest, refer to our up-to-date API documentation.

xk6-browser's People

Contributors

inancgumus avatar ankur22 avatar ka3de avatar robingustafsson avatar mstoykov avatar mdcruz avatar andrewslotin avatar majavojnoska avatar olegbespalov avatar floord avatar paulkohler avatar sniku avatar ppcano avatar tmc avatar vpolikarpov-akvelon avatar zucchinho avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.