Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Appium testing process

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Test steps:

Location---> Interaction---> Assertion

Positioning method:

id (important): corresponds to resource-id

accessibility id: corresponds to content-desc (important)

xpath (important)-----------------------------------

Class: Not recommended

Two ways of writing.

findElementByXXX

findElement(by, value) ---Mainly used in PO (page object) mode

Action Support:

click

sendKeys

clear

swipe

touch action

Touch Action:

press

tap

long press

release

wait

moveTo

perform---Finally must use perform to execute

Pycharm Settings

File--->Settings--->Tools--->Python Integrated Tools--->Testing--->Default test runner

Change to pytest or unittest

command line operations

which emulator

View avds

/d/adt-bundle-windows-x86_64-20140702/sdk/tools/emulator -list-avds

start the emulator

/d/adt-bundle-windows-x86_64-20140702/sdk/tools/emulator @Pixel_3_XL_API_24

Start Appium

appium -g /d/learnPY/appautotest/log/appium.log

Appium Desired Capabilities

platformName

deviceName

app

appPackage

appActivity

autoGrantPermissions

caps["unicodeKeyboard"] = "true" You can enter Chinese or other languages

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report