51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 1907|回复: 0
打印 上一主题 下一主题

appium相关记录

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2019-1-25 15:56:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

环境准备appium server  sdk

一,Robotframework自动化测试:

appium相关:

*** Settings ***
Library           AppiumLibrary

*** Test Cases ***
case1
    Open Application    http://localhost:4723/wd/hub    platformName=Android    platformVersion=8.0.0    deviceName=Y2J2127N17B11002134    appPackage=com.h212e212i.sm121lot    appActivity=com.h21i.s211ilot.activity.SplashActivity
    Wait Until Element Is Visible    com.heyi.smartpilot:id/et_name    30
    input text    com.12.21/et_name    12
    input text    com.1e212yi.21/et_pwd    12
    comment    隐藏键盘
    go back
    Wait Until Element Is Visible    com.21i.s212p21lot:id/tv_login    30
    Click Element    com.heyi.s212t:id/tv_login


二,appium python PO模式

区别robot封装的好的关键字需要自己封装

一般结构基础配置,testrunner,常用方法封装,case


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-5-29 18:31 , Processed in 0.061086 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表