Coder Social home page Coder Social logo

loopr's Introduction

loopr

This project emulates many end-users interacting with StockTrader via an external load balancer, such as an AWS Elastic LoadBalancer. It will:

  • create a new portfolio for a randomly generated user
  • Buy some shares (between 0-100) of a randomly selected stock
  • Sell a random number of shares of said stock
  • Delete the portfolio

There is a random amount of "think time" between each activity and there are page-navigation steps, included, too.

You can get creative and add additional buys/sell actions, more thinking time, additional actions, emulate different types of behavior by changing what is included in the scenario.

Prerequisites for Mac

Install SDKMAN and SBT:

curl -s "https://get.sdkman.io" | bash 
sdk install scala
sdk install sbt

Run the tool

git clone https://github.com/rtclauss/loopr.git
cd loopr
sbt clean GatlingIt/test -DpublicBaseEndpoint=https://a872f86d8b0b74adc9a6fb3568be2118-cb3a347684a3ce53.elb.us-east-2.amazonaws.com:9443

loopr's People

Contributors

rtclauss avatar

Watchers

 avatar

loopr's Issues

Add support for login via OpenID Connect

This Gatling-based stress client works great when Stock Trader is configured to use Liberty's basicRegistry for its login (using its hard-coded stock/trader credentials). But when the CR yaml is updated to use OpenID Connect instead, that won't work. Instead of seeing my login.jsp, you'll get redirected to the OIDC provider's login page, such as this one that I get from KeyCloak:

image

Upon successful login (like ultimately to RACF in the example above, as KeyCloak uses its "user federation" to call the Tivoli LDAP server on our mainframe in Brazil), it will then redirect back to Trader's summary.jsp (with the JWT issued by KeyCloak in a cookie), and all is as usual from then on.

We need to figure out how we would get this (very useful!) Gatling-based test harness working when OpenID Connect mode is enabled.

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.