Comments (3)
Which version are you using? This one has already been fixed in version 2.2 (see https://citrusframework.atlassian.net/browse/CITRUS-245)
from citrus.
wrote a test for that which is working fine on 2.2
<iterate condition="i lt= 5" index="i">
<create-variables>
<variable name="outerLoop">
<value>
<script type="groovy">(${outerLoop} + 1)</script>
</value>
</variable>
</create-variables>
<iterate condition="j lt= 3" index="j">
<create-variables>
<variable name="innerLoop">
<value>
<script type="groovy">(${innerLoop} + 1)</script>
</value>
</variable>
</create-variables>
<echo>
<message>i=${i} j=${j}</message>
</echo>
</iterate>
</iterate>
<groovy>
println context.getVariable("outerLoop")
println context.getVariable("innerLoop")
assert context.getVariable("outerLoop").equals("5")
assert context.getVariable("innerLoop").equals("15")
</groovy>
from citrus.
I'm on 2.0. I didn't realise there was a newer version - sorry.
from citrus.
Related Issues (20)
- Proxied or subclassed Rest Scenarios cannot be mapped by HttpRequestAnnotationScenarioMapper HOT 1
- Documentation fixes HOT 1
- SFTP server breaks the XML marshaller with non Unicode characters in remote file paths
- How to test a Camel route using Quarkus? HOT 8
- Citrus Cucumber Spring uses the same TestContext for all tests
- CitrusLifecycleHooks break the Cucumber API HOT 1
- Json/Yaml schema for the Yaml test cases? HOT 1
- Mailserver schema requires attachment if attachments is present, but SimpleJavaMail always generates empty collection "attachments"
- Test-Context Error handling is not graceful
- Static Access Required for BeanFactoryPostProcessor Bean in CitrusSpringConfig
- update cucumber documentation
- Citrus kafka functionality maven dependency HOT 6
- Issue receiving kafka messages via the same endpoint for multiple tests (quarkus) HOT 2
- Junit parallel test HOT 4
- NullPointerException. Cannot invoke "org.apache.hc.client5.http.io.ManagedHttpClientConnection.isConsistent()" because "conn" is null HOT 3
- HttpServer in kubernetes HOT 1
- Ensuring Unique Message IDs in Citrus Templates for Reliable Test Correlation
- Json transformation with conditions HOT 1
- Citrus for java 11 does not support later versions of TestNG HOT 8
- Binary message not the same as documentation?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citrus.