cancel
Showing results for 
Search instead for 
Did you mean: 

Event Handler - OnStartTest for tag expression

SOLVED
muthulakshmi
Occasional Contributor

Event Handler - OnStartTest for tag expression

Event Handler - OnStartTest for tag expression

 

As per the testcomplete documentation, while running tag-based execution, each functions that are tagged will be considered as a testcase. Hence My expectation was "OnStartTest" event would be triggered for each function that contains the same tag.

 

But the behaviour is "OnStartTest" is invoked only once (in the beginning of the tag).

 

Kindly help to understand if I'm missing anything else.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
TanyaYatskovska
Community Manager

Re: Event Handler - OnStartTest for tag expression

Hi @muthulakshmi,

 

As far as I understand, the OnStartTest event occurs once when TestComplete starts a test run.

The documentation says that the event can be fired for each test item. Perhaps, it makes sense to organize your tagged tests into test items. Take a look at Option 1 listed here.

 

 

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Limited time: Gain insights – and win prizes – with our event “Inside Zephyr”! Runs May 17-28

View solution in original post

1 REPLY 1
TanyaYatskovska
Community Manager

Re: Event Handler - OnStartTest for tag expression

Hi @muthulakshmi,

 

As far as I understand, the OnStartTest event occurs once when TestComplete starts a test run.

The documentation says that the event can be fired for each test item. Perhaps, it makes sense to organize your tagged tests into test items. Take a look at Option 1 listed here.

 

 

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Limited time: Gain insights – and win prizes – with our event “Inside Zephyr”! Runs May 17-28

View solution in original post

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