+++ title = "Load Tests as Code" outputs = ["Reveal"] [reveal_hugo] custom_theme = "reveal-hugo/themes/robot-lung.css" margin = 0.2 highlight_theme = "color-brewer" transition = "slide" transition_speed = "fast" +++
Load tests as code
An introduction to k6
Nicole van der Hoeven
This is pretty cool
h2
h3
Some italicized text
import http from 'k6/http';
import { sleep, check } from 'k6';
export default function () {
let res = http.get('https://test.k6.io', {tags: { name: '01_Home' }});
check(res, {
'is status 200': (r) => r.status === 200,
'text verification': (r) => r.body.includes("Collection of simple web-pages suitable for load testing")
});
sleep(Math.random() * 5);
}
{{< slide id="hello" background="#7d64ff" transition="zoom" transition-speed="slow" >}}
{{% note %}} Speaker notes here. This shouldn't be visible. {{% /note %}}
{{% fragment %}}# Isa{{% /fragment %}} {{% fragment %}}## Deux{{% /fragment %}} {{% fragment %}}### Drie{{% /fragment %}}
{{% section %}}
What's a vertical slide?
Oh cool!
{{% /section %}}
<iframe width="1120" height="630" src=" Aquí un videohttps://www.youtube.com/embed/WrDV8iIdCy8" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
{{< slide background-image="lucrezia-carnelos-AsM4T46tqcU-unsplash.jpg" transition="zoom" transition-speed="slow" >}}
Photo by
Lucrezia Carnelos
on Unsplash.
Maybe I should actually write this presentation now.