sdruker
11 years agoContributor
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
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 Sivan,
Maybe http://support.smartbear.com/viewarticle/54655/ or http://support.smartbear.com/viewarticle/54654/ will help as well...