Skip to content

Instantly share code, notes, and snippets.

View samirpatel-slingshot's full-sized avatar

Samir Patel samirpatel-slingshot

View GitHub Profile
import { check, sleep } from 'k6'
import stomp from 'k6/x/stomp'
import http from 'k6/http'
// import { accessToken } from './auth.js';
import ws from 'k6/ws'
import { randomString, randomIntBetween } from 'https://jslib.k6.io/k6-utils/1.1.0/index.js'
import { Httpx, Request, Get, Post } from 'https://jslib.k6.io/httpx/0.0.2/index.js'
let sessionDuration = randomIntBetween(5000, 60000) // user session between 5s and 1m
//defining auth credentials