You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by GitBox <gi...@apache.org> on 2021/11/23 08:07:49 UTC

[GitHub] [jmeter] vlsi opened a new pull request #678: DSL for programmatic test plan generation

vlsi opened a new pull request #678:
URL: https://github.com/apache/jmeter/pull/678


   ## Description
   
   See https://lists.apache.org/thread/52o722d7npsjj99m4k2zdz44mstl02lg
   
   ## TODO
   
   * [ ] Should DSL functions return objects or should they be `no-result` functions?
   * [ ] Should there be an intermediate test plan representation or should the current `ListedHashTree` and other classes represent the tree?
   * [ ] How should `$` be escaped? (see https://youtrack.jetbrains.com/issue/KT-2425, https://lists.apache.org/thread/717sm4k8kx6ojmkq0j1w0fhkv41bkm8d)
   * [ ] Should the DSL incline to name-less elements or name-full elements? JMeter GUI requires names for all elements, including `if` and `pauses`, however, regular programming languages and DSLs do not require names for things like `if`, `for`, etc. Of course, the transaction controller should have a name, but is the name required for `httpSampler`?
   * [ ] Should there be `.children()` or something like that API to access all the children elements of the currently built node?
   
   ## Motivation and Context
   
   (in alphabetical order)
   https://github.com/abstracta/jmeter-java-dsl
   https://github.com/anasoid/jmeter-as-code
   https://github.com/smicyk/groovy-jmeter
   
   https://github.com/anasoid/jmeter-as-code/issues/133
   
   ## Screenshots (if appropriate):
   
   <img width="888" alt="sample screen of JMeter DSL in intellij IDEA" src="https://user-images.githubusercontent.com/213894/142988188-f12fc6bd-54c1-4f4e-af0d-9c7327700561.png">
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [jmeter] kirillyu commented on pull request #678: DSL for programmatic test plan generation

Posted by GitBox <gi...@apache.org>.
kirillyu commented on pull request #678:
URL: https://github.com/apache/jmeter/pull/678#issuecomment-976298525


   Initially - thanks for the idea, this is really what the community needs.
    
   My opinion on current issues:
   1. I am inclined more to the idea that an intermediate presentation is needed than not.  
   2. Can you give details on this?  I don't see any clear advantage in using no-result functions.  
   3. This is an interesting point.  In my opinion there is no need to escape this character.  It should also be used as part of the string, and replace will happen in the jmeter engine.  In other cases, the variables must be taken from the context in the vars.get style.  
   4. name-less with a description is better, it is faster and takes up less space.  
   5. Yes, using .children () is more convenient for implementing custom builders.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org