Logic Testing on iOS devices is not supported?

旧时模样 提交于 2019-12-10 02:24:54

问题


I am using the SenTestingKit to Unit Test, but I get the following message

Logic Testing on iOS devices is not supported. You can run logic tests on the Simulator.

How can I do this?


回答1:


Logic tests only work on the simulator, you need to switch to the simulator, i.e.

Logic tests require a special unit test launcher which is not installed on actual devices.

If you want to run your tests on an actual device you can convert to application unit tests. These are essentially the same but you application gets launched first (as a 'host') and your tests get run along side them. This means your tests can run on any device that your application supports. The only disadvantage is that your actual app will be running which can interfere with your test, especially if you use a lot of notifications.




回答2:


You need to have a Host Application




回答3:


we have to build and test our project in cxode only through webdriverAgrentRunner. select real device : webdriverAgentRuuner>>device name




回答4:


If you are asking this question for Automation testing then "YES, you have to change the WebDriverAgentRunner to a Real device and run the test again". The error will be disappeared



来源:https://stackoverflow.com/questions/8454935/logic-testing-on-ios-devices-is-not-supported

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!