GithubHelp home page GithubHelp logo

solopi-convertor's Introduction

SoloPi-Converter

Thanks

感谢前期参与SoloPi脚本转化工作的同学:https://testerhome.com/topics/20346

Introduction (简介)

SoloPi 用例转化工具,支持将 SoloPi JSON 用例转化为其他自动化脚本语言,目前支持转化为 Appium 和 Macaca 脚本。

Features (功能)

  • 支持自定义控件查找方式

  • 多种类型转化格式

  • 便于扩展其他转换类型

Limitation (限制)

  • Python 3.6+
  • Pillow

Getting Started (必看)

  1. 在SoloPi设置里,将用例加密秘钥设置为空,然后在用例列表中长按导出用例
  2. 执行入口 python3 handler.py
  3. 输入 SoloPi 脚本地址
  4. 选择转化类型(目前支持 Appium 和 Macaca )
  5. 选择输出目录
  6. 每一步单独选择查找方式
  7. 导出完成,可以在对应目录查看导出的用例脚本,导出的脚本文件会被命名为 main.xxx 。

代码导读

  • bean: 用例格式定义。
  • decoder.py: 解析 SoloPi 原始用例
  • exporter: 实际导出用例的 module ,已实现 Appium 和 Macaca 导出,其他语言可以通过扩展 BaseExporter 的形式来实现。
  • handler.py: 主流程执行器
  • shell.py: 用于处理用户输入、选择
  • util: 常用功能

Related projects (相关的项目)

SoloPi 自动化测试工具

版权声明

Discuss (讨论群)

面向行业测试相关从业人员,对工具有什么意见或者建议的话也欢迎Issue、PR或加群讨论。

  • 钉钉群(一群已满,请添加二群):

group

Contribution (参与贡献)

独乐乐不如众乐乐,开源的核心还是在于技术的分享交流,当你对开源项目产生了一些想法时,有时还会有更加Smart的表达方式,比如(Thanks to uiautomator2):

  • 我们的业务需要这项功能 ==> 我加了个功能,可以在很多场景用到,已经提交MR了。

  • 这块儿功能有更详细的文档吗? ==> 这块内容我改了一下,更方便使用了,帮忙合并一下。

  • 我在XXX上怎么用不了啊? ==> 在XXX手机上功能有点问题,我已经修复了。

  • 我刚用了XXX功能,怎么和文档上不一样啊? ==> 我根据文档试用了一下,碰到了一些坑,这是我在ATA、Lark发的踩坑贴,有些内容可以补充一下。

  • 这个是不是一直维护啊? ==> 我能做些什么?

当然,Star、Fork、Merge Request、Issue等功能也随时欢迎大家使用哈!

如果你有什么好的想法,也可以与我们直接联系,进行更加深入的讨论,我们希望将这套移动端的测试工具框架进行更好的推广,欢迎大家多多宣传。

License (协议)

This project is under the Apache 2.0 License. See the LICENSE file for the full license text.

Copyright (C) 2015-present, Ant Financial Services Group

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

 	http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Disclaimer (免责声明)

免责声明

solopi-convertor's People

Contributors

solopi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.