I’d like to use Facebook as my example here. One condition is that the login page for Facebook only accepts GET calls. Knowing this, I’d like to perform a load test on the Marketplace page once you get past the login page.
Let’s say I write the following code to get past the authentication of the login page:
import http from 'k6/http';
import { check } from 'k6';
export default function () {
const res = http.get('https://facebook.com/#/signin/action?email=xxxxx&password=xxxx');
check(res, {
'is status 200': (r) => r.status === 200,
})
}
Up to this point, I’m not quite sure how to navigate to the Marketplace page for a load test of that end point?