-
-
Save andrelashley/b772421109610f4cbda9a22cf6768b8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http from 'k6/http'; | |
import { check, sleep } from 'k6'; | |
export let options = { | |
stages: [ | |
{ duration: '30s', target: 500 }, | |
{ duration: '15s', target: 500 }, | |
{ duration: '30s', target: 0 }, | |
], | |
}; | |
export default function() { | |
let res1 = http.get("https://dev.news.gov.bc.ca"); | |
check(res1, {'status was 200': r => r.status == 200}); | |
// sleep(5); | |
//let res2 = http.get("https://dev.news.gov.bc.ca/releases/2021TACS0001-000008"); | |
// check(res2, {'status was 200': r => r.status == 200}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment