|Summary:||Add ability to create a Regexp Extractor from a selected text at a particular place|
|Product:||JMeter - Now in Github||Reporter:||UbikLoadPack support <support>|
|Component:||HTTP||Assignee:||JMeter issues mailing list <issues>|
|Version:||Nightly (Please specify date)|
Description UbikLoadPack support 2016-01-29 16:19:49 UTC
It would be nice to be able by selecting some text and right clicking "Create regexp extractor from text" that JMeter creates a Regular Expression Extractor and propose a wizard to place the element in the tree.
Comment 1 Sebb 2016-01-29 20:56:26 UTC
Not entirely sure how that would work. The user needs to define both the fixed text and the variable text, and somehow tell the Wizard what the range of character data is. If it does prove possible to automate this (it sounds decidely non-trivial), it would help if the Wizard had a testing panel to show how the generated RE works against the input.
Comment 2 Philippe Mouawad 2016-01-29 21:32:45 UTC
The dream is this one: - User selects the field he want to extract and some text around it - He right clicks, a popup menu open and he selects "Create my regex extractor" - A wizard open that contains: 1) the selected text , for example 'name="test" input="toto"' 2) the var name : user fills : "myvar" 3) a field called "value you want to extract" that user must fill: toto 4) he clicks a button guess => wizard creates name="test" input="(.+?)" 4) User can select where he wants to add it in the tree 5) Jmeter puts a Regular Expression Extractor at that place containing That's it, users is happy and developer is proud
Comment 6 UbikLoadPack support 2017-01-16 11:14:26 UTC
Screenshots show how you proceed to add Think Times easily on Thread Groups and Controllers. This highly increases productivity on this painful steps where you currently have to make repetitive clicks, copy/pastes and insertions.
Comment 7 UbikLoadPack support 2017-01-16 11:15:20 UTC
Wrong bugzilla , sorry
Comment 8 Mohamed Ibrahim 2022-05-06 23:39:51 UTC
That's a nice option to have it in JMeter Steps to work on : In the HTTPS Script Recorder, View results should be added to it (holding the recording.xml mapped) 1) User selects the particular request 2) Clicking on Response body / Response header 3) Right click should show the appropriate extractor to choose 4) Pop up should be shown to regex/variable name (with editing capability) 5) When use hits Ok -> It should add the Post-porcessor element to the same request in Test Plan. It would be great, if we manage to have this :)