Questions tagged [citrus-framework]

Citrus-Framework is an Integration Testing Framework.

Citrus Framework: Automated integration tests for message protocols and data formats that you require.

Test message interfaces with , , , , , , , , and more.

257 questions
9
votes
1 answer

No qualifying bean, expected single matching bean but found 2

I searched on both the internet and on stack overlow but can't seem to find a solution to my problem: Unable to find bean reference for type 'class com.consol.citrus.http.client.HttpClient'Caused by:…
brmd
  • 133
  • 1
  • 1
  • 8
4
votes
3 answers

Deploying microservice to be tested within the test

Maybe this is not possible to do generically in a test framework but I would like to be able to deploy the microservice I am testing within the test itself. I have looked at Citrus, RestAssured, and Karate and listened to countless talks and read…
3
votes
1 answer

Turn Citrus variable into Java variable

I am facing a problem: I need to use the value of a citrus variable as a parameter for a Java function. I am trying to make with contexts and behaviors, but nothing seems to work. import com.playtika.hof.mgs.config.Context; import…
GHM
  • 115
  • 1
  • 12
3
votes
1 answer

Asynchronous steps execution with Cucumber (and/or Citrus)

Suppose I have a test like below (using cucumber) - Scenario: Login successfully to Facebook Given the user test exists And user name and password is entered When the login form is submitted Then I expose a HTTP-Rest service to validate the…
bpa.mdl
  • 396
  • 1
  • 5
  • 19
2
votes
1 answer

Reuse HTTP message in different methods in Citrus Framework

Problem: How to reuse the same HTTP message in two different methods (in the same step) in Citrus Framework Versions: Citrus 2.8.0-SNAPSHOT; Cucumber 3.0.2; Java 8 Having this Gherkin: Scenario: Client has permission to access the action …
pringi
  • 3,987
  • 5
  • 35
  • 45
2
votes
1 answer

Citrus Example TCP send and receive fails

I'm trying to send and receive a TCP message via Citrus-Framework, where I used this thread as a reference: Receiving messages from tcp server with Citrus framework and Spring Integration times out I'm using a python message repeater, which returns…
elvinsp
  • 35
  • 5
2
votes
0 answers

Setting time in Citrus TestSuite.xml/junitreports

I'm trying to figure out how to capture the time elapsed for the entire testsuite and individual test cases. I've noticed that when /junitreports/TEST-*.xml and TEST-TestSuite.xml is generated after I run a JUnit or TestNG test case, the time…
John Chan
  • 71
  • 6
2
votes
1 answer

Citrus Framework - How to trace and print the Response from Server

I am using CitrusFramework for Rest API testing.I have scanned through the method but didn't get anything which can print the Response Stack Trace. Regards Bidhu
Geek
  • 101
  • 11
2
votes
1 answer

REST API Testing with Citrus/Cucumber

I'm piloting use of Cucumber for functional/integration testing within my development organization and have been using Citrus with the standard glue it provides for API testing. The hurdle I've encountered is how to dynamically change the REST URL…
2
votes
1 answer

Does citrus framework runs on Java 1.6

Does citrus framework runs on Java 1.6? the 1.X version isn't mentioned in the documentation. As per latest docs Java 7 or higher Installed JDK plus JAVA_HOME environment variable set up and pointing to your Java installation directory Java…
Atul
  • 133
  • 3
  • 12
2
votes
2 answers

Receiving messages from tcp server with Citrus framework and Spring Integration times out

I am trying to test a simple tcp send/receive sequence making use of citrus framework. I am able to send messages fine but receiving messages proves problematic. Basically, the reply is not detected by citrus and citrus then times out. Citrus bean…
mdewit
  • 2,016
  • 13
  • 31
1
vote
1 answer

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 this PDF. But I get stuck at the first step when…
Rems
  • 106
  • 7
1
vote
1 answer

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$loadLogs$11(LogManager.scala:359) at…
Aurélien Pupier
  • 724
  • 1
  • 8
  • 23
1
vote
0 answers

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
1
vote
1 answer

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 to do validations when it's something that just…
MPleas
  • 61
  • 4
1
2 3
17 18