{"id":8332,"date":"2025-04-26T13:30:59","date_gmt":"2025-04-26T11:30:59","guid":{"rendered":"https:\/\/tech.lobobrothers.com\/?p=8332"},"modified":"2025-04-26T13:30:59","modified_gmt":"2025-04-26T11:30:59","slug":"har2locust","status":"publish","type":"post","link":"https:\/\/tech.lobobrothers.com\/en\/har2locust\/","title":{"rendered":"Har2locust"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"8332\" class=\"elementor elementor-8332 elementor-8310\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-494bd42 e-flex e-con-boxed e-con e-parent\" data-id=\"494bd42\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-471cabe elementor-widget elementor-widget-text-editor\" data-id=\"471cabe\" 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<h2 data-start=\"288\" data-end=\"339\">Creating a Locust file with Har2Locust<\/h2>\n<p><\/p>\n<p class=\"\" data-start=\"341\" data-end=\"729\">As promised, if you have followed the <a href=\"https:\/\/tech.lobobrothers.com\/en\/locust-io-load-testing-made-easy\/\" target=\"_blank\" rel=\"noopener\">locust.io post: load testing made easy<\/a>, I mentioned that you could perform all kinds of simulations. I\u2019m going to explain how you can generate a file for Locust with har2locust.<\/p>\n<h2 data-start=\"834\" data-end=\"888\">Step by Step:<\/h2>\n<p><\/p>\n<h3 style=\"font-size: 22px;\" data-start=\"834\" data-end=\"888\">Install har2locust<\/h3>\n<p><\/p>\n<p class=\"\" data-start=\"26\" data-end=\"163\">After following the previous post on Locust, you just need to do the following in your Python environment previously created for Locust:<\/p>\n<p><\/p>\n<p style=\"padding-left: 40px;\"><em>pip install har2locust<\/em><\/p>\n<p><\/p>\n<p class=\"\" data-start=\"191\" data-end=\"206\">Simple, right?<\/p>\n<h3 style=\"font-size: 22px;\">Obtain the file .har<\/h3>\n<p>In our browser, press F12 to open the dev tools, go to the Network tab, and make sure that the network logging is enabled.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-8312 size-full\" src=\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/grabar-registro-de-red.png\" alt=\"grabar registro de red\" width=\"1064\" height=\"222\" srcset=\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/grabar-registro-de-red.png 1064w, https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/grabar-registro-de-red-300x63.png 300w, https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/grabar-registro-de-red-1024x214.png 1024w, https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/grabar-registro-de-red-768x160.png 768w\" sizes=\"(max-width: 1064px) 100vw, 1064px\" \/><\/p>\n<p>Once recording is activated, we browse the website we want to test and, after finishing browsing, we stop recording and export it to a file with the .har extension by right-clicking on the network panel and selecting Save All as HAR with Content.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-8314 size-full\" src=\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/guardar-como-har.png\" alt=\"guardar como har\" width=\"651\" height=\"655\" srcset=\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/guardar-como-har.png 651w, https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/guardar-como-har-298x300.png 298w, https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/guardar-como-har-150x150.png 150w\" sizes=\"(max-width: 651px) 100vw, 651px\" \/><\/p>\n<p>Now we have to convert this .har file to a python file that can run Locust. In our case, we downloaded the file to \/tmp, so in our Locust directory we run:<\/p>\n<p style=\"padding-left: 40px;\"><em>har2locust \/tmp\/test.har &gt; testweb.py<\/em><\/p>\n<h3 style=\"font-size: 22px;\">\u00a1Time to try it!<\/h3>\n<p>As we saw in the previous post, we now run locust indicating the file to use with locust -f testweb.py<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-8316 size-full\" src=\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/locust-testweb.png\" alt=\"locust test web\" width=\"1147\" height=\"169\" srcset=\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/locust-testweb.png 1147w, https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/locust-testweb-300x44.png 300w, https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/locust-testweb-1024x151.png 1024w, https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/locust-testweb-768x113.png 768w\" sizes=\"(max-width: 1147px) 100vw, 1147px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-8321 size-full\" src=\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/locust-captura.png\" alt=\"locust captura\" width=\"1435\" height=\"759\" srcset=\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/locust-captura.png 1435w, https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/locust-captura-300x159.png 300w, https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/locust-captura-1024x542.png 1024w, https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/locust-captura-768x406.png 768w\" sizes=\"(max-width: 1435px) 100vw, 1435px\" \/><\/p>\n<p>Depending on the website, you may get some kind of error, for example if it uses zstd. In that case, we would need to remove the file generated by zstd. That is, we search the file for all the &#8220;accept-encoding&#8221; entries and delete zstd, for example:<\/p>\n<p style=\"padding-left: 40px;\">&#8220;accept-encoding&#8221;: &#8220;gzip, deflate&#8221;,<\/p>\n<p>You can use a script or even sed.<\/p>\n<p style=\"padding-left: 40px;\">sed -i &#8216;s\/&#8221;accept-encoding&#8221;: &#8220;.*zstd.*&#8221;\/&#8221;accept-encoding&#8221;: &#8220;gzip, deflate&#8221;\/g&#8217; testweb.py<\/p>\n<p>And that&#8217;s it. Have a nice weekend.<\/p>\n<p>TL.<\/p>\n<p>Thanks for reading our posts.<\/p>\n\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-5154343 elementor-widget elementor-widget-heading\" data-id=\"5154343\" 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\">FAQs<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-664b992 elementor-widget elementor-widget-toggle\" data-id=\"664b992\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"toggle.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-toggle\">\n\t\t\t\t\t\t\t<div class=\"elementor-toggle-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-1071\" class=\"elementor-tab-title\" data-tab=\"1\" role=\"button\" aria-controls=\"elementor-tab-content-1071\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-toggle-icon elementor-toggle-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-toggle-icon-closed\"><svg class=\"e-font-icon-svg e-fas-caret-right\" viewBox=\"0 0 192 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-toggle-icon-opened\"><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-toggle-title\" tabindex=\"0\">What is har2locust?<\/a>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<div id=\"elementor-tab-content-1071\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"1\" role=\"region\" aria-labelledby=\"elementor-tab-title-1071\"><p>har2locust is a tool that allows you to convert HAR (HTTP Archive) files into Locust scripts. HAR files contain detailed information about the HTTP requests made during a browsing session. With har2locust, you can transform this information into a Locust script that simulates user behavior in a performance testing environment.<\/p>\n<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-toggle-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-1072\" class=\"elementor-tab-title\" data-tab=\"2\" role=\"button\" aria-controls=\"elementor-tab-content-1072\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-toggle-icon elementor-toggle-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-toggle-icon-closed\"><svg class=\"e-font-icon-svg e-fas-caret-right\" viewBox=\"0 0 192 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-toggle-icon-opened\"><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-toggle-title\" tabindex=\"0\">Can I customize the script generated by har2locust?<\/a>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<div id=\"elementor-tab-content-1072\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"2\" role=\"region\" aria-labelledby=\"elementor-tab-title-1072\"><p>Yes, once har2locust generates the script, you can modify it to suit your needs. You can add tasks, modify request parameters, or customize user behavior to more closely resemble a real-world flow or adapt it to specific situations in your load tests.<\/p>\n<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-toggle-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-1073\" class=\"elementor-tab-title\" data-tab=\"3\" role=\"button\" aria-controls=\"elementor-tab-content-1073\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-toggle-icon elementor-toggle-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-toggle-icon-closed\"><svg class=\"e-font-icon-svg e-fas-caret-right\" viewBox=\"0 0 192 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-toggle-icon-opened\"><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-toggle-title\" tabindex=\"0\">Can I use har2locust with large or complex HAR files?<\/a>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<div id=\"elementor-tab-content-1073\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"3\" role=\"region\" aria-labelledby=\"elementor-tab-title-1073\"><p>Yes, har2locust can handle large and complex HAR files, but it&#8217;s important to note that the generated script will be larger and potentially more difficult to maintain if the HAR file contains many requests or resources. In these cases, it may be helpful to filter requests or reduce the HAR file size before converting it. It&#8217;s also a good idea to review and optimize the generated script to ensure proper performance during testing.<\/p>\n<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-toggle-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-1074\" class=\"elementor-tab-title\" data-tab=\"4\" role=\"button\" aria-controls=\"elementor-tab-content-1074\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-toggle-icon elementor-toggle-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-toggle-icon-closed\"><svg class=\"e-font-icon-svg e-fas-caret-right\" viewBox=\"0 0 192 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-toggle-icon-opened\"><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-toggle-title\" tabindex=\"0\">How can I handle external dependencies or resources when using har2locust?<\/a>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<div id=\"elementor-tab-content-1074\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"4\" role=\"region\" aria-labelledby=\"elementor-tab-title-1074\"><p>If your HAR file contains requests to external resources (such as images, scripts, or fonts), har2locust will include them in the generated script. However, if you want to simulate user load without relying on these external resources, you can modify the script to omit or simulate those requests. You can do this by manually editing the generated script and removing or modifying the tasks associated with those resources.<\/p>\n<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<script type=\"application\/ld+json\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"What is har2locust?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"<p>har2locust is a tool that allows you to convert HAR (HTTP Archive) files into Locust scripts. HAR files contain detailed information about the HTTP requests made during a browsing session. With har2locust, you can transform this information into a Locust script that simulates user behavior in a performance testing environment.<\\\/p>\\n\"}},{\"@type\":\"Question\",\"name\":\"Can I customize the script generated by har2locust?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"<p>Yes, once har2locust generates the script, you can modify it to suit your needs. You can add tasks, modify request parameters, or customize user behavior to more closely resemble a real-world flow or adapt it to specific situations in your load tests.<\\\/p>\\n\"}},{\"@type\":\"Question\",\"name\":\"Can I use har2locust with large or complex HAR files?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"<p>Yes, har2locust can handle large and complex HAR files, but it&#8217;s important to note that the generated script will be larger and potentially more difficult to maintain if the HAR file contains many requests or resources. In these cases, it may be helpful to filter requests or reduce the HAR file size before converting it. It&#8217;s also a good idea to review and optimize the generated script to ensure proper performance during testing.<\\\/p>\\n\"}},{\"@type\":\"Question\",\"name\":\"How can I handle external dependencies or resources when using har2locust?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"<p>If your HAR file contains requests to external resources (such as images, scripts, or fonts), har2locust will include them in the generated script. However, if you want to simulate user load without relying on these external resources, you can modify the script to omit or simulate those requests. You can do this by manually editing the generated script and removing or modifying the tasks associated with those resources.<\\\/p>\\n\"}}]}<\/script>\n\t\t\t\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\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Creating a Locust file with Har2Locust As promised, if you have followed the locust.io post: load testing made easy, I mentioned that you could perform all kinds of simulations. I\u2019m going to explain how you can generate a file for Locust with har2locust. Step by Step: Install har2locust After following the previous post on Locust, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":8335,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,50],"tags":[],"class_list":["post-8332","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-world","category-open-source"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Har2locust - LBT<\/title>\n<meta name=\"description\" content=\"Creating a Locust file with Har2Locust As promised, if you have followed the locust.io post: load testing made easy, I mentioned that you could perform\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Har2locust - LBT\" \/>\n<meta property=\"og:description\" content=\"Creating a Locust file with Har2Locust As promised, if you have followed the locust.io post: load testing made easy, I mentioned that you could perform\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog sobre linux y el mundo opensource\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/LoboBrothers\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-26T11:30:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/web-browser-robot-scaled.jpg.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"2048\" \/>\n\t<meta property=\"og:image:height\" content=\"1170\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TL\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TL\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/\"},\"author\":{\"name\":\"TL\",\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/#\/schema\/person\/11c359ab9896aa196007651fa6208beb\"},\"headline\":\"Har2locust\",\"datePublished\":\"2025-04-26T11:30:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/\"},\"wordCount\":578,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/web-browser-robot-scaled.jpg.webp\",\"articleSection\":[\"Linux World\",\"Open Source\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/\",\"url\":\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/\",\"name\":\"Har2locust - LBT\",\"isPartOf\":{\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/web-browser-robot-scaled.jpg.webp\",\"datePublished\":\"2025-04-26T11:30:59+00:00\",\"description\":\"Creating a Locust file with Har2Locust As promised, if you have followed the locust.io post: load testing made easy, I mentioned that you could perform\",\"breadcrumb\":{\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#primaryimage\",\"url\":\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/web-browser-robot-scaled.jpg.webp\",\"contentUrl\":\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/web-browser-robot-scaled.jpg.webp\",\"width\":2048,\"height\":1170,\"caption\":\"White robot cyborg hand pressing a keyboard on a laptop. 3D illustration\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/tech.lobobrothers.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Har2locust\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/#website\",\"url\":\"https:\/\/tech.lobobrothers.com\/en\/\",\"name\":\"Tech LBT\",\"description\":\"Como apasionados de la tecnolog\u00eda y amantes del open source creamos este blog con art\u00edculos interesantes obre linux, cloud, open source, criptomonedas y ciberseguridad\",\"publisher\":{\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tech.lobobrothers.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/#organization\",\"name\":\"Lobo Brothers Technology\",\"url\":\"https:\/\/tech.lobobrothers.com\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2019\/06\/logo_red.png\",\"contentUrl\":\"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2019\/06\/logo_red.png\",\"width\":110,\"height\":50,\"caption\":\"Lobo Brothers Technology\"},\"image\":{\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/LoboBrothers\/\",\"https:\/\/www.linkedin.com\/company\/lobobrothers\/about\/?viewAsMember=true\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/#\/schema\/person\/11c359ab9896aa196007651fa6208beb\",\"name\":\"TL\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tech.lobobrothers.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a2d3b9e0b67bd28fe8248346c09cbe07?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a2d3b9e0b67bd28fe8248346c09cbe07?s=96&d=mm&r=g\",\"caption\":\"TL\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Har2locust - LBT","description":"Creating a Locust file with Har2Locust As promised, if you have followed the locust.io post: load testing made easy, I mentioned that you could perform","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/tech.lobobrothers.com\/en\/har2locust\/","og_locale":"en_US","og_type":"article","og_title":"Har2locust - LBT","og_description":"Creating a Locust file with Har2Locust As promised, if you have followed the locust.io post: load testing made easy, I mentioned that you could perform","og_url":"https:\/\/tech.lobobrothers.com\/en\/har2locust\/","og_site_name":"Blog sobre linux y el mundo opensource","article_publisher":"https:\/\/www.facebook.com\/LoboBrothers\/","article_published_time":"2025-04-26T11:30:59+00:00","og_image":[{"width":2048,"height":1170,"url":"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/web-browser-robot-scaled.jpg.webp","type":"image\/jpeg"}],"author":"TL","twitter_card":"summary_large_image","twitter_misc":{"Written by":"TL","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#article","isPartOf":{"@id":"https:\/\/tech.lobobrothers.com\/en\/har2locust\/"},"author":{"name":"TL","@id":"https:\/\/tech.lobobrothers.com\/en\/#\/schema\/person\/11c359ab9896aa196007651fa6208beb"},"headline":"Har2locust","datePublished":"2025-04-26T11:30:59+00:00","mainEntityOfPage":{"@id":"https:\/\/tech.lobobrothers.com\/en\/har2locust\/"},"wordCount":578,"commentCount":0,"publisher":{"@id":"https:\/\/tech.lobobrothers.com\/en\/#organization"},"image":{"@id":"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#primaryimage"},"thumbnailUrl":"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/web-browser-robot-scaled.jpg.webp","articleSection":["Linux World","Open Source"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/tech.lobobrothers.com\/en\/har2locust\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/tech.lobobrothers.com\/en\/har2locust\/","url":"https:\/\/tech.lobobrothers.com\/en\/har2locust\/","name":"Har2locust - LBT","isPartOf":{"@id":"https:\/\/tech.lobobrothers.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#primaryimage"},"image":{"@id":"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#primaryimage"},"thumbnailUrl":"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/web-browser-robot-scaled.jpg.webp","datePublished":"2025-04-26T11:30:59+00:00","description":"Creating a Locust file with Har2Locust As promised, if you have followed the locust.io post: load testing made easy, I mentioned that you could perform","breadcrumb":{"@id":"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tech.lobobrothers.com\/en\/har2locust\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#primaryimage","url":"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/web-browser-robot-scaled.jpg.webp","contentUrl":"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2025\/04\/web-browser-robot-scaled.jpg.webp","width":2048,"height":1170,"caption":"White robot cyborg hand pressing a keyboard on a laptop. 3D illustration"},{"@type":"BreadcrumbList","@id":"https:\/\/tech.lobobrothers.com\/en\/har2locust\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/tech.lobobrothers.com\/en\/"},{"@type":"ListItem","position":2,"name":"Har2locust"}]},{"@type":"WebSite","@id":"https:\/\/tech.lobobrothers.com\/en\/#website","url":"https:\/\/tech.lobobrothers.com\/en\/","name":"Tech LBT","description":"Como apasionados de la tecnolog\u00eda y amantes del open source creamos este blog con art\u00edculos interesantes obre linux, cloud, open source, criptomonedas y ciberseguridad","publisher":{"@id":"https:\/\/tech.lobobrothers.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tech.lobobrothers.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/tech.lobobrothers.com\/en\/#organization","name":"Lobo Brothers Technology","url":"https:\/\/tech.lobobrothers.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tech.lobobrothers.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2019\/06\/logo_red.png","contentUrl":"https:\/\/tech.lobobrothers.com\/wp-content\/uploads\/2019\/06\/logo_red.png","width":110,"height":50,"caption":"Lobo Brothers Technology"},"image":{"@id":"https:\/\/tech.lobobrothers.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/LoboBrothers\/","https:\/\/www.linkedin.com\/company\/lobobrothers\/about\/?viewAsMember=true"]},{"@type":"Person","@id":"https:\/\/tech.lobobrothers.com\/en\/#\/schema\/person\/11c359ab9896aa196007651fa6208beb","name":"TL","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tech.lobobrothers.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a2d3b9e0b67bd28fe8248346c09cbe07?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a2d3b9e0b67bd28fe8248346c09cbe07?s=96&d=mm&r=g","caption":"TL"}}]}},"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/tech.lobobrothers.com\/en\/wp-json\/wp\/v2\/posts\/8332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.lobobrothers.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.lobobrothers.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.lobobrothers.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.lobobrothers.com\/en\/wp-json\/wp\/v2\/comments?post=8332"}],"version-history":[{"count":1,"href":"https:\/\/tech.lobobrothers.com\/en\/wp-json\/wp\/v2\/posts\/8332\/revisions"}],"predecessor-version":[{"id":8333,"href":"https:\/\/tech.lobobrothers.com\/en\/wp-json\/wp\/v2\/posts\/8332\/revisions\/8333"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tech.lobobrothers.com\/en\/wp-json\/wp\/v2\/media\/8335"}],"wp:attachment":[{"href":"https:\/\/tech.lobobrothers.com\/en\/wp-json\/wp\/v2\/media?parent=8332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.lobobrothers.com\/en\/wp-json\/wp\/v2\/categories?post=8332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.lobobrothers.com\/en\/wp-json\/wp\/v2\/tags?post=8332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}