Skip to content

Instantly share code, notes, and snippets.

@A5hleyRich
Created October 6, 2023 17:53
Show Gist options
  • Save A5hleyRich/b99264c7ca42fd142abfb95d5f8b68c4 to your computer and use it in GitHub Desktop.
Save A5hleyRich/b99264c7ca42fd142abfb95d5f8b68c4 to your computer and use it in GitHub Desktop.
K6
import http from 'k6/http';
import { sleep } from 'k6';
export const options = {
insecureSkipTLSVerify: true,
};
export default function() {
http.get('https://uat.fathomevents.com/',
{
cookies: {
'ftm-user-city': 'Denver',
'ftm-user-latitude': '40',
'ftm-user-longitude': '-105',
},
}
);
http.post('https://uat.fathomevents.com/wp-admin/admin-ajax.php',
{
action: 'get_events_near_me',
latitude: '40',
longitude: '-105'
},
{
cookies: {
'ftm-user-city': 'Denver',
'ftm-user-latitude': '40',
'ftm-user-longitude': '-105',
},
}
);
sleep(3);
http.post('https://uat.fathomevents.com/wp-admin/admin-ajax.php',
{
action: 'get_event_tickets',
event_id: '1331',
latitude: '40',
longitude: '-105'
},
{
cookies: {
'ftm-user-city': 'Denver',
'ftm-user-latitude': '40',
'ftm-user-longitude': '-105',
},
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment