Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Mock service that returns 500 for certain time

How could I create a Talend service that would return for 10 seconds 500 response and after 10 seconds it would work normally?

 

I need that for testing retry logic.

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I have knocked up a basic example service. It is attached. It was written using 6.2.1. You can use it to see how I did it or add to it for your testing. Essentially I am taking the time when the service starts and then checking the time every time the service is called. 


MockService.zip

View solution in original post

1 Reply
Anonymous
Not applicable
Author

I have knocked up a basic example service. It is attached. It was written using 6.2.1. You can use it to see how I did it or add to it for your testing. Essentially I am taking the time when the service starts and then checking the time every time the service is called. 


MockService.zip