Using JSR223 PostProcessor in Test Scenario

395 views
Skip to first unread message

kevinree...@gmail.com

unread,
Oct 6, 2016, 2:35:09 PM10/6/16
to codename-taurus
I need to include a custom javascript function in my test scenario.  I have tested the function and saved it in a file.  I need to point to that file in the JSR223 PostProcessor.

What is the YAML specification for including the JSR223 PostProcessor in my test with Script language = javascript and Script file = <path to javascript file>?

Thanks,
Kevin

Dmitri Pribysh

unread,
Oct 7, 2016, 3:15:20 AM10/7/16
to kevinree...@gmail.com, codename-taurus

Hi,

This isn't feasible with Taurus language. You'll have to grab the jmx file generated by Taurus and add JSR223 component manually.


--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taurus+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/7ede3a03-6390-413e-921c-9f38a78d5f9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kevin...@panerabread.com

unread,
Oct 7, 2016, 5:30:22 PM10/7/16
to codename-taurus, kevinree...@gmail.com
Thank you, Dmitri.  Could this feature be available in a future release?  Something like:

- label: Retrieve IDs
  method: GET
  url: <url for getting IDs>
  assert:
  - contains:
    - <assertion regex>
    not: false
  extract-regexp:
    MyIDs:
      match-no: -1
      regexp: <extraction regex>
  JSR223
    script-language: javascript
    script file: <path to js file> 

Thanks,
Kevin

On Friday, October 7, 2016 at 2:15:20 AM UTC-5, Dmitri Pribysh wrote:

Hi,

This isn't feasible with Taurus language. You'll have to grab the jmx file generated by Taurus and add JSR223 component manually.

On Oct 6, 2016 21:35, <kevinree...@gmail.com> wrote:
I need to include a custom javascript function in my test scenario.  I have tested the function and saved it in a file.  I need to point to that file in the JSR223 PostProcessor.

What is the YAML specification for including the JSR223 PostProcessor in my test with Script language = javascript and Script file = <path to javascript file>?

Thanks,
Kevin

--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.

Dmitri Pribysh

unread,
Oct 13, 2016, 11:56:00 AM10/13/16
to kevin...@panerabread.com, kevinree...@gmail.com, codename-taurus
Check out Taurus 1.7.2. It introduces exactly this feature. Inline scripts weren't implemented, as they would look pretty cumbersome inside YAML. Anyway, thanks for the suggestion.

New doc section: http://gettaurus.org/docs/JMeter/#JSR223-Blocks


Dmitri

kevin...@panerabread.com

unread,
Oct 13, 2016, 5:54:13 PM10/13/16
to codename-taurus, kevin...@panerabread.com, kevinree...@gmail.com
Thank you for including this in the latest release, Dmitri.  It works very well!  It will allow my team to include more logic in our tests.

Kevin
Reply all
Reply to author
Forward
0 new messages