Trying to execute test from Automated Test Framework however getting error everytime

shanawazkhan9sh
Tera Contributor

I am trying to Run a test "Basic UI test"   from Automated Test Framework, However getting "The test timed out because the max execution time (600 seconds) was reached while executing step 2 - 4". Is there any property setting that needs to be enabled which i have missed.

I have tried the same on both Chome as well as IE however no luck.

4 REPLIES 4

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

That timeout is a default hardcoded value. You can try adding this property with a higher value:



sn_atf.batch.timeout = 1200 //1200s rather than 600s


Hi Sergiu, where do we add this property. Could you help to find exact location?



Thanks


It should be in System Properties table (sys_properties).


joel_fischer
ServiceNow Employee
ServiceNow Employee

Although this is an old question, users can still run into this issue for various reasons.

Dawn Jurek compiled an excellent post about this here https://community.servicenow.com/community?id=community_blog&sys_id=84dc2665dbd0dbc01dcaf3231f96190f

I recommend refraining from altering the sys_properties for the Client Test Runner batch timeout - this may be attempting to hide a likely preventable performance issue at test runtime. Addressing it appropriately will make your tests run much faster.