Contributions
Re: Add attributes to Test Items to make it possible to execute Test Items by attributes
This idea is very similar tohttps://community.smartbear.com/t5/TestComplete-Feature-Requests/select-run-test-by-test-item-using-command-line/idc-p/127770#M928 (on which I submitted a suggestion on how to fix it temporarly)5.7KViews0likes0CommentsRe: select/run test by test item using command line
Hi, We solved this issue by using the following Gradle/Groovy-based code, that updates the TC12 project to enable only the wanted test items to run: def patchMdsFile(Project project, File mdsFile) { def testItemToEnable = project.properties.testItem if (!testItemToEnable) throw new GradleException('Please set the `testItem` parameter (string containing the name of the test item to enable).') project.logger.lifecycle("Enabling test item ${testItemToEnable} in ${mdsFile}...") def mdsRoot = new XmlParser(false, false, true).parse(mdsFile) def projectVersion = VersionNumber.parse(mdsRoot.@version.toString()) project.logger.info("Detected project version ${projectVersion}") if (projectVersion < VersionNumber.parse('12.0.0')) throw new GradleException("The project file uses an unsupported TestComplete version (${projectVersion}). Please upgrade your project to version 12 or above.") mdsRoot.testItems.children.testItem.each { def isEnabled = it.@name == testItemToEnable project.logger.info("Test item '${it.@name}' enabled flag: ${isEnabled}") it.@enabled = isEnabled } mdsFile.write(XmlUtil.serialize(mdsRoot)) }15KViews0likes0CommentsRe: Enhance TestComplete Jenkins plugin
Hello, Are there any updates related to the last point (the 3rd), with regards to test running progress? It's really important to be able to quickly gauge the progress so far, especially seeing if a test froze. Ideally, we should have this be available as a TestComplete command line parameter that will output the data. Alternatively a hack/workaround could be implemented to monitor log files creations and report that back in the jenkins build log. Thanks!2.3KViews0likes0CommentsRe: TestComplete with Jenkins
The testcomplete plugin automatically tries to detect TC installations on the slave, so you don't need to configure anything special. Just ensure that in your job, you have a testcomplete build step, specifying the proper path to pjs. As a debugging step, you can create just a simple testcase that only logs some dummy text in the log.4.5KViews0likes0Comments