In [[k6 (tool)|k6]], more complicated testing scenarios may be too verbose to comfortably keep in a single script. While each transaction can be broken up into a function to keep the script readable, there are sometimes cases where even that technique would mean thousands of lines of code. The typical way to solve this is to create multiple scripts, and then a single, main, "runner" script that calls them when appropriate. This approach shines when scripting multiple business flows. ## How to do it First, create several scripts: ```bash main.js product.js about.js login.js ``` Then, in `main.js`, import functions or "modules" you want to use: ```js import { loginPage } from "./login.js"; ``` When you want to use that function from `login.js`, you can call it as if it were a function in the main script: ```js export default function (){ loginPage(); } ```