<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: HTTP Monitor: how to pause/sleep between two steps in Synthetic Monitoring</title>
    <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126090#M590</link>
    <description>&lt;P&gt;Would a dummy API call to sleep for a given time solve your problem? For example, the postman echo service has such endpoint if you don't want to create your own. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This URL will, for example, wait 2 seconds between ending with a response:&lt;/P&gt;&lt;PRE&gt;https://postman-echo.com/delay/2&lt;/PRE&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 13 Jan 2020 08:23:20 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2020-01-13T08:23:20Z</dc:date>
    <item>
      <title>HTTP Monitor: how to pause/sleep between two steps</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126083#M583</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have a HTTP monitor use case where I would like to wait/sleep a few seconds between step 1 and 2&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the first step does trigger a non-blocking asynchronous action taking several seconds to complete&lt;/LI&gt;&lt;LI&gt;so I need to wait enough before checking for the result with a 2nd API call&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is it possible to add in pre/post execution scripts kind of sleep(### seconds) or something equivalent ?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Dec 2019 05:05:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126083#M583</guid>
      <dc:creator>sylvain_baerisw</dc:creator>
      <dc:date>2019-12-16T05:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Monitor: how to pause/sleep between two steps</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126084#M584</link>
      <description>&lt;P&gt;You can use JS I think:&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/synthetic-monitoring/http-monitors/create-an-http-monitor/#expand-302additional-options" target="_blank"&gt;https://www.dynatrace.com/support/help/how-to-use-dynatrace/synthetic-monitoring/http-monitors/create-an-http-monitor/#expand-302additional-options&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you can execute post execution script for the first step which for example will do:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;setTimeout(function () {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;//you can paste some code here if you need&lt;BR /&gt;}, 5000);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've never tested it, but should be fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Dec 2019 08:25:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126084#M584</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2019-12-16T08:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Monitor: how to pause/sleep between two steps</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126085#M585</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://answers.dynatrace.com/users/15061/view.html" nodeid="15061"&gt;@Sebastian K.&lt;/A&gt;, unfortunately it does not  work. I tried something equivalent already (assuming we might be able to execute generic JS script) but it failed.&lt;/P&gt;&lt;P&gt;When I paste your content in a post-execution script, I get the following in log:&lt;/P&gt;&lt;PRE&gt;Post script execution failed due to: ReferenceError: "setTimeout" is not defined. (script#1)&lt;/PRE&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Dec 2019 08:41:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126085#M585</guid>
      <dc:creator>sylvain_baerisw</dc:creator>
      <dc:date>2019-12-16T08:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Monitor: how to pause/sleep between two steps</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126086#M586</link>
      <description>&lt;P&gt;Ok you're right. Here are possibilities you have:&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/synthetic-monitoring/http-monitors/pre-and-post-scripting-for-http-monitors/" target="_blank"&gt;https://www.dynatrace.com/support/help/how-to-use-dynatrace/synthetic-monitoring/http-monitors/pre-and-post-scripting-for-http-monitors/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I don't see anything that can be handy here.&lt;/P&gt;&lt;P&gt;As a really dirt workaround may be creating some page with setTimeout set that you may use as request in the middle which will takes amount of time defined in query parameter. &lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Dec 2019 08:50:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126086#M586</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2019-12-16T08:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Monitor: how to pause/sleep between two steps</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126087#M587</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;yes, me too. I reviewed this documentation already. That is why I posted on this forum. I was hoping for some hidden trick.&lt;/P&gt;&lt;P&gt;thanks anyway for your help.&lt;/P&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Dec 2019 08:52:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126087#M587</guid>
      <dc:creator>sylvain_baerisw</dc:creator>
      <dc:date>2019-12-16T08:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Monitor: how to pause/sleep between two steps</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126088#M588</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;Long shot but you should give it a try and use browser test where you can add wait after step and run JavaScripts. &lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Yos&lt;/P&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Dec 2019 09:32:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126088#M588</guid>
      <dc:creator>Yosi_Neuman</dc:creator>
      <dc:date>2019-12-16T09:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Monitor: how to pause/sleep between two steps</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126089#M589</link>
      <description>&lt;P&gt;unfortunately not for this specific use case as I am testing an API&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Dec 2019 10:53:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126089#M589</guid>
      <dc:creator>sylvain_baerisw</dc:creator>
      <dc:date>2019-12-16T10:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Monitor: how to pause/sleep between two steps</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126090#M590</link>
      <description>&lt;P&gt;Would a dummy API call to sleep for a given time solve your problem? For example, the postman echo service has such endpoint if you don't want to create your own. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This URL will, for example, wait 2 seconds between ending with a response:&lt;/P&gt;&lt;PRE&gt;https://postman-echo.com/delay/2&lt;/PRE&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jan 2020 08:23:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126090#M590</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2020-01-13T08:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Monitor: how to pause/sleep between two steps</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126091#M591</link>
      <description>&lt;P&gt;This is an interesting approach. Although I would prefer to avoid being dependent on a 3rd party API, I will definitely consider your idea.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jan 2020 12:30:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126091#M591</guid>
      <dc:creator>sylvain_baerisw</dc:creator>
      <dc:date>2020-01-13T12:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Monitor: how to pause/sleep between two steps</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126092#M592</link>
      <description>&lt;P&gt;Agreed, but this is just an example. Sure you can deploy such API endpoint in your environment and it will be definitely the most simple one service you will have :-).&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jan 2020 12:59:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Monitor-how-to-pause-sleep-between-two-steps/m-p/126092#M592</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2020-01-13T12:59:23Z</dc:date>
    </item>
  </channel>
</rss>

