Comments (1)
This is a good sample, thank you.
Actually the "assert" Java key word in your groovy script causes a java.lang.AssertionError which is not caught within failure detection in parallel block. If we change the template and groovy script to following:
<template name="textMatch">
<groovy>
<![CDATA[
import com.consol.citrus.exceptions.CitrusRuntimeException
if (${text1} != ${text2}) {
throw new CitrusRuntimeException("Text did not match")
}
]]>
</groovy>
</template>
Here everything is working fine as the groovy script raises some kind of Java exception. I will fix the failure detection in parallel block so assertion errors are also detected as test failure. Thanks for your sample code, this is great!
from citrus.
Related Issues (20)
- ClasspathResourceResolver unable to resolve from nested jar HOT 2
- Alternatives to @MessageCreator HOT 2
- Resources.UrlResource#exists returns false if file is empty
- JsonTextMessageValidator should ignore order of json array items HOT 1
- 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 3
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.