kowalpy / Robot-Framework-JMeter-Library

Robot Framework and JMeter integration
16 stars 11 forks source link

JMeterLibException: 'Incorrect log file format' #1

Closed banrieen closed 6 years ago

banrieen commented 7 years ago

When use Analyse Jtl Convert To Html ${logpath} after Run Jmeter or directly use Run Jmeter Analyse Jtl Convert or Run Jmeter Analyse Jtl Convert To Html get a error: JMeterLibException: 'Incorrect log file format' The testcases step is:

run jmeter    ${jmeterPath}   ${scriptFile}    ${resultFile}
Wait Until Keyword Succeeds    30    2s    File Should Exist    ${resultFile}
${html} =    Analyse Jtl Convert To Html    ${resultFile}

The packages info: Jmeter (3.2 r1790748) robotframework (3.0.2) robotframework-jmeterlibrary (1.1) python (2.7.12)

kowalpy commented 7 years ago

Has JMeter log format changed recently? Could you please attach example log generated by current JMeter version?

banrieen commented 7 years ago

Ok,I have checked Jmater log, is is not the xml or csv format.

kowalpy commented 7 years ago

By default JMeter 3.2 generates comma separated file but format changed. I got the same error. I also found out that since JMeter 3.0 there is HTML dashboard functionality, I am not sure if supporting this library in this form still makes sense.

kowalpy commented 7 years ago

I started general discussion how should version 1.2 look like (or even should it be released). Please contribute

banrieen commented 7 years ago

OK,thank you.

kowalpy commented 6 years ago

XML log is the same. CSV log differs.

kowalpy commented 6 years ago

@banrieen It is fixed already in this commit: https://github.com/kowalpy/Robot-Framework-JMeter-Library/commit/d3cdd3e6622b31e92a9054c88f22e1b6e5f35f87 but not released to pypi yet. I'll release it soon.

kowalpy commented 6 years ago

Done. Fix available in robotframework-jmeterlibrary 1.2

sadhananda commented 3 years ago

Is this resolved i am still facing same issue in obotframework-jmeterlibrary 1.2

soalexan commented 3 years ago

I am facing the same issue JMeterLibException: 'Incorrect log file format' Jmeter 2.12 Python 2.7.18

${logPath}= set variable C:/Tests/output1.log
run jmeter C:/Tests/apache-jmeter-5.4.1/bin/jmeter.bat C:/Tests/100users.jmx ${logPath} ${result} analyse jtl convert ${logPath}
log ${result}
FOR ${ELEMENT} IN @{result} log dictionary ${ELEMENT}

can anyone help me how to solve this?

sadhananda commented 3 years ago

I am facing the same issue JMeterLibException: 'Incorrect log file format' Jmeter 2.12 Python 2.7.18

${logPath}= set variable C:/Tests/output1.log run jmeter C:/Tests/apache-jmeter-5.4.1/bin/jmeter.bat C:/Tests/100users.jmx ${logPath} ${result} analyse jtl convert ${logPath} log ${result} FOR ${ELEMENT} IN @{result} log dictionary ${ELEMENT}

can anyone help me how to solve this?

please share the log file file

soalexan commented 3 years ago

Thanks i got the issue, I was downloaded the JmeterLib.Py and place it in python/.../site-packages which cause this problem, now i tried to install using pip command then its working