Testing GUIs is hard: unit tests require a tremendous amount of mocking and often don't capture the exact user input anyway, integration tests on the other hand are difficult to setup as they often require a dedicated infrastructure with virtual machines.

libuitest should become something like the image recognition part of openQA: it receives a video or image stream from some source and searches for matches (e.g. button found, sound played). It should also be able to send clicks, key presses, strings, etc. back via an abstract API to a backend.

It should be compatible to openQA's needles, but the main way how to write tests should be done via a more generic API: `

help_menu = find_menu("Help", search_area_percent=((0, 0), (100, 0)))

help_menu.click()

about_my_program_button = find_menu("About Foo", search_area_percent=(help_menu.location, (100, 0)))

about_my_program_button.click()

window = find_window("About Foo")

about_foo_text = get_text_from_area(window.area)

assert(about_foo_text == f"This is Foo version {env.FOO_VERSION}")

The image recognition part should be handled by OpenCV and the ocr via tesseract. It would be also nice to use some simple machine learning so that libuitest could be trained to find buttons, menus, windows, etc. independently of the used GUI and theme (or at least robustly if you tell it which theme & GUI you are using).

Looking for hackers with the skills:

machinelearning testing image_recognition opencv tesseract

This project is part of:

Hack Week 19

Activity

  • almost 2 years ago: Pharaoh_Atem liked this project.
  • almost 2 years ago: mwilck liked this project.
  • almost 2 years ago: dancermak added keyword "machinelearning" to this project.
  • almost 2 years ago: dancermak added keyword "testing" to this project.
  • almost 2 years ago: dancermak added keyword "image_recognition" to this project.
  • almost 2 years ago: dancermak added keyword "opencv" to this project.
  • almost 2 years ago: dancermak added keyword "tesseract" to this project.
  • almost 2 years ago: dancermak started this project.
  • almost 2 years ago: dancermak originated this project.

  • Comments

    Be the first to comment!

    Similar Projects

    Ambrogio - a privata consierge for you and your pets by rsblendido

    [comment]: # (Please use the project descriptio...


    Phoebe - where AI meets Linux by mvarlese

    Project Description

    Phoeβe (/ˈfiːbi/) wan...


    Anomaly analyser, predictor for kubernetes(Rancher) by sbabusadhu

    [comment]: # (Please use the project descriptio...


    FuseML - accelerate your Hack Week ML projects by stefannica

    [comment]: # (Please use the project descriptio...


    Semi-automated XMLRPC based tool for uyuni testing written in Rust language by lkotek

    [comment]: # (Please use the project descriptio...


    Testing and adding GNU/Linux distributions on Uyuni by juliogonzalezgil

    Join the Gitter channel! [https://gitter.im/uy...