[英]How Do I Write My First Appium Test For iOS
I have set up all of the prerequisites to run an Appium test on my mac computer, but I cannot figure out how to run my first Appium test. 我已经设置了在Mac计算机上运行Appium测试的所有先决条件,但是我不知道如何运行我的第一个Appium测试。 I am having trouble writing my test in Java. 我在用Java编写测试时遇到麻烦。 The perfect thing would be a file that I could just put on my computer, that, when run, would open the iOS simulator and press some buttons. 完美的事情是我可以将其放在计算机上的文件,该文件在运行时将打开iOS模拟器并按一些按钮。 I know Selenium well so I could figure out the rest myself. 我非常了解Selenium,所以我自己可以找出其余的东西。 I also have several test apps on my computer 我的电脑上也有几个测试应用
But any help with writing the actual test file itself (Java preferred) would be much appreciated! 但是对编写实际测试文件本身(Java首选)的任何帮助将不胜感激!
To run iOS tests, you can follow these steps : 要运行iOS测试,您可以按照以下步骤操作:
( Note : I am using Java language here in Eclipse IDE and using Appium app): ( 注意 :我在Eclipse IDE中使用Java语言并使用Appium应用):
All Appium server capabilities which can be used can be found here . 可在此处找到所有可以使用的Appium服务器功能。
You can refer to my blog post here as well for more details to execute a sample basic script. 您也可以在这里参考我的博客文章,以获取更多有关执行示例基本脚本的详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.