polarnik opened a new pull request #679:
URL: https://github.com/apache/jmeter/pull/679


   ==============
   
   - Add variable support for includePath
   - Add tests for getIncludePathAsFunction()
   
   ## Description
   The IncludePath field has added support for variables.
   
   ## Motivation and Context
   I want to use files in Include Controller whose names are set in variables.
   
   For Example 1.
   I want to run the test with loading static resources and without loading 
static resources.
   Static resources - 200 links.
   If I use If Controller, then an optional block with static resources will be 
in the script, it will take up memory.
   If I use Include Controller with variable support, then optional block with 
200 links may be change for block with 0 links. A block with 0 links will not 
take up memory.
   
   For Example 2.
   I work in a large team. We decided to change the Access Token update block 
in all scenarios. From the test_fragment_refresh_Access Token_v1.jms option to 
test_fragment_refresh_Access Token_v2.jmx. 10 scripts.
   
   Instead of 10 changes in the scripts. The function 
${__property(text_fragment_refresh_access Token)} or 
${__P(text_fragment_refresh_access Token)} will be used. And there will be one 
change in user.property.
   
   ## How Has This Been Tested?
   I write some tests.
   And test via gradle runGui.
   For troubleshooting: add debug loggings.
   
   ## Screenshots (if appropriate):
   Fail load:
   
![image](https://user-images.githubusercontent.com/7660287/145493443-e5f91667-3b31-41fc-9211-ca6b3b0cea5f.png)
   
   Ok load:
   
![image](https://user-images.githubusercontent.com/7660287/145493810-61884064-8ef7-459a-b80b-a67836cbbd1f.png)
   
   
   ## Types of changes
   - New feature (non-breaking change which adds functionality)
   
   ## Checklist:
   
   - [x] My code follows the [code style][style-guide] of this project.
   - [ ] I have updated the documentation accordingly.
   
   [style-guide]: https://wiki.apache.org/jmeter/CodeStyleGuidelines
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to