Forum Discussion

sdruker's avatar
sdruker
Contributor
11 years ago

Is it possible to organize test items not manually?

Hi,

I'm looking for a way to control my test runs automatically.

so far I found 2 solutions which are not satisfy me.



1. Edit the Project Xml file parameters outside testcomplete to check\uncheck the tests in the "Organize tests" page:



This solution is complicated and also not possible to implement if I run the project in share mode because it affects the project for pther machines use.



2. I created a script unit with tests sets for example:



sub main

Call flow1()

Call flow2()



end sub



sub flow1()

..

Call keywordtests."TestNAme".Run()

end sub



sub flow2()

...

Call keywordtests."TestNAme".Run()

end sub



This soultions is not good enough for me, because The log is not separted to tests ,it shows One big list of steps, and If I call a function in the begining of each test to create folders inside the log  to make it organized better , I can't get the keyword test name because if I run the tests in this way (from a script) the tests are not considered as testitems, and  I can't get the required information.



While looking for a solution I found the artical "working with testcomplete via com overview"



http://support.smartbear.com/viewarticle/55167/



I see that when using it via com, there is an "integration" object which provide solution for the actions that I'm looking for. I don't know how to use com, and I want to control the tests from inside test complete and not from outside.



Is it possible to use this "integration " object from inside testcomplete?



Thanks 

Sivan
  • Hi,



    Thank you for your reply!

    I read the articles but again, it's running from outside Testcomplete.

    Am I missing something?



    It doesn't make sense that Testcomplete provides functionality which is available only from third part applications (like the integration object) and form inside Testcomplete these action are not possible
  • Alternatively If someone knows If the actions below are possible and can explain how to do it,  it would help:





    1.  Treat a test that is called from a script as a testitem

    2. Something like the command "this" in programming that allows to know the current test name not only when running as test items. for example if I run keywordtests which calls another keywordtest inside, the inner keywordtest also return it's name as result of project.testitems.current.name.  or generally somehow get the current test (keyword\script) name





    Thanks