README.md

Needle mapper for OpenQA

This script find all json files in the specified directory tree which have the suitable tag. It is similar to using git grep but it only searches the needle json files and avoids anything else.

Usage

./needle_mapper.py <command> <arguments>

Commands

  • tag will find all files that share this tag or a similar one
  • file will show all tags in the selected (or similar) file

Arguments

  • --root enters the directory from which the script starts the search.
  • --name enters the tag or file name to search for

Example

./needle_mapper.py tag --root /home/openqa/needles --name ok_button_clicked

or

./needle_mapper.py file --root /home/openqa/needles --name firefox_needle.json