In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Original articles, welcome to reprint. Reprint please indicate: reproduced from IT Story Association, thank you!
Original link address: "docker practice" python's docker crawler technology-mobile automation control tool appium tool (17)
Appium is an open source test automation framework that can be used for native, hybrid and mobile Web application testing. It uses the WebDriver protocol to drive iOS,Android applications. Direct multilingual: java,python and so on.
Appium architecture
# desired capability
The function of desired capability is to configure Appium sessions. They tell the Appium server about the platforms and applications you want to automate. Official website introduction: http://appium.io/slate/en/master/?java#appium-server-capabilities
Value of Desired Capability-Common
The value of Desired Capability-android
The value of Desired Capability-ios
# advantages and disadvantages of Appium
Advantages:
Support for testing of multiple applications
Support for writing test scripts in multiple languages
The application being tested does not require special compilation
Appium supports testing of jumps between applications
Disadvantages:
Since the server runs on the computer, the tool must be connected to the computer before it can be run
It can only be used for automated testing of UI. In many cases, test verification can only be carried out through the verification interface.
Manipulate the control to get control information
Gesture part
There are mainly common operations such as clicking, sliding, dragging, zooming and so on.
System operation API
The system operation is used to simulate the hardware operation, set up the network environment, obtain the system information and so on. The following table briefly introduces the common methods.
How to get parameters
Set up-about mobile phones
PlatformName
PlatformVersion
Command: adb devices
DeviceName
Command:
Adb shelllogcat | grep cmp=
Click start session
Screenshot miswritten, written as onReset should be noReset, automatically skip the boot page
Entered the interface.
How to record a script
1.start Recording
2.Select Elements, select a user name input box when selected
3. Click send keys
4. Enter idig8.com to select send keys
5. The user name box of the simulator has also changed
6.Select Elements, please enter the password box when selected.
7. Click send keys
8. The password box of the simulator has changed
9.Select Elements chooses to log in and click Tap
There's a reaction. Haha.
MobileElement el6 = (MobileElement) driver.findElementById ("com.tal.kaoyan:id/login_email_edittext"); el6.sendKeys ("idig8"); MobileElement el7 = (MobileElement) driver.findElementById ("com.tal.kaoyan:id/login_password_edittext"); el7.sendKeys ("password"); MobileElement el8 = (MobileElement) driver.findElementById ("com.tal.kaoyan:id/login_login_btn"); el8.click ()
Real user name and password, log in to the system. The simulator is refreshed, but appium does not refresh. You can click this button.
PS:appium is obviously much easier to use than Android's ui tool, the key point is the configuration at the beginning, the first screenshot, my Andriod word is misspelled, it is onReset, the screenshot is written as onReset, I hope it will not mislead the brothers.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.