This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to implement thread delays using Javascript rule since SetTimeout function is not working

Can some one assist on how to achieve thread sleep time in milliseconds using Javascript Rule since SetTimeout function is not working... 

  • 0

    You can use C# scripted rule instead, but it may harm performance if you need high throughput. Why you want to do that?

  • 0 in reply to 
    Hey Jakub, Thanks for your assistance.

    Was trying to explore whether we can simulate thread sleep which we can achieve using JS.

    While we don't have a direct solution due to ECMA 5 compliance and limitations of "SetTimeout" function use, agree that we can use C# which is has ready made available functions that we can import and use.

    Can I also request you to route me to some extensive examples which shows the capability of Service Virtualization product examples (in addition to Demo's).

    Say for example, simple examples to demonstrate and understand :

    1. Data Driven Rules
    2. SCA Capability
  • 0 in reply to 

    I still don't understand your motivation for that. Do you want to delay responses? If so, it's better to use performance model instead.

    As for the examples I'm afraid there is no built-in demo. You can however check following:

    If you are a Micro Focus partner, PM me and I might be able to share some additional resources.