• Stars
    star
    137
  • Rank 266,121 (Top 6 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 2 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🎉The Sonic UIAutomation Driver Core. Sonic UI自动化Driver核心。

🎉The Sonic UIAutomation Driver Core

English | 简体中文

What is sonic-driver-core?

sonic-driver-core can be separated from appium and interact directly with webdriveragent or uiautomator2, which reduces the communication layer of appium and makes the test faster and more stable.

Use in Java code

Add dependency

Maven Central

<dependency>
    <groupId>io.github.soniccloudorg</groupId>
    <artifactId>sonic-driver-core</artifactId>
    <version>1.1.28</version>
</dependency>

Gradle

implementation 'io.github.soniccloudorg:sonic-driver-core:1.1.28'

Code

package org.cloud.sonic.driver.ios;

import org.cloud.sonic.driver.ios.enums.IOSSelector;
import org.cloud.sonic.driver.common.tool.SonicRespException;

public class MyTest {

    public void test() throws SonicRespException {
        IOSDriver iosDriver = new IOSDriver("http://localhost:8100");
        iosDriver.showLog();

        //touch
        iosDriver.swipe(100, 256, 50, 256);
        iosDriver.tap(150, 81);
        iosDriver.longPress(150, 281, 1500);
        iosDriver.performTouchAction(new TouchActions().press(50, 256).wait(50).move(100, 256).wait(10).release());

        //element
        iosDriver.findElement(IOSSelector.XPATH, "//XCUIElementTypeTextField").click();

        //more...
    }
}

More Example

See Here.

Document

See Here.

Sponsors

Thank you to all our sponsors!

霍格沃兹测试开发学社

霍格沃兹测试开发学社是业界领先的测试开发技术高端教育品牌,隶属于测吧(北京)科技有限公司 。学院课程由一线大厂测试经理与资深测试开发专家参与研发,实战驱动。课程涵盖 web/app 自动化测试、接口测试、性能测试、安全测试、持续集成/持续交付/DevOps,测试左移&右移、精准测试、测试平台开发、测试管理等内容,帮助测试工程师实现测试开发技术转型。通过优秀的学社制度(奖学金、内推返学费、行业竞赛等多种方式)来实现学员、学社及用人企业的三方共赢。进入测试开发技术能力测评!

LICENSE

License

FOSSA Status

More Repositories

1

sonic-server

🎉Back end of Sonic cloud real machine platform. Sonic云真机平台后端服务。
Java
2,446
star
2

sonic-agent

🎉Agent of Sonic cloud real machine platform. Sonic云真机平台Agent端。
Java
2,046
star
3

sonic-ios-bridge

🎉Bridge of iOS Devices by usbmuxd. 基于usbmuxd的iOS调试工具。
Go
1,010
star
4

sonic-client-web

🎉Front end of Sonic cloud real machine platform. Sonic云真机平台前端。
Vue
656
star
5

sonic-android-apk

🎉Android Plugin of Sonic cloud real machine platform. Sonic云真机平台安卓插件。
Kotlin
409
star
6

sonic-server-simple

🎉Simple of Sonic cloud real machine testing platform. Sonic云真机测试平台单机版。
Java
383
star
7

sonic-ide

🎉Sonic IDE Desktop. Sonic IDE桌面版。
140
star
8

sonic-android-supply

🎉Supply of ADB. 原生ADB补充插件。
Go
59
star
9

soniccloudorg.github.io

🎉Sonic Official Website. Sonic官方网站。
TypeScript
37
star
10

sonic-ios-webkit-adapter

🎉Adapter of debug webkit protocol on iOS for Chrome DevTools. 用于谷歌浏览器调试的webkit协议接收器。
Go
33
star
11

sonic-server-config-yml

Example of CLUSTERED sonic-server config. 配置集群版sonic-server的config示例
17
star
12

sonic-ci-helper

🎉Jenkins Plugin of Sonic cloud real machine testing platform. Sonic云真机测试平台Jenkins插件。
Java
15
star
13

sonic-uiautomator2-python-client

🎉The Python Client of appium-uiautomator2-server. appium-uiautomator2-server的Python客户端。
Python
10
star
14

sonic-resources

Resources of Sonic cloud real machine platform. Sonic云真机平台部分静态资源
Java
5
star
15

sonic-vision-core

🎉Vision module of Sonic. Sonic图像识别模块
Java
2
star
16

airtest-java-client

🎉Java Client for Airtest Project. Airtest项目Java Client。
2
star
17

sonic-uiautomation-example

🎉Example of Sonic UIAutomation with code. Sonic代码自动化示例。
Java
2
star