konveyor / tackle-test-generator-cli

Apache License 2.0
58 stars 34 forks source link

Add context analysis to label generation for UI-level tests #273

Closed divtosz closed 2 years ago

divtosz commented 2 years ago

Added context analysis

Description: I added context analysis to the previous heuristic method to go up the DOM tree if a clickable element itself doesn't contain any ranked attributes. I also added KeyBERT and a simple action word in case of labels produced without verbs.

Type of Change

How Has This Been Tested?

I have modified the previous test class to account for the new functionality. It can be run using the command nosetests test/ui/heuristic_labels_test

Checklist