citrusframework / citrusframework/citrus
Build variable name from variables
- Dominant language
- Java
- Stars
- 485
- Forks
- 155
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 6
Description
**Citrus Version**
3.4.0
**Question**
Is it possible in XML-written tests to build variable names from the values of other variables?
Supposed, I have an iteration, I want to use the index variable in the name of my variable to access:
```
Print ${Test${k}}
```
This is supposed to echo
```
Print the value1
Print the value2
Print the value3
```
Is this possible at all?
Thanks : )
Contributor guide
Research direction
No source file or test entry point is named in the issue. Start by reproducing the XML-written test example with nested variable expressions, then trace Citrus variable resolution to determine whether the requested output can be supported and how completion would be verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, xml
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100