# EnableTimeout for TestComplete action

**URL:** https://www.finalbuilder.com/forums/t/enabletimeout-for-testcomplete-action/998
**Category:** Discussion
**Created:** [October 8, 2008, 7:58am UTC](https://www.finalbuilder.com/forums/t/enabletimeout-for-testcomplete-action/998 "2008-10-08T07:58:51Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 8, 2008, 7:58am UTC](https://www.finalbuilder.com/forums/t/enabletimeout-for-testcomplete-action/998/1 "2008-10-08T07:58:51Z")

</div>

I try to use the EnableTimeout for my TestComplete actions. However it seems that this property is not supported. Can this be fixed or is there a reason for this behavior.

Notes:

- I ask this question because too often my TestComplete test do not end.

- When I press the "Terminate current action and stop build" button TestComplete is aborted. The same behavior would be acceptable for me on the Timeout.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 8, 2008, 8:39am UTC](https://www.finalbuilder.com/forums/t/enabletimeout-for-testcomplete-action/998/2 "2008-10-08T08:39:19Z")

</div>

Hi Herman   
  
 Which version/build of FinalBuilder and TestComplete are you using? The current version of FB6 has a testcomplete action which does have the TimeOut option on the RunTime Property page for TC 4/5/6.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 8, 2008, 9:57am UTC](https://www.finalbuilder.com/forums/t/enabletimeout-for-testcomplete-action/998/3 "2008-10-08T09:57:34Z")

</div>

I use FB 6.2 (build 1063) and TC 6.5 (I upgraded from 6.4 to 6.5 yesterday).

The problem I see is that I can set "Enable Timeout" in the "Action Timing Settings" window. When I press OK button in the "Action Settings" window, the "Runtime" tab of the "TestComplete 4/5/6 Project" window shows that the option is enabled. If I then press OK in the "TestComplete 4/5/6 Project" window and then open the&nbsp; " TestComplete 4/5/6 Project" window again the option is no longer set.

I also tried the alternative way of setting the option on the "Properties" tab of the "Design and Debug" tab of the main screen, but there nothing happens when I click on the checkbox.

I hope the above description clarifies my problem.

---

<div class="post-metadata">

### Author: ![lsondergaard](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/dfb087/32.png) [@lsondergaard](https://www.finalbuilder.com/forums/u/lsondergaard)
#### Post date: [October 9, 2008, 1:21am UTC](https://www.finalbuilder.com/forums/t/enabletimeout-for-testcomplete-action/998/4 "2008-10-09T01:21:35Z")

</div>

I seem to remember having the same problem some time back. Have you tried just setting the properties in the BeforeAction event?

Would be something like this:

Action.TerminateOnTimeout = true  
Action.TimeoutLength = 5

I have not tried it, but it might work....

Lars

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 9, 2008, 1:25am UTC](https://www.finalbuilder.com/forums/t/enabletimeout-for-testcomplete-action/998/5 "2008-10-09T01:25:17Z")

</div>

Ok, I was able to reproduce what you are seeing… looking into it now.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 9, 2008, 7:44am UTC](https://www.finalbuilder.com/forums/t/enabletimeout-for-testcomplete-action/998/6 "2008-10-09T07:44:09Z")

</div>

Hi Lars,   
  
 Thank you for you suggestion (I did not think of it).   
 I did not try it, but it is not working. I added one line to the script you proposes because the parameter I tried to set is EnableTimeout.   
  
 Action.EnableTimeout = true   
 Action.TerminateOnTimeout = true   
 Action.TimeoutLength = 1   
  
 Hi Vincent,   
  
 I tried Lars’ suggestion, but it is not working. Again the EnableTimeout property is not set (I checked this when the action was finished in the properties tab of the “Design & Debug” tab of the main window) and the TestComplete script was completed (in this case it run for about 4 minutes, whereas I set the TimeoutLength to 1).   
  
 Regards,   
  
 Herman

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 9, 2008, 7:45am UTC](https://www.finalbuilder.com/forums/t/enabletimeout-for-testcomplete-action/998/7 "2008-10-09T07:45:21Z")

</div>

Of course I should have witten "I did try it"

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 9, 2008, 10:32am UTC](https://www.finalbuilder.com/forums/t/enabletimeout-for-testcomplete-action/998/8 "2008-10-09T10:32:32Z")

</div>

Hi   
  
 Here’s a build with the fix for the enable timeout property not being remembered :   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/620/FB620\_1076.exe](https://www.finalbuilder.com/downloads/finalbuilder/620/FB620_1076.exe)

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 9, 2008, 1:51am UTC](https://www.finalbuilder.com/forums/t/enabletimeout-for-testcomplete-action/998/9 "2008-10-09T01:51:26Z")

</div>

I just downloaded and tested the new build. The timeout is now working for my TestComplete tests.   
  
 Many thanks for you amazingly fast response.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [December 4, 2008, 10:44am UTC](https://www.finalbuilder.com/forums/t/enabletimeout-for-testcomplete-action/998/10 "2008-12-04T10:44:23Z")

</div>

_Post Edited, do not post on our forums asking for cracks to other products._

&nbsp;
