{"id":6207,"date":"2019-05-17T22:25:31","date_gmt":"2019-05-18T02:25:31","guid":{"rendered":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/?page_id=6207"},"modified":"2019-06-03T14:51:12","modified_gmt":"2019-06-03T18:51:12","slug":"selenium-ide-measurements-plugin","status":"publish","type":"page","link":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/articles\/selenium-ide-measurements-plugin\/","title":{"rendered":"Selenium IDE Measurements plugin"},"content":{"rendered":"<p>This plugin for Selenium IDE allows collection of performance measurements during a test.<\/p>\n<h2>Installation<\/h2>\n<p>This Selenium IDE plugin can be installed in Firefox as an extension directly from the <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/seleniumide-measurements\/\">Firefox Add-ons store<\/a>.<\/p>\n<h2>Usage<\/h2>\n<h3>Commands<\/h3>\n<p>The plugin adds new commands to start and stop timers. Each timer has a name.<\/p>\n<p>To start a timer:<\/p>\n<blockquote><p>start timer | &lt;name&gt;<\/p><\/blockquote>\n<p>To end a timer:<\/p>\n<blockquote><p>end timer | &lt;name&gt;<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6200\" src=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2019\/05\/commands-screenshot.png\" alt=\"\" width=\"600\" height=\"318\" \/><\/p>\n<p>You can download this example <a href=\"https:\/\/s3.amazonaws.com\/files.webperformance.com\/files\/measurements-side-plugin\/measurements-example.side\">.side file<\/a> to get started. After downloading, you can open it with Selenium IDE and then run it to collect measurements.<\/p>\n<h3>Viewing the measurements<\/h3>\n<p>As the test runs, the measurements from the timers are collected and stored in the plug-in. To view the measurements, press the\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2019\/05\/icon-16.png\" alt=\"\" width=\"16\" height=\"16\" \/> button in the Firefox toolbar. After running the test shown above three times, you would see:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6203\" src=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2019\/05\/ui-screenshot.png\" alt=\"\" width=\"586\" height=\"393\" \/><\/p>\n<h3>Exporting the measurements<\/h3>\n<p>The JSON and CSV links under each test provide an export of the measurements. The CSV data can be easily pasted into a spreadsheet and graphed. The JSON format is the internal representation and contains additional information that may or may not be useful such as the TestID and RunID assigned by Selenium IDE. Note that the JSON format is subject to change without warning and <strong>absolutely\u00a0no effort<\/strong> will be made to maintain compatibility with previous versions.<\/p>\n<h3>Iterations<\/h3>\n<p>Within a single run of a test, the logic may include looping. The <em>Measurements<\/em> plugin takes a very simplistic approach to detecting iterations: when a measurement has a name that already exists in the current iteration, a new iteration is started. This works well if all the measurements of interest are in that loop. Such as when the entire test exists within a <em>times<\/em> loop &#8211; this could be used so that a single test run in the IDE exercises the test steps multiple times to gather more performance data (possibly to use average durations to lessen random noise). In this case, the lines will be numbered 1.1, 1.2 &#8230; 1.N where N is the number of times the test loops. Subsequent runs would be numbered 2.1, 2.2 &#8230; 2.N.<\/p>\n<h2>Need help?<\/h2>\n<p>You can click the <em>Have a Question?<\/em> tab in the upper-left of this page, or <a href=\"https:\/\/webperformance.freshdesk.com\/\">go open a support ticket<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This plugin for Selenium IDE allows collection of performance measurements during a test.<br \/>\nInstallation<br \/>\nThis Selenium IDE plugin can be installed in Firefox as an extension directly from the <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/seleniumide-measurements\/\">Firefox Add-ons store<\/a>.<br \/>\nUsage<br \/>\nCommands<br \/>\nThe plugin adds new commands to start and stop timers. Each timer has a name.<br \/>\nTo start a timer:<br \/>\nstart timer | &lt;name&gt;<br \/>\nTo end a timer:<br \/>\nend timer | &lt;name&gt;<\/p>\n<p>You can download this example <a href=\"https:\/\/s3.amazonaws.com\/files.webperformance.com\/files\/measurements-side-plugin\/measurements-example.side\">.side file<\/a> to get started. After downloading, you can open it with Selenium IDE and then run it to collect measurements.<br \/>\nViewing the measurements<br \/>\nAs the test runs, the measurements from the timers are collected and stored in the plug-in. &hellip; <a href=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/articles\/selenium-ide-measurements-plugin\/\">Continue reading &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":6223,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"manual-page.php","meta":{"footnotes":""},"class_list":["post-6207","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/6207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/comments?post=6207"}],"version-history":[{"count":6,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/6207\/revisions"}],"predecessor-version":[{"id":6243,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/6207\/revisions\/6243"}],"up":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/6223"}],"wp:attachment":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/media?parent=6207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}