Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ability to Create Templates #3132

Closed
asfimport opened this issue May 29, 2013 · 7 comments
Closed

Add Ability to Create Templates #3132

asfimport opened this issue May 29, 2013 · 7 comments

Comments

@asfimport
Copy link
Collaborator

oliver lloyd (Bug 55028):
It would be useful if there were an option to save the currently open testplan as a template that can be reused later as a time saving measure.

A template testplan might have the suffix .jmt (not .jmx) and live in a special folder such that, when jmeter is loaded, it reads this folder and populates a sub menu with available options.

Ie.:
File > Save As Template - would create a new template.
File > Open Template > - would show a sub menu of previously saved templates.

This would help individuals save and access their own custom templates but you could also have standard templates baked into jmeter to help reduce the steep learning curve for new users of JMeter. A standard web template (using dummy values) with obvious things like cookie management and assertions would very likely save a lot of people a lot of time.

Yes, baking in templates like this would be opinionated but hey, there really are some basic use cases where a template would work very well and it's also a superb way to give users quick and obvious access to feature examples.

OS: All

Depends on:

@asfimport
Copy link
Collaborator Author

Sebb (migrated from Bugzilla):
In what way would a template be different from a test plan?

What's wrong with "Save As ..." ?

@asfimport
Copy link
Collaborator Author

@pmouawad (migrated from Bugzilla):
I think Oliver idea is something like this maybe:

  • Create a folder used for template in which we would put sample test plans like:
  • Http Web Test plan
  • Ldap Test Plan
  • JDBC Test Plan
  • We would have somewhere a Menu "create from templates", that would let use choose what kind of Test he wants to do and we would only open this

  • Users could create new "model" plan (which would be a regular Test plan) and have an option to name this model (for example : HTTP with Basic Auth)

This would be useful for new users to JMeter as sometimes kickstart could be improved.

Oliver is this your idea ?

@asfimport
Copy link
Collaborator Author

@pmouawad (migrated from Bugzilla):
I find this a very good idea for new users !

@asfimport
Copy link
Collaborator Author

oliver lloyd (migrated from Bugzilla):
Yes, exactly. Actually Phillipe's definition is even better as it includes both some standard kickstart templates for new users and also allows established users to save their own custom templates.

The more I think about this the more it feels right. It's true, you can use Save As but it's amazing how easy it is for a work flow like this to fail. All I have to do is forget to save my 'template' testplan using a new name and the process is broken, I have to re-create the template testplan again...

If there were a 'special' template type of testplan and if, when I opened it, I were not able to overwrite it, then suddenly my world becomes better, easier.

@asfimport
Copy link
Collaborator Author

Sebb (migrated from Bugzilla):
(In reply to oliver lloyd from comment 4)

If there were a 'special' template type of testplan and if, when I opened
it, I were not able to overwrite it, then suddenly my world becomes better,
easier.

Just mark it read-only.

@asfimport
Copy link
Collaborator Author

oliver lloyd (migrated from Bugzilla):
OK, so yes, it's true that it IS possible to get this functionality by using a process of save as and marking the file as read only.

But you know, maybe this is the reason why JMeter is so hard for new users to learn. Just because it is possible to achieve something that's not a reason why we should not make it easier and more intuitive to do. UX is not exactly JMeter's strongest feature but why not try and improve that? Why not implement some enhancements to UX?

@asfimport
Copy link
Collaborator Author

Sebb (migrated from Bugzilla):
This has been fixed in #3140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant