Forum Discussion

jlarsen's avatar
jlarsen
New Contributor
5 years ago

Get tags programmatically

Is there a way to extract all used tags from a project from outside the test complete application?

I want to build a stand alone application that a user can checkbox desired tags to run and will build the command line execution.

  • Tags are embedded in script code and are tagged into the XML of a keyword test.  So, you'd have to parse the text of both files to find tags, probably via some sort of Regular Expression, and extract them that way.

    Personally... that seems a bit of a harder work than necessary.  How about, instead of that, have the developers who add the tags, as a part of their development, insert a record into a data table that this other application that you're writing/working with can read to display available tags?

  • BenoitB's avatar
    BenoitB
    Community Hero

    By tags do you mean test item ?

    Not sure of what your are talking about.

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        Tags are embedded in script code and are tagged into the XML of a keyword test.  So, you'd have to parse the text of both files to find tags, probably via some sort of Regular Expression, and extract them that way.

        Personally... that seems a bit of a harder work than necessary.  How about, instead of that, have the developers who add the tags, as a part of their development, insert a record into a data table that this other application that you're writing/working with can read to display available tags?