Forum Discussion
The problem is in the definition of a "test". Is it a script function in a code unit? Is it a Keyword test? Is it a test item in the Project node? What is a "test" in your particular structure? Everyone who uses TestComplete does not use the same definition of what constitutes a test. In our case, we use KeywordTests where each test case we want to execute is represented by a KeywordTest. However, we have other KeywordTests that are mini-tests that we use as commonly executed tasks (logging into the application, executing "clean-up" code, etc). So, to say "Run all tests" and have it run all the KeywordTests would not be what we desire. Same for Script code.
The vehicle, as I understand it, for Jenkins to execute tests has to do with the command line telling it to run a particular project and having that project have "Test Items" enabled/disabled to indicate what tests to run. I could be wrong.. I don't use Jenkins... but that's really the key. However you are determining what is a "test" is how you need to command Jenkins. So, it sounds like you have some sort of "enable/disable" functionality which sounds like Test Items. So, you can have Jenkins run each test item individually... but then you'd have to have a command line call for each one. Ultimately, it sounds like you just execute the project and that will run all "enabled" test items.
so... the short answer... no... You need to configure your test automation to have what you want to run configured before the Jenkins task executes.
- mshah7 years agoNew Contributor
Yes, When I said, tests, I meant "Test Items" in TestComplete Project.
Something like this.
I have a ProjectSuite with name "PS1"
Under the PS1, I have "Project1"
When I go to properties page of "Project1", I see "Test Items" and click on it
This is how my "Test Items" looks like
Test Item 1 to open the application
Test Item 2 to do some initial setup
Test Item 3 is a group of items (Enabled)
|- Child Test Item 1 (My Test that is enabled)
|- Child Test Item 2 (My Test that is disabled)
|- Child Test Item 1 (My Test that is disabled)
Test Item 4 is a group of items (Disabled)
|- Child Test Item 1 (My Test that is disabled)
|- Child Test Item 2 (My Test that is enabled)
|- Child Test Item 1 (My Test that is disabled)
Test Item 5 to clean up
Test Item 6 to close the app
so, on Jenkins, I want all Test Items (tests) to execute, even though, few are disabled.