cancel
Showing results for 
Search instead for 
Did you mean: 

Get tags programmatically

SOLVED
Highlighted
New Contributor

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Get tags programmatically

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?


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

3 REPLIES 3
Highlighted
Community Leader

Re: Get tags programmatically

By tags do you mean test item ?

Not sure of what your are talking about.

Un sourire et ça repart

Highlighted
New Contributor

Re: Get tags programmatically

Tags added to keyword tests

Highlighted
Community Hero

Re: Get tags programmatically

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?


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors