Bug 58940 - Add ability to create a Regexp Extractor from a selected text at a particular place
Summary: Add ability to create a Regexp Extractor from a selected text at a particular...
Status: NEW
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: Nightly (Please specify date)
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-29 16:19 UTC by UbikLoadPack support
Modified: 2022-05-06 23:39 UTC (History)
1 user (show)



Attachments
Step 1 (73.34 KB, image/png)
2017-01-16 11:12 UTC, UbikLoadPack support
Details
Step 2 (160.53 KB, image/png)
2017-01-16 11:12 UTC, UbikLoadPack support
Details
Step 3 (113.83 KB, image/png)
2017-01-16 11:12 UTC, UbikLoadPack support
Details

Note You need to log in before you can comment on or make changes to this bug.
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 3 UbikLoadPack support 2017-01-16 11:12:13 UTC
Created attachment 34624 [details]
Step 1
Comment 4 UbikLoadPack support 2017-01-16 11:12:30 UTC
Created attachment 34625 [details]
Step 2
Comment 5 UbikLoadPack support 2017-01-16 11:12:45 UTC
Created attachment 34626 [details]
Step 3
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 :)
Comment 9 The ASF infrastructure team 2022-09-24 20:38:02 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3806