Is there a way to prevent KIF from terminating the app once the tests are completed?

159 views
Skip to first unread message

duncwa

unread,
Apr 15, 2013, 7:12:00 PM4/15/13
to kif-fr...@googlegroups.com
I am running KIF on a device and want to notify an external program that a test has completed.  A coworker of mine created a small shim that I use to launch a target/test via jenkins jobs.  But once the KIF tests complete the target/test will terminate.   Hmmmm. 

Charlie Burtoff

unread,
Apr 15, 2013, 7:27:32 PM4/15/13
to kif-fr...@googlegroups.com
Just comment out
        exit([[EXTestController sharedInstance] failureCount]);
from your app delegate. 

Thanks, 

Charlie

On Apr 15, 2013, at 4:12 PM, duncwa <dun...@gmail.com> wrote:

I am running KIF on a device and want to notify an external program that a test has completed.  A coworker of mine created a small shim that I use to launch a target/test via jenkins jobs.  But once the KIF tests complete the target/test will terminate.   Hmmmm. 

--
You received this message because you are subscribed to the Google Groups "KIF iOS Automated Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kif-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jim Puls

unread,
May 13, 2013, 10:32:53 AM5/13/13
to kif-fr...@googlegroups.com
On May 13, 2013, at 10:27 AM, paresh masani <masani...@gmail.com> wrote:

Hi Charlie, what you said is perfectly works. I am looking for best way to restart tests immediately after it finished to continuously keep testing same thing. Could you please let me know what could be the best way to achieve this?

What are you trying to do? Can't you just put a while (YES) {} loop around your tests?

-> jp

paresh masani

unread,
May 13, 2013, 10:39:05 AM5/13/13
to kif-fr...@googlegroups.com
Thanks for quick response Jim. Can you add infinite loop around test scenarios? I want to start from first test scenario again once KIF finishes running last. I can put infinite loops around tests but not test scenarios I guess...Do I have to combine all test scenarios? Am I missing something obvious?

Thanks,
Paresh
Reply all
Reply to author
Forward
0 new messages