Bug 61805 - Allow simple HTTP request
Summary: Allow simple HTTP request
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 3.3
Hardware: All All
: P2 enhancement with 1 vote (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on: 62870
Blocks:
  Show dependency tree
 
Reported: 2017-11-23 12:56 UTC by orimarko
Modified: 2018-11-27 22:28 UTC (History)
2 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description orimarko 2017-11-23 12:56:03 UTC
In JMeter to execute you must create and run Thread Group with configuration and other elements, also for newbies reading the getting started can be a bit too much information.

In Postman (or curl) you can just enter request details and submit

In Blazemeter you can Creating a URL/API Test similarly.

I suggest to add a button as Submit/Send/Test in HTTP request (Or any Sampler) that will send the Request as is (optional loading variables/properties beforehand)
Comment 1 Philippe Mouawad 2017-11-23 13:58:10 UTC
Hello Orimarko (I'd be happy to know your real name :-) ),
Thanks for your ideas.

Could you be more clear on how you see this feature ?
- Does it mean that user has only to enter an URL somewhere and run ? If so what about  POST body for example ? 
- Or will entering an URL have the effect of creating the Test plan ?
- Or something else ?

Thanks
Comment 2 orimarko 2017-11-23 14:29:36 UTC
The basic is to put all URL in path and click Send, 

But better solution is to be able to load all attributes of HTTP request (Or other Sampler) with all the available variables and properties in Test plan level and send request as it'll executed as a single Sampler (in Thread group with threads number 1 and loop count 1)

A "medium" solution is to submit request as is without evaluating any variables/functions
Comment 3 orimarko 2017-11-23 14:57:17 UTC
The feauture ( need to update to enhancement) will be a button in GUI In HTTP Request (and maybe other Samplers)
Comment 4 Philippe Mouawad 2018-07-18 20:07:05 UTC
I think it's a very good idea that would help newbies with JMeter.

I think a simple way to implement it would be would be a menu in File:

> Test URL

User would just enter the URL and check and a test plan would be created:
Test Plan
      |--------Thread Group
                       |------- HTTP Request with URL in path
                                      | -- Header Manager with User-Agent set to ApacheJMeter
      |-------- View Results Tree
Comment 5 Felix Schumacher 2018-07-19 18:18:32 UTC
Could we enhance the template system with parameters that could be filled in the testplan on generation?

That way we could provide a template with a testplan as layed out by Philippe that prompts the user for one parameter (the url) and maybe even has some default values that could be changed.
Comment 6 Philippe Mouawad 2018-07-19 19:09:58 UTC
(In reply to Felix Schumacher from comment #5)
> Could we enhance the template system with parameters that could be filled in
> the testplan on generation?
> 
> That way we could provide a template with a testplan as layed out by
> Philippe that prompts the user for one parameter (the url) and maybe even
> has some default values that could be changed.

Hello Felix,
Yes it looks like a very good idea.

Regards
Comment 7 UbikLoadPack support 2018-11-27 22:27:58 UTC
This is now possible with implementation of Bug 62870

Feel free to provide a template