Forum Discussion
Yes, you can specify this in your Execution Plan. Create a test item and drag/drop your tests you want to run, then call them as in the snippet below.
The following runs the ProjectTestItem3 test item that is a child item of the ProjectTestItem1 test item of the MyProj project:
testcompletetest launchType: 'lcItem', project: 'MyProj', suite: 'Projects\\JenkinsTests.pjs', test: 'ProjectTestItem1|ProjectTestItem3'
More examples here :
Hope this helps,
Mike.
mikef, thanks for your answer, but this doesn't solve my problem.
Look for the screenshot that I put bellow. What I need is, by the jenkins file, run only the TestItems marked on the figure, supposing that the TestItem 'Grupos Empresariais' is the new test which a tester is requesting to integrate to the test branch.
It's a continuos integration process, so, I can't keep editing the test execution plan for each new test that we push.
- mikef4 years agoStaff
I don't believe it is possible to run only new tests from each PR, the interface is not dynamic in that way. You can specify tests items and the order (or group) to run in, but there is no dynamic operator to run only a new test like this.
If there is a way for Jenkins to derive new test names from the PR, you could possibly pass them as variables in your pipeline script.
- Irvingoliveira4 years agoOccasional Contributor
Yes, the part of discovering what tests are new I already resolved. What I need is to run only this test together with these others that I showed in the last sreenshot. My doubt is if it's possible to set as parameter in the jenkinsfile for the testcomplete more than one testitem to run.
Related Content
- 4 years ago
- 6 years ago
- 11 years ago
Recent Discussions
- 54 minutes ago
- 19 hours ago
- 23 hours ago