From c3a1e56608ebe08f1ddc07273d85ff9c2779de9b Mon Sep 17 00:00:00 2001 From: Peter Andersson Date: Thu, 3 Jun 2010 14:14:38 +0200 Subject: Implement support for user controllable timetrap parameters (multiply and scale) Documentation still missing. --- lib/test_server/doc/src/test_server.xml | 16 ++++++++++++++++ lib/test_server/doc/src/test_server_ctrl.xml | 25 +++++++++++++++++++++++++ 2 files changed, 41 insertions(+) (limited to 'lib/test_server/doc/src') diff --git a/lib/test_server/doc/src/test_server.xml b/lib/test_server/doc/src/test_server.xml index 6e75425862..0cae75d692 100644 --- a/lib/test_server/doc/src/test_server.xml +++ b/lib/test_server/doc/src/test_server.xml @@ -166,6 +166,22 @@ numbers.

+ + adjusted_sleep(MSecs) -> ok + Suspens the calling task for a specified time. + + MSecs = integer() | float() | infinity + The default number of milliseconds to sleep + + +

This function suspends the calling process for at least the + supplied number of milliseconds. The function behaves the same + way as test_server:sleep/1, only MSecs + will be multiplied by the 'multiply_timetraps' value, if set, + and also automatically scaled up if 'scale_timetraps' is set + to true (which it is by default).

+
+
hours(N) -> MSecs minutes(N) -> MSecs diff --git a/lib/test_server/doc/src/test_server_ctrl.xml b/lib/test_server/doc/src/test_server_ctrl.xml index 8b60849b61..2368c4bacc 100644 --- a/lib/test_server/doc/src/test_server_ctrl.xml +++ b/lib/test_server/doc/src/test_server_ctrl.xml @@ -375,6 +375,31 @@ Optional, if not given the test server controller node multiplied by N.

+ + scale_timetraps(Bool) -> ok + . + + Bool = true | false + + +

This function should be called before a test is started. + The parameter specifies if test_server should attempt + to automatically scale the timetrap value in order to compensate + for delays caused by e.g. the cover tool.

+
+
+ + get_timetrap_parameters() -> {N,Bool} + Read the parameter values that affect timetraps. + + N = integer() | infinity + Bool = true | false + + +

This function may be called to read the values set by + multiply_timetraps/1 and scale_timetraps/1.

+
+
cover(Application,Analyse) -> ok cover(CoverFile,Analyse) -> ok -- cgit v1.2.3