Code Monkey home page Code Monkey logo

gatling-blueprint-extensions's Introduction

Gatling Blueprint Extensions Build status Maven Central

Introduction

This project contains some utility methods I found useful for Gatling projects

  • Pretty-Printing Boon JSON objects
  • Hierarchical Directory Search
  • Simulation coordinates

Pretty-Printing Boon JSON Objects

Since I'm using Gatling also for functional testing some JSON handling would be extremly helpful

  • Pretty-print the JSON to have a meaningful diff
  • Remove some parts of the JSON objects on the fly, e.g. UUID or timestamps

Usage is straight-forward

// Pretty-print JSON
FilteringJsonPrettyPrinter.print(departmentJson);

// Pretty-print and remove "id" element
FilteringJsonPrettyPrinter.print(departmentJson, "id");

// Pretty-print and remove "employees" tree
FilteringJsonPrettyPrinter.print(departmentJson, "employees");

Please note that removing of JSON elements do not use JSON path expression - that would be awesone but difficult to implement.

Hierarchical Directory Search

A common pattern to configure test scenarios is to pick up configuration files along a directory tree - you start at a leaf directory and walk up until you hit the configured root directory

  • Locate the first matching CSV file containing user credentials
  • Locate a list of property files to merge them in the correct order

This is implemented by HierarchicalFileLocator and PropertiesResolver.

Simulation Coordinates

This is a rather abstract concept to identify a test scenario being executed by

  • tenant
  • application
  • site
  • scope

The SimulationCoordinates are used to implement managable multi-tenant performance tests

In short the SimulationCoordinates define a hierarchical directory tree which used to pick up various configuration files - tweaking the configuration of a complex test setup turns to providing and/or editing a configuration file.

gatling-blueprint-extensions's People

Contributors

it20one avatar

Watchers

James Cloos 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.