Summary: | Error in using Javascript in While Controller. | ||
---|---|---|---|
Product: | JMeter - Now in Github | Reporter: | ghazall_alii |
Component: | HTTP | Assignee: | JMeter issues mailing list <issues> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | p.mouawad |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: | Attached Jmx file for your reference. |
Description
ghazall_alii
2012-12-31 05:56:14 UTC
Created attachment 29800 [details]
Attached Jmx file for your reference.
I also tried with single quotes , like ${_javaScript('${DONE}' ! = 'Resolved and Downloaded')} withoutspaces, something like ${_javaScript("${DONE}" ! = "ResolvedandDownloaded")} nothing woked. got same exception each time. Hello, I don't understand , your JMX attached file works fine for me. But the expressions you show in comments are wrong: ${_javaScript("${DONE}" ! = "Resolved and Downloaded";)} => there is a space character between ! and = , and _javaScript should be __javaScript Same for: ${_javaScript('${DONE}' ! = 'Resolved and Downloaded')} and ${_javaScript("${DONE}" ! = "ResolvedandDownloaded")} Just put this: ${__javaScript("${DONE}"!="Resolved and Risk Data Downloaded")} and it works OK This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3023 |