Acumatica Test Framework: Time out Error -


we have been trying use acumatica test framework unfortunately not managing our tests run correctly.

we have followed documentation step-by-step set test accordingly. when run test, firefox starts , log-in page loading correctly. username , password automatically entered, company. login-page completes resulting in error.

the error 'timed out waiting waitforcallbacktostart condition within specified timeout: 500ms'

it seems test not recognise log-in successful. think managed identify piece of code checks whether log-in successful:

"try\r\n{\r\n    var win = window == window.top || !window.top.frames['main'] ? window : window.top.frames['main'];\r\n    if (win.document.activepanel && win.document.activepanel.getinnerwindow()) win = win.document.activepanel.getinnerwindow();\r\n    if (win.px_callback && (win.px_callback.waitcallback || win.px_callback.pendingcallbacks.length)) return true;\r\n    else if (win.px_all) for(var item in win.px_all) if (win.px_all[item].callback) return true;\r\n    return false;\r\n}\r\ncatch (e)\r\n{\r\n    if (e.message.indexof('denied') != -1 || e.message.indexof('cross-origin') != -1) return true;\r\n    else return false;\r\n}" 

this represents javascript code executed through selenium identify whether page has loaded.

however, above code returning false. test framework continues periodically call code until returns true (or times out). in case never returns true , times out.

we have tried on different versions of acumatica , on different machines. results in same error.

i included screenshot of error below.

enter image description here

in visual studio dialog in exception settings area set checkbox break when exception type thrown equal false , continue execution of test. exception handled test sdk inside logintodestinationsite function , don't need take care of it.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -