开发者

Automated testing of Coredata iOS app on simulator with different db states

I am developing an iOS app and would like to test one particular method with different database states. I think I can input information into Coredata's sqlite database correctly but I'm not sure how to then go about calling the method I want to test without having to manually ru开发者_JAVA技巧n the simulator and navigate to the view in my app which calls the method.

I was planning on using Python to generate the test data and input the values into the database though I can change that if it seems unlikely to work.


It will be easier to call an Objective-C method that will save some test objets in your base. This way you don't have to worry about the SQL structure.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜