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 framework expects to have a response and generates an error otherwise. The best way to deal with such a situation which came to my mind is to use some kind of a proxy between my testing framework and actual application which will forward the test request to the actual application and reply back to the testing framework with OK status not waiting for the response from app. Does it make a sense? How could I prepare such a proxy assuming that my tests are to be running with maven invocation?
Writing tests with http request without response
555 Views Asked by thuru At
1
There are 1 best solutions below
Related Questions in TESTING
- Using ES Modules with TS, and Jest testing(cannot use import statement outside module)
- Mocking AmazonS3 listObjects function in scala
- How to refer to the filepath of test data in test sourcecode?
- No tests found for given includes: [com.bright.TwitterAnalog.AuthenticationControllerSpec.Register user with valid request](--tests filter)
- Error WebMock::NetConnectNotAllowedError in testing with stub using minitest in rails (using Faraday)
- How to use Mockito for WebClient get call?
- Jest + JavaScript ES Modules
- How to configure api http request with load testing
- How can I make asserts on outbound HTTP requests?
- higher coefficient of determination values in the testing phase compared to the training phase
- Writing test methods with shared expensive set-up
- Slow performance when testing non-local IP services with Playwright
- uiState not updating in Tests
- Incorrect implementation of calloc() introduces division by zero and how to detect it via testing?
- How to test Creating and Cancelling Subscription in ThriveCart in Test Mode
Related Questions in PROXY
- CDN Detector Extension / Script
- How to use a proxy to obtain a static IP for my Node.js application?
- Record all desktop internet requests and select certain requests and send it to the server
- Apache Reverse Proxy: only one proxy directive is working. Second one is ignored
- Is it viable proxying all my mobile apps requests, to some kind knowing that a request is coming from a secure source
- How to efficiently test some HTTP proxies for accessing a specific domain?
- on linux gitclone issue remote server error showing fatal error with proxy n port
- Disable/Enable OSB proxy service via WLST
- Add proxy configuration to tracking_uri in MLFlow
- Python : Using a MTProto Proxy For a Telegram Bot
- How to proxy to another port?
- How to use ProxyAgent with http_proxy and no_proxy environment variables
- Does a 403 error occur if there is no user-agent on the proxy network?
- Enable TLS caching with squid. https_port directive support
- How to peek or ready to check whether HTTP request or not in TCP proxy?
Related Questions in INTEGRATION-TESTING
- S3 integration testing
- UI Integration Testing - Android Instrumentation ref now in android app
- Specflow defination not showing references
- How can I cause mouseenter and mouseleave from dispatched mousemove events
- Automation testing for Flutter app in complex environment
- Error when trying to run an integration test
- Selenium firefox webdriver failed to update gecko (tcp connect error)
- Cannot access a widget by its key during integration test flutter
- How to verify method invocation of a class which is a constructor parameter for another class Mockito Kotlin?
- Exception when using Sqlite with Nhibernate for integration tests
- .Net TestContainers and Integration Tests
- TestContainers - disable test containers based on spring profile
- How to profile integration tests in java
- How do I code an integration test for a .NET 8 web app that checks that when an endpoint has an uncaught exception, the server responds with HTTP 500?
- Integration tests for secure endpoint in quarkus
Related Questions in CITRUS-FRAMEWORK
- Could not find proper message validator for message type 'json', please define a capable message validator for this message type
- Citrus Cucumber testcase with Kafka not working as expected
- Message selector for Kafka in Citrus test case
- How to create an integration test with citrus for quarkus application?
- How to log response in case of errors in Citrus Framework?
- Extract a token and Assign it to the global variable
- Which Hibernate dialect can I use if I create JDBC server mock using CitrusFramework
- Cucumber BDD, call gRPC
- How to receive PDF from HTTP Post in Citrus and write it to a file?
- 3.3.0 NoClassDefFoundError: Could not initialize class kafka.server.KafkaRaftServer$
- NoSuchFieldError: DEFAULT_CONFIG_CLASS on Citrus Simulator WS project
- Citrus httpServer & httpClient tests
- Yaks on Camel K does not find the integration .groovy file
- Failed to get correlation key for `citrus_message_correlator_HttpClient`
- Citrus: Need to validate the status code while receiving. What is the element name?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I see following options:
Personally I would go for the option #2 where you send the Http request and verify that there is no response for a given amount of time. This makes sure that the actual behavior of your application to not send any response does not change over time.