简体   繁体   English

在Appium iOS测试自动化软件中的哪里编写代码?

[英]Where to write code in Appium iOS test automation software?

I am new to automation and trying to use Appium(Mac app) for writing test scripts on iOS app. 我是自动化的新手,尝试使用Appium(Mac应用程序)在iOS应用程序上编写测试脚本。

I have managed to load my app successfully on Appium and also used Appium Inspector. 我已成功在Appium上成功加载了我的应用程序,并且还使用了Appium Inspector。 There is a Record button which records my actions in Appium inspector. 有一个“记录”按钮,可在Appium检查器中记录我的操作。

However, my question is how do I save these recorded scripts for reuse? 但是,我的问题是如何保存这些记录的脚本以供重用? Secondly, I also want to manually write test scripts using Java, but currently don't know where to write code using Appium Mac app. 其次,我也想使用Java手动编写测试脚本,但目前不知道使用Appium Mac应用程序在哪里编写代码。

I have read the starter guide on Appium website and seen some videos but cannot find any app usage related information. 我已阅读Appium网站上的入门指南,并看了一些视频,但找不到任何与应用程序使用相关的信息。

Any help(links, tutorial video) will be appreciated. 任何帮助(链接,教程视频)将不胜感激。

PS I do not use Selenium. PS我不使用硒。

  1. My suggestion is to not use the record feature in Appium, it's not stable and hard to maintain. 我的建议是不要使用Appium中的记录功能,它不稳定且难以维护。
  2. You can write your java-automation-code on Eclipse/intellij(and all java IDE) You have a lot of information on internet, you can start here: 您可以在Eclipse / intellij(和所有Java IDE)上编写Java自动化代码。Internet上有很多信息,您可以从这里开始:
    Appium - Git - Sample - java Appium-Git-示例-Java

Try to make it run, and take it from there. 尝试使其运行,然后从那里拿走它。 You always can ask at discuss.appium.io and see examples. 您总是可以在ask.appium.io上询问并查看示例。

Good luck, hope it's helps a little. 祝您好运,希望对您有所帮助。

您可以按照与Selenium中正确的方式来编写脚本,这意味着您可以选择任何IDE(在我的情况下,我正在Eclipse Juno上工作),如果要使用TestNG框架,则只需传递所有功能,然后以TestNG。

You can use any programming language supported by Appium where you feel better. 您可以在感觉更好的情况下使用Appium支持的任何编程语言。

Setup environment and create test scripts. 设置环境并创建测试脚本。 you can learn from: 您可以从中学习:

Appium 阿皮

Jave Sample 杰夫样品

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM