Issuing a synchronous HTTP GET request or invoking shell script in JavaScript from iOS UIAutomation

后端 未结 5 865
日久生厌
日久生厌 2021-02-09 08:05

I am trying to use Apple\'s UIAutomation to write unit tests for an iOS Application that has a server-side component. In order to setup the test server in various states (as wel

5条回答
  •  隐瞒了意图╮
    2021-02-09 08:46

    Try performTaskWithPathArgumentsTimeout

    UIATarget.host().performTaskWithPathArgumentsTimeout("/usr/bin/curl", "http://google.com", 30);
    

提交回复
热议问题