Contributions
Re: get the text from a VCL TStatusBar
Maybe it will help someone searching for the solution like I was. Accessing the text of e.g. the third Panel of a TStatusBar is NOT like you would expect: Aliases.MyApp.MyForm.StatusBar1.Panels[2].Text But instead: Aliases.MyApp.MyForm.StatusBar1.wText[2] as it can be seen for example in the code example of the documentation for WaitProperty. Or alternatively: Aliases.MyApp.MyForm.StatusBar1.Panels.Items[2].Text1.2KViews0likes0CommentsRe: Sharing Project Items
Hello! Let me jump in. This does *not* seem to work. I am still not able to share the "Tested apps" even I am pretty sure, I followed the steps in the "Sharing project items..." article. 1. Start TestComplete. 2. File -> New -> New Project 3. Create the new project. 4. File -> New -> New Project 5. Create an other new project. 7. Remove the "Tested apps" item of the second project. 8. Right click on the second project: Add -> Existing item. 9. Choose the "TestedApps.tcTAs" of the first project. => TestComplete throws the following error: Unable to add an element from the 'C:\MyTestProjects\TestProject1\TestProject1\TestedApps\TestedApps.tcTAs' file, because this element or its child element already exists in the project suite, or it is a copy of an existing element. You may also try it, using two different project suites for the projects in the first place. When you then try to combine both projects in one project suite by adding them via "Add" -> "Existing item", TestComplete throws the same error, when you try to add the second project. Tested this with TestComplete 12.31.1833. So it seems, it is not possbile to share the tested app between two projects in the same project suite. I found another thread where a community member also mentions, it is not possible: https://community.smartbear.com/t5/TestComplete-Functional-Web/reorganizing-my-project-completely-delete-tested-apps/td-p/74126 So a workaorund may be to populate the "Tested apps" during runtime of your scripts, like mentioned here: https://community.smartbear.com/t5/TestComplete-Functional-Web/Tested-Apps-for-Project-Suite/td-p/78207 However this also affects the project file itself. Even if you let your test clean up the "Tested Apps" as they were before the test started, you have unsaved changes in your project file afterwards. I didn't test how TestExecutes behaves then. But this is probably also not good for keeping your test files in a source control system. I would appreciate if the feature request for sharing the name mappings is implemented, it would also allow sharing the tested apps. See: https://community.smartbear.com/t5/TestComplete-Feature-Requests/Ability-to-share-a-Name-Mapping-file/idi-p/975451.9KViews0likes3CommentsCreate new test run via REST-API / Upload test results when a TC run was not started by QAComplete
Hello! We are currently evaluating integrating our already existing automated TestComplete test runs into QAComplete. The problem is, that our TestComplete test runs will not be launched using QAComplete because a schedule or a manual start is not feasible for us. Instead we already integrated the TestComplete test runs into our continous integration build system. Whenever a new build is created, the CI server launches the corresponding TestComplete projects to test these new builds. But of course we also want to see these test runs and its results and log files in the corresponding test item in QAComplete in order to have all the results of either manual or automatic tests aggregated in QAComplete. I already read the article about how to write test agents (https://support.smartbear.com/viewarticle/90108/) and understood that it is possible to set the status of a test run or upload the test logs to a test run via REST-API. However all those methods require a test run id. As far as I understood, a test run id is created by QAComplete whenever a schedule or a user wants to start the tests. But because our test suites are not launched via QAComplete, there are no pending test runs and therefore also no test run ids. So I am looking for a REST-API call to tell QAComplete: My test agent is now starting a new test run. Please create one in your database and return its id so that the test agent can use this id in the subsequent calls for setting the result and uploading the logs. So, is there such a method in the REST-API or even SOAP-API? Or how can I alternatively post back TestComplete test runs/results into QAComplete, when they are launched by external mechanisms and not QAComplete itself? Thanks in advance!Solved2KViews1like1Comment