Macacauifinder element Finder

Source: Internet
Author: User
Tags git clone
Macacauifinder element Finder 1. What is it?
    1. This is a javaswing write Macaca element Finder, easy to test the small partners to locate elements, if you feel good, also please point a star encouragement, hey.
      Address: Github.com/matrixseven/macacauifinder
2. For what?
    1. In order to resolve the app-inspector element found on, not one time in Java to start Macaca (the process of starting link macacaserver) positioning element is slow, sometimes an element location failed,
      Close macaca-server , then start app-inspector , locate the element, and then switch to macaca-server . I recommend starting app-inspector a lot of things here.
      Browser tab page, the need to locate the elements of the page is opened in the tab, and then open the software once looking for elements, confirm the correct copy of the available positioning string, directly in the Java test case, instead of
      For an element that is not positioned to restart repeatedly Macaca-client(启动链接是一个非常耗时的动作) .
    2. And for what? For my girlfriend ... Also in order to struggle with the small partners in automated UI testing.

      3. Why the code is so low.
    3. No way, the code almost a day to write out of time. And swing's layout is 恶心 , originally wanted to use JavaFX, but did not find good information, but after writing found a TornadoFX , with
      Kotlin writing a DSL is really working. You can try it.

4. Configuration file format
    1. Refer to the JSON field in the official demo to fill in the Sample-java
[    {        "name":"iphoneX",        "deviceName":"iPhone X",        "bundleId":"测试包bundleId",        "udid":"真实设备的udid",        "platformName":"iOS"    },    {        "name":"小米8",        "deviceName":"xiaomi 8",        "app": "apk下载路径",        "udid":"真实设备的udid",        "platformName":"android"    }]
5. Start the command

Direct git clone this project or download MacacaElementUI-1.0.jar and then directly java -jar MacacaElementUI-1.0.jar execute 食用 the software.

6. About Design
    1. Although very low, but overall there is a design to find
      In order to avoid nesting at the time of writing this UI, the event publish subscription mode is used, each trigger a button/component,
      The event manager is released, and then the event manager distributes the event to the corresponding
      Subscribers, thus completing the processing of ui/events and separating them from each other JComponent .
7. Actual effect
    1. Configuration page

    2. Execution page

8. Tips
    1. The software may have an unknown bug.
    2. Currently in the test phase, do not spray.
Author: acceleratoremail:hacker.kill07@gmail.com I love Java (QQ Group): 170936712 (click to join)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.