Skip to content

A research prototype tool to repair Selenium E2E test cases through computer vision

License

Notifications You must be signed in to change notification settings

tsigalko18/visual-repair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

visual-repair

Build

You can import the project within the Eclipse IDE, or build it from command line by typing

mvn test

in the terminal.

Run toy example

The project consists in the following phases

  1. parameters setting, through the Settings class in the package config. This serves to specify where the reference and regressed test suites are. No further edit should be required in this file, for the correct execution of the project.

  2. correct test suite execution, through the TestSuiteRunner class in the package runner. Basically, only the classRunner should be edit to point to a JUnit Test Suite class. More info here. The project should create an output folder with the visual trace execution for each test. See an example here.

  3. broken/regressed test suite execution, through the TestSuiteRunner class in the package runner. Basically, only the classRunner should be edit to point to another JUnit Test Suite class, that represents the same test suite at point 2 but which is run on a subsequent version. The project should create an output folder with the visual trace execution for each test, and save all the exceptions. See an example here.

  4. Run visual repair, through the Main class in the package visualrepair. The tool will attempt to suggest repairs for the test cases, using the visual information previously saved, by means of a cascade of different repair algorithms based on visual image recognition.

Releases

No releases published

Packages

 
 
 

Languages