Ask a Question

Regarding tags usage in command line

SOLVED
veerasureshk
New 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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
mattb
Staff

Re: Regarding tags usage in command line

Hi,

I would use another tag and use the andor and not 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

View solution in original post

1 REPLY 1
mattb
Staff

Re: Regarding tags usage in command line

Hi,

I would use another tag and use the andor and not 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

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: