Upgrade to Pro — share decks privately, control downloads, hide ads and more …

LiveView goes k6

LiveView goes k6

Sebastian

April 20, 2023
Tweet

More Decks by Sebastian

Other Decks in Programming

Transcript

  1. K6

  2. K6

  3. besughi/elixir-k6 • Download K6 • Create mix tasks to run

    K6 • Templates for rest/graphql/liveview/…
  4. K6 with LiveView view.send( 'event', { type: 'hook', event: 'chart-init',

    value: { id: 'update-g11' } }, (r) => { // handle response });
  5. K6 with LiveView (response) => { check(response, { 'Pathway list':

    trycatch((r) => r.payload.response.diff.c['3']['0']['3']['6']['1']['9'].d[22][0] === 'something') }); }
  6. K6 with LiveView (response) => { check(response, { 'Pathway list':

    trycatch((r) => r.payload.response.diff.c['3']['0']['3']['6']['1']['9'].d[22][0] === 'something') }); } 😱