0.1.3 • Published 2 years ago

@testcomplete/sleep v0.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

TestComplete - Sleep

A simple function which delays execution.

  • Version : v0.1.3
  • Compatibility : TestComplete only
  • Script : ./node_modules/@testcomplete/sleep/Sleep.js
  • Dependencies :

    • none

Summary

Sleep Setup for TestComplete

As this library is published on npmjs, you can easily get library with the following command if you have nodejs installed on your computer.

npm install @testcomplete/sleep

Please confer to this documentation to add script in TestComplete :

Script List for the setup :

  • ./node_modules/@testcomplete/sleep/Sleep.js

@testcomplete/testcompletelibrarysetup

Get Started

First of all, you have to add the script Sleep.js to your script library in TestComplete.

let Sleep = require(`Sleep`);

Delays execution Sleep()

The method Sleep( $nHours = 0, $nMinutes = 0, $nSeconds = 1, $nMilliSeconds = 0 ) delays execution (in milliseconds) for specified time provided in arguments.

// Wait for 10 seconds before continuing execution
Sleep(0, 0, 10, 0);