How to use GPX file for UI Tests only

守給你的承諾、 提交于 2019-12-11 11:06:58

问题


I'm trying to use a GPX file, for simulating my location when I run UI Tests. I have selected the GPX file under 'Test Location'. But it's not working. I just get an error, which tells me 'Location not available'.

I know, I can go into Run -> Debug and then activate 'Allow Location Simulation' and then select the file as 'Default Location'. But since I only want it to be activated for my UITests, and not when I run it normally in the simulator - I don't want to set it as default in the Run section.

So, is it possible to make this work ONLY for my UITests :-)?

来源:https://stackoverflow.com/questions/48560025/how-to-use-gpx-file-for-ui-tests-only

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