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 { 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 |