In Go, you can Set Values to be used inside a Go sequence, both as fixed inputs and dynamically generated data. These value tools allow you to define variables that can later be used throughout your script, giving you control over how data flows during execution.
To insert a fixed value, right-click within the script editor and choose the option to set a value. Go places a new line directly beneath your cursor. This line contains two fields: the value itself and the target variable that will receive it. Double-click the value field to specify the value you want to set, and update the target variable name if needed. Go provides a default variable name, but you are free to rename it to something meaningful.
For dynamic values, Go offers a broad set of generators. Right-click again and choose to generate a random value. As with fixed values, a new line appears under your cursor. The default generator is a randomizer, which lets you produce random numbers in a specified range. You can adjust the range by double-clicking the numbers and defining the start and end values.
Beyond basic random numbers, Go supports generating structured data. You can produce person information such as first names, last names, titles, and phone numbers. You can generate address data, company names, and other useful categories. Each of these opens additional type options so you can tailor the output to what your test requires. Text generation is also available, offering a wide selection of content types that Go can produce automatically.
No matter which generator you choose, be mindful of the destination variable. This variable is what you will use later when inserting the generated value into a URL, a request body, or anywhere else in the script.
These features allow you to combine static values, randomized inputs, and realistic test data within your sequences. They introduce variety, help validate different scenarios, and make your load tests more reflective of real usage.