cancel
Showing results for 
Search instead for 
Did you mean: 

@tag in SessionCreator

SOLVED
SK2020
Occasional Contributor

@tag in SessionCreator

Hi,

 

I have 2 different questions.

 

1.)  When I want to run multiple KeywordTests in command line with SessionCreator, "and" operator does not work. "or", "or not", "and not" are working fine. But "and" does not work. ( /tags:"@Login and @Logout" ). I have try in different ways but still did not work. How can I run multiple test with SessionCreator? Any suggestion?  

 

2.) When I use same tag name for multiple tests and run this tag in command line, how can I arrange the order of the tests?

2 ACCEPTED SOLUTIONS

Accepted Solutions
hkim5
Staff

Re: @tag in SessionCreator

the "AND, NOT, OR" are boolean expressions, so I'm guessing that in your case, you dont have test cases that have BOTH the login and logout tags.

Best,
Justin Kim

View solution in original post

AlexKaras
Community Hero

Re: @tag in SessionCreator

Hi,

 

Execution order of tests started by tag is not guaranteed. Organize tests in required order using Test Items and start execution by test item if execution order matters.

 

To be on the safe side:

a) Can you confirm that there is at least one test that has both @Login and @Logout tags assigned to it? Can you provide a screenshot?

b) Can you provide a screenshot of the output provided by SessionCreator when it fails to start test by tag?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

5 REPLIES 5
hkim5
Staff

Re: @tag in SessionCreator

the "AND, NOT, OR" are boolean expressions, so I'm guessing that in your case, you dont have test cases that have BOTH the login and logout tags.

Best,
Justin Kim

View solution in original post

SK2020
Occasional Contributor

Re: @tag in SessionCreator

Thank you for your answer.

I try to run the tags which I have on my project. When I run them separately with the single tag name, tests run fine. But with the "and" operation does not work.  

When I run "@Login and @Logout", It perceives as if it is a single tag and says no such tag was found.

AlexKaras
Community Hero

Re: @tag in SessionCreator

Hi,

 

Execution order of tests started by tag is not guaranteed. Organize tests in required order using Test Items and start execution by test item if execution order matters.

 

To be on the safe side:

a) Can you confirm that there is at least one test that has both @Login and @Logout tags assigned to it? Can you provide a screenshot?

b) Can you provide a screenshot of the output provided by SessionCreator when it fails to start test by tag?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

sonya_m
Community Manager

Re: @tag in SessionCreator

Thanks, Community!

 

Hi @SK2020 ! Did you find the answer to your question? Otherwise, please provide the info Alex is requesting.

 

 


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
SK2020
Occasional Contributor

Re: @tag in SessionCreator

Thank you for the help I solved the issue.

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors