cancel
Showing results for 
Search instead for 
Did you mean: 

How to customize Test items via script

Highlighted
Contributor

How to customize Test items via script

 

Hello Everyone,

 

I have a question regarding log items. Actually, I would like to customize the Test items like a tree structure via script (but not like to add test items in GUI add perform test).

 

And I would like to also generate Log results like tree structure (hierarchy) is it possible to do it with Test Complete ? 

 

Did any one have suggestion regarding this please let me know that will be a great help to me 

 

Thank you 

Regards

SivaKarthik

 

10 REPLIES 10
Super Contributor

Re: How to customize Test items via script

I don't see an ability to add testitems runtime. But the log is a tree by design. You can customize it with Log.AppendFolder, etc..

Community Hero

Re: How to customize Test items via script

The project files are just XML, you could use the build in powershell XML parser to enable and disable test items prior to opening and running your project. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Community Hero

Re: How to customize Test items via script

> The project files are just XML, you could use the build in powershell XML parser to enable and disable test items prior to opening and running your project. 

 

But, as this is not officially documented, be ready to adopt your code for the new version of TestComplete.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Community Hero

Re: How to customize Test items via script

@AlexKaras - Is this something we know that is planned to change soon? We have setup a system to enable test items based on their corresponding Jira IDs' status, so we will definitely have some re-work to do if this changes. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Community Hero

Re: How to customize Test items via script

Hi Carson,

 

> Is this something we know that is planned to change soon?

For sure I don't know.

But:

a) As you know the internal structure of project file is (slightly) changed for almost every major TC version; and

b) Considering your exact case I do not expect significant changes and serious changes required for your code.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Contributor

Re: How to customize Test items via script

Thank you every one for your valuable suggestions, it got a bit helped me 

 

thank you all once again for the suggestions

 

regards

SivaKartheek Sreeram

Community Manager

Re: How to customize Test items via script

Hi @sivakarthik,

Do you mind sharing your solution with us?

I'm sure it will help other community members who may face a similar situation.

---------
Tanya Gorbunova
SmartBear Community Manager

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

Re: How to customize Test items via script

Haello Tanya,

 

I am still a bit working on on it. Once if it is done I will post here

 

Thanks and Regards

SivaKartheek Sreeram

Community Manager

Re: How to customize Test items via script

Sure! We will be waiting for your solution.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
Top Kudoed Authors