Ask a Question

Test Item

SOLVED
K_Sathish_Kumar
Contributor

Test Item

Hi Team,

 

I am trying to Check or Uncheck the Project Test Item using Code.

Can any one tell me ow to do it.

Regards,
Sathish Kumar K
1 ACCEPTED SOLUTION

Accepted Solutions
sonya_m
Community Manager

Re: Test Item

Hi @K_Sathish_Kumar , TestComplete allows checking if a test item is enabled and, therefore, executed when the project is run. Read more about this property here.

 

tristaanogre is correct – there's no way to change this option programmatically. If you could let us know what you are trying to achieve, we might provide you with another approach.


Sonya Mihaljova
Community and Education Specialist

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

View solution in original post

2 REPLIES 2
tristaanogre
Community Hero

Re: Test Item

You can't.  A Test Item is what determines whether or not something is running.  You can't "check or uncheck" it as part of code because it is already potentially running.

 

May I ask what you're trying to achieve?  Perhaps there's a different way.


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
sonya_m
Community Manager

Re: Test Item

Hi @K_Sathish_Kumar , TestComplete allows checking if a test item is enabled and, therefore, executed when the project is run. Read more about this property here.

 

tristaanogre is correct – there's no way to change this option programmatically. If you could let us know what you are trying to achieve, we might provide you with another approach.


Sonya Mihaljova
Community and Education Specialist

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

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: