Forum Discussion

JShah's avatar
JShah
Contributor
12 years ago

checking file already created from background tasks

Hey SmartBear,

We need a help and advice today and hope you guys can help us with our load test scenario.

We are load testing the capability of our reporting service, right now the request is
asynchronous and push the task to a background task that do the needed job (query, build pdf, etc) and
once done it will push message notification to the client that the file is ready to download.

We want to add an assertion that can tell us that the request is complete and reference to the fired
request to the reporting service.

Any idea how can we do it? I've read you had a mocking service but seems like its not the one
we are looking for.

Regards

JShah
  • Hello,

    I tried the mock response on my test case but im getting the following popup `missing soap operations in project`
    I assume that the mock response only work on a SOAP request and not for the REST?

    Do we have another way not to mock a response? Mostly file will be generated between 5 - 10 mins by the background
    tasks and might be we can do some script after the time if the file has been created or not?

    Or if any third services - it is advisable to do a mock instead including the 3rd party in the load test?
  • Hi,

    yes, the "MockResponse test step" is for SOAP. We're adding more and more functionality for REST, but don't have this step available for REST yet.

    You could always do a quick Groovy script step with code that has a while loop that periodically checks for existence of file and exits after the file is created.

    Thanks,
    Michael Giller
    SmartBear Software