共用方式為


TAEF Timeouts

TAEF time-outs are specified in the following format: [Day.]Hour[:Minute[:Second[.FractionalSeconds]]].

For example:

0:0:0.5
指定 .5 秒逾時。

0:0:45
指定 45 秒逾時。

0:20 or 0:20:0
指定 20 分鐘逾時。

5 or 5:0 or 5:0:0
指定 5 小時逾時。

1.2 or 1.2:0 or 1.2:0:0
指定 1 天 2 小時逾時。

工作階段逾時

Session time-outs can be specified for the entire execution of Te.exe when you use the /sessionTimeout option. 如果逾時到期,測試會話將會正常停止, 而進程結束碼 會表示發生逾時。

te.exe test1.dll /session超時:0:20
整個測試會話將在 20 分鐘後逾時。

測試逾時

您可以藉由將逾時中繼資料套用至指定的測試元件、類別或方法來指定測試逾時。

此外,當您使用 /testTimeout 選項時,可以在執行階段覆寫逾時中繼資料值。 如果指定, /testTimeout 會為整個執行 Te.exe設定全域測試逾時。

Note: Test time-outs will be ignored when used in conjunction with /inproc.

te.exe test1.dll /test超時:0:0:45
每個測試和設定/清理方法都會在 45 秒後逾時。