function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }

function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }

function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }

function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }

function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }

function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }

function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }

function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }

function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }

function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }

function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["run-jmeter-script-run-jmeter-script-module"], {
  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/run-jmeter-script/run-jmeter-script.component.html":
  /*!************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/run-jmeter-script/run-jmeter-script.component.html ***!
    \************************************************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _node_modules_rawLoader_dist_cjsJs_src_app_pages_home_scriptManager_runJmeterScript_runJmeterScriptComponentHtml(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "<div class=\"main-box\">\n    <p-toolbar>\n        <div class=\"p-grid p-align-center p-justify-between p-3\">\n            <div class=\"p-grid p-align-center\">\n                <i class=\"cav JMeter mr-5\"></i>\n                <label>Run JMeter Script</label>\n            </div>\n            <app-help  [helpFileName]=\"'runJMeterScript'\"  [helpTitle]=\"'Run JMeter Script'\" [helpFolder]=\"'script'\"></app-help>\n        </div>\n    </p-toolbar>\n\n    <div class=\"projectDetail\">\n        <div class=\"p-grid p-align-center\">\n            <div class=\"p-col-1 checkmark\">Test Name</div>\n            <div class=\"p-col-2\">\n                <input type=\"text\" required pInputText [(ngModel)]=\"testName\" title=\"{{testName}}\" class=\"w-100-p\">\n            </div>\n            <div class=\"p-col-1\">\n                <button type=\"button\" pButton class=\"btn-icon\" icon=\"icons8 icons8-info\" (mouseenter)=\"tstnm.toggle($event)\" (mouseleave)=\"tstnm.toggle($event)\" tooltipStyle=\"tstnm.toggle($event)\"></button>\n                <p-overlayPanel #tstnm appendTo=\"body\" styleClass=\"popHover\">\n                <div class=\"p-8 line-height20 width-400\">\n                    Test Name is name of your test.Test Name must be of maximum 64 characters. First character must be Alpha. Other characters are Alpha, Numeric or Underscore.\n                    </div>\n                </p-overlayPanel>\n            </div>\n\t\t\t<img *ngIf=\"showLoaderIcon\" class=\"loadingIcon\" src=\"./assets/images/loading.gif\" width=\"25px\" />\n        </div>\n\n        <div class=\"p-grid p-align-center\">\n            <div class=\"p-col-1\">JMeter Script </div>\n            <div class=\"p-col-2\">\n                <p-dropdown [options]=\"scriptListItem\" name=\"scriptName\" [(ngModel)]=\"groupData.scriptName\"\n                    scrollHeight=\"100px\" appendTo=\"body\" [style]=\"{'min-width': '100%'}\" required ngModel\n                    [filter]=\"true\"  dropdownIcon=\"icons8 icons8-expand-arrow\"></p-dropdown>\n            </div>\n            <div class=\"p-col-9\">\n                <button pButton type=\"button\" class=\"ui-button-rounded ui-button-rounded mx-3\" label=\"Delete Script\"\n                    (click)=\"deleteScript()\" pTooltip=\"Delete Script\" [disabled]=\"scriptListItem.length==0\"></button>\n\t\t\t\t\t\n                <button pButton type=\"button\" class=\"ui-button-rounded mx-3\" label=\"Add Script\" (click)=\"addToTable()\"\n                    pTooltip=\"Selected script will be added in scenario for test execution\" [disabled]=\"scriptListItem.length==0\"></button>\n\t\t\t\t\t\n                <button pButton type=\"button\" class=\"ui-button-rounded mx-3\" label=\"View Script\" pTooltip=\"View JMeter Script\"  (click)= \"viewJMScript()\" [disabled]=\"scriptListItem.length==0\"></button>\n\t\t\t\t\n                <p-fileUpload name=\"file[]\" class=\"ui-button-rounded fileUpload mx-3\" mode=\"basic\"\n                    [url]=\"getUploadUrl()\" accept=\".tar.gz,.zip,.jmx\" auto=\"true\" chooseLabel=\"Upload JMX\" #form\n                    pTooltip=\"Upload JMX file or zip containing JMX and all dependent resources\"\n                    [disabled]=\"!isUploadAllowed || !isJMeterEnable\" customUpload=\"true\" (uploadHandler)=\"onFileUpload($event, form)\" (onSelect)=\"onBasicFileSelect($event, form)\">\n                </p-fileUpload>\n                \n                <button type=\"button\" pButton class=\"btn-icon\" icon=\"icons8 icons8-info\" (mouseleave)=\"fileupl.toggle($event)\" (mouseenter)=\"fileupl.toggle($event)\"></button>\n\t\t\t\t<div *ngIf=\"loaderForUpload\" class=\"icons8 icons8-spinner spin cav-mx-2\"></div>\n                <p-overlayPanel #fileupl appendTo=\"body\" styleClass=\"popHover\">\n                <div class=\"p-8 line-height20 width-400\">\n                    Zip your JMX file including any CSV data set, dependent JMX files or additional plugins. All csv data files and other dependent JMX must not use absolute path.\n                    </div>\n                </p-overlayPanel>\n\n                     \n            </div>\n        </div>\n\n\n      <!-- rampup threads duration UI -->\n      <div class=\"p-grid p-align-center\">\n          <div class=\"p-col-12 font-weight-700\">Override JMeter schedule settings\n            <button type=\"button\" pButton class=\"btn-icon\" icon=\"icons8 icons8-info\" (mouseleave)=\"overrideJmeter.toggle($event)\" (mouseenter)=\"overrideJmeter.toggle($event)\"></button>\n            <p-overlayPanel #overrideJmeter appendTo=\"body\" styleClass=\"popHover\">\n                <div class=\"p-8 line-height20 width-400\">You can override JMeter schedule settings like threads, test duration and Ramp up. To do it<br>\n                    &nbsp;&nbsp;  1. Enable Override schedule settings <br>\n                    &nbsp;&nbsp;  2. Since we will be updating this value through the command line, it must be defined in thread properties by writing<br>\n                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ {{ '{' }}__P(threads,100){{ '}' }} for number of threads, ${{ '{' }}__P(rampup,10){{ '}' }} for Ramp-Up Period, ${{ '{' }}__P(duration,600){{ '}' }} for Duration<br>\n                    &nbsp;&nbsp; If it is disabled, Netstorm will run with default values whatever is set in jmx <br>\n                    &nbsp;&nbsp; For ex: Here default value will be 100 for threads, 10 for rampup and 600 for duration.\n                </div>\n            </p-overlayPanel>\n        </div>\n      </div>\n      <div class=\"p-grid  p-align-center\">\n\n          <div class=\"p-col-1 p-grid p-align-center\">\n            <p-inputSwitch [(ngModel)]=\"threads\" (change)=\"isThreadDistributionEnabled()\" title=\"Override JMeter schedule settings is not allowed with Distribute threads among selected generators\"></p-inputSwitch>\n            <label class=\"mx-3\">Threads</label>\n        </div>\n        <div *ngIf=threads class=\"p-col-1\">\n          <p-spinner inputStyleClass=\"width-60\" min='0'  max=\"10000\" maxlength=\"5\" oninput=\"javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength); if (this.value > 10000) this.value = this.value.slice(0, 1) ;\"  [(ngModel)]=\"threadInput\" (keypress)=\"validateQty($event, false)\"></p-spinner>\n        </div>\n\n        <div class=\"p-col-1 p-grid p-align-center\">\n            <p-inputSwitch [(ngModel)]=\"rampup\" (change)=\"isThreadDistributionEnabled()\" title=\"Override JMeter schedule settings is not allowed with Distribute threads among selected generators\"></p-inputSwitch>\n                <label class=\"mx-3\">Ramp Up</label>\n          </div>\n\n          <div *ngIf=rampup class=\"p-col-2 p-grid\">\n            <p-spinner inputStyleClass=\"width-60\" placeholder=\"HH\" type='number' min='0'  max=\"59\" maxlength=\"2\" oninput=\"javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);\"  [(ngModel)]=\"rampUpHours\" (keypress)=\"validateQty($event, false)\"></p-spinner>\n\n            <p-spinner inputStyleClass=\"width-60\" class=\"mx-5\" placeholder=\"MM\" type='number' min='0'  max=\"59\" maxlength=\"2\" oninput=\"javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength); if (this.value > 59) this.value = this.value.slice(0, 1) ;\"  [(ngModel)]=\"rampUpMins\" (keypress)=\"validateQty($event, false)\"></p-spinner>\n\n              <p-spinner inputStyleClass=\"width-60\" placeholder=\"SS\" type='number' min='0'  max=\"59\" maxlength=\"2\" oninput=\"javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength); if (this.value > 59) this.value = this.value.slice(0, 1) ;\" [(ngModel)]=\"rampUpSecs\" (keypress)=\"validateQty($event, false)\"></p-spinner>\n\n          </div>\n          <div class=\"p-col-1 p-grid p-align-center\">\n            <p-inputSwitch id=\"duration\" [(ngModel)]=\"duration\" (change)=\"isThreadDistributionEnabled()\" title=\"Override JMeter schedule settings is not allowed with Distribute threads among selected generators\"></p-inputSwitch>\n            <label class=\"mx-3\">Duration</label>\n          </div>\n\n          <div *ngIf=duration class=\"p-col-2 p-grid\">\n            <p-spinner inputStyleClass=\"width-60\" placeholder=\"HH\" type='number' min='0' max=\"59\" oninput=\"javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);\" maxlength=\"2\" [(ngModel)]=\"durationHours\" (keypress)=\"validateQty($event, false)\"></p-spinner>\n\n            <p-spinner inputStyleClass=\"width-60\" class=\"mx-5\" placeholder=\"MM\" type='number' min='0' max=\"59\" maxlength=\"2\" oninput=\"javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength); if (this.value > 59) this.value = this.value.slice(0, 1) ;\" [(ngModel)]=\"durationMins\" (keypress)=\"validateQty($event, false)\"></p-spinner>\n\n            <p-spinner inputStyleClass=\"width-60\" placeholder=\"SS\" type='number' min='0' max=\"59\" maxlength=\"2\" oninput=\"javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength); if (this.value > 59) this.value = this.value.slice(0, 1);\" [(ngModel)]=\"durationSecs\" (keypress)=\"validateQty($event, false)\"></p-spinner>\n          </div>\n      </div>\n   \n    <div class=\"p-5\" >  \n        <cav-table  [value]=\"scriptList\" [headerRelativePath]=\"headerRelativePath\"\n        [scrollable]=\"true\" scrollHeight=\"125px\"  (deleteRow)=\"removeScriptFromTable($event.rowIndex)\"></cav-table>\n    \n      </div>\n  \n        <!-- Generator settings -->\n        <div class=\"p-grid p-align-center\">\n            <div class=\"p-col-12\">\n              <p-checkbox label=\"Run Test in distributed mode\" binary=\"true\"  [(ngModel)]=\"isShowGenTable\" (click)=\"checkGenData()\"></p-checkbox>\n              </div>\n          <div *ngIf=\"isShowGenTable\">\n             <cav-generator-list  [mode]=\"1\" [genKeywordDataFromServer]=\"genKeywordDataFromServer\"></cav-generator-list>\n          </div>\n  \n        <div class=\"ui-g-12\" *ngIf=\"isShowGenTable\">\n          <div class=\"p-grid p-align-center\"><strong> Distribute mode options </strong> </div>\n      </div>\n      <div class=\"ui-g-12 cav-ml-3\" *ngIf=\"isShowGenTable\">\n          <p-checkbox [(ngModel)]=\"selectedVuserSplit\" label=\"Distribute threads among selected generators\" binary=\"true\" (onChange)=\"isOverrideJmeterEnabled()\"  title=\"Distribute threads among selected generators is not allowed with Override JMeter schedule settings\"> </p-checkbox>\n          <button type=\"text\" pButton  class=\"btn-icon\" icon=\"icons8 icons8-info\"  (mouseleave)=\"op1.toggle($event)\" (mouseenter)=\"op1.toggle($event)\"></button>\n        </div>\n        <p-overlayPanel #op1 appendTo=\"body\" styleClass=\"popHover\">\n            <div class=\"p-8 line-height20 width-400\">\n                Threads will be distributed equally among all generators.<br>\n                For example, if there are 1000 threads and 10 generators, each generator will be running 100 threads. If distribution is not enabled then each generator will be running 1000 threads.\n            </div>\n        </p-overlayPanel>\n\n  \n  \n  \n      <div class=\"ui-g-12 cav-ml-3\" *ngIf=\"isShowGenTable\">\n          <p-checkbox [(ngModel)]=\"healthCheckGenerator\" label=\"Perform health check of all generators before starting the test\" binary=\"true\"> </p-checkbox>\n          <button type=\"text\" pButton  class=\"btn-icon\" icon=\"icons8 icons8-info\"  (mouseleave)=\"healthCheckInfo.toggle($event)\" (mouseenter)=\"healthCheckInfo.toggle($event)\"></button>\n        </div>\n        <p-overlayPanel #healthCheckInfo appendTo=\"body\">\n          <div class=\"p-8 line-height20 width-400\">\n            If health check is enabled then cpu, memory and disk availability checks will be performed before starting the test.<br>\n            If you are running a debug test and health check is failing then you can disable the health check.\n            </div>\n        </p-overlayPanel>\n  \n      <div class=\"ui-g-12 cav-ml-3\" *ngIf=\"isShowGenTable\">\n          CSV data set file splitting options for unique entries per generator \n          <button type=\"text\" pButton  class=\"btn-icon\" icon=\"icons8 icons8-info\" (click)=\"CsvDataSetsplitInfo.toggle($event)\"></button>\n        \n       \n          <div class=\"p-grid p-dir-col ml-20\">\n        <div class=\"ui-g-12\">\n          <p-radioButton name=\"splitGroup\" label=\"Do not split files\" value=\"0\" [(ngModel)]=\"selectedSplitType\" ></p-radioButton>\n        </div>\n        <div class=\"ui-g-12\">\n          <p-radioButton name=\"splitGroup\" label=\"Split all files\" value=\"1\" [(ngModel)]=\"selectedSplitType\" ></p-radioButton>\n        </div>\n        <div class=\"ui-g-12\">\n          <p-radioButton name=\"splitGroup\" label=\"Split file whose name contains \" value=\"2\" [(ngModel)]=\"selectedSplitType\" > </p-radioButton>\n          <input type=\"text\" [disabled]=\"selectedSplitType != 2\" pInputText [(ngModel)]=\"txtSplitFile\" class=\"width-80 mx-10\" />\n        </div>\n        </div>\n      </div>\n         </div>\n\n         <p-overlayPanel #CsvDataSetsplitInfo appendTo=\"body\" styleClass=\"popHover\">\n            <div class=\"p-8 line-height20 width-400\">\n            If splitting is to be done filename must not contain any variable name.<br>\n            Also files must have data lines greater than or equal to number of generators.\n            </div>\n        </p-overlayPanel>\n  \n  <!-- Advance Settings  -->\n  <div class=\"p-6\">\n      <p-accordion class=\"accordHeader\"  [activeIndex]=\"index\">\n          <p-accordionTab header=\"Advanced Settings\" >\n\n                  <div class=\"p-grid p-align-center\">\n                      <div class=\"p-col-2\">JMeter JVM Settings</div>\n                      <div class=\"width-150 p-grid p-align-center\">\n                          <label>Min</label>\n                          <p-spinner inputStyleClass=\"width-80\" min=\"0\" class=\"mx-5\"  [(ngModel)]=\"minHeap\" (keypress)=\"validateQty($event, false)\"></p-spinner>\n                              <label>(MB)</label> \n                      </div>\n                      <div class=\"width-150 p-grid p-align-center\">\n                        <label>Max</label>\n                        <p-spinner inputStyleClass=\"width-80\" min=\"0\" class=\"mx-5\"  [(ngModel)]=\"maxHeap\" (keypress)=\"validateQty($event, false)\"></p-spinner>\n                              <label>(MB)</label>\n                      </div>\n                      <!-- TODAY --> \n                      <div class=\"p-col-2\">\n                              <input type=\"text\" class=\"w-100-p\" pInputText placeholder=\"Additional JVM arguments\"\n                                  [(ngModel)]=\"additionalJvmArgs\">\n                      </div>\n                  </div>\n\n                  <div class=\"p-grid p-align-center\">\n                    <div class=\"p-col-2\">JMeter Additional Arguments</div>\n                    <div class=\"p-col-2 pl-26\">\n                          <input type=\"text\" class=\"w-100-p\" pInputText placeholder=\"Optional parameters\"\n                              [(ngModel)]=\"optionalParam\">\n                      </div>\n                  </div>\n              \n              <div *ngIf=\"!isShowGenTable\" class=\"my-10\">\n                  <p-checkbox label=\"Generate JMeter Report\" binary=\"true\" [(ngModel)]=\"isJmeterReportEnabled\"></p-checkbox>\n              </div>\n  \n              <div class=\"my-10\">\n                  <p-checkbox label=\"Enable Drill Down Reporting\" binary=\"true\" [(ngModel)]=\"isDdrEnabled\"></p-checkbox>\n                  <button type=\"button\" pButton class=\"btn-icon\" icon=\"icons8 icons8-info\"  (mouseleave)=\"ddr.toggle($event)\" (mouseenter)=\"ddr.toggle($event)\"></button>\n                  <p-overlayPanel #ddr styleClass=\"popHover\">\n                    <div class=\"p-8 line-height20 width-400\">\n                      Drill down reporting helps in the analysis of transactions and view of all individual transaction\n                      start time,<br>\n                      duration, HTTP status code etc.\n                      </div>\n                  </p-overlayPanel>\n              </div>\n  \n              <div class=\"my-10\">\n                  <p-checkbox label=\"Enable Network Logs\" binary=\"true\" [(ngModel)]=\"isTracingEnable\"></p-checkbox>\n                  <button type=\"button\" pButton class=\"btn-icon\" icon=\"icons8 icons8-info\" (mouseenter)=\"trace.toggle($event)\" (mouseleave)=\"trace.toggle($event)\"></button>\n                  <p-overlayPanel #trace styleClass=\"popHover\">\n                    <div class=\"p-8 line-height20 width-400\">\n                      Transaction tracing helps in verification of transactions while developing your script or debugging\n                      of failed transaction in a performance test.<br>\n                      You can view request and response in real time while test is running or later after test is over.It\n                      is recommended to limit trace to 1% in case of<br>\n                      performance test.\n                      </div>\n                  </p-overlayPanel>\n              </div>\n            <div>\n                <div class=\"w-100-p  my-8 pl-42 p-grid p-align-center\">\n                    <div class=\"mr-10\">\n                        Capture\n                    </div>\n                    <div class=\"width-90 p-col-nogutter mr-10\">\n                        <div class=\"ui-inputgroup w-100-p\">\n                            <p-spinner inputStyleClass=\"w-100-p\" min=\"0\" max=\"100\" step=\"0.1\" [disabled]=\"!isTracingEnable\"\n                                [(ngModel)]=\"txtSession\" (keypress)=\"validateQty($event, false)\"></p-spinner>\n                            <span class=\"ui-inputgroup-addon px-10\">%</span>\n                        </div>\n                    </div>\n                    <div class=\"mr-10\">\n                        of complete sessions and \n                    </div>\n                    <div class=\"width-90 p-col-nogutter mr-10\">\n                        <div class=\"ui-inputgroup w-100-p\">\n                            <p-spinner inputStyleClass=\"w-100-p\" min=\"0\" max=\"100\" step=\"0.1\" [disabled]=\"!isTracingEnable\"\n                                [(ngModel)]=\"capErrorSession\" (keypress)=\"validateQty($event, false)\"></p-spinner>\n                            <span class=\"ui-inputgroup-addon px-10\">%</span>\n                        </div>\n                    </div>\n                    <div class=\"mr-10\">\n                        of error sessions with\n                    </div>\n                    <div class=\"width-170 p-col-nogutter mr-10\">\n                        <p-dropdown [options]=\"sessionOptions\" [disabled]=\"!isTracingEnable\"\n                            [style]=\"{ 'min-width' : '100%' }\" [pTooltip]=\"tooltipObj[radTraceSession]\" [(ngModel)]=\"radTraceSession\"\n                            dropdownIcon=\"icons8 icons8-expand-arrow\" appendTo=\"body\"></p-dropdown>\n                    </div>\n                    <span> in network logs</span>\n                </div>\n                \n            </div>\n\n                <!-- Traces UI ends -->\n                <!-- JMeter Sampler As Transaction -->\n             <div style=\"margin-left: 0px;\">\n              <p-accordion class=\"accordHeader1\">\n                <p-accordionTab header=\"JMeter Sampler As Transaction\">\n                          <div class=\"my-8\">\n                              <p-radioButton  value=\"sampleNotAsTxn\" [(ngModel)]=\"sampleAndTxn\"\n                                  label=\"Do not consider sampler as a transaction\"></p-radioButton>\n                          </div>\n                          <div class=\"my-8\">\n                              <p-radioButton  value=\"sampleAsTxn\" [(ngModel)]=\"sampleAndTxn\"\n                                  label=\"Consider each sampler as a transaction\"></p-radioButton>\n                          </div>\n                          <div class=\"my-8\">\n                              <p-radioButton value=\"distinctSuccessAndFailure\" [(ngModel)]=\"sampleAndTxn\"\n                                  label=\"Consider each sampler's success or failure as distinct transactions\"></p-radioButton>\n                          </div>\n                          <div class=\"my-8\">\n                              <p-radioButton value=\"samplerStatusAsTxn\" [(ngModel)]=\"sampleAndTxn\"\n                                  label=\"Consider each sampler status as different transactions\"></p-radioButton>\n                          </div>\n                      \n                      <!-- GROUP 2 -->\n                      <div class=\"marginTopClass\">\n                          <div class=\"my-8\" >\n                              <p-checkbox label=\"Do not add 'tx_' prefix in transaction name\" binary=\"true\"\n                                  [(ngModel)]=\"noPrefixInTxn\"></p-checkbox>\n                          </div>\n                      </div>\n                      <!-- GROUP 3 -->\n                      <div class=\"marginTopClass\">\n                          <div class=\"my-8\" >\n                              <p-checkbox label=\"Apply above setting only if Generate Parent Sample is not enabled\"\n                                  binary=\"true\" [(ngModel)]=\"ifParentSampleEnabled\"></p-checkbox>\n                          </div>\n                      </div>\n\n                </p-accordionTab>\n              </p-accordion>\n              </div>\n                </p-accordionTab>\n            </p-accordion>\n        </div>\n  \n\t\t\n\t\t<div class=\"cav-justify-content-between p-grid cav-w-100\" style=\"margin-top: 10px; margin-left: 6px;\"\n    *ngIf=\" isTransactionTable || isTestStarting || isTestError || testRunNum > -1\" #testRunSection>\n    <div class=\"p-grid p-align-center cav-mt-0 cav-ml-2 \">\n        <span class=\"trnscationHead\"><strong>TEST RUN</strong>: {{testRunNum < 0 ? '' : testRunNum}}</span>&nbsp;\n        <i class=\"wiz help-icon\" style=\"cursor: pointer;\" (click)=\"openHelpFor('Analyzing Results')\"></i>&nbsp;\n        <div *ngIf=\"isTestStarting\" class=\"p-grid\">\n          <span >Starting Test it may take few minutes</span>&nbsp;\n          <div class=\"icons8 icons8-spinner spin cav-mx-2\">\n            <div></div>\n            <div></div>\n            <div></div>\n          </div>\n      </div>\n    \n      <div *ngIf=\"isTestError\" class=\"errorLog\">\n          Error in test run:\n          <a (click)=\"scriptErrorLog()\" style=\"cursor: pointer;\">Click here</a>\n      </div>\n    </div>\n\t<p-dialog  header=\"JMeter Error Log\" class=\"foterDialog\" [style]=\"{width: '555px', height: 'auto'}\" [(visible)]=\"displayErrorLog\" modal=\"modal\">\n        <p class=\"my-25\">{{modalContent}}</p>\n    </p-dialog>\n  \n\n  \n    <div *ngIf=\"testRunNum > -1 && testRunNum!=undefined\" class=\"p-grid align-items-center\">\n  \n        <div class=\"glsearch1\">\n            <input type=\"text\" class=\"input-gui1\" *ngIf=\"filterPro1\" (input)=\"txnListTable.filterGlobal($event.target.value , 'contains')\">\n            <i class=\"fa fa-search icoSearch\" style=\"cursor: pointer;\" (click)=\"filterPro1=!filterPro1\"></i>\n        </div>\n  \n        <p-menu class=\"menuList\" styleClass=\"menuList\" #menu6 [popup]=\"true\" appendTo=\"body\" autoZIndex=\"true\"\n            [style]=\"{'width': '100px'}\" ></p-menu>\n\n       \n\n        <p-menu class=\"menuList\" styleClass=\"menuList\" #menu [popup]=\"true\" appendTo=\"body\" autoZIndex=\"true\"\n            [style]=\"{'width': '125px','cursor':'pointer'}\"  title=\"Open menu\"></p-menu>\n    </div>\n\n  </div>\n  \n\n   <router-outlet></router-outlet>\n\n    <p-confirmDialog class=\"confirmdialog\"  header=\"Confirm Overwrite Scenario\" acceptButtonStyleClass=\"ui-button-rounded px-10\" rejectButtonStyleClass=\"ui-button-rounded ui-button-secondary px-10 mx-6\" acceptIcon=\"null\"  rejectIcon=\"null\"  acceptLabel=\"Yes\" rejectLabel=\"No\" key= \"runJmeterConfrim\"></p-confirmDialog>\n  \n    </div>\n  \n  \n    <div class=\"p-grid p-justify-end p-align-center\">\n          <button pButton type=\"button\" label=\"Run Test\" *ngIf=\"!isTestRunning\" (click)=\"saveScenario(false,true); closeAccordion();\" [disabled]=\"isTestStarting\" class=\"ui-button-rounded mx-3\" title=\"Run Test\"></button>\n          <button pButton type=\"button\" label=\"Abort test\" (click)=\"stopTest()\" *ngIf=\"isTestRunning\" [disabled]=\"!isUploadAllowed || !isAbortAllowed\" class=\"ui-button-rounded mx-3\" title=\"Abort test\"></button>\n          <button pButton type=\"button\" label=\"Save\" (click)=\"saveScenario(false,false)\" *ngIf=\"!isTestRunning\" [disabled]=\"isTestStarting\" class=\"ui-button-rounded mx-3\" title=\"Save\"></button>\n\n    </div>\n  \n    <!--This dialouge for the file browser-->\n    <div  *ngIf=\"showJmeterLogFiles\">\n      <p-dialog  header=\"JMeter Logs and Reports\" [style]=\"{width: '855px', height: '490px'}\" [(visible)]=\"showJmeterLogFiles\" modal=\"modal\">\n      </p-dialog>\n    </div>\n  \n    <div *ngIf=\"jmxException != undefined && jmxException.length != 0\">\n        <p-dialog  header=\"Error in Jmx File\" [style]=\"{width: '855px', height: '490px'}\" [(visible)]=\"showJmxException\" modal=\"modal\">\n          <textarea class=\"mat-dialoge-content\" pInputTextarea style=\"color:black; background:white; padding:10px;width: 100%;height: 70vh;\" readonly>\n              {{jmxException}}\n          </textarea>\n      </p-dialog>\n    </div>\n  \n    </div>\n\n";
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/run-jmeter-script/run-jmeter-script.component.scss":
  /*!**********************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/run-jmeter-script/run-jmeter-script.component.scss ***!
    \**********************************************************************************************/

  /*! exports provided: default */

  /***/
  function _src_app_pages_home_scriptManager_runJmeterScript_runJmeterScriptComponentScss(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "app-run-jmeter-script .projectDetail {\n  overflow: auto;\n  height: calc(100vh - 168px);\n  width: calc(100vw - 34px);\n}\napp-run-jmeter-script .ullist {\n  list-style: disc !important;\n}\napp-run-jmeter-script .ullist li {\n  list-style: disc !important;\n}\napp-run-jmeter-script .ollist {\n  list-style: decimal !important;\n}\napp-run-jmeter-script .ollist li {\n  list-style: decimal !important;\n}\napp-run-jmeter-script .spinIco {\n  color: #fa0;\n}\napp-run-jmeter-script .greenIco {\n  color: #3bb54a;\n}\napp-run-jmeter-script .redIco {\n  color: #ac0000;\n}\napp-run-jmeter-script .img-fluid {\n  max-width: 100%;\n  width: 100%;\n}";
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/run-jmeter-script/run-jmeter-script.component.ts":
  /*!********************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/run-jmeter-script/run-jmeter-script.component.ts ***!
    \********************************************************************************************/

  /*! exports provided: RunJmeterScriptComponent */

  /***/
  function _src_app_pages_home_scriptManager_runJmeterScript_runJmeterScriptComponentTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "RunJmeterScriptComponent", function () {
      return RunJmeterScriptComponent;
    });
    /* harmony import */


    var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
    /*! tslib */
    "./node_modules/tslib/tslib.es6.js");
    /* harmony import */


    var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
    /*! @angular/router */
    "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
    /* harmony import */


    var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! @angular/core */
    "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
    /* harmony import */


    var _angular_common_http__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! @angular/common/http */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
    /* harmony import */


    var primeng__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var src_app_pages_scenario_interface_sch_group_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! src/app/pages/scenario/interface/sch-group-data */
    "./src/app/pages/scenario/interface/sch-group-data.ts");
    /* harmony import */


    var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! @angular/material/dialog */
    "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
    /* harmony import */


    var _transaction_detail_services_cav_top_panel_navigation_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! ../../transaction-detail/services/cav-top-panel-navigation.service */
    "./src/app/pages/home/transaction-detail/services/cav-top-panel-navigation.service.ts");
    /* harmony import */


    var src_app_pages_tools_configuration_nd_config_services_cav_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! src/app/pages/tools/configuration/nd-config/services/cav-config.service */
    "./src/app/pages/tools/configuration/nd-config/services/cav-config.service.ts");
    /* harmony import */


    var src_app_pages_tools_actions_ddr_data_model_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! src/app/pages/tools/actions/ddr-data-model.service */
    "./src/app/pages/tools/actions/ddr-data-model.service.ts");
    /* harmony import */


    var _synthetic_monitor_services_scen_data_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! ../../synthetic-monitor/services/scen-data.service */
    "./src/app/pages/home/synthetic-monitor/services/scen-data.service.ts");
    /* harmony import */


    var src_app_pages_scenario_service_scenario_utils_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
    /*! src/app/pages/scenario/service/scenario-utils.service */
    "./src/app/pages/scenario/service/scenario-utils.service.ts");
    /* harmony import */


    var src_app_pages_scenario_service_generator_list_data_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
    /*! src/app/pages/scenario/service/generator-list-data.service */
    "./src/app/pages/scenario/service/generator-list-data.service.ts");
    /* harmony import */


    var _load_test_services_load_test_utils_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
    /*! ../../load-test/services/load-test-utils.service */
    "./src/app/pages/home/load-test/services/load-test-utils.service.ts");
    /* harmony import */


    var src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
    /*! src/app/pages/scenario/interface/scenario-state */
    "./src/app/pages/scenario/interface/scenario-state.ts");
    /* harmony import */


    var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
    /*! src/app/core/session/session.service */
    "./src/app/core/session/session.service.ts");
    /* harmony import */


    var src_app_shared_header_work_profile_services_work_profile_active_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
    /*! src/app/shared/header/work-profile/services/work-profile-active.service */
    "./src/app/shared/header/work-profile/services/work-profile-active.service.ts");
    /* harmony import */


    var _transaction_detail_services_transaction_detail_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
    /*! ../../transaction-detail/services/transaction-detail.service */
    "./src/app/pages/home/transaction-detail/services/transaction-detail.service.ts");
    /* harmony import */


    var src_app_shared_time_bar_service_time_bar_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
    /*! src/app/shared/time-bar/service/time-bar.service */
    "./src/app/shared/time-bar/service/time-bar.service.ts");
    /* harmony import */


    var _services_script_msg_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
    /*! ../services/script-msg.service */
    "./src/app/pages/home/script-manager/services/script-msg.service.ts");
    /* harmony import */


    var _services_script_rest_service__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
    /*! ../services/script-rest.service */
    "./src/app/pages/home/script-manager/services/script-rest.service.ts");
    /* harmony import */


    var _services_script_state__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(
    /*! ./../services/script.state */
    "./src/app/pages/home/script-manager/services/script.state.ts");
    /* harmony import */


    var _load_test_services_load_test_common_services__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(
    /*! ../../load-test/services/load-test-common.services */
    "./src/app/pages/home/load-test/services/load-test-common.services.ts");
    /* harmony import */


    var src_app_pages_scenario_service_scenario_http_service__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(
    /*! src/app/pages/scenario/service/scenario-http.service */
    "./src/app/pages/scenario/service/scenario-http.service.ts");
    /* harmony import */


    var src_app_pages_tools_admin_access_control_management_services_cav_acl_util__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(
    /*! src/app/pages/tools/admin/access-control-management/services/cav-acl-util */
    "./src/app/pages/tools/admin/access-control-management/services/cav-acl-util.ts");

    var RunJmeterScriptComponent = /*#__PURE__*/function () {
      function RunJmeterScriptComponent(router, confirmationService, dialog, txService, _navService, http, _cavConfigService, _ddrData, dataService, scenUtility, genService, scenarioHttpService, loadTestUtils, session, workprofile, scriptMsgService, aclProperties, timebarService, scriptRestService, loadTestCommonService) {
        _classCallCheck(this, RunJmeterScriptComponent);

        this.router = router;
        this.confirmationService = confirmationService;
        this.dialog = dialog;
        this.txService = txService;
        this._navService = _navService;
        this.http = http;
        this._cavConfigService = _cavConfigService;
        this._ddrData = _ddrData;
        this.dataService = dataService;
        this.scenUtility = scenUtility;
        this.genService = genService;
        this.scenarioHttpService = scenarioHttpService;
        this.loadTestUtils = loadTestUtils;
        this.session = session;
        this.workprofile = workprofile;
        this.scriptMsgService = scriptMsgService;
        this.aclProperties = aclProperties;
        this.timebarService = timebarService;
        this.scriptRestService = scriptRestService;
        this.loadTestCommonService = loadTestCommonService;
        this.KEYWORD = {
          NS_GENERATOR: false,
          NS_GENERATOR_MODE: false,
          SGRP: false,
          JMETER_CSV_DATA_SET_SPLIT: false,
          JMETER_VUSERS_SPLIT: false,
          G_JMETER_JVM_SETTINGS: false,
          G_JMETER_ADD_ARGS: false,
          G_JMETER_SCHEDULE_SETTINGS: false,
          TNAME: false,
          PROF_PCT_MODE: false,
          G_REPORTING: false,
          G_TRACING: false,
          PAGE_AS_TRANSACTION: false,
          GEN_LOCATION: false,
          GEN_SERVER_SETTING: false,
          GEN_LOCATION_MODE: false,
          CHECK_GENERATOR_HEALTH: false
        };
        this.testName = '';
        this.lstScriptProj = 'default';
        this.lstScriptSubProj = 'default';
        this.dataRefreshTimer = null;
        this.SCRIPT_DATA = {
          SCRIPT: "script",
          PROJ: "project",
          SUBPROJ: "subproject",
          OWNER: "owner",
          GRP_NAME: "groupName",
          PERM: "Permission",
          MOD_TIME: "modificationTime"
        };
        this.scriptList = [];
        this.selectedScript = "";
        this.newScriptToAdd = "";
        this.testRunNum = -1;
        this.isTestRunning = false;
        this.isTransactionTable = false;
        this.isTestError = false;
        this._filtertestRunUrl = "";
        this.startDate = '';
        this.tableData = [];
        this.columList = [{
          'displayName': 'Transaction Name'
        }, {
          'displayName': 'Completed'
        }, {
          'displayName': 'Success'
        }, {
          'displayName': 'Failure(%)'
        }, {
          'displayName': 'TPS(%)'
        }, {
          'displayName': 'Min'
        }, {
          'displayName': 'Avg'
        }, {
          'displayName': 'Max'
        }, {
          'displayName': 'TPS'
        }, {
          'displayName': '50th'
        }, {
          'displayName': '70th'
        }, {
          'displayName': '80th'
        }];
        this.transColspan = 5;
        this.responseColspan = 7;
        this.columListForBody = [];
        this.enablePercentileColoum = false;
        this.percentageColumValue = "90th";
        this.lowerPanelData = [];
        this.isDebugTest = false;
        this.isDebugTestTable = false;
        this.testRunData = [];
        this.testRunObj = {};
        this.intervalIdForDuration = -1;
        this.testDuration = '';
        this.disableShowScen = true; // used for jmeter heap settings

        this.minHeap = 128;
        this.maxHeap = 512;
        this.SplitType = {
          NO_SPLIT: 0,
          SPLIT_ALL: 1,
          SPLIT_WITH_NAME: 2
        };
        this.SplitVuserOpt = {
          NO_VUSER_SPLITTING: 0,
          VUSER_SPLITTING: 1
        };
        this.selectedSplitType = 2;
        this.selectedVuserSplit = false; //this.SplitVuserOpt.NO_VUSER_SPLITTING
        //selection value of addgenerator table is used to select rows in addGenerator table

        this.selectedAddGen = []; // value of addgenerator table

        this.valTableAddGenerators = [];
        this.isShowGenTable = false;
        this.txtSplitFile = "split";
        this.healthCheckGenerator = true;
        this.isTestStarting = false;
        this.optionalParam = "";
        this.permissionMessage = sessionStorage.getItem("sesLoginName") + " user doesn't have the permission.";
        this.isUploadAllowed = true;
        this.isJMeterEnable = true;
        /**This is keyword list of screen for getting data from server */

        this.screenKeywordList = Object.keys(this.KEYWORD);
        this.isToStartTest = false;
        this.pathForLogs = '';
        this.logFileName = 'jmeter.log';
        this.overwriteJMeterScript = false;
        this.showJmeterLogFiles = false;
        this.scenarioState = []; // contains testname vs isOverride

        this.urlForUpload = '';
        this.isTracingEnable = false; //trace level

        this.radTraceLevel = 4; //trace session - as trace failure

        this.radTraceSession = 1; //trace session limit

        this.radTraceSessionLimit = 0;
        this.txtSession = 1;
        this.filterPro1 = false;
        this.isDdrEnabled = true;
        this.isPageDumpAvailable = false;
        this.isDdrReportAvailable = false;
        this.isModeEdit = false;
        this.isAbortAllowed = true;
        this.usermanualeDialog = false;
        this.testAborted = false;
        this.isInitCallsPending = false;
        this.oldSubscription = {
          init: [],
          tx: []
        };
        this.blockUiObj = {
          isTRDataSet: false,
          isJMScriptDataSet: false,
          isNonJMScriptDataSet: false,
          isGeneratorDataSet: false,
          isScenarioDataSet: false
        };
        this.sampleAndTxn = "sampleAsTxn";
        this.noPrefixInTxn = true;
        this.ifParentSampleEnabled = true;
        this.additionalJvmArgs = "";
        this.isJmeterReportEnabled = false;
        this.index = null;
        this.lastIndex = -1;
        this.profile = "";
        this.username = "";
        this.jmxException = "";
        this.showJmxException = false;
        this.txtTimeUnit = "Milliseconds";
        this.numOfDecimal = 0;
        this.txRateUnit = 'Per Second';
        this.className = "Run Jmeter Script";
        this.genKeywordDataFromServer = {};
        this.displayErrorLog = false;
        this.loaderForUpload = false;
        this.testRunAccesPrivilages = {
          "All": {
            "All": 7
          }
        };
        this.uniqueGroupName = {};
        this.scriptNameList = [];
        this.capErrorSession = 1;
        this.tooltipObj = {
          1: 'Failed Pages/Transactions',
          2: 'Complete session'
        };
        this.headerRelativePath = "script/run-jmeter.json";
        this.groupData = new src_app_pages_scenario_interface_sch_group_data__WEBPACK_IMPORTED_MODULE_5__["SchGroupData"]();
        var _genArr = this.genService.genArr;
        this.getGeneratorServer();
        var genInfoList = this.genService.$genInfoList;
        this.profile = this.workprofile.profile;
        this.username = this.session.session.cctx.u;

        if (this.username == 'cavisson') {
          this.username = 'admin';
        } else {
          this.username = this.username;
        }

        var machineIP = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;
        this.urlForUpload = machineIP + '/DashboardServer/web/ImportAccessLogService/upload' + '?for=JMeterScen&destination=' + '/workspace/' + this.username + '/' + this.profile + '/cavisson/' + this.lstScriptProj + '/' + this.lstScriptSubProj + '/scripts' + '&productKey=' + this.session.session.cctx.pk;
        this.sessionOptions = [{
          label: "Failed Pages/Transactions",
          value: 1
        }, {
          label: "Complete session",
          value: 2
        }];
      }

      return _createClass(RunJmeterScriptComponent, [{
        key: "ngOnInit",
        value: function ngOnInit() {
          var _this = this;

          this.testRunNum = -1;
          this.isTransactionTable = false;
          this.testName = this.getScenarioName(this.scenUtility.scenarioName);
          this.prevScenarioName = this.testName;
          this.isModeEdit = this.testName === undefined || this.testName == "" ? false : true;

          if (this.testName != undefined && this.testName != "") {
            this.showLoaderIcon = true;
            this.scenUtility.scenarioName = "";
            this.setTestRunData();
          } else {
            this.blockUiObj.isTRDataSet = true;
          }

          this.loadTestUtils.getPermissions().then(function (res) {
            _this.privilege = res;

            _this.setScriptList();
          });
          var machineIP = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;
          this.uploadUrl = machineIP + '/DashboardServer/web/ImportAccessLogService/upload' + '?for=JMeterScen&destination=' + '/workspace/' + this.username + '/' + this.profile + '/cavisson/' + this.lstScriptProj + '/' + this.lstScriptSubProj + '/scripts' + '&productKey=' + this.session.session.cctx.pk;

          if (!(this.testName == undefined || this.testName == "")) {
            this.getScenarioData();
          } else {
            this.blockUiObj.isScenarioDataSet = true;
          }

          this.blockUiObj.isGeneratorDataSet = true;

          try {
            this.isUploadAllowed = this.checkPermission();
          } catch (error) {
            console.error(error);
          }

          this.checkIfJmeterInstalledOrNot();
          this.txService.openFrom = 'devportal';
        }
      }, {
        key: "checkIfJmeterInstalledOrNot",
        value: function checkIfJmeterInstalledOrNot() {
          var _this2 = this;

          var apppath = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;
          this.http.get(apppath + "/ProductUI/productSummary/ScenarioWebService/isJMeterEnabled?productKey=" + this.session.session.cctx.pk).subscribe(function (res) {
            if (res === true) {
              _this2.isJMeterEnable = true;
            } else {
              _this2.isJMeterEnable = false;
            }

            if (!_this2.isJMeterEnable) {
              _this2.scriptMsgService.showInfo('JMeter is not installed in the system, Please install JMeter.', '');
            }
          });
        }
      }, {
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          this.unsubscribeReq();
          if (this.txService.subscription) this.txService.subscription.unsubscribe();
          clearInterval(this.intervalid);
          if (this.intervalIdForDuration >= 0) clearInterval(this.intervalIdForDuration);
          this.txService.openFrom = "";
        }
      }, {
        key: "getFormattedTime",
        value: function getFormattedTime(val) {
          if (val < 10) return '0' + val;else return val;
        }
      }, {
        key: "addToTable",
        value: function addToTable() {
          if (this.groupData.scriptName == "" || this.groupData.scriptName == undefined) {
            this.scriptMsgService.showError('Select Jmeter Script', 'Error');
            return;
          }

          this.disableShowScen = true;
          var durationTime = (this.durationHours ? this.getFormattedTime(this.durationHours) : '00') + ":" + (this.durationMins ? this.getFormattedTime(this.durationMins) : '00') + ":" + (this.durationSecs ? this.getFormattedTime(this.durationSecs) : '00');
          var rampUpTime = (this.rampUpHours ? this.getFormattedTime(this.rampUpHours) : '00') + ":" + (this.rampUpMins ? this.getFormattedTime(this.rampUpMins) : '00') + ":" + (this.rampUpSecs ? this.getFormattedTime(this.rampUpSecs) : '00');
          if (this.threadInput == "" || this.threadInput == undefined || this.threadInput == 'NA') this.threadInput = 'As per script';
          var obj = {
            "scriptName": this.groupData.scriptName,
            "thread": this.threads ? this.threadInput : 'As per script',
            "duration": durationTime != '00:00:00' ? durationTime : 'As per script',
            "rampUp": rampUpTime != '00:00:00' ? rampUpTime : 'As per script'
          };
          this.scriptList.push(obj);
          this.scriptList = _toConsumableArray(this.scriptList);
          this.scriptNameList.push(this.groupData.scriptName);
          this.threadInput = 'NA';
          this.durationInput = 'NA';
          this.rampUpInput = 'NA';
          this.threads = false;
          this.rampup = false;
          this.duration = false;
          this.durationHours = this.durationMins = this.durationSecs = this.rampUpHours = this.rampUpMins = this.rampUpSecs = undefined;
        }
      }, {
        key: "validateHarTestName",
        value: function validateHarTestName(testName) {
          if (testName == undefined || testName == null || testName == "") {
            this.scriptMsgService.showError('Test Name can not be empty.', 'Error');
            return false;
          }

          var pattern = /^[A-Za-z][A-Za-z0-9_.]{0,63}$/;

          if (!pattern.test(testName)) {
            this.scriptMsgService.showError('Test Name is of maximum 64 characters. First character must be Alpha. Other characters are Alpha, Numeric or Underscore', 'Error');
            return false;
          }

          return true;
        } // generates the scenario data in array form

      }, {
        key: "parseAndGenerateScenData",
        value: function parseAndGenerateScenData() {
          var _this3 = this;

          var numOfUsers = this.scriptList.length;
          var numOfGenerators = 1;
          var sceneDataArr = []; //genMode

          if (this.isShowGenTable) {
            numOfGenerators = this.genService.genArr.length;
            sceneDataArr.push('PROF_PCT_MODE NUM');
            var genArr = this.genService.genArr;

            if (this.genService.selectedGenaratorType == "0") {
              for (var i = 0; i < genArr.length; i++) sceneDataArr.push("NS_GENERATOR " + genArr[i]);
            } else {
              for (var _i = 0; _i < genArr.length; _i++) sceneDataArr.push("GEN_LOCATION " + genArr[_i]); //genArr[i].substring(1, (genArr[i]).length() - 1));

            }

            sceneDataArr.push("NS_GENERATOR_MODE 0");
            if (this.genService.selectedGenaratorType != "0") sceneDataArr.push("GEN_LOCATION_MODE " + this.genService.selectedGenaratorType);
            if (!this.healthCheckGenerator) sceneDataArr.push('CHECK_GENERATOR_HEALTH 0');
            sceneDataArr.push("JMETER_CSV_DATA_SET_SPLIT " + this.selectedSplitType + (this.selectedSplitType == 2 ? ' ' + this.txtSplitFile : ''));
            sceneDataArr.push("JMETER_VUSERS_SPLIT " + (this.selectedVuserSplit ? this.SplitVuserOpt.VUSER_SPLITTING : this.SplitVuserOpt.NO_VUSER_SPLITTING));
          }

          sceneDataArr.push("SCHEDULE ALL Start START IMMEDIATELY");
          sceneDataArr.push("SCHEDULE ALL RampUp RAMP_UP ALL IMMEDIATELY");
          sceneDataArr.push("SCHEDULE ALL Stabilize STABILIZATION TIME 0");
          sceneDataArr.push("SCHEDULE ALL Duration DURATION SESSIONS " + numOfUsers * numOfGenerators + " 0");
          sceneDataArr.push("SCHEDULE ALL RampDown RAMP_DOWN ALL IMMEDIATELY");
          if (!this.isDdrEnabled) sceneDataArr.push("G_REPORTING ALL 1");
          /** Tracing
            *
            * G_TRACING (default values format)-> ALL 0 0 0 0 0 0
            * First field is group name.    All
            * second is tracing level.      0
            * Third is destination.         0   in our case fixed to default
            * Fourth is trace-on-failure.   0
            * Fifth is Inline URL.          0
            *  Sixth is trace limit mode.   0
            * Seventh is Max-log-size.      0
           */

          if (this.isTracingEnable) {
            this.radTraceLevel = 4; // default will be 4

            var sessErrSess = 0;
            if (this.txtSession > 0 || this.capErrorSession > 0) sessErrSess = 1;
            var txtSess = 0;
            if (this.txtSession > 0) txtSess = this.txtSession;
            var capErrorSess = 0;
            if (this.capErrorSession > 0) capErrorSess = this.capErrorSession;
            var gTracing = "G_TRACING ALL " + this.radTraceLevel + " 1 " + this.radTraceSession + " 0 0 " + sessErrSess + " " + txtSess + " " + capErrorSess;
            sceneDataArr.push(gTracing);
          }

          this.scriptNameList = this.scriptNameList.map(function (item) {
            return item.replace(/#\d+$/, '');
          });
          var scriptListToBeUpdate = this.suffixDuplicates(this.scriptNameList);
          var scheduleGroupName = [];
          scriptListToBeUpdate.forEach(function (scriptname) {
            var originalScriptName = scriptname.split('#');
            scriptname = scriptname.replace('#', '_');
            scheduleGroupName.push(scriptname);
            sceneDataArr.push("SGRP " + scriptname + " " + (_this3.isShowGenTable ? 'All' : 'NA') + " NA JMeter 100 default/default/" + originalScriptName[0] + " " + numOfGenerators);
          });

          for (var index = 0; index < this.scriptList.length; index++) {
            var threadsVal = this.getValue(this.scriptList[index]['thread']);
            var rampUpVal = this.getValue(this.scriptList[index]['rampUp']);
            var durationVal = this.getValue(this.scriptList[index]['duration']);
            if (threadsVal != 'NA' || rampUpVal != 'NA' || durationVal != 'NA') sceneDataArr.push("G_JMETER_SCHEDULE_SETTINGS " + scheduleGroupName[index] + " " + threadsVal + " " + rampUpVal + " " + durationVal);
          }

          sceneDataArr.push("G_JMETER_JVM_SETTINGS ALL " + this.minHeap + " " + this.maxHeap + (this.additionalJvmArgs !== undefined && this.additionalJvmArgs != '' ? " " + this.additionalJvmArgs : ''));
          var jmeterAdditionaArg = "G_JMETER_ADD_ARGS ALL ";
          jmeterAdditionaArg += this.isJmeterReportEnabled ? "1" : "0";
          jmeterAdditionaArg += " " + (this.optionalParam != "" ? " " + this.optionalParam : "");
          sceneDataArr.push(jmeterAdditionaArg);
          var keyWrd = "PAGE_AS_TRANSACTION ";
          if (this.sampleAndTxn == "sampleNotAsTxn") keyWrd += "0 ";else if (this.sampleAndTxn == "sampleAsTxn") keyWrd += "1 ";else if (this.sampleAndTxn == "distinctSuccessAndFailure") keyWrd += "2 ";else if (this.sampleAndTxn == "samplerStatusAsTxn") keyWrd += "3 ";
          keyWrd += this.noPrefixInTxn ? "1 " : "0 ";
          keyWrd += this.ifParentSampleEnabled ? "1 " : "0";
          sceneDataArr.push(keyWrd);
          return sceneDataArr;
        }
      }, {
        key: "suffixDuplicates",
        value: function suffixDuplicates(list) {
          var count = {};
          var firstOccurences = {};
          var item, itemCount;

          for (var i = 0, c = list.length; i < c; i++) {
            item = list[i];
            itemCount = count[item];
            itemCount = count[item] = itemCount == null ? 1 : itemCount + 1;
            if (itemCount == 2) list[firstOccurences[item]] = list[firstOccurences[item]] + "#1";
            if (count[item] > 1) list[i] = list[i] + "#" + count[item];else firstOccurences[item] = i;
          }

          return list;
        }
      }, {
        key: "clearAllPendingRequests",
        value: function clearAllPendingRequests() {
          try {
            this.oldSubscription.init.forEach(function (call) {
              return call.unsubscribe();
            });
            this.oldSubscription.tx.forEach(function (call) {
              return call.unsubscribe();
            });
            this.oldSubscription.init = this.oldSubscription.tx = [];
          } catch (error) {
            console.error('error while unsubscribing ... ', error);
          }
        }
      }, {
        key: "saveScenario",
        value: function saveScenario(isReplace, isToStartTest) {
          return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
            var _this4 = this;

            var response, pattern, scenData, params, postData, apppath;
            return _regenerator().w(function (_context) {
              while (1) switch (_context.n) {
                case 0:
                  if (!this.isShowGenTable) {
                    _context.n = 2;
                    break;
                  }

                  _context.n = 1;
                  return this.genService.emitSaveEvent().then(function (res) {
                    return res;
                  })["catch"](function (errResp) {
                    return errResp;
                  });

                case 1:
                  response = _context.v;

                  if (response) {
                    _context.n = 2;
                    break;
                  }

                  return _context.a(2);

                case 2:
                  if (!(this.testName == undefined || this.testName == null || this.testName == "")) {
                    _context.n = 3;
                    break;
                  }

                  this.scriptMsgService.showError('Test Name can not be empty.', 'Error');
                  return _context.a(2, false);

                case 3:
                  pattern = /^[A-Za-z][A-Za-z0-9_.]{0,63}$/;

                  if (pattern.test(this.testName)) {
                    _context.n = 4;
                    break;
                  }

                  this.scriptMsgService.showError('Test Name is of maximum 64 characters. First character must be Alpha. Other characters are Alpha, Numeric or Underscore', 'Error');
                  return _context.a(2, false);

                case 4:
                  if (!(this.scriptList == undefined || this.scriptList.length == 0)) {
                    _context.n = 5;
                    break;
                  }

                  this.scriptMsgService.showError('Add atleast one script to start test', 'Error');
                  return _context.a(2, false);

                case 5:
                  if (this.validateAndSetJmeterType()) {
                    _context.n = 6;
                    break;
                  }

                  return _context.a(2, false);

                case 6:
                  if (!this.isShowGenTable) {
                    _context.n = 8;
                    break;
                  }

                  if (!(this.genService.genArr.length == 0)) {
                    _context.n = 7;
                    break;
                  }

                  this.scriptMsgService.showError('Add atleast one generator', 'Error');
                  return _context.a(2, false);

                case 7:
                  if (!(this.genService.selectedGenaratorType != "0")) {
                    _context.n = 8;
                    break;
                  }

                  if (!(this.genService.numGenerators < this.genService.genArr.length)) {
                    _context.n = 8;
                    break;
                  }

                  this.scriptMsgService.showError('Number of Generator(s) must be greater than or equal to selected location(s)', 'Error');
                  return _context.a(2, false);

                case 8:
                  if (!(this.selectedSplitType == 2)) {
                    _context.n = 9;
                    break;
                  }

                  if (!(this.txtSplitFile == '')) {
                    _context.n = 9;
                    break;
                  }

                  this.scriptMsgService.showError('Split filename cannot be empty', 'Error');
                  return _context.a(2, false);

                case 9:
                  if (this.validateTracing()) {
                    _context.n = 10;
                    break;
                  }

                  return _context.a(2, false);

                case 10:
                  this.isToStartTest = !!isToStartTest;
                  this.clearAllPendingRequests(); // getting scenario data

                  scenData = this.parseAndGenerateScenData();
                  isReplace = this.isModeEdit ? this.isModeEdit : this.checkForScenario(scenData);
                  params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpParams"]();
                  postData = {
                    "testName": this.testName,
                    "selectedScripts": [],
                    "isReplace": isReplace,
                    "projectSubprojName": 'workspace/' + this.username + '/' + this.profile + '/cavisson/default/default/scenarios',
                    "data": scenData
                  };
                  apppath = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;
                  return _context.a(2, this.http.post(apppath + '/ProductUI/productSummary/recorderService/createJmeterScenario?productKey=' + this.session.session.cctx.pk, postData).subscribe(function (res) {
                    var data = res;

                    if (res['status'] == 'success') {
                      if (isToStartTest) {
                        _this4.startTest();
                      } else {
                        _this4.scriptMsgService.showSuccess('Scenario Saved successfully', 'Success');
                      }
                    } else if (res['status'] == 'error' && res['reason'] == 'scenario already exist') {
                      _this4.confirmationService.confirm({
                        message: 'Do you want to overwrite the existing Test configuration ?',
                        header: 'Confirmation',
                        key: "runJmeterConfrim",
                        accept: function accept() {
                          _this4.saveScenario(true, isToStartTest);
                        },
                        reject: function reject() {
                          return;
                        }
                      });
                    } else {
                      _this4.scriptMsgService.showError(res['reason'], 'Error');
                    }

                    return data;
                  }));
              }
            }, _callee, this);
          }));
        }
      }, {
        key: "resetTestData",
        value: function resetTestData() {
          this.testRunNum = -1;
          this.isTestError = false;
          this.isTestRunning = false;
          this.isTransactionTable = false;
          this.tableData = [];
          this.startDate = '';
          this.testDuration = "";
          this.isDebugTestTable = false; // this is used to show label until we get response of start test

          this.isTestStarting = true;
        }
      }, {
        key: "startTest",
        value: function startTest() {
          var _this5 = this;

          this.resetTestData();
          var params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpParams"]();
          params = params.set('scenName', "default/default/" + this.testName + '.jmx');
          params = params.set('testName', this.testName);
          params = params.set('scenMode', '0');
          params = params.set('isSkipTest', 'false');
          params = params.set('userName', this.session.session.cctx.u);
          params = params.set('role', "admin");
          params = params.set('productKey', this.session.session.cctx.pk);
          var apppath = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;
          var data = this.http.get(apppath + '/ProductUI/productSummary/ScenarioWebService/startTest?', {
            params: params,
            responseType: "text"
          }).subscribe(function (res) {
            // reset values
            _this5.isDdrReportAvailable = false;
            _this5.isPageDumpAvailable = false;

            _this5.showTransactionTable(res);

            _this5.isTestStarting = false;
          });
        }
      }, {
        key: "getValue",
        value: function getValue(val) {
          if (val == undefined || val == "" || val == 'As per script') return 'NA';
          var time = this.getInSecs(val);
          return time;
        }
      }, {
        key: "setTestRunData",
        value: function setTestRunData() {
          var _this6 = this;

          var trNum;
          var trData;
          this.isTransactionTable = true;
          var apppath = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;
          this.http.get(apppath + "/ProductUI/productSummary/SummaryWebService/getLatestTestRunForScenario?scenarioName=" + this.testName + ".jmx" + "&productKey=" + this.session.session.cctx.pk).subscribe(function (response) {
            var _a, _b;

            if (response) {
              if (response['error']) {
                trNum = -1;
              } else {
                var data = response['success'];

                if (data['scenarioName'] == _this6.testName + ".jmx") {
                  trData = data;
                  trNum = data['testRun'];
                  _this6.isToStartTest = true;
                }

                _this6.session.session.testRun.id = trNum;
                _this6.session.session.testRun.running = data['testMode'] == "RU" ? true : false;
                _this6.session.session.testRun.cmt = data['testRunType'] == "STR" ? true : false;
                _this6.session.session.testRun.st = (_a = data['startTimeInMS']) !== null && _a !== void 0 ? _a : 0;
                _this6.session.session.testRun.duration = (_b = data['runTimeInMS']) !== null && _b !== void 0 ? _b : 0;
                _this6.session.session.testRun.ddrPCTDetail = data['ddrPct'];
                _this6.session.session.testRun.tracingPct = _this6.loadTestCommonService.parseAndReturnKey(data['jsonStr'], 'trace');
                _this6.session.session.testRun.groupBased = data['isGroupBased'];
                _this6.session.session.testRun.generatorInfo = "".concat(data['requestedGen'], ":").concat(data['allocatedGen']);
                _this6.session.session.testRun.filteredGen = "".concat(data['filteredGen']);
                _this6.session.session.testRun.scenario = data['project'] + "/" + data['subProject'] + "/" + data['scenarioName'];
                _this6.testRunNum = trNum;
                _this6.testDuration = trData['runTime'];
                _this6.startDate = trData['startTime'];
                _this6.showLoaderIcon = false;
                _this6.isTransactionTable = true;

                _this6.timebarService.preInitForNS().then(function (res) {
                  return res;
                });

                _this6.router.navigate(["/home/script-manager/run-jmeter-script/txDetailFrmDevPortal"]);
              }
            }
          }, function (err) {
            _this6.showLoaderIcon = false;
            _this6.blockUiObj.isTRDataSet = true;
          }, function () {
            _this6.showLoaderIcon = false;
          });
        }
      }, {
        key: "showTransactionTable",
        value: function showTransactionTable(res) {
          var _this7 = this;

          var arrTemp = res;
          this.isTransactionTable = true;

          if (arrTemp.startsWith("SUCCESS")) {
            this.scriptMsgService.showSuccess('Test started successfully', '');
            var testR = arrTemp.split("|")[1];
            this.loadTestUtils.$isOnlineTest = true;
            this.loadTestUtils.$testRunForTestInit = testR;
            this.session.session.testRun.id = testR;
            this.loadTestUtils.$dashboardTestRun = parseInt(testR);
            sessionStorage.setItem("runningtest", testR + "");
            this.testRunNum = parseInt(testR);
            this.scenUtility.TestRunNum = this.testRunNum;
            this.loadTestUtils.$runningModeTest = false;
            this.loadTestUtils.$splashScreenFromDashboard = false;
            this.loadTestUtils.$testInitFromTestScreen = true;
            this.session.session.testRun.running = true;
            /**Following is for updating global time bar. */

            this.session.session.testRun.id = testR;
            this.session.session.testRun.running = true;
            this.session.session.testRun.cmt = false;
            this.timebarService.preInitForNS().then(function (res) {
              return res;
            });
            this.isTestRunning = true;
            this.router.navigate(["/home/script-manager/run-jmeter-script/txDetailFrmDevPortal"]);
            this.isTransactionTable = true;
            this.scrollYPositive(0);
            this.getTestRunWrapper(true);
            this.intervalid = setInterval(function () {
              _this7.getTestRunWrapper(true);
            }, 10000);
          } else if (arrTemp.startsWith("ISRUNNING")) {
            /**
             * Only need to show alert now as Now user wont be able to run offline test if maximum number of test run limit is exceeded
             */
            var _testR = arrTemp.split("|")[1];
            var value = _testR;
            value = value.replace(/<br>/g, '').replace(/[?]/g, '');
            _testR = value;
            this.scriptMsgService.showError(_testR, 'Error');
            this.errorLog();
          } else {
            this.isTestError = true;
            this.scriptMsgService.showError('Error in executing test.', 'Error');
            this.loadTestUtils.$cavDevTestObj['trNum'] = -1;
            this.loadTestUtils.$cavDevTestObj['trDuration'] = '00:00:00';
            this.loadTestUtils.$cavDevTestObj['trStartDate'] = this.startDate;
            this.loadTestUtils.$cavDevTestObj['isDebugTestTable'] = false;
            this.loadTestUtils.$cavDevTestObj['scenarioName'] = '';
            this.testRunNum = -1;
            this.errorLog();
            var _value = arrTemp; //Following is to select code between CavErr and </p> in test error

            if (_value.indexOf('CavErr[') !== -1) _value = _value.substring(_value.indexOf('CavErr['));

            if (_value.indexOf('</p>') !== -1) {
              _value = _value.substring(0, _value.indexOf("</p>")); //This is to append test output after </p>

              _value = _value + arrTemp.substring(arrTemp.indexOf("</p>") + 4);
            }

            _value = _value.replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/<br>/g, '\n');
            this.modalContent = _value;
            sessionStorage.setItem('ErrorInExecutingTestRun', _value);
            this.scrollYPositive(0);
          }
        }
      }, {
        key: "getTestRunWrapper",
        value: function getTestRunWrapper(isStartedTime) {
          if (!this.getTestRunWrapper["lock"]) {
            this.getTestRunWrapper["lock"] = true;
            this.getTestRun(isStartedTime);
          } else return false;
        }
      }, {
        key: "getTestRun",
        value: function getTestRun(isStartedTime) {
          return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
            var _this8 = this;

            var url;
            return _regenerator().w(function (_context2) {
              while (1) switch (_context2.n) {
                case 0:
                  this.isInitCallsPending = true;
                  url = this._filtertestRunUrl;
                  if (isStartedTime) url = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port + "/ProductUI/productSummary/SummaryWebService/getFilterTestRunDetailsData?projName=default&subProjName=default&scenarioName=" + this.testName + ".jmx" + "&status=&sKeyword=&duration=00:00:00-NA&startedTime=&sUser=" + this.username + "&productKey=" + this.session.session.cctx.pk + "&isPassFailCrit=true&isTimeOffset=true";
                  _context2.n = 1;
                  return this.http.post(url, this.testRunAccesPrivilages).map(function (res) {
                    return res;
                  }).subscribe(function (res) {
                    return _this8.doAssignFilterTestRunData(res), function (err) {
                      return console.log('');
                    };
                  });

                case 1:
                  return _context2.a(2);
              }
            }, _callee2, this);
          }));
        }
      }, {
        key: "doAssignFilterTestRunData",
        value: function doAssignFilterTestRunData(res) {
          var _a, _b;

          return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee3() {
            var flag, i;
            return _regenerator().w(function (_context3) {
              while (1) switch (_context3.n) {
                case 0:
                  this.getTestRunWrapper["lock"] = false;

                  if (!(res && res.length == 0 || !res)) {
                    _context3.n = 1;
                    break;
                  }

                  this.testRunData = [];
                  return _context3.a(2);

                case 1:
                  this.testRunData = res;
                  flag = false;
                  i = 0;

                case 2:
                  if (!(i < this.testRunData.length)) {
                    _context3.n = 5;
                    break;
                  }

                  if (!(this.testRunData[i]['testMode'] == "RU" && this.testRunNum == parseInt(this.testRunData[i]['testRun']))) {
                    _context3.n = 4;
                    break;
                  }

                  this.testRunObj = this.testRunData[i];
                  this.session.session.testRun.id = this.testRunData[i]['testRun'];
                  this.session.session.testRun.running = this.testRunData[i]['testMode'] == "RU" ? true : false;
                  this.session.session.testRun.cmt = this.testRunData[i]['testRunType'] == "STR" ? true : false; // this.session.session.testRun.oldCmt = this.testRunData[i]['testRunType'] == "TTR" ? true: false;

                  this.session.session.testRun.st = (_a = this.testRunData[i]['startTimeInMS']) !== null && _a !== void 0 ? _a : 0;
                  this.session.session.testRun.duration = (_b = this.testRunData[i]['runTimeInMS']) !== null && _b !== void 0 ? _b : 0;
                  this.session.session.testRun.scenario = this.testRunData[i]['project'] + "/" + this.testRunData[i]['subProject'] + "/" + this.testRunData[i]['scenarioName'];
                  this.txService.updateTransData();
                  _context3.n = 3;
                  return this.timebarService.preInitForNS().then(function (res) {
                    return res;
                  });

                case 3:
                  flag = true;
                  return _context3.a(3, 5);

                case 4:
                  i++;
                  _context3.n = 2;
                  break;

                case 5:
                  if (!flag) {
                    this.isTestRunning = false;
                    clearInterval(this.intervalid);
                    clearInterval(this.intervalIdForDuration);
                    this.intervalIdForDuration = -1;
                    this.getTestRunError(this.testRunNum);
                  } else {
                    //This case handles those scenarios when isTestRunning is false but test is running. For ex: when switching tabs then setting this to true if test is running.
                    this.isTestRunning = true;
                  } //for bug id: 104144


                  if (this.intervalIdForDuration < 0 && this.isTestRunning) {
                    this.initiateDuration();
                  }

                case 6:
                  return _context3.a(2);
              }
            }, _callee3, this);
          }));
        }
      }, {
        key: "initiateDuration",
        value: function initiateDuration() {
          var _this9 = this;

          this.startDate = this.testRunObj['startTime'];
          var durationInMsec = new Date(this.startDate).getTime() + this.getTimeOffset(this.testRunObj);
          clearInterval(this.intervalIdForDuration);
          this.intervalIdForDuration = setInterval(function () {
            _this9.testDuration = _this9.getDuration(durationInMsec);
          }, 1000);
        }
      }, {
        key: "getTimeOffset",
        value: function getTimeOffset(data) {
          var offset = 0,
              offset_milliSec = 0;
          var date = new Date().getTimezoneOffset();

          if (data["timeOffset"] == date) {
            offset_milliSec = 0;
          } else {
            offset = data["timeOffset"] - date;
            offset_milliSec = offset * 60 * 1000;
          }

          return offset_milliSec;
        }
      }, {
        key: "getDuration",
        value: function getDuration(timeInMsec) {
          if (isNaN(timeInMsec)) return '';
          var duration = "";
          var timeInSec = Math.floor((new Date().getTime() - timeInMsec) / 1000);
          var sec = timeInSec % 60;
          var min = Math.floor(timeInSec / 60) % 60;
          var hour = Math.floor(timeInSec / 3600) % 60;
          duration = "".concat(hour.toString().length < 2 ? "0".concat(hour) : hour, ":").concat(min.toString().length < 2 ? "0".concat(min) : min, ":").concat(sec.toString().length < 2 ? "0".concat(sec) : sec);
          return duration;
        }
      }, {
        key: "getTestRunError",
        value: function getTestRunError(trData) {
          var _this0 = this;

          /* This is done for multiDC support */
          var url = "";

          if (sessionStorage.getItem('isMultiDCMode')) {
            var selectedTRDcInfo = this._cavConfigService.getDCInfoObj().filter(function (item) {
              return item.dc === trData.dcName;
            });

            url = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;
            ;
            url = url + "/DashboardServer/web/commons/dataForController?productKey=" + this.session.session.cctx.pk + "&productName=" + selectedTRDcInfo['0']['productType'] + "&testRun=" + trData + "&seqNumList=" + "&userName=" + this.username + "&generatorName=";
          } else {
            var machineIP = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;
            url = machineIP + "/DashboardServer/web/commons/dataForController?productKey=" + this.session.session.cctx.pk + "&productName=" + this._cavConfigService.$productName + "&testRun=" + trData + "&seqNumList=" + "&userName=" + this.username + "&generatorName=";
          }

          this.http.get(url).subscribe(function (response) {
            var tableData = response['controllerData']['data'];
            var keys = Object.keys(tableData);

            for (var i = 0; i < keys.length; i++) {
              var strKeyword = keys[i];

              if (tableData[strKeyword]['status'] == 'Error') {
                if (_this0.tableData.length == 0) _this0.isTestError = true;
                return;
              }
            } //Sending reqeust to get data for shorter interval test runs


            if (_this0.isDebugTest) {
              setTimeout(function () {
                _this0.isDebugTestTable = true;
                var ipurl = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;

                _this0.http.get(ipurl + "/DashboardServer/web/txDataService/getTxnDetail?testRun=" + _this0.testRunNum).subscribe(function (response) {
                  if (!response) {
                    //Error Message
                    return;
                  }

                  _this0.sessionTable = response;
                });
              }, 5000);
            }
          });
        }
      }, {
        key: "openHelpFor",
        value: function openHelpFor(value) {
          try {//this._cavConfigService.selectedHeaderInDoc = value;
            //this.dialog.open(helpPage, {});
          } catch (error) {
            console.error("error in openHelpForConfiguration --->>>", error);
          }
        }
      }, {
        key: "unsubscribeReq",
        value: function unsubscribeReq() {
          try {
            if (this.dataUpdateSubscription !== null && this.dataUpdateSubscription !== undefined) {
              this.dataUpdateSubscription.unsubscribe();
            }
          } catch (error) {
            console.error('error in unsubscriber === ', error);
          }
        }
      }, {
        key: "setScriptList",
        value: function setScriptList() {
          var _this1 = this;

          var params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpParams"]();
          this.scriptListItem = [];
          this.allScriptList = [];
          this.scenarioHttpService.getScriptList(this.session.session.cctx.u, this.privilege, true).subscribe(function (state) {
            if (state instanceof src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_14__["GetScriptListLoadingState"]) {
              _this1.onLoadingGetScriptList(state);

              return;
            }

            if (state instanceof src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_14__["GetScriptListLoadedState"]) {
              _this1.onLoadedGetScriptList(state);

              return;
            }
          }, function (state) {
            _this1.onLoadingErrorGetScriptList(state);
          });
          var hostIPUrl = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;
          this.uploadUrl = hostIPUrl + '/DashboardServer/web/ImportAccessLogService/upload' + '?for=JMeterScen&destination=' + '/workspace/' + this.username + '/' + this.profile + '/cavisson/' + this.lstScriptProj + '/' + this.lstScriptSubProj + '/scripts' + '&productKey=' + this.session.session.cctx.pk;
        }
      }, {
        key: "onLoadingErrorGetScriptList",
        value: function onLoadingErrorGetScriptList(state) {//throw new Error('Method not implemented.');
        }
      }, {
        key: "onLoadedGetScriptList",
        value: function onLoadedGetScriptList(state) {
          var data = state.data;

          try {
            var tmpScriptArr = [];
            var isJmeter = true;
            var arrData = data;

            if (isJmeter) {
              arrData = data;
            }

            for (var i = 0; i < arrData.length; i++) {
              var sriptObj = arrData[i];
              if (sriptObj['project'] != 'default' && sriptObj['subproject'] != 'default') continue;
              tmpScriptArr.push(sriptObj[this.SCRIPT_DATA.SCRIPT]);
            }

            tmpScriptArr.sort();
            this.scriptListItem = this.createSelectItem(tmpScriptArr);

            if (this.groupData) {
              this.groupData.scriptName = this.scriptListItem[0] ? this.scriptListItem[0]['value'] : '';
            }
          } catch (error) {
            console.error(error);
          }

          this.blockUiObj.isJMScriptDataSet = true;
        }
      }, {
        key: "onLoadingGetScriptList",
        value: function onLoadingGetScriptList(state) {}
      }, {
        key: "createSelectItem",
        value: function createSelectItem(list) {
          var selectItemList;
          selectItemList = [];

          for (var index in list) {
            if (list[index].indexOf("--Select") != -1) {
              selectItemList.push({
                label: list[index],
                value: ''
              });
            } else if (list[index].indexOf('Ubuntu') != -1) {
              selectItemList.push({
                label: 'Unix(Ubuntu)',
                value: list[index]
              });
            } else {
              selectItemList.push({
                label: list[index],
                value: list[index]
              });
            }
          }

          return selectItemList;
        }
      }, {
        key: "removeScriptFromTable",
        value: function removeScriptFromTable(index) {
          try {
            this.scriptList.splice(index, 1);
            this.scriptNameList.splice(index, 1);
          } catch (error) {
            console.error("error in removing ...  ", error);
          }
        }
      }, {
        key: "errorLog",
        value: function errorLog() {
          try {
            sessionStorage.setItem('selectedTestRunForWelcomePortal', this.testRunNum.toString());
          } catch (error) {
            console.error("Error in opening error log", error);
          }
        }
      }, {
        key: "scriptErrorLog",
        value: function scriptErrorLog() {
          this.displayErrorLog = true;
        }
      }, {
        key: "validateQty",
        value: function validateQty(event, isZeroAllowed) {
          if (!isZeroAllowed && event.charCode > 31 && event.charCode != 46 && (event.charCode < 48 || event.charCode > 57)) return false;else if (isZeroAllowed && event.charCode > 31 && event.charCode != 46 && (event.charCode < 47 || event.charCode > 57)) return false;
          return true;
        }
      }, {
        key: "validateAndSetJmeterType",
        value: function validateAndSetJmeterType() {
          var tempObj = [];

          if (this.minHeap == undefined) {
            this.scriptMsgService.showError('Min Heap Size cannot be blank', 'Error');
            return false;
          }

          if (this.minHeap < 128 || this.minHeap > 8 * 1024) {
            this.scriptMsgService.showError('Min Heap Size cannot be less than 128MB and greater than 8GB', 'Error');
            return false;
          }

          if (this.maxHeap == undefined) {
            this.scriptMsgService.showError('Max Heap size cannot be blank', 'Error');
            return false;
          }

          if (this.maxHeap < this.minHeap || this.maxHeap > 8 * 1024) {
            this.scriptMsgService.showError('Max Heap size cannot be less than Min Heap or greater than 8GB', 'Error');
            return false;
          }

          tempObj.push(this.minHeap);
          tempObj.push(this.maxHeap);
          return true;
        }
      }, {
        key: "scrollYPositive",
        value: function scrollYPositive(offset) {
          var _this10 = this;

          setTimeout(function () {
            _this10.testRunSection.nativeElement.scrollIntoView({
              behavior: 'smooth',
              block: 'end',
              inline: 'start'
            });
          }, 500);
          return null;
        }
      }, {
        key: "checkGenData",
        value: function checkGenData() {
          var _this11 = this;

          if (this.isJmeterReportEnabled) {
            this.scriptMsgService.showError("Generate JMeter Report is not allowed with Distributed Mode", 'Error');
            setTimeout(function () {
              _this11.isShowGenTable = false;
            }, 10);
          }
        }
      }, {
        key: "checkPermission",
        value: function checkPermission(showError) {
          if (!this.session.isFeatureWrite(this.aclProperties.feature, this.aclProperties.subFeature)) {
            if (showError) this.scriptMsgService.showError(this.permissionMessage, 'Error');
            return false;
          }

          return true;
        } // User can take the multiple keyword value separated with pipe (PAGE_AS_TRANSACTION|NUM_USER|...),
        // If it is group base send the group name and if it is not groupbase send blank

      }, {
        key: "setRequestKeywordListInBody",
        value: function setRequestKeywordListInBody(keyword) {
          var sesjmxScenFileName = this.testName;
          sesjmxScenFileName += ".jmx";
          var obj = {
            keyword: keyword,
            scenMode: "0",
            scenName: "default/default/".concat(sesjmxScenFileName),
            userName: sessionStorage.getItem("sesLoginName"),
            testRunNum: "-1"
          };
          this.requestJsonParm = obj;
        }
      }, {
        key: "getRequestJsonParm",
        value: function getRequestJsonParm() {
          return this.requestJsonParm;
        } //to get the keyword data from server

      }, {
        key: "getKeywordDataFromServer",
        value: function getKeywordDataFromServer() {
          this.setRequestKeywordListInBody(this.screenKeywordList);
          var apppath = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;
          return this.http.post(apppath + '/ProductUI/productSummary/ScenarioWebService/getDefaultKeywordData?productKey=' + this.session.session.cctx.pk, this.getRequestJsonParm()).map(function (res) {
            return res;
          }).toPromise().then(function (res) {
            var data = res;
            return data;
          });
        }
      }, {
        key: "getScenarioData",
        value: function getScenarioData() {
          var _this12 = this;

          this.getKeywordDataFromServer().then(function (data) {
            try {
              var keyObj = data;
              var generatorData = keyObj['NS_GENERATOR']['data']['_G'];
              if (generatorData != undefined) _this12.setGeneratorData(generatorData);else {
                _this12.setGeneratorDataForLocation(keyObj['GEN_LOCATION']['data']['_G']);
              }
              var distributionType = keyObj['GEN_LOCATION_MODE']['data']['_G'][0][0];
              if (distributionType != undefined) _this12.genService.selectedGenaratorType = distributionType;else _this12.genService.selectedGenaratorType = "0";
              _this12.genKeywordDataFromServer = {
                isGeneratorOpt: true,
                genArr: _this12.genService.genArr,
                selectedGenaratorType: _this12.genService.selectedGenaratorType,
                genLocatioPercentage: _this12.genService.$genLocatioPercentage
              };
              var runInDistributedModeData = keyObj['GEN_SERVER_SETTING']['data']['_G'];

              if (runInDistributedModeData != undefined && runInDistributedModeData.length > 0) {
                _this12.isShowGenTable = true;
              }

              var sgrpArr = keyObj['SGRP']['data']['_G'];
              var jmeterCsvDataSetArr = keyObj['JMETER_CSV_DATA_SET_SPLIT']['data']['_G'];
              var vuserArr = keyObj['JMETER_VUSERS_SPLIT']['data']['_G'];
              var jMHeapSetsArr = keyObj['G_JMETER_JVM_SETTINGS']['data']['ALL'];
              var jmScheduleSetsArr = keyObj['G_JMETER_SCHEDULE_SETTINGS']['data'];

              try {
                var tracingArr = keyObj['G_TRACING']['data']['ALL'][0];
                if (tracingArr && tracingArr.length > 0) _this12.updatingTracingFields(tracingArr);
              } catch (error) {}

              try {
                var reportArr = keyObj['G_REPORTING']['data']['ALL'];
                if (reportArr && reportArr.length > 0) _this12.updatingReporting(reportArr);
              } catch (error) {
                console.error(error);
              }

              try {
                var httpSampleAsTxnArr = keyObj['PAGE_AS_TRANSACTION']['data']['_G'][0];
                if (httpSampleAsTxnArr && httpSampleAsTxnArr.length > 0) _this12.updatingHttpSampleAsTxn(httpSampleAsTxnArr);
              } catch (error) {
                console.error(error);
              }

              try {
                var jmeterAdditionArgArr = keyObj['G_JMETER_ADD_ARGS']['data']['ALL'][0];
                if (jmeterAdditionArgArr && jmeterAdditionArgArr.length > 0) _this12.updatingJmeterAdditionArg(jmeterAdditionArgArr);
              } catch (error) {
                console.error("jmeter Addition Arg ---", error);
              }

              try {
                var generatorHealth = keyObj['CHECK_GENERATOR_HEALTH']['data']['_G'];

                if (generatorHealth && generatorHealth.length > 0) {
                  _this12.healthCheckGenerator = parseInt(generatorHealth[0]) == 0 ? false : true;
                }
              } catch (error) {
                console.error(error);
              }

              if (jMHeapSetsArr && jMHeapSetsArr.length > 0) _this12.updatingJHeapSet(jMHeapSetsArr);
              if (vuserArr && vuserArr.length > 0) _this12.updatingVuser(vuserArr);
              if (jmeterCsvDataSetArr && jmeterCsvDataSetArr.length > 0) _this12.updatingCsvDataSet(jmeterCsvDataSetArr);
              if (sgrpArr && sgrpArr.length > 0) _this12.updatingScript(sgrpArr, jmScheduleSetsArr);
              _this12.scenarioState = _this12.parseAndGenerateScenData();
            } catch (error) {}

            _this12.blockUiObj.isScenarioDataSet = true;
          });
        }
      }, {
        key: "updatingReporting",
        value: function updatingReporting(reportArr) {
          try {
            this.isDdrEnabled = parseInt(reportArr[0]) == 1 ? false : true;
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "updatingHttpSampleAsTxn",
        value: function updatingHttpSampleAsTxn(pageAsTxnArr) {
          try {
            if (parseInt(pageAsTxnArr[0]) == 0) this.sampleAndTxn = "sampleNotAsTxn";else if (parseInt(pageAsTxnArr[0]) == 1) this.sampleAndTxn = "sampleAsTxn";else if (parseInt(pageAsTxnArr[0]) == 2) this.sampleAndTxn = "distinctSuccessAndFailure";else if (parseInt(pageAsTxnArr[0]) == 3) this.sampleAndTxn = "samplerStatusAsTxn";
            this.noPrefixInTxn = parseInt(pageAsTxnArr[1]) == 1 ? true : false;
            this.ifParentSampleEnabled = parseInt(pageAsTxnArr[2]) == 1 ? true : false;
          } catch (error) {
            console.error("each Sample As Txn error --->", error);
          }
        }
      }, {
        key: "updatingTracingFields",
        value: function updatingTracingFields(tracingArr) {
          try {
            // 0: "4", 1: "1", 2: "2", 3: "0", 4: "0", 5: "1", 6: "6", 7: "1"
            //G_TRACING ALL 4 1 2 0 0 1 8 6 //all,4=mainUrl,1=default,2=session with networklog,00Default,1=ifBothSession>0,8=Capture,6=sessErr
            this.radTraceLevel = parseInt(tracingArr[0]);
            if (this.radTraceLevel > 0) this.isTracingEnable = true;
            this.radTraceSession = parseInt(tracingArr[2]);
            this.radTraceLevel = parseInt(tracingArr[0]);

            if (tracingArr.length > 6) {
              // Old scenario case
              this.txtSession = parseInt(tracingArr[6]);
              this.capErrorSession = parseInt(tracingArr[7]);
            } else {
              this.txtSession = 1;
              this.capErrorSession = 1;
            }
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "updatingJmeterAdditionArg",
        value: function updatingJmeterAdditionArg(additionalJmeterArgArr) {
          try {
            this.isJmeterReportEnabled = parseInt(additionalJmeterArgArr[0]) == 1 ? true : false;

            if (additionalJmeterArgArr.length > 1) {
              this.optionalParam = "";

              for (var index = 1; index < additionalJmeterArgArr.length; index++) {
                this.optionalParam += additionalJmeterArgArr[index] + " ";
              }

              this.optionalParam = this.optionalParam.trim();
            }
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "updatingJHeapSet",
        value: function updatingJHeapSet(jMHeapSetsArr) {
          var jMHeapSets = jMHeapSetsArr[0];
          this.minHeap = parseInt(jMHeapSets[0]);
          this.maxHeap = parseInt(jMHeapSets[1]);

          if (jMHeapSets.length > 2) {
            this.additionalJvmArgs = "";

            for (var index = 2; index < jMHeapSets.length; index++) {
              this.additionalJvmArgs += jMHeapSets[index] + " ";
            }

            this.additionalJvmArgs = this.additionalJvmArgs.trim();
          }
        }
      }, {
        key: "updatingCsvDataSet",
        value: function updatingCsvDataSet(dataSetArr) {
          var csvObj = dataSetArr[0];
          this.selectedSplitType = parseInt(csvObj[0]);
          if (this.selectedSplitType == this.SplitType.SPLIT_WITH_NAME) this.txtSplitFile = csvObj[1];
        }
      }, {
        key: "updatingVuser",
        value: function updatingVuser(vuserArr) {
          this.selectedVuserSplit = parseInt(vuserArr[0]) == this.SplitVuserOpt.VUSER_SPLITTING ? true : false;
        }
      }, {
        key: "updatingScript",
        value: function updatingScript(sgrpArr, jmScheduleSetsArr) {
          var _this13 = this;

          sgrpArr.forEach(function (group) {
            var grpLen = group.length;
            _this13.genService.numGenerators = Number(group[grpLen - 1]);
            var grpName = group[0];
            var threads = 'As per script';
            var duration = 'As per script';
            var rampUp = 'As per script';

            if (jmScheduleSetsArr != undefined) {
              var element = jmScheduleSetsArr[grpName];

              if (element != undefined) {
                threads = element[0][0] == 'NA' ? threads : element[0][0];
                rampUp = element[0][1] == 'NA' ? rampUp : _this13.getTimeFormatBySecs(parseInt(element[0][1]));
                duration = element[0][2] == 'NA' ? duration : _this13.getTimeFormatBySecs(parseInt(element[0][2]));
              }
            }

            var obj = {
              "scriptName": group[grpLen - 2].split('/')[2],
              "thread": threads,
              "duration": duration,
              "rampUp": rampUp
            };

            _this13.scriptList.push(obj);

            _this13.scriptNameList.push(group[grpLen - 2].split('/')[2]);
          });
        }
      }, {
        key: "getTimeFormatBySecs",
        value: function getTimeFormatBySecs(seconds) {
          return new Date(seconds * 1000).toISOString().substr(11, 8);
        }
      }, {
        key: "validateTime",
        value: function validateTime(event) {
          if (event.charCode >= 48 && event.charCode <= 57 || event.charCode == 58) {
            return true;
          } else return false;
        }
      }, {
        key: "getInSecs",
        value: function getInSecs(str) {
          try {
            var p = str.split(':'),
                s = 0,
                m = 1;

            while (p.length > 0) {
              s += m * parseInt(p.pop(), 10);
              m *= 60;
            }

            return s;
          } catch (error) {
            return str;
          }
        }
      }, {
        key: "getUploadUrl",
        value: function getUploadUrl() {
          var apppath = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;
          var uploadUrl = apppath + '/DashboardServer/web/ImportAccessLogService/upload?for=JMeterScen&destination=/workspace/' + this.username + '/' + this.profile + '/cavisson/' + this.lstScriptProj + '/' + this.lstScriptSubProj + '/scripts&productKey=' + this.session.session.cctx.pk + '&isOverwrite=' + this.overwriteJMeterScript;
          return uploadUrl;
        }
      }, {
        key: "checkForScenario",
        value: function checkForScenario(currentScenario) {
          var _this14 = this;

          if (this.scenarioState.length == 0) {
            this.scenarioState = currentScenario;
            return false;
          }

          var isEqual = currentScenario.length === this.scenarioState.length && currentScenario.every(function (value, index) {
            return value === _this14.scenarioState[index];
          });
          if (!isEqual) this.scenarioState = currentScenario;
          return isEqual;
        }
      }, {
        key: "getScenarioName",
        value: function getScenarioName(scenarioName) {
          if (scenarioName == undefined || scenarioName == "" || scenarioName.indexOf('/') == -1) return scenarioName;else {
            var scenArr = scenarioName.split("/");
            if (scenArr.length == 3) return scenArr[2].split(".")[0];else return "";
          }
        }
      }, {
        key: "onBasicFileSelect",
        value: function onBasicFileSelect(data, form) {
          var f_name = data.files[0]['name'].substr(data.files[0]['name'].lastIndexOf('.') + 1);

          if (f_name != 'zip' && f_name != 'gz' && f_name != 'jmx') {
            this.scriptMsgService.showError("Invalid file type, only .jmx, .zip, .tar.gz are allowed.", 'Error');
            this.loaderForUpload = false;
            form.clear();
            return;
          }
        }
      }, {
        key: "onFileUpload",
        value: function onFileUpload(data, form) {
          var _this15 = this;

          var uploadedFilename = "";
          this.loaderForUpload = true;
          var formData = new FormData();
          var file = data.files[0];
          formData.append('file', file, file.name);
          this.uploadUrl = this.urlForUpload;
          uploadedFilename = file.name.substring(0, file.name.lastIndexOf("."));

          if (uploadedFilename.length > 64) {
            this.scriptMsgService.showError("FileName must be of maximum 64 characters. First character must be Alpha. Other characters are Alpha, Numeric or Underscore.", 'Error');
            form.clear();
            return;
          }

          var regPattern = /^[a-zA-Z]([a-zA-Z0-9_]*[a-zA-Z0-9])?$/;
          var regexParam = new RegExp(regPattern);

          if (!regexParam.test(uploadedFilename) && uploadedFilename) {
            this.scriptMsgService.showError('Please enter valid jmeter name.\nFirst character must be Alpha.\r\nOther characters are Alpha, numeric and underscore. ', 'Error');
            this.loaderForUpload = false;
            form.clear();
            return;
          }

          var allAvailableScripts = [].concat(_toConsumableArray(this.scriptListItem), _toConsumableArray(this.allScriptList));
          var index = allAvailableScripts.findIndex(function (scriptName) {
            return scriptName.label == uploadedFilename;
          });

          if (index != -1) {
            this.confirmationService.confirm({
              message: 'Do you want to overwrite the existing script?',
              header: 'Confirmation',
              key: "runJmeterConfrim",
              accept: function accept() {
                _this15.overwriteJMeterScript = true;

                _this15.sendFileToServer(data, form);
              },
              reject: function reject() {
                _this15.overwriteJMeterScript = false;

                _this15.sendFileToServer(data, form);
              }
            });
          } else {
            this.overwriteJMeterScript = false;
            this.sendFileToServer(data, form);
          }
        }
      }, {
        key: "sendFileToServer",
        value: function sendFileToServer(data, form) {
          var _this16 = this;

          var formData = new FormData();
          var file = data.files[0];
          formData.append('file', file, file.name);
          this.http.post(this.getUploadUrl(), formData).subscribe(function (res) {
            if (res['success'] == false) {
              var errorMessage = res['error'];
              _this16.loaderForUpload = false;
              errorMessage = errorMessage.replace('Error:', '').replace('[Error:', '').replace(']', '').trim(); // this.showError('zip or tar name should be same as JMX file name');

              if (errorMessage.includes('Error in parsing jmx file')) {
                _this16.scriptMsgService.showError("Error in parsing jmx file.", 'Error');

                try {
                  _this16.jmxException = errorMessage.split('\n')[0];
                  _this16.showJmxException = true;
                } catch (error) {
                  console.error('error in parsing exception message :', _this16.jmxException, _this16.showJmxException);
                }
              } else _this16.scriptMsgService.showError(errorMessage, 'Error');

              form.clear();
              return;
            }

            var fileName = res.filePath;
            fileName = fileName.split("/")[11];

            for (var i = 0; i < _this16.scriptListItem.length; i++) {
              if (_this16.scriptListItem[i].label == fileName) {
                _this16.scriptListItem.splice(i, 1);

                break;
              }
            }

            _this16.scriptListItem.unshift({
              label: fileName,
              value: fileName
            });

            _this16.groupData.scriptName = _this16.scriptListItem[0].value;
            _this16.groupData.jsonFilePath = _this16.groupData.jsonFilePath;
            _this16.newScriptToAdd = fileName;
            _this16.loaderForUpload = false;

            _this16.scriptMsgService.showSuccess("Script uploaded succesfully.", 'Success');

            _this16.overwriteJMeterScript = false;
            form.clear();
          });
        }
        /** G_TRACING */

      }, {
        key: "validateTracing",
        value: function validateTracing() {
          if (this.isTracingEnable) {
            if (this.validateNumber(this.txtSession) == false) return false;

            if (this.txtSession == null) {
              this.scriptMsgService.showError('Network log percentage value for all sessions can not be blank.', 'Error');
              return false;
            }

            if (this.txtSession < 0 || this.txtSession > 100) {
              this.scriptMsgService.showError("Network logs percentage value for all sessions can not be greater than 100 or less than 0.", 'Error');
              return false;
            }

            if (this.validateNumber(this.capErrorSession) == false) return false;

            if (this.capErrorSession == null) {
              this.scriptMsgService.showError('Network logs percentage value for error sessions can not be blank.', 'Error');
              return false;
            }

            if (this.capErrorSession < 0 || this.capErrorSession > 100) {
              this.scriptMsgService.showError("Network logs percentage value for error sessions can not be greater than 100 or less than 0.", 'Error');
              return false;
            }

            if (this.txtSession == 0 && this.capErrorSession == 0) {
              this.scriptMsgService.showError("Capture network log fields for both all sessions and error sessions can not be 0 at the same time.", 'Error');
              return false;
            }
          } else {
            return true;
          }

          return true;
        }
      }, {
        key: "checkNumDecUptoTwo",
        value: function checkNumDecUptoTwo(value) {
          var pattern = /^(?:\d*\.\d{1,2}|\d+)$/;

          if (value == undefined || value == null || !pattern.test(value)) {
            this.scriptMsgService.showError('Decimal up to 2 digit allowed. E.g- .05', 'Error');
            return false;
          }

          return true;
        }
      }, {
        key: "validateNumber",
        value: function validateNumber(value) {
          var pattern = /^[0-9.]*$/;

          if (value == undefined || value == null || !pattern.test(value)) {
            this.scriptMsgService.showError('Please enter valid number.', 'Error');
            return false;
          }

          return true;
        }
        /* method for stopping test from Cancel Test button in the screen */

      }, {
        key: "stopTest",
        value: function stopTest() {
          var _this17 = this;

          try {
            this.isAbortAllowed = false;
            var machineIP = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;
            var url = machineIP + "/DashboardServer/web/StopTestRunService/stopTestRun?productKey=" + this.session.session.cctx.pk + '&testRun=' + this.testRunNum + '&client_connection_key=' + this._cavConfigService.$clientConnectionKey + '&userName=' + this.username + '&permission=7' + '&stopType= ' + encodeURIComponent('-f ') + '&module=TestInitializationStatus';
            var stopTestRunSubscription = this.http.get(url).subscribe(function (result) {
              _this17.isAbortAllowed = true;
              var testStatusValue = result['TestStopped'];
              var netstormStatus = result['netstormStatus'];

              if (testStatusValue === 'stopInProgress' || testStatusValue === 'stopped') {
                if (netstormStatus === false) {
                  _this17.testAborted = true;

                  _this17.scriptMsgService.showSuccess('Test stopped Successfully', 'Success');

                  _this17.isTestRunning = false;
                  clearInterval(_this17.intervalid);
                  clearInterval(_this17.intervalIdForDuration);
                  _this17.intervalIdForDuration = -1; //If user stops test before transaction table has been populated then need to show Transaction table for look and feel purpose.

                  _this17.isTransactionTable = true;
                }
              } else {
                _this17.scriptMsgService.showError('Error in stopping test.', 'Error');
              }

              _this17._cavCommonUtils.getCommonConfigDataHandler();
            }, function (err) {
              _this17.isAbortAllowed = true;
              stopTestRunSubscription.unsubscribe();
            }, function () {
              /*unsubscribe/releasing resources.*/
              if (stopTestRunSubscription) {
                _this17.isAbortAllowed = true;
                stopTestRunSubscription.unsubscribe();
              }
            });
          } catch (e) {
            this.isAbortAllowed = true;
            console.error(e);
          }
        }
      }, {
        key: "isThreadDistributionEnabled",
        value: function isThreadDistributionEnabled() {
          var _this18 = this;

          if (this.threads || this.duration || this.rampup) {
            if (this.selectedVuserSplit) {
              this.scriptMsgService.showError('Override JMeter schedule settings is not allowed with Distribute threads among selected generators', 'Error');
              setTimeout(function () {
                _this18.threads = false;
                _this18.rampup = false;
                _this18.duration = false;
              });
            }
          }
        }
      }, {
        key: "isOverrideJmeterEnabled",
        value: function isOverrideJmeterEnabled() {
          var _this19 = this;

          if (this.selectedVuserSplit && this.scriptList.length < 1) {
            if (this.threads || this.duration || this.rampup) {
              this.scriptMsgService.showError('Distribute threads among selected generators is not allowed with Override JMeter schedule settings', 'Error');
              setTimeout(function () {
                _this19.selectedVuserSplit = false;
              });
            }
          } else if (this.selectedVuserSplit && this.scriptList.length > 0) {
            this.checkForScripsWithOverride();
          }
        }
      }, {
        key: "checkForScripsWithOverride",
        value: function checkForScripsWithOverride() {
          var _this20 = this;

          var inValidArr = [];

          for (var index = 0; index < this.scriptList.length; index++) {
            var threads = this.getValue(this.scriptList[index]['thread']);
            var rampUp = this.getValue(this.scriptList[index]['rampUp']);
            var duration = this.getValue(this.scriptList[index]['duration']);
            if (threads != 'NA' || rampUp != 'NA' || duration != 'NA') inValidArr.push(this.scriptList[index]['scriptName']);
          }

          if (inValidArr.length > 0) {
            var msg = "Override JMeter schedule settings  are applied on script(s) ";
            inValidArr.forEach(function (element) {
              msg += element + " ";
            });
            msg += ", so Distribute threads among selected generators is not allowed";
            this.scriptMsgService.showError(msg, 'Error');
            setTimeout(function () {
              _this20.selectedVuserSplit = false;
            });
          }
        }
      }, {
        key: "closeAccordion",
        value: function closeAccordion() {
          this.index = this.lastIndex--;
        }
      }, {
        key: "deleteScript",
        value: function deleteScript() {
          var _this21 = this;

          if (this.groupData.scriptName == undefined || this.groupData.scriptName == '') {
            this.scriptMsgService.showError('Select script', 'Error');
            return;
          }

          this.confirmationService.confirm({
            message: 'Are you sure you want to delete selected script?',
            header: 'Confirmation',
            key: "runJmeterConfrim",
            accept: function accept() {
              var scriptPath = 'workspace/' + _this21.username + '/' + _this21.profile + '/cavisson/default/default/scripts/' + _this21.groupData.scriptName;

              _this21.scriptRestService.deleteFileOrScript(scriptPath).subscribe(function (state) {
                if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_21__["ScriptRestLoading"]) {
                  _this21.onLoadingDeleteScript(state);

                  return;
                }

                if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_21__["ScriptRestLoaded"]) {
                  _this21.onDeleteScript(state);

                  return;
                }
              }, function (state) {
                _this21.onLoadingErrorDeleteScript(state);
              });
            },
            reject: function reject() {}
          });
        }
      }, {
        key: "onLoadingErrorDeleteScript",
        value: function onLoadingErrorDeleteScript(state) {//throw new Error('Method not implemented.');
        }
      }, {
        key: "onDeleteScript",
        value: function onDeleteScript(state) {
          var details = state.data;

          if (details.status.code == 0) {
            for (var index = 0; index < this.scriptListItem.length; index++) {
              var element = this.scriptListItem[index];

              if (element.label === this.groupData.scriptName) {
                this.scriptListItem.splice(index, 1);

                if (this.scriptListItem.length == 0) {
                  this.groupData.scriptName = '';
                } else {
                  this.groupData.scriptName = this.scriptListItem[0].value;
                }
              }
            }

            this.scriptMsgService.showSuccess('Script Deleted', 'Success');
          } else {
            this.scriptMsgService.showError("Unable to delete  script script " + this.groupData.scriptName + " does not exist", 'Error');
          }
        }
      }, {
        key: "onLoadingDeleteScript",
        value: function onLoadingDeleteScript(state) {//throw new Error('Method not implemented.');
        }
      }, {
        key: "setGeneratorData",
        value: function setGeneratorData(data) {
          if (data == undefined) {
            console.error("NS_GENERATOR data is not coming", data);
            return;
          }

          this.genService.selectedGenaratorType = "0";
          this.isShowGenTable = true;

          if (data.length > 0) {
            this.genService.isGeneratorOpt = true;
          }

          for (var i = 0; i < data.length; i++) {
            this.genService.genArr.push(data[i][0]);
          }
        }
      }, {
        key: "setGeneratorDataForLocation",
        value: function setGeneratorDataForLocation(data) {
          if (data == undefined) {
            console.error("setGeneratorDataForLocation data is not coming", data);
            return;
          }

          this.genService.$genLocatioPercentage = [];
          var count = 3;
          this.genService.genArr = [];
          this.isShowGenTable = true;

          for (var i = 0; i < data.length; i++) {
            var str = data[i][0] + " " + data[i][1];
            this.genService.genArr.push(str);
            if (data[i][1] == "33" && data[i][0] == "US-East" || data[i][1] == "33" && data[i][0] == "US-west" || data[i][1] == "34" && data[i][0] == "US-central") count++;

            try {
              this.genService.$genLocatioPercentage.push(parseInt(data[i][1]));
            } catch (error) {
              console.error("error in this.scenScheduleData.$genLocatioPercentage.push", error);
            }
          }

          if (data.length > 0) this.genService.isGeneratorOpt = true;
        }
      }, {
        key: "getGeneratorServer",
        value: function getGeneratorServer() {
          var _this22 = this;

          try {
            var json = {};
            this.scenarioHttpService.getDataFromRESTUsingPOSTReq(json).subscribe(function (state) {
              if (state instanceof src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_14__["GetGenConfigLoadingState"]) {
                _this22.onLoadingGetGenConfig(state);

                return;
              }

              if (state instanceof src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_14__["GetGenConfigLoadedState"]) {
                _this22.onLoadedGetGenConfig(state);

                return;
              }
            }, function (state) {
              _this22.onLoadingErrorGetGenConfig(state);
            });
          } catch (e) {
            console.error('Error while saving Generator setting ', e);
          }
        }
      }, {
        key: "onLoadingErrorGetGenConfig",
        value: function onLoadingErrorGetGenConfig(state) {//throw new Error('Method not implemented.');
        }
      }, {
        key: "onLoadedGetGenConfig",
        value: function onLoadedGetGenConfig(state) {
          var result = state.data;

          if (result != undefined) {
            if (result['output']['appName'] != "" && result['output']['appName'] != undefined) {
              this.appName = result['output']['appName'];
              this.appName = this.appName == undefined || this.appName == '' ? '1' : this.appName;
            }

            if (result['output']['clientName'] != "" && result['output']['clientName'] != undefined) {
              this.clientName = result['output']['clientName'];
              this.clientName = this.clientName == undefined || this.clientName == '' ? '1' : this.clientName;
            }

            if (result['output']['genCapacity'] != "" && result['output']['genCapacity'] != undefined) {
              this.genCapacity = result['output']['genCapacity'];
              this.genCapacity = this.genCapacity == undefined || this.genCapacity == '' ? '1' : this.genCapacity;
            }

            if (result['output']['bandWidth'] != "" && result['output']['bandWidth'] != undefined) {
              sessionStorage.setItem('genBandWidth', result['output']['bandWidth']);
              this.bandwidth = result['output']['bandWidth'];
              this.bandwidth = this.bandwidth == undefined || this.bandwidth == '' ? '1' : this.bandwidth;
            }
          }
        }
      }, {
        key: "onLoadingGetGenConfig",
        value: function onLoadingGetGenConfig(state) {//throw new Error('Method not implemented.');
        }
      }, {
        key: "viewJMScript",
        value: function viewJMScript() {
          var host = window.location.host;

          if (this.session.preSession.multiDc) {
            var masterURL = this.session.preSession.dcData.filter(function (e) {
              return e.master;
            }).map(function (e) {
              return e.url;
            })[0];
            host = masterURL;
          }

          var url = host + '/' + this.session.preSession.productName + '/convertScript/startJmeter.jsp?prjName=default&subPrjName=default&scriptName=' + this.groupData.scriptName + '&w=' + (this.session.session.cctx.u == 'cavisson' ? 'admin' : this.session.session.cctx.u) + '&p=' + this.workprofile.profile;
          this.openWindow(url);
        }
      }, {
        key: "openWindow",
        value: function openWindow(url) {
          if (this.session.preSession.multiDc) window.open(url);else window.open('//' + url);
        }
      }]);
    }();

    RunJmeterScriptComponent.ctorParameters = function () {
      return [{
        type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]
      }, {
        type: primeng__WEBPACK_IMPORTED_MODULE_4__["ConfirmationService"]
      }, {
        type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__["MatDialog"]
      }, {
        type: _transaction_detail_services_transaction_detail_service__WEBPACK_IMPORTED_MODULE_17__["TransactionDetailService"]
      }, {
        type: _transaction_detail_services_cav_top_panel_navigation_service__WEBPACK_IMPORTED_MODULE_7__["CavTopPanelNavigationService"]
      }, {
        type: _angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpClient"]
      }, {
        type: src_app_pages_tools_configuration_nd_config_services_cav_config_service__WEBPACK_IMPORTED_MODULE_8__["CavConfigService"]
      }, {
        type: src_app_pages_tools_actions_ddr_data_model_service__WEBPACK_IMPORTED_MODULE_9__["DdrDataModelService"]
      }, {
        type: _synthetic_monitor_services_scen_data_service__WEBPACK_IMPORTED_MODULE_10__["ScenDataService"]
      }, {
        type: src_app_pages_scenario_service_scenario_utils_service__WEBPACK_IMPORTED_MODULE_11__["ScenarioUtilsService"]
      }, {
        type: src_app_pages_scenario_service_generator_list_data_service__WEBPACK_IMPORTED_MODULE_12__["GeneratorListDataService"]
      }, {
        type: src_app_pages_scenario_service_scenario_http_service__WEBPACK_IMPORTED_MODULE_23__["ScenarioHttpService"]
      }, {
        type: _load_test_services_load_test_utils_service__WEBPACK_IMPORTED_MODULE_13__["LoadTestUtilsService"]
      }, {
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_15__["SessionService"]
      }, {
        type: src_app_shared_header_work_profile_services_work_profile_active_service__WEBPACK_IMPORTED_MODULE_16__["WorkProfileActiveService"]
      }, {
        type: _services_script_msg_service__WEBPACK_IMPORTED_MODULE_19__["ScriptMsgService"]
      }, {
        type: undefined,
        decorators: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
          args: [src_app_pages_tools_admin_access_control_management_services_cav_acl_util__WEBPACK_IMPORTED_MODULE_24__["ACL_PROPS"]]
        }]
      }, {
        type: src_app_shared_time_bar_service_time_bar_service__WEBPACK_IMPORTED_MODULE_18__["TimebarService"]
      }, {
        type: _services_script_rest_service__WEBPACK_IMPORTED_MODULE_20__["ScriptRestService"]
      }, {
        type: _load_test_services_load_test_common_services__WEBPACK_IMPORTED_MODULE_22__["LoadTestCommonService"]
      }];
    };

    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"])("myElem")], RunJmeterScriptComponent.prototype, "MyProp", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"])("myElemFull")], RunJmeterScriptComponent.prototype, "MyPropMax", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"])('testRunSection')], RunJmeterScriptComponent.prototype, "testRunSection", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"])("txnListTable")], RunJmeterScriptComponent.prototype, "txnListTable", void 0);
    RunJmeterScriptComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
      selector: 'app-run-jmeter-script',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./run-jmeter-script.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/run-jmeter-script/run-jmeter-script.component.html"))["default"],
      encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None,
      providers: [{
        provide: src_app_pages_tools_admin_access_control_management_services_cav_acl_util__WEBPACK_IMPORTED_MODULE_24__["ACL_PROPS"],
        useFactory: src_app_pages_tools_admin_access_control_management_services_cav_acl_util__WEBPACK_IMPORTED_MODULE_24__["getLoadTestTestExecutionACLProps"]
      }],
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./run-jmeter-script.component.scss */
      "./src/app/pages/home/script-manager/run-jmeter-script/run-jmeter-script.component.scss"))["default"]]
    }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__param"])(16, Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"])()), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__param"])(16, Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"])(src_app_pages_tools_admin_access_control_management_services_cav_acl_util__WEBPACK_IMPORTED_MODULE_24__["ACL_PROPS"]))], RunJmeterScriptComponent);
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/run-jmeter-script/run-jmeter-script.module.ts":
  /*!*****************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/run-jmeter-script/run-jmeter-script.module.ts ***!
    \*****************************************************************************************/

  /*! exports provided: RunJmeterScriptModule */

  /***/
  function _src_app_pages_home_scriptManager_runJmeterScript_runJmeterScriptModuleTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "RunJmeterScriptModule", function () {
      return RunJmeterScriptModule;
    });
    /* harmony import */


    var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
    /*! tslib */
    "./node_modules/tslib/tslib.es6.js");
    /* harmony import */


    var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
    /*! @angular/core */
    "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
    /* harmony import */


    var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! @angular/common */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
    /* harmony import */


    var primeng_tree__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! primeng/tree */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tree.js");
    /* harmony import */


    var primeng__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var primeng_dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! primeng/dropdown */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js");
    /* harmony import */


    var primeng_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! primeng/button */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js");
    /* harmony import */


    var primeng_selectbutton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! primeng/selectbutton */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-selectbutton.js");
    /* harmony import */


    var _angular_material_menu__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! @angular/material/menu */
    "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/menu.js");
    /* harmony import */


    var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! @angular/cdk/overlay */
    "./node_modules/@angular/cdk/__ivy_ngcc__/fesm2015/overlay.js");
    /* harmony import */


    var primeng_fileupload__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! primeng/fileupload */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fileupload.js");
    /* harmony import */


    var primeng_breadcrumb__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
    /*! primeng/breadcrumb */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-breadcrumb.js");
    /* harmony import */


    var primeng_slidemenu__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
    /*! primeng/slidemenu */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-slidemenu.js");
    /* harmony import */


    var primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
    /*! primeng/overlaypanel */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-overlaypanel.js");
    /* harmony import */


    var primeng_inputtext__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
    /*! primeng/inputtext */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js");
    /* harmony import */


    var primeng_fieldset__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
    /*! primeng/fieldset */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fieldset.js");
    /* harmony import */


    var primeng_table__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
    /*! primeng/table */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.js");
    /* harmony import */


    var src_app_shared_header_header_module__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
    /*! src/app/shared/header/header.module */
    "./src/app/shared/header/header.module.ts");
    /* harmony import */


    var primeng_confirmdialog__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
    /*! primeng/confirmdialog */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-confirmdialog.js");
    /* harmony import */


    var primeng_accordion__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
    /*! primeng/accordion */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-accordion.js");
    /* harmony import */


    var primeng_messages__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
    /*! primeng/messages */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-messages.js");
    /* harmony import */


    var primeng_sidebar__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(
    /*! primeng/sidebar */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-sidebar.js");
    /* harmony import */


    var primeng_lightbox__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(
    /*! primeng/lightbox */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-lightbox.js");
    /* harmony import */


    var primeng_treetable__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(
    /*! primeng/treetable */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-treetable.js");
    /* harmony import */


    var primeng_inputnumber__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(
    /*! primeng/inputnumber */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputnumber.js");
    /* harmony import */


    var _angular_forms__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(
    /*! @angular/forms */
    "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
    /* harmony import */


    var _angular_common_http__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(
    /*! @angular/common/http */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
    /* harmony import */


    var _run_jmeter_script_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(
    /*! ./run-jmeter-script.component */
    "./src/app/pages/home/script-manager/run-jmeter-script/run-jmeter-script.component.ts");
    /* harmony import */


    var _angular_router__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(
    /*! @angular/router */
    "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
    /* harmony import */


    var src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(
    /*! src/app/shared/help/help.module */
    "./src/app/shared/help/help.module.ts");
    /* harmony import */


    var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(
    /*! src/app/shared/cav-table/cav-table.module */
    "./src/app/shared/cav-table/cav-table.module.ts");
    /* harmony import */


    var src_app_pages_scenario_service_generator_list_data_service__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(
    /*! src/app/pages/scenario/service/generator-list-data.service */
    "./src/app/pages/scenario/service/generator-list-data.service.ts");
    /* harmony import */


    var _load_test_scenarios_components_cav_generator_list_cav_generator_list_module__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(
    /*! ../../load-test/scenarios/components/cav-generator-list/cav-generator-list.module */
    "./src/app/pages/home/load-test/scenarios/components/cav-generator-list/cav-generator-list.module.ts");

    var route = [{
      path: '',
      component: _run_jmeter_script_component__WEBPACK_IMPORTED_MODULE_27__["RunJmeterScriptComponent"],
      children: [{
        path: 'txDetailFrmDevPortal',
        loadChildren: function loadChildren() {
          return __webpack_require__.e(
          /*! import() | transaction-detail-transaction-detail-module */
          "transaction-detail-transaction-detail-module").then(__webpack_require__.bind(null,
          /*! ../../transaction-detail/transaction-detail.module */
          "./src/app/pages/home/transaction-detail/transaction-detail.module.ts")).then(function (m) {
            return m.TransactionDetailModule;
          });
        }
      }]
    }];

    var RunJmeterScriptModule = /*#__PURE__*/_createClass(function RunJmeterScriptModule() {
      _classCallCheck(this, RunJmeterScriptModule);
    });

    RunJmeterScriptModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [_run_jmeter_script_component__WEBPACK_IMPORTED_MODULE_27__["RunJmeterScriptComponent"]],
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], primeng_tree__WEBPACK_IMPORTED_MODULE_3__["TreeModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_26__["HttpClientModule"], primeng_dropdown__WEBPACK_IMPORTED_MODULE_5__["DropdownModule"], primeng_button__WEBPACK_IMPORTED_MODULE_6__["ButtonModule"], primeng_selectbutton__WEBPACK_IMPORTED_MODULE_7__["SelectButtonModule"], _angular_material_menu__WEBPACK_IMPORTED_MODULE_8__["MatMenuModule"], primeng_fileupload__WEBPACK_IMPORTED_MODULE_10__["FileUploadModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_9__["OverlayModule"], primeng_breadcrumb__WEBPACK_IMPORTED_MODULE_11__["BreadcrumbModule"], primeng_slidemenu__WEBPACK_IMPORTED_MODULE_12__["SlideMenuModule"], primeng_inputtext__WEBPACK_IMPORTED_MODULE_14__["InputTextModule"], primeng_fieldset__WEBPACK_IMPORTED_MODULE_15__["FieldsetModule"], primeng_table__WEBPACK_IMPORTED_MODULE_16__["TableModule"], src_app_shared_header_header_module__WEBPACK_IMPORTED_MODULE_17__["HeaderModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["CardModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MenuModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MessageModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MultiSelectModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["ToastModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["ToolbarModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["TooltipModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["DialogModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["TabViewModule"], primeng_confirmdialog__WEBPACK_IMPORTED_MODULE_18__["ConfirmDialogModule"], primeng_messages__WEBPACK_IMPORTED_MODULE_20__["MessagesModule"], primeng_sidebar__WEBPACK_IMPORTED_MODULE_21__["SidebarModule"], primeng_lightbox__WEBPACK_IMPORTED_MODULE_22__["LightboxModule"], primeng_treetable__WEBPACK_IMPORTED_MODULE_23__["TreeTableModule"], primeng_inputnumber__WEBPACK_IMPORTED_MODULE_24__["InputNumberModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_25__["FormsModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["InputSwitchModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["SpinnerModule"], primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_13__["OverlayPanelModule"], primeng_accordion__WEBPACK_IMPORTED_MODULE_19__["AccordionModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["RadioButtonModule"], src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_30__["CavTableModule"], _angular_router__WEBPACK_IMPORTED_MODULE_28__["RouterModule"].forChild(route), src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_29__["HelpModule"], _load_test_scenarios_components_cav_generator_list_cav_generator_list_module__WEBPACK_IMPORTED_MODULE_32__["CavGeneratorListModule"]],
      providers: [src_app_pages_scenario_service_generator_list_data_service__WEBPACK_IMPORTED_MODULE_31__["GeneratorListDataService"]]
    })], RunJmeterScriptModule);
    /***/
  }
}]);