Questions tagged [citrus-framework]

Citrus-Framework is an Integration Testing Framework.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

How to log response in case of errors in Citrus Framework?

Let's have the following test code receive(someEndpoint) .messageType(MessageType.JSON) .validate("$.user.name", "Penny") .validate("$['user']['name']", "...
chokdee's user avatar
  • 446
0 votes
0 answers
16 views

Extract a token and Assign it to the global variable

In the below code snippet, I am extracting the Token but while using i observed the token's availability is for the current test not for other test. Is there a direct method to assign the token to any ...
Geek's user avatar
  • 101
0 votes
0 answers
22 views

Which Hibernate dialect can I use if I create JDBC server mock using CitrusFramework

I need JDBC server mock, then validate request and send proper response. I build JDBC mock using Citrus. System under test uses these settings: datasource: driver-class-name: org.postgresql.Driver ...
Alex Taranenko's user avatar
0 votes
0 answers
34 views

Citrus Framework FTP receive file fails with multiple samples

I'm working on a SFTP test case in the Citrus Framework (with XML DSL & Cucumber), that executes a Send & Receive operation. I have the following feature file : @TemplateFTP Feature: ...
Jens Aperam's user avatar
0 votes
0 answers
16 views

Setup Auth Token for CitrusEndpoints bean

I'm trying to setup an auth token authentication in the bean configuration of the CitrusEndpoints bean instead of use it in each request. In my configuration class I've something like this: @Bean ...
user18905307's user avatar
0 votes
0 answers
121 views

kubernetes pod error: Message /usr/bin/mvn: exec format error

I am trying to create POD in kubernetes inside minikube, but getting Message exec /usr/bin/mvn: exec format error. Background: so i am using Yaks from citrusframework which is used for BDD testing and ...
khawer ali's user avatar
0 votes
0 answers
100 views

Cucumber BDD, call gRPC

I am new to BDD, want to call gRPC. gRPC is working without BDD by following way command: ./grpcurl -vv -proto functionsNservices_file_java.proto -plaintext localhost:8080 service_in_proto.func ...
Rog Boy's user avatar
  • 32
1 vote
1 answer
82 views

How to receive PDF from HTTP Post in Citrus and write it to a file?

I am developing a test for a service. I make a first HTTP Post, send an xml file, and receive a PDF. Then I make a second call with this PDF, and the service sends me back a .png file corresponding to ...
Rems's user avatar
  • 106
1 vote
1 answer
136 views

3.3.0 NoClassDefFoundError: Could not initialize class kafka.server.KafkaRaftServer$

I'm trying to upgrade from 3.2.1 to 3.3.0, I have this stack error: java.lang.NoClassDefFoundError: Could not initialize class kafka.server.KafkaRaftServer$ at kafka.log.LogManager.$anonfun$...
Aurélien Pupier's user avatar
0 votes
0 answers
127 views

org.testng.TestNotInvokedException when I run my citrus test

I've just created my first citrus projet by generate a maven archetype "com.consol.citrus.archetypes:citrus" but when I want to run one of the two testcase (echoToday() or sayHello()) ...
jonathan's user avatar
0 votes
0 answers
32 views

How do I implement a callback scenario using citrus framework simulator?

Trying to setup a mock server using citrus framework's simulator project (https://github.com/citrusframework/citrus-simulator). I tried to see if any of the example would apply to my situation but I ...
sgopal's user avatar
  • 1
0 votes
0 answers
63 views

How to extract path variable in citrus simulator framework for multiple scenario?

@Scenario("MyRestServiceScenario") @RequestMapping(value = "/services/rest/simulator/{StudentId}", method = RequestMethod.GET) public class MyRestServiceSimulator extends ...
user900787's user avatar
0 votes
1 answer
75 views

NoSuchFieldError: DEFAULT_CONFIG_CLASS on Citrus Simulator WS project

I'm getting this exception when running a fresh generated project using the Maven archetype org.citrusframework.archetypes:citrus-simulator-archetype-ws (Archetype for Citrus SOAP simulator). I tried ...
Decly's user avatar
  • 379
0 votes
1 answer
98 views

Citrus httpServer & httpClient tests

I'm using Citrus for perform integration tests based on http requests. The test should perform steps as follows: Sending a POST http request to external service with a callback url as body attribute ...
user18905307's user avatar
0 votes
1 answer
104 views

Yaks on Camel K does not find the integration .groovy file

I'm using camel k on a project and I've tried use yaks framework for testing integrations routes. When I execute the command to begin the test which is written in a .feature file the .groovy file is ...
Wellington Soares Nunes's user avatar
0 votes
1 answer
165 views

Failed to get correlation key for `citrus_message_correlator_HttpClient`

I have a CitrusEndpoints server configuration @Bean public HttpServer myService() { return CitrusEndpoints. http(). server(). port(9999). ...
SriniMurthy's user avatar
1 vote
0 answers
42 views

Citrus: Need to validate the status code while receiving. What is the element name?

Need to validate the status code while JMS receiving. What is the element name? Is it possible to get the error code in the citrus HTML report? enter image description here <send endpoint="jms:...
Ravi Kishore's user avatar
0 votes
1 answer
73 views

How to test a soap endpoint that returns soapfaultclientexception

I have a soap endpoint that returns fault message when passing some parameters. I need to validate the fault string and pass the test when fault string is returned. runner.soap(action -> action ...
user38715's user avatar
0 votes
1 answer
59 views

Custom Error Messages in CITRUS Test Results

I want to use my custom error messages in my citrus test results. Example: Original Error Message: java.io.FileNotFoundException: D:\expectedOutput\Smaple.xml (The system cannot find the file ...
Ravi Kishore's user avatar
0 votes
1 answer
99 views

How to parameterize request-url in citrus-context.xml for citrus-http:client tag dynamically?

I did the following setup in citrus-context.xml file to parameterize but it does only the value we set in endpoint.properties file. This needs to be dynamic nature in my case and URL should come from ...
Vinod Kumar K's user avatar
0 votes
0 answers
60 views

Citrus HTTP custom message using header elements

Click this link to see Error Message I want to send a custom string through header elements Send endpoint. element name="CustomSting" value="Mycustomessage" And I need to validate ...
Ravi Kishore's user avatar
0 votes
1 answer
413 views

Writing tests with http request without response

I need to prepare a Java test (citrus framework) which initial step is sending a http request. Unfortunately my app under tests does not reply to this http request with anything while my testing ...
thuru's user avatar
  • 3
0 votes
0 answers
62 views

How to make Citrus FTP Host,Port,Username,Password with dynamic variables

XML DSL <citrus-ftp:client id="ftpClient" host="${var1}" port="${var2}" username="${var3}" password="${var4}" ...
Ravi Kishore's user avatar
0 votes
1 answer
84 views

FTP command Citrus

enter image description here <spring:beans xmlns="http://www.citrusframework.org/schema/testcase" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/...
Ravi Kishore's user avatar
0 votes
1 answer
95 views

Cucumber+DSL+Http+Spring - Is it possible to share the same TestRunner between Scenario with citrus framework?

I am testing an API rest using the Citrus framework and the features: Cucumber, DSL, Spring, HTTP. I am with a problem that for each Scenario I need to create a new object of "DefaultTestRunner&...
Iuri's user avatar
  • 1
-1 votes
1 answer
61 views

Citrus Framework - SFTP Server

Is possible to make the sftp server to stay running long enough that I can use a command line sftp client to log in to do some troubleshooting?
BobJ's user avatar
  • 11
0 votes
1 answer
130 views

Citrus fails to find reply channel when receiving & sending messages in parallel

I'm using the Citrus framework to test Camel routes. I'm sending a request to the Camel-based application which in turn sends multiple requests in parallel to a SOAP server. I'm trying to mock the ...
Ben's user avatar
  • 109
0 votes
2 answers
125 views

Not able to see maven downloaded jar inner dependencies in maven local repository

I have a maven jar in which i need to modify some part of code so I downloaded source code from git it consists inner dependecy shown below. <dependency> <groupId>com.consol.citrus</...
kushma gonna's user avatar
0 votes
1 answer
60 views

How to add JAX-B APIs during Citrus setup?

I'm evaluating Citrus framework and I have problems with the setup. Following the documentation, I ran mvn archetype:generate -Dfilter=com.consol.citrus.mvn:citrus, selected option "Citrus ...
Markus Neifer's user avatar
0 votes
1 answer
1k views

How to solve exception " java.lang.IllegalArgumentException: name" while running spring boot jar in command prompt but fine while running in eclipse

I have simple feature controller class which exposes cucumber test cases over the Rest call. Here is the Controller class @RestController @RequestMapping("/featureTest") public class ...
kushma gonna's user avatar
0 votes
2 answers
244 views

How to provide external path for step definition files in citrus cucmber

I have a code which is working fine until I change the path of glue code here is the working code @RunWith(Cucumber.class) @CucumberOptions(features="D:/citrus/Feature", strict = true, ...
Gopi Majji's user avatar
0 votes
1 answer
299 views

Citrus Simulator | Extract Payload

I am trying to apply condition based on the Xpath scenario, but unfortunately unable to make decision since I am unable to fetch the request payload. RQ1- <HotelOperation> <Head Function=&...
Atul's user avatar
  • 133
0 votes
1 answer
137 views

Running citrusframework Test Cases in Parallel

I am evaluating citrusframework to execute large number of test cases and many of them will be running with different sets of test data using data-provider feature. If test cases are executed ...
Mahesh Laddha's user avatar
0 votes
1 answer
226 views

Citrus Test Framework Message Store not Saving Messages

I am grabbing messages off of an AMQ broker and needing to validate plain text payloads. It seems citrus is very limited with plain text validation, and the validation matchers don't get me where I ...
benszabo's user avatar
0 votes
1 answer
323 views

CitrusFramework - Cannot run through cucumber java

i was trying to create a Citrus API framework for REST and SOAP calls using cucumber. After creating all classes and features required and i came to run the runner class, while running the runnerclass ...
koushick's user avatar
  • 497
0 votes
1 answer
95 views

Citrus / Cucumber MessageTracingTestListener doesn't work

When I try to use the MessageTraceTestListener on Citrus-Cucumber with Spring @Bean public MessageTracingTestListener messageTracingTestListener() { return new MessageTracingTestListener(); } ...
Frank Rombach's user avatar
1 vote
1 answer
601 views

Citrus framework: How to make a soap response / citrus variable / citrus function return result available to java

I'm using Citrus 2.7.8 with Cucumber 2.4.0. I'm making a soap call and want to get the response and do some advanced parsing on it to validate a graphql response has matching values. (I understand how ...
MPleas's user avatar
  • 61
-2 votes
1 answer
2k views

How should I pass json data in the request payload of http post request (spring boot)

I have got a Json data, which I need to pass into POST request using httpActionBuilder.client(httpClient).post("/API").payload(jsonPayloadHere); Is there any way I can pass Json data as a argument ...
viren's user avatar
  • 1
1 vote
1 answer
198 views

Citrus Framework: A graphql request is giving a 400 bad request response

Does anyone have an example of putting a graphql request into Citrus? I have a graphql request that works fine in Postman and JMeter for me, but I can't get it to work in Citrus. I've compared my ...
MPleas's user avatar
  • 61
1 vote
0 answers
194 views

Citrus Framework - How to do multi-actor end-to-end integration tests

I have been working with the Citrus Framework to write integration tests for applications consisting of multiple interacting Spring Boot services. The services communicate via HTTP REST calls. I am ...
Joseph Gagnon's user avatar
0 votes
1 answer
440 views

Citrus Framework - Unexplained HTTP 503 from SUT

Background: I have a simple Spring Boot application consisting of three services. The services communicate via HTTP REST calls. Below is a brief description of the services. Mission planner (...
Joseph Gagnon's user avatar
0 votes
2 answers
213 views

Citrus Framework - echo action does not "echo"

I am attempting to debug/trace an integration test written with the Citrus Framework. Among the various test "actions" that can be taken, there is an echo action which is supposed to do what you might ...
Joseph Gagnon's user avatar
0 votes
1 answer
600 views

Citrus Framework logging - how to enable/use

The Citrus Framework documentation indicates that integration test console output can be logged via the SLF4J logging system. It's not obvious whether this is automatic, or whether it needs to be ...
Joseph Gagnon's user avatar
1 vote
2 answers
453 views

Setting an environment variable for maven-driven integration tests

Is is possible to set an environment variable from within a Citrus Framework integration test? I am asking because my services use log4j to log console output and the configuration file (log4j2-spring....
Joseph Gagnon's user avatar
0 votes
1 answer
787 views

Citrus Framework - Attempt to use validator in JSON causes error with header ACCEPT

I have written an integration test using Citrus Framework for a Spring Boot service that communicates via HTTP REST. I was able to embed some of the Citrus validation "methods" in the JSON to handle ...
Joseph Gagnon's user avatar
0 votes
1 answer
761 views

Citrus Framework - Problem with SUT communicating with other services

I have a set of microservices implemented via Spring Boot that communicate via HTTP REST. I am attempting to set up integration tests using the Citrus Framework. I have successfully written and ...
Joseph Gagnon's user avatar
0 votes
1 answer
420 views

Citrus-Framework: Conditional validation depending on status code

I'm evaluating citrus-framework for blackbox testing of a rest service. is there a way with the java DSL and the conditional container todo a validation depending of status code? http(...
someusersomewhere's user avatar
0 votes
1 answer
445 views

Citrus Framework - Cannot successfully build samples

I have been investigating the Citrus Framework and pulled down the samples project folder. The run instructions indicates what to do to build the code, start the Jetty server and run the various tests ...
Joseph Gagnon's user avatar
0 votes
1 answer
99 views

Citrus simulator not getting started in browser

I am trying to do the below linked Citrus Simulator sample and when I try to run the http://localhost:8080 or http://localhost:8080/services/rest/ as mentioned in the page to start my simulator, it ...
Lord009's user avatar
  • 41
0 votes
0 answers
76 views

How to call any variable in the citrus bean configuration class from citrus test class

I have to use my username and password in citrus bean configuration class, and those values I have set in my test class in an string variable. So how I can call those in configuration class as ...
Tany's user avatar
  • 21

1
2 3 4 5 6