wait

ETLUnit 3.9.6

 

Draft in Progress

This document is a draft and is under development.

 

Description

  • Wait for a specified period of time.

Attributes

 

sleep-time:  - >> TYPE:  long  - - > REQUIRED

Examples

Prerequisites

  • etlunit-core dependency in POM.

 

<dependencies>
	<dependency>
		<groupId>org.bitbucket.bradleysmithllc.etlunit</groupId>
		<artifactId>etlunit-core</artifactId>
		<version>${etlunit.project.version}</version>
	</dependency>
</dependencies>

 

wait() Example

 

Example of wait operation

class wait_operation

{

@Test

waitExample()

{

log(

message: 'Logging Message One with all attributes',

log-file-name: 'log_example.log',

log-classifier: 'anyClassifier'

);

 

wait(

sleep-time: 7000

);

 

log(

message: 'Logging this message by operation log'

);

}

}

 

  • When you run this test, you'll notice its elapsed time is over seven seconds.  The wait caused a pause of seven seconds.

 

userme > te #waitExample
Processing [1] tests
class experiment.wait_operation   ------------------------------------------------
1/1        .waitExample
  Passed                                                                      P[1]
Tests run: 1, Successes: 1, Time elapsed: 07.173 sec