{"id":626,"date":"2024-04-26T13:09:27","date_gmt":"2024-04-26T13:09:27","guid":{"rendered":"https:\/\/razvanvancea.ro\/blog\/?p=626"},"modified":"2026-05-24T05:16:10","modified_gmt":"2026-05-24T05:16:10","slug":"4-ways-to-handle-test-data-in-k6-load-testing","status":"publish","type":"post","link":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/","title":{"rendered":"4 ways to handle Test Data in k6 &#8211; Load Testing"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"626\" class=\"elementor elementor-626\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5760482 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5760482\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2146951\" data-id=\"2146951\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fdd9901 elementor-widget elementor-widget-text-editor\" data-id=\"fdd9901\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p class=\"p1\">Test data is the information designed to be used by test script during execution. Using different values for certain parameters will make the test more realistic.<\/p><p class=\"p1\">Common use cases for test data might be usernames and passwords, emails, addresses, names, personal information, prodct names and so on.<br \/><br \/>In this article we will explore 4 ways of handling this subject. It worths mentioning that the SharedArray approach will be the most efficient method.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a3ed811 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a3ed811\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-85a839b\" data-id=\"85a839b\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-89fcbbe elementor-widget elementor-widget-heading\" data-id=\"89fcbbe\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">1) Arrays - simplest way to add test data<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8b400c5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8b400c5\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d35626c\" data-id=\"d35626c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ff92cfb elementor-widget elementor-widget-image\" data-id=\"ff92cfb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"640\" height=\"347\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.58.35.png\" class=\"attachment-large size-large wp-image-629\" alt=\"\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.58.35.png.webp 749w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.58.35-300x163.png.webp 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.58.35-24x13.png.webp 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.58.35-36x20.png.webp 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.58.35-48x26.png.webp 48w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a8b2dc6 elementor-widget elementor-widget-heading\" data-id=\"a8b2dc6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">2) CSV file<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-44b1cf7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"44b1cf7\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-01f3ce2\" data-id=\"01f3ce2\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-31fb6e6 elementor-widget elementor-widget-text-editor\" data-id=\"31fb6e6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In this approach we are going to keep the data sets (pairs of usernames+passwords) into a CSV file, import it in our k6 script then use a random variable that randomly picks data<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ec724d0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ec724d0\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d3a86d5\" data-id=\"d3a86d5\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b943b10 elementor-widget elementor-widget-image\" data-id=\"b943b10\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"209\" height=\"94\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.56.17.png\" class=\"attachment-large size-large wp-image-627\" alt=\"k6-test-data-csv\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.56.17.png.webp 209w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.56.17-24x11.png.webp 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.56.17-36x16.png.webp 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.56.17-48x22.png.webp 48w\" sizes=\"(max-width: 209px) 100vw, 209px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-152c306 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"152c306\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-cc0b715\" data-id=\"cc0b715\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c129b80 elementor-widget elementor-widget-image\" data-id=\"c129b80\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"640\" height=\"326\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.58.01.png\" class=\"attachment-large size-large wp-image-628\" alt=\"k6-script-test-data-csv\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.58.01.png.webp 898w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.58.01-300x153.png.webp 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.58.01-768x392.png.webp 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.58.01-850x434.png.webp 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.58.01-24x12.png.webp 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.58.01-36x18.png.webp 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-15.58.01-48x24.png.webp 48w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0b04633 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0b04633\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5404cdf\" data-id=\"5404cdf\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3ff9207 elementor-widget elementor-widget-heading\" data-id=\"3ff9207\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">3) JSON file<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-22644bb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"22644bb\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-cda295c\" data-id=\"cda295c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c3e95bc elementor-widget elementor-widget-text-editor\" data-id=\"c3e95bc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In this approach we are going to keep the data sets (pairs of usernames+passwords) into a JSON file, import it in our k6 script then use a random variable that randomly picks data<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0cf15cd elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0cf15cd\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d791ecd\" data-id=\"d791ecd\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4392455 elementor-widget elementor-widget-image\" data-id=\"4392455\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"444\" height=\"124\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.16.png\" class=\"attachment-large size-large wp-image-630\" alt=\"\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.16.png.webp 444w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.16-300x84.png.webp 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.16-24x7.png.webp 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.16-36x10.png.webp 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.16-48x13.png.webp 48w\" sizes=\"(max-width: 444px) 100vw, 444px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cc8aadc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cc8aadc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4ca1d4e\" data-id=\"4ca1d4e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c61fa01 elementor-widget elementor-widget-image\" data-id=\"c61fa01\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"290\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.54.png\" class=\"attachment-large size-large wp-image-631\" alt=\"k6-test-data-json-script\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.54.png.webp 904w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.54-300x136.png.webp 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.54-768x347.png.webp 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.54-850x385.png.webp 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.54-24x11.png.webp 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.54-36x16.png.webp 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.54-48x22.png.webp 48w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0fc93c9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0fc93c9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f5e173c\" data-id=\"f5e173c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bc7597a elementor-widget elementor-widget-heading\" data-id=\"bc7597a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">4) SharedArray - the most efficient approach<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b0fb692 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b0fb692\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0acc464\" data-id=\"0acc464\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f056c68 elementor-widget elementor-widget-text-editor\" data-id=\"f056c68\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p class=\"p1\">The shared array approach <strong>must be combined<\/strong> with any of the previous approaches and it is the most efficient way to add data within a k6 test because it handles the high resource utilization most efficiently.<\/p><p class=\"p1\">The reason is that in the previous approaches when a file is used in a test, multiple copies of the files are created and sent to the load generator; when the file is large it can have an impact on the resources. Hence, to prevent this, the SharedArray approach should be the go-to option.<br \/><br \/>In the following example, I will be using SharedArray combined with the JSON approach.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a7c3bfd elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a7c3bfd\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bb4f8fd\" data-id=\"bb4f8fd\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cc5564b elementor-widget elementor-widget-image\" data-id=\"cc5564b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"444\" height=\"124\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.16.png\" class=\"attachment-large size-large wp-image-630\" alt=\"\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.16.png.webp 444w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.16-300x84.png.webp 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.16-24x7.png.webp 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.16-36x10.png.webp 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.01.16-48x13.png.webp 48w\" sizes=\"(max-width: 444px) 100vw, 444px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9aec825 elementor-widget elementor-widget-image\" data-id=\"9aec825\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"339\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.05.28.png\" class=\"attachment-large size-large wp-image-632\" alt=\"\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.05.28.png.webp 953w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.05.28-300x159.png.webp 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.05.28-768x407.png.webp 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.05.28-850x450.png.webp 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.05.28-24x13.png.webp 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.05.28-36x19.png.webp 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-26-at-16.05.28-48x25.png.webp 48w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-19c8027 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"19c8027\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-722a278\" data-id=\"722a278\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9499f29 elementor-widget elementor-widget-spacer\" data-id=\"9499f29\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cf60bc7 elementor-widget elementor-widget-text-editor\" data-id=\"cf60bc7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><a href=\"https:\/\/github.com\/razvanvancea\/learnwithrv-youtube-projects\/tree\/master\/k6-test-data\" target=\"_blank\" rel=\"noopener\">Source code HERE<\/a><\/p><p><strong>\u00a0<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cd8474d elementor-widget elementor-widget-spacer\" data-id=\"cd8474d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e3acba8 elementor-widget elementor-widget-text-editor\" data-id=\"e3acba8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Enjoyed this article? Make sure to subscribe to my\u00a0<em><a href=\"https:\/\/www.youtube.com\/@LearnwithRV\" target=\"_blank\" rel=\"noopener\">YouTube Channel<\/a><\/em>\u00a0for more Test Automation tutorials, and follow me on\u00a0<a href=\"https:\/\/www.linkedin.com\/in\/razvanvancea\/\" target=\"_blank\" rel=\"noopener\"><em>LinkedIn<\/em><\/a>\u00a0and\u00a0<em><a href=\"https:\/\/twitter.com\/razvanvancea\" target=\"_blank\" rel=\"noopener\">Twitter<\/a><\/em>\u00a0for regular insights.<strong><br \/>Looking to improve your test automation skills?<br \/><\/strong>I\u2019ve created a<strong>\u00a0personalized 1-on-1 Mentoring program\u00a0<\/strong>refined to<strong>\u00a0boost YOUR skills.\u00a0<\/strong>Reach out at\u00a0<a rel=\"noopener\">iamrv@razvanvancea.ro<\/a>\u00a0for more details and\u00a0<strong>together\u00a0<\/strong>will create a<strong>\u00a0learning path\u00a0<\/strong>adapted to your<strong>\u00a0current skills and goals\u00a0<\/strong>that you are aiming for<strong>,<\/strong>\u00a0in a<strong>\u00a0timely-efficient manner\ud83d\ude80<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-825a5a6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"825a5a6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fba9840\" data-id=\"fba9840\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5424faf elementor-widget elementor-widget-video\" data-id=\"5424faf\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/OBZ4q6b0Iq0?si=UybB21n8CPtPoxYP&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Test data is the information designed to be used by test script during execution. Using&#8230;<\/p>\n","protected":false},"author":2,"featured_media":633,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[20],"tags":[],"class_list":["post-626","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-k6"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Test data is the information designed to be used by test script during execution. Using different values for certain parameters will make the test more realistic.Common use cases for test data might be usernames and passwords, emails, addresses, names, personal information, prodct names and so on.In this article we will explore 4 ways of handling\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Razvan Vancea\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Learn with RV - Tech Blog - #testautomation #qa #programming #linux #devops\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"4 ways to handle Test Data in k6 \u2013 Load Testing - Learn with RV - Tech Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Test data is the information designed to be used by test script during execution. Using different values for certain parameters will make the test more realistic.Common use cases for test data might be usernames and passwords, emails, addresses, names, personal information, prodct names and so on.In this article we will explore 4 ways of handling\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-04-26T13:09:27+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-05-24T05:16:10+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/razvanvancea\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@RazvanVancea\" \/>\n\t\t<meta name=\"twitter:title\" content=\"4 ways to handle Test Data in k6 \u2013 Load Testing - Learn with RV - Tech Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Test data is the information designed to be used by test script during execution. Using different values for certain parameters will make the test more realistic.Common use cases for test data might be usernames and passwords, emails, addresses, names, personal information, prodct names and so on.In this article we will explore 4 ways of handling\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@RazvanVancea\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/04\\\/26\\\/4-ways-to-handle-test-data-in-k6-load-testing\\\/#blogposting\",\"name\":\"4 ways to handle Test Data in k6 \\u2013 Load Testing - Learn with RV - Tech Blog\",\"headline\":\"4 ways to handle Test Data in k6 &#8211; Load Testing\",\"author\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/Copy-of-Copy-of-Your-paragraph-text-1.png\",\"width\":1920,\"height\":1080,\"caption\":\"k6-test-data-logo\"},\"datePublished\":\"2024-04-26T13:09:27+00:00\",\"dateModified\":\"2026-05-24T05:16:10+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/04\\\/26\\\/4-ways-to-handle-test-data-in-k6-load-testing\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/04\\\/26\\\/4-ways-to-handle-test-data-in-k6-load-testing\\\/#webpage\"},\"articleSection\":\"k6\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/04\\\/26\\\/4-ways-to-handle-test-data-in-k6-load-testing\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/tools\\\/#listItem\",\"name\":\"Tools\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/tools\\\/#listItem\",\"position\":2,\"name\":\"Tools\",\"item\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/tools\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/tools\\\/k6\\\/#listItem\",\"name\":\"k6\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/tools\\\/k6\\\/#listItem\",\"position\":3,\"name\":\"k6\",\"item\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/tools\\\/k6\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/04\\\/26\\\/4-ways-to-handle-test-data-in-k6-load-testing\\\/#listItem\",\"name\":\"4 ways to handle Test Data in k6 &#8211; Load Testing\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/tools\\\/#listItem\",\"name\":\"Tools\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/04\\\/26\\\/4-ways-to-handle-test-data-in-k6-load-testing\\\/#listItem\",\"position\":4,\"name\":\"4 ways to handle Test Data in k6 &#8211; Load Testing\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/tools\\\/k6\\\/#listItem\",\"name\":\"k6\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\",\"name\":\"RV\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/04\\\/26\\\/4-ways-to-handle-test-data-in-k6-load-testing\\\/#personImage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/91ce41471f9ba5f15b3ef99e7deed87c.jpg?ver=1785997097\",\"width\":96,\"height\":96,\"caption\":\"RV\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/razvanvancea\\\/\",\"https:\\\/\\\/twitter.com\\\/RazvanVancea\",\"https:\\\/\\\/www.youtube.com\\\/@LearnwithRV\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/razvanvancea\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/\",\"name\":\"Razvan Vancea\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/04\\\/26\\\/4-ways-to-handle-test-data-in-k6-load-testing\\\/#authorImage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/356548feb901191539c03dd4a0498f58.jpg?ver=1785997099\",\"width\":96,\"height\":96,\"caption\":\"Razvan Vancea\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/04\\\/26\\\/4-ways-to-handle-test-data-in-k6-load-testing\\\/#webpage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/04\\\/26\\\/4-ways-to-handle-test-data-in-k6-load-testing\\\/\",\"name\":\"4 ways to handle Test Data in k6 \\u2013 Load Testing - Learn with RV - Tech Blog\",\"description\":\"Test data is the information designed to be used by test script during execution. Using different values for certain parameters will make the test more realistic.Common use cases for test data might be usernames and passwords, emails, addresses, names, personal information, prodct names and so on.In this article we will explore 4 ways of handling\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/04\\\/26\\\/4-ways-to-handle-test-data-in-k6-load-testing\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/Copy-of-Copy-of-Your-paragraph-text-1.png\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/04\\\/26\\\/4-ways-to-handle-test-data-in-k6-load-testing\\\/#mainImage\",\"width\":1920,\"height\":1080,\"caption\":\"k6-test-data-logo\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/04\\\/26\\\/4-ways-to-handle-test-data-in-k6-load-testing\\\/#mainImage\"},\"datePublished\":\"2024-04-26T13:09:27+00:00\",\"dateModified\":\"2026-05-24T05:16:10+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/\",\"name\":\"Learn with RV - Tech Blog\",\"description\":\"#testautomation #qa #programming #linux #devops\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"4 ways to handle Test Data in k6 \u2013 Load Testing - Learn with RV - Tech Blog","description":"Test data is the information designed to be used by test script during execution. Using different values for certain parameters will make the test more realistic.Common use cases for test data might be usernames and passwords, emails, addresses, names, personal information, prodct names and so on.In this article we will explore 4 ways of handling","canonical_url":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/#blogposting","name":"4 ways to handle Test Data in k6 \u2013 Load Testing - Learn with RV - Tech Blog","headline":"4 ways to handle Test Data in k6 &#8211; Load Testing","author":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"publisher":{"@id":"https:\/\/razvanvancea.ro\/blog\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Copy-of-Copy-of-Your-paragraph-text-1.png","width":1920,"height":1080,"caption":"k6-test-data-logo"},"datePublished":"2024-04-26T13:09:27+00:00","dateModified":"2026-05-24T05:16:10+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/#webpage"},"isPartOf":{"@id":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/#webpage"},"articleSection":"k6"},{"@type":"BreadcrumbList","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog#listItem","position":1,"name":"Home","item":"https:\/\/razvanvancea.ro\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/#listItem","name":"Tools"}},{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/#listItem","position":2,"name":"Tools","item":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/","nextItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/k6\/#listItem","name":"k6"},"previousItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/k6\/#listItem","position":3,"name":"k6","item":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/k6\/","nextItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/#listItem","name":"4 ways to handle Test Data in k6 &#8211; Load Testing"},"previousItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/#listItem","name":"Tools"}},{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/#listItem","position":4,"name":"4 ways to handle Test Data in k6 &#8211; Load Testing","previousItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/k6\/#listItem","name":"k6"}}]},{"@type":"Person","@id":"https:\/\/razvanvancea.ro\/blog\/#person","name":"RV","image":{"@type":"ImageObject","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/#personImage","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/litespeed\/avatar\/91ce41471f9ba5f15b3ef99e7deed87c.jpg?ver=1785997097","width":96,"height":96,"caption":"RV"},"sameAs":["https:\/\/www.facebook.com\/razvanvancea\/","https:\/\/twitter.com\/RazvanVancea","https:\/\/www.youtube.com\/@LearnwithRV","https:\/\/www.linkedin.com\/in\/razvanvancea"]},{"@type":"Person","@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author","url":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/","name":"Razvan Vancea","image":{"@type":"ImageObject","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/#authorImage","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/litespeed\/avatar\/356548feb901191539c03dd4a0498f58.jpg?ver=1785997099","width":96,"height":96,"caption":"Razvan Vancea"}},{"@type":"WebPage","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/#webpage","url":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/","name":"4 ways to handle Test Data in k6 \u2013 Load Testing - Learn with RV - Tech Blog","description":"Test data is the information designed to be used by test script during execution. Using different values for certain parameters will make the test more realistic.Common use cases for test data might be usernames and passwords, emails, addresses, names, personal information, prodct names and so on.In this article we will explore 4 ways of handling","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/razvanvancea.ro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/#breadcrumblist"},"author":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"creator":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Copy-of-Copy-of-Your-paragraph-text-1.png","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/#mainImage","width":1920,"height":1080,"caption":"k6-test-data-logo"},"primaryImageOfPage":{"@id":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/#mainImage"},"datePublished":"2024-04-26T13:09:27+00:00","dateModified":"2026-05-24T05:16:10+00:00"},{"@type":"WebSite","@id":"https:\/\/razvanvancea.ro\/blog\/#website","url":"https:\/\/razvanvancea.ro\/blog\/","name":"Learn with RV - Tech Blog","description":"#testautomation #qa #programming #linux #devops","inLanguage":"en-US","publisher":{"@id":"https:\/\/razvanvancea.ro\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Learn with RV - Tech Blog - #testautomation #qa #programming #linux #devops","og:type":"article","og:title":"4 ways to handle Test Data in k6 \u2013 Load Testing - Learn with RV - Tech Blog","og:description":"Test data is the information designed to be used by test script during execution. Using different values for certain parameters will make the test more realistic.Common use cases for test data might be usernames and passwords, emails, addresses, names, personal information, prodct names and so on.In this article we will explore 4 ways of handling","og:url":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/","article:published_time":"2024-04-26T13:09:27+00:00","article:modified_time":"2026-05-24T05:16:10+00:00","article:publisher":"https:\/\/www.facebook.com\/razvanvancea","twitter:card":"summary_large_image","twitter:site":"@RazvanVancea","twitter:title":"4 ways to handle Test Data in k6 \u2013 Load Testing - Learn with RV - Tech Blog","twitter:description":"Test data is the information designed to be used by test script during execution. Using different values for certain parameters will make the test more realistic.Common use cases for test data might be usernames and passwords, emails, addresses, names, personal information, prodct names and so on.In this article we will explore 4 ways of handling","twitter:creator":"@RazvanVancea"},"aioseo_meta_data":{"post_id":"626","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2024-04-26 12:55:51","updated":"2026-05-30 10:54:34","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/razvanvancea.ro\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/razvanvancea.ro\/blog\/category\/tools\/\" title=\"Tools\">Tools<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/razvanvancea.ro\/blog\/category\/tools\/k6\/\" title=\"k6\">k6<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t4 ways to handle Test Data in k6 \u2013 Load Testing\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/razvanvancea.ro\/blog"},{"label":"Tools","link":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/"},{"label":"k6","link":"https:\/\/razvanvancea.ro\/blog\/category\/tools\/k6\/"},{"label":"4 ways to handle Test Data in k6 &#8211; Load Testing","link":"https:\/\/razvanvancea.ro\/blog\/2024\/04\/26\/4-ways-to-handle-test-data-in-k6-load-testing\/"}],"jetpack_featured_media_url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/04\/Copy-of-Copy-of-Your-paragraph-text-1.png","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/comments?post=626"}],"version-history":[{"count":9,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/626\/revisions"}],"predecessor-version":[{"id":955,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/626\/revisions\/955"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/media\/633"}],"wp:attachment":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/media?parent=626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/categories?post=626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/tags?post=626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}