veerasureshk
4 years agoOccasional Contributor
Regarding tags usage in command line
Hi,
In python script, I have couple of functions (ex: 5 functions) with tag @smoke .can you please let me know how to execute particular function/functions (ex: need to execute only 2/3 out of 5 and need to ignore remaining 3/2 functions)
Example:
@smoke
def one():
pass
@smoke
def two():
pass
@smoke
def three():
pass
@smoke
def four():
pass
@smoke
def five():
pass
If I use command like /tags:"@smoke" ,all 5 functions will execute.
Thanks in advance.
Hi,
I would use another tag and use theand
,or
andnot
operations, for example:
@tag1 or @tag2
@tag1 and not @tag3
not @tag5
or
@tag1 and (@tag2 or @tag3)
(@tag1 or not @tag2) and (not @tag3 or @tag4)
https://support.smartbear.com/testcomplete/docs/bdd/tags.html