{"id":113,"date":"2013-06-16T12:33:26","date_gmt":"2013-06-16T16:33:26","guid":{"rendered":"https:\/\/www.redline13.com\/blog\/?page_id=113"},"modified":"2022-01-17T23:41:54","modified_gmt":"2022-01-18T04:41:54","slug":"writing-a-custom-load-test","status":"publish","type":"page","link":"https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/","title":{"rendered":"Writing Open Load Tests in Your Language"},"content":{"rendered":"<p>You can write custom tests in either <a href=\"#phptest\">PHP<\/a> or <a href=\"#nodetest\">Node.js<\/a>\u00a0or <a href=\"https:\/\/www.redline13.com\/blog\/custom-load-test-python\/\">Python<\/a>.<br \/>\nTo get started, please refer to the appropriate section below.<\/p>\n<h3>Writing Open\u00a0Load Tests<\/h3>\n<p>A language specific load test is<\/p>\n<ul>\n<li>ANY code\u00a0you want to execute<\/li>\n<li>With some redline13 API calls to report test execution and timing<\/li>\n<\/ul>\n<p>Each\u00a0language is\u00a0documented independently and can be found on the corresponding page<\/p>\n<ul>\n<li><a href=\"https:\/\/www.redline13.com\/blog\/custom-load-test-php\/\">PHP<\/a><\/li>\n<li><a href=\"https:\/\/www.redline13.com\/blog\/custom-load-test-nodejs\/\">NodeJS<\/a><\/li>\n<li><a href=\"https:\/\/www.redline13.com\/blog\/custom-load-test-python\/\">Python<\/a><\/li>\n<\/ul>\n<h3>Submitting\u00a0Performance Tests<\/h3>\n<ul>\n<li>There are two ways to submit a custom load test\n<ul>\n<li>Submit the Load Test File ( .php, .js, .py ) in the language specified<\/li>\n<li>Submit a compressed file (.tar, .tar.gz, .tgz ) with the custom file specifically named\n<ul>\n<li>PHP &#8211; Custom.class.php<\/li>\n<li>NodeJS &#8211; CustomTest.js<\/li>\n<li>Python &#8211; custom_test.py<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Custom Load Tests support CSV, Compressed, and Extra files\n<ul>\n<li>CSV files can be split across servers<\/li>\n<li>Compressed files can be marked to be expanded<\/li>\n<li>All files are placed in the root of the load test<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>Package Support in Load Tests<\/h3>\n<p>Each Language supports\u00a0a packaging mechanism to install more packages<\/p>\n<ul>\n<li>PHP &#8211; <a href=\"https:\/\/www.redline13.com\/blog\/2016\/07\/feature-update-composer-plugin\/\">Composer<\/a><\/li>\n<li>NodeJS &#8211; NPM built into NodeJS test<\/li>\n<li>Python &#8211;\u00a0Not available yet,\u00a0waiting for customer direction and feedback<\/li>\n<\/ul>\n<h3>Versioning<\/h3>\n<ul>\n<li>Currently only NodeJS supports running on different versions using <a href=\"https:\/\/www.redline13.com\/blog\/2016\/07\/node-version-manager-plugin\/\">NVM Plugin<\/a><\/li>\n<li>Python 2.7.6<\/li>\n<li>PHP 5.5.9<\/li>\n<li>Other versions required? \u00a0email info@redline13.com<\/li>\n<\/ul>\n<h3>Test Harness for local testing<\/h3>\n<p>A\u00a0Test Harness is available for all languages, including\u00a0examples<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/redline13\/harness-custom-test-php\">PHP Harness<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/redline13\/harness-custom-test-nodejs\">NodeJS Harness<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/redline13\/harness-custom-test-python\">Python Harness\u00a0<\/a><\/li>\n<\/ul>\n<h2 id=\"phptest\"><\/h2>\n<h2 id=\"nodetest\"><\/h2>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can write custom tests in either PHP or Node.js\u00a0or Python. To get started, please refer to the appropriate section below. Writing Open\u00a0Load Tests A language specific load test is ANY code\u00a0you want to execute With some redline13 API calls to report test execution and timing Each\u00a0language is\u00a0documented independently and can be found on the corresponding page PHP NodeJS Python Submitting\u00a0Performance Tests There are two ways to submit a custom load test Submit the Load Test<a class=\"more-link\" href=\"https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/\">Read More &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":3235,"parent":0,"menu_order":48,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":{"0":"entry","1":"page","2":"publish","3":"author-user","4":"post-113","6":"has-post-thumbnail"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Writing Open Load Tests in Your Language - RedLine13<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Writing Open Load Tests in Your Language - RedLine13\" \/>\n<meta property=\"og:description\" content=\"You can write custom tests in either PHP or Node.js\u00a0or Python. To get started, please refer to the appropriate section below. Writing Open\u00a0Load Tests A language specific load test is ANY code\u00a0you want to execute With some redline13 API calls to report test execution and timing Each\u00a0language is\u00a0documented independently and can be found on the corresponding page PHP NodeJS Python Submitting\u00a0Performance Tests There are two ways to submit a custom load test Submit the Load TestRead More &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/\" \/>\n<meta property=\"og:site_name\" content=\"RedLine13\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-18T04:41:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2015\/09\/custom-languages.png\" \/>\n\t<meta property=\"og:image:width\" content=\"913\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/\",\"name\":\"Writing Open Load Tests in Your Language - RedLine13\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\"},\"datePublished\":\"2013-06-16T16:33:26+00:00\",\"dateModified\":\"2022-01-18T04:41:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.redline13.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Writing Open Load Tests in Your Language\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\",\"url\":\"https:\/\/www.redline13.com\/blog\/\",\"name\":\"RedLine13\",\"description\":\"(Almost) Free Load Testing in the Cloud\",\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.redline13.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\",\"name\":\"RedLine13\",\"url\":\"https:\/\/www.redline13.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg\",\"contentUrl\":\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg\",\"width\":300,\"height\":68,\"caption\":\"RedLine13\"},\"image\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Writing Open Load Tests in Your Language - RedLine13","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:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/","og_locale":"en_US","og_type":"article","og_title":"Writing Open Load Tests in Your Language - RedLine13","og_description":"You can write custom tests in either PHP or Node.js\u00a0or Python. To get started, please refer to the appropriate section below. Writing Open\u00a0Load Tests A language specific load test is ANY code\u00a0you want to execute With some redline13 API calls to report test execution and timing Each\u00a0language is\u00a0documented independently and can be found on the corresponding page PHP NodeJS Python Submitting\u00a0Performance Tests There are two ways to submit a custom load test Submit the Load TestRead More &rarr;","og_url":"https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/","og_site_name":"RedLine13","article_modified_time":"2022-01-18T04:41:54+00:00","og_image":[{"width":913,"height":550,"url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2015\/09\/custom-languages.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/","url":"https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/","name":"Writing Open Load Tests in Your Language - RedLine13","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/#website"},"datePublished":"2013-06-16T16:33:26+00:00","dateModified":"2022-01-18T04:41:54+00:00","breadcrumb":{"@id":"https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.redline13.com\/blog\/writing-a-custom-load-test\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redline13.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Writing Open Load Tests in Your Language"}]},{"@type":"WebSite","@id":"https:\/\/www.redline13.com\/blog\/#website","url":"https:\/\/www.redline13.com\/blog\/","name":"RedLine13","description":"(Almost) Free Load Testing in the Cloud","publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.redline13.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.redline13.com\/blog\/#organization","name":"RedLine13","url":"https:\/\/www.redline13.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg","contentUrl":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg","width":300,"height":68,"caption":"RedLine13"},"image":{"@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/pages\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":0,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/pages\/113\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media\/3235"}],"wp:attachment":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media?parent=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}