Logic Testing on iOS devices is not supported?

2019-04-26 15:19发布

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?

4条回答
Evening l夕情丶
2楼-- · 2019-04-26 16:00

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

查看更多
Viruses.
3楼-- · 2019-04-26 16:10

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

enter image description here

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.

查看更多
小情绪 Triste *
4楼-- · 2019-04-26 16:14

You need to have a Host Application

enter image description here

查看更多
贪生不怕死
5楼-- · 2019-04-26 16:17

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

查看更多
登录 后发表回答