Automated Test Framework(ATF) can be scheduled

apurvasharma
Kilo Guru

HI,

I am exploring Istanbul Automated Test Framework.

I want to run the Test Case/Test Suite from a schedule Job. By calling the Script include "Text ExecutorAjax" and its method "runuserTestSuite" OR "runUserTest" it only starts the Test Case/Test Suite. But it never moves from One test Step to another. It just gets Stuck on first Test Step and finally after some time_interval it failed.

If we check the "Run Test" OR "Run Test Suite" UI action there are some more method that are being called on "on" event.If i explore more on this , on backend there are two JS files that are being used "scripts/js_includes_progress_tracker.js" and "/scripts/HierarchicalProgressRenderer.js".

So in order to run these Test Suite/Test Case from Schedule Job, to work it completely as it works when "Run Test" or "Run Test Suite" is clicked from a particular Test Suite/Test Case.

Are there more methods that need to be called from "TestExecutorAjax" script include or some other.

Any Help appreciated.

Thanks and Regards

Apurva Sharma

7 REPLIES 7

Joel Dias
Kilo Sage

The automated test framework needs a client to run tests on forms. If your tests are for forms and there is no client connected with a client test runner, the tests will never run.



It is highly improbable but are your Automated Test Framework Properties also set to enable the test framework?



Run automated test


spinol611
Giga Contributor

If you need to run tests on the server such as a server side script, can this be done via a scheduled job?


Hello,



Even am looking for an answer with regards to Stephen's question. Please let us know if there is any solution for this.



Thanks


I am on istanbul, i tried the approach from Apurva Sharma


within a scheduled job:   new TestExecutorAjax().runUserTestSuite( sys_id );



In my suite there are only server scripts tests, this works.



For UI tests the UI Test Runner page have to be open, at the moment I tried only the "Execute Now" from schedule job.


Question is, if this is also possible if your session is still open and the schedule job trigger it itself on a specific time.