


Many requests, fired in rapid succession can, depending on the server in question, quickly take up all of the free connections and effectively become a DoS Attack. For example, while web scraping (ethically), and following the ToS of the website in question, abiding by the robots.txt file - you might very well want to delay the execution of each request as to not overwhelm the resources of the server. In multi-threaded systems, a thread might want to wait for another thread to finish an operation, to continue working with that result.Īnother example could be lessening the strain on a server we're working with. The most common need for code delaying is when we're waiting for some other process to finish, so that we can work with the result of that process. Code Delaying (also known as sleeping) is exactly what the name implies, the delaying of code execution for some amount of time.

delay ( 10 ) 'Use Web Service keyword' WS. delay ( 10 ) 'Use Mobile keyword' Mobile.

findTestObject import .checkpoint.Checkpoint as Checkpoint import .checkpoint.CheckpointFactory as CheckpointFactory import. as MobileBuiltInKeywords import. as Mobile import .model.FailureHandling as FailureHandling import .testcase.TestCase as TestCase import .testcase.TestCaseFactory as TestCaseFactory import .testdata.TestData as TestData import .testdata.TestDataFactory as TestDataFactory import .testobject.ObjectRepository as ObjectRepository import .testobject.TestObject as TestObject import. as WSBuiltInKeywords import. as WS import. as WebUiBuiltInKeywords import. as WebUI import internal.GlobalVariable as GlobalVariable 'Use WebUI keyword' WebUI.
