How to Convert JMeter HTML Report Response time Milli Seconds to Seconds

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 เม.ย. 2023
  • How to Convert JMeter HTML Report Response time Milli Seconds to Seconds #jmeter #youtubechannel #youtubevideo #viralvideo #youtubers #performance #testing #software #softwaretesting #performanceengineering #technology #java #javascript #reports
    ***********************************************************************
    How to Convert JMeter HTML Report Response time Milli Seconds to Seconds
    ************************************************************************
    Changes code location path:
    *****************************
    E:\apache-jmeter-5.4.1\apache-jmeter-5.4.1\bin
    eport-template\content\js\dashboard.js
    Convert Report Milli Seconds to Seconds:
    ******************************************
    cell.innerHTML = "Response Times (Sec)";
    // Create statistics table
    switch(index){
    // Error
    case 3:
    item = item.toFixed(2) + '%';
    break;
    // Average
    case 4:
    item = (item/1000).toFixed(2);
    break;
    //Minimum
    case 5:
    item = (item/1000).toFixed(2);
    break;
    //Maximum
    case 6:
    item = (item/1000).toFixed(2);
    break;
    // Median
    case 7:
    item = (item/1000).toFixed(2);
    break;
    // 90%
    case 8:
    item = (item/1000).toFixed(2);
    break;
    // 95%
    case 9:
    item = (item/1000).toFixed(2);
    break;
    // 99%
    case 10:
    item = (item/1000).toFixed(2);
    break;
    case 11:
    // Throughput
    case 12:
    // Kbytes/s
    case 13:
    // Sent Kbytes/s
    item = item.toFixed(2);
    break;
    }
    return item;
    Original Code is JMeter When ever you face HTML report showing blank pages that time you need to paste below code return back to normal HTML Report Milli Seconds
    *******************************
    cell.innerHTML = "Response Times (ms)";
    // Create statistics table
    switch(index){
    // Errors pct
    case 3:
    item = item.toFixed(2) + '%';
    break;
    // Mean
    case 4:
    // Mean
    case 7:
    // Median
    case 8:
    // Percentile 1
    case 9:
    // Percentile 2
    case 10:
    // Percentile 3
    case 11:
    // Throughput
    case 12:
    // Kbytes/s
    case 13:
    // Sent Kbytes/s
    item = item.toFixed(2);
    break;
    }
    return item;

ความคิดเห็น • 1

  • @kmprash
    @kmprash ปีที่แล้ว

    Nicely explained.