cancel
Showing results for 
Search instead for 
Did you mean: 

TestComplete: Distributed Testing using test script tags ?

SOLVED
Frequent Contributor

TestComplete: Distributed Testing using test script tags ?

Has anyone done any work in this area yet to establish a form of Distributed Testing to Slave machines using the new functionality of tagging scripts of the area they cover.

 

Exploring to create a setup for DevOps Cont. Testing using Distriubuted testing using tags to kick off script runs by the way they are tagged.

 

 

JamesK
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: TestComplete: Distributed Testing using test script tags ?

Hi @jkrolczy,

 

As far as I see, there us the Tag property in the Task and NetworkSuite objects. So, you can run tests by tag. Here are several articles to review:

https://support.smartbear.com/testcomplete/docs/keyword-testing/tags.html

https://support.smartbear.com/testcomplete/docs/scripting/run.html#run-by-tag-or-by-tag-expression

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

 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!

View solution in original post

5 REPLIES 5
Highlighted
Community Hero

Re: TestComplete: Distributed Testing using test script tags ?

Hrm....   I haven't done such work, but a couple of thoughts.

 

1) The vary structure of creating "Jobs" to run on slave machines means you are manually selecting what is to be run at the time you create the job.  So, it's almost redundant to use "tags" to achieve the result, especially since I don't believe the creation of a job is something that can be done in code.

 

2) Even if creating jobs is something that can be done in code, I don't recall whether or not "tags" are something that are accessible at Runtime.  That would also create a barrier in doing so as you would have no means of filtering out items based upon tag.


Robert Martin
[Community Expert Group]
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
Highlighted
Community Manager

Re: TestComplete: Distributed Testing using test script tags ?

Hi @jkrolczy , could you provide more details about your scenario? What is it exacly that you are trying to achieve?

That should make it easier to suggest something. Thanks.


Sonya Mihaljova
Community and Education Specialist

 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!
Highlighted
Community Manager

Re: TestComplete: Distributed Testing using test script tags ?

Hi @jkrolczy,

 

As far as I see, there us the Tag property in the Task and NetworkSuite objects. So, you can run tests by tag. Here are several articles to review:

https://support.smartbear.com/testcomplete/docs/keyword-testing/tags.html

https://support.smartbear.com/testcomplete/docs/scripting/run.html#run-by-tag-or-by-tag-expression

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

 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!

View solution in original post

Highlighted
Community Hero

Re: TestComplete: Distributed Testing using test script tags ?

@TanyaGorbunova I learned something new.  Very interesting.  Thanks!


Robert Martin
[Community Expert Group]
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
Highlighted
Frequent Contributor

Re: TestComplete: Distributed Testing using test script tags ?

Thanks for the articale links:

 

Per Team City Jobs I use, and a way to I haveTestComplete know what env. I want my scripts to run against.

  i.e.  QA, STAGING, PROD 

I use the Tag parameter property in the Task and NetworkSuite objects as that control.

 

I was trying to see if there was another way to use the Tagging of Scripts to break the test suite run into the areas of functionality by how the tagging is done per test script.

 

I will go ahead and tag the scripts for having those set for future use.

 

What I may do now here is further tweak the way I am using this Tag properity and include additional info along with it.

i.e.    QA_MainMenu,  STAGING_ViewEdit, QA_Printing, QA_LoginLogout

 

Then on my OnStartTest event, I can parse and set my Global vars so when the Jobs\Tasks script is hit it would now know the test environment and the area of functionality to test.  I would then just need to add more into the Tasks scripts, used by my Slaves, to now recognize not just the test env but now also the area of functionality to test against or default back to running the complete package of scripts originally set for the Slaves.

 

All of everyone's comments is clearing up my approach here for what I need to do.

 

This is all prep work to be able to run continuous testing on specific functional areas of a app per Dev changes checked in and avoiding wasting script runtine on areas not affected by Dev changes.

DevOps Cont. testing per Dev checkin\build\deploy\test.

 

Thanks All

JamesK