TestComplete and Zephyr Enterprise
Hi everyone, This post in mainly for those of you already using both TestComplete and Zephyr Enterprise, or looking into integrating one with the other via the zbot. I'll try to make this discussion have as little gaps in thought as possible, such that I'm not working off of the assumption that everyone is familiar with how the integration works. To begin with, Zephyr Enterprise (ZE) can trigger TestComplete (TC) tests by triggering command line arguments using the zbot (the secure job agent and results parser). The zbot sits on the target location, and when commanded (by ZE) will find the described invocation script path, and use the directed batch file or shell script to launch the automated tests (in our case, the TC tests). It then waits for the execution completion, and looks into another predefined directory for the results file generated by these TC tests in a junit xml format. Attached is what the configuration looks like from the ZE side: Within the dropdown panel that describes the automation framework (where we have selected TestComplete) what this really describes is the junit xml file parser template that the zbot will use to go through our results file to upload our automated TC test results back to ZE. (https://zephyrdocs.atlassian.net/wiki/spaces/ZE/pages/1558445554/Parser+Templates) This means that the zbot will look for certain tags and elements within our junit xml file generated by TestComplete to upload the results back to our test management solution. Typically, a junit xml file generated by TestComplete looks like this: Given the tags, this means that we cannot upload additional information such as attachment files since there is no tags that describe the file location that the supporting docs may reside (i.e the mht files). Now if we wanted to, we could go back in and edit these junit xml files and rerun the tests such that the zbot parses our results (https://zephyrdocs.atlassian.net/wiki/spaces/ZE/pages/1558445158/Vortex+Job+Execution+Events) but that would defeat the purpose of being able to launch our automated TC tests, no? So what we can do is write an additional script, where we have our favorite language of choice run through our junit xml files such that it appends that information for us automatically. This is by no means the right way to do this, just one of the ways! Couple of ways to improve this would be to refactor this script such that it can take additional inputs such as file location (hard coded for now) and also make the attachment subelement recursive so that we can add in multiple attachments. But for now this will do... Now that we have our script that will modify our junit xml results file for us, all we need to do is append a line to our original batch file that triggers our TC job, such that it modifies the generated xml file for us! So the batch file would something like this: where the highlighted portion is just an additional call to the script we wrote above. As you can see the format is familiar for those who have been using command line arguments for TC <TC executable location> <TC pjs. file you want to run> <any additional arugments i.e /r /p /ExportSummary to generate the xml file> <call to our python exe. to run our script> <our python script to append to our xml file> <xml file location ^^> Now our original xml file has been modified to look like this: So now whenever we trigger our TC jobs from within ZE, it will not only carry over the traditional default info such as test case name, run time, failure messages, and execution status, but also the supporting attachment files that we want! More curious users may want to browse our ZE docs to learn how to map it to existing requirements, or add in further information (https://zephyrdocs.atlassian.net/wiki/spaces/ZE/pages/1558445158/Vortex+Job+Execution+Events) On an additional note, we really only went over one portion of the automation integration when it comes to TC and ZE, but we can modify the steps used within this post to apply to the jobs we are running within our CI frameworks as well by adding in an additional build step that will perform the same type of junit xml results file modification we see here. -------------------- How is everyone else utilizing TC with ZE? What additional information do you think could be useful in terms of test management when it comes to your automation jobs? Having supporting attachments, and maybe even automatic code/test coverage is something that can be created with this method, but I'm curious to see what you think could be helpful. Anyhow, I hope everyone is staying safe and sane!2.3KViews5likes0CommentsClickitem not working since update to 15.51.4
Since upgrading test complete to 15.51.4 the clickitem action to select options from drop downs is no longer working correctly and is selecting a different value to the one specified in the test. To check its not just how I have created the action I have also recorded the steps and in the test it shows the correct value that I selected but then when you run it you get the tool selecting the wrong option again so testcomplete is obviously having issues with the indexing for the drop downs. To make sure its not our site I have also tried other sites and get the same problem. Has anyone experienced the same issue and know when its likely to be resolved? I raised a support ticket 7 days ago and have had no response at all!!1.2KViews3likes12CommentsIE's planned deprecation will not allow us to open mht files
TestComplete bug reports (.mht) are currently readable in Internet Explorer. This is the default file format used by TestComplete. Every time I view one of these reports in IE, it says that it will be removed in June and that it is recommended to use Edge. Only Edge doesn't open .mht files. Will Smartbear have a function to update TestComplete to another identical format? Although I have found other complex solutions to open mht files: - Install the *file viewer 4* tool: https://www.microsoft.com/store/productId/9NMSDKXC9R3F - Enable ie mode in Ms Edge: I don't really agree with the solution proposed here: https://community.smartbear.com/t5/TestComplete-Questions/How-to-open-MHT-files-not-in-Internet-Explorer/m-p/220489#M60481 Indeed, in a azure devops pipeline, the report available to dowload is the mht file and we can't choose another format... to complete my post, this doc speak about IE https://support.smartbear.com/testcomplete/docs/testing-with/log/viewing/in-web-browsers.html thank youSolved2KViews2likes4CommentsThe current row position is already beyond the table
Hi all, im ecountering a very weird error when im running my execution plan. I have a test that will return this error : The current row position is already beyond the table The error is returned at the very end of my keyword test and the last script executed seems to have run successfully. I have also added a log to ensure that it is the case and that no errors occurred during the script. If i run the test alone it works fine and without any errors. This occurs only if i run my whole execution plan. The next test also works fine. Not too sure what could be the cause of this error... 😕Solved3.8KViews1like8CommentsTest Fails When Running with Tag: Double Parameter Default Issue
Hey, fellow community, I'm facing an intriguing issue with one of my tests, and I was hoping to get some insights from you all. Here's the problem: I have a test that includes an optional double parameter, and its default value is set to 10000. When I manually run the test, everything works perfectly, and the default value of 10000 is used as expected. However, the trouble starts when I try to run the test using the tag. I use the right-click option on the project and run the test with the tag '@tag'. Surprisingly, the test fails, and upon further investigation, I noticed that the value used for the double parameter is 0 instead of my intended default value of 10000. I've already double-checked the tag setup and made sure everything looks correct. It's puzzling why the default value is being ignored when using the tag, leading to the failure. Has anyone encountered a similar issue before or have any ideas about what might be causing this discrepancy? I'd greatly appreciate any suggestions, tips, or experiences you can share to help me troubleshoot this problem and get my test running successfully with the tag. Thank you all in advance for your support and insights!Solved6.7KViews1like17CommentsIframes
Hi team, I have a video play button in a web page and want to verify if he hit that button video is playing or not. Here that play button comes under iframes so i can't able to switch page variable to iframes. Can any one help me out from this? Is there any method available to switch from page to iframes like in a selenium256Views1like1CommentIssue with Visible/VisibleOnScreen detection
I have a script where I want to assert an object is no longer visible on screen after an action. Both of these scripts pass when the object is humanly visible on screen: aqObject.CheckProperty(Aliases.browser.pageDashboard.headerRelatedMessages, "Visible", cmpEqual, true); aqObject.CheckProperty(Aliases.browser.pageDashboard.headerRelatedMessages, "VisibleOnScreen", cmpEqual, true); When the object becomes humanly invisible on the the screen, these scripts fail: aqObject.CheckProperty(Aliases.browser.pageDashboard.headerRelatedMessages, "Visible", cmpEqual, false); aqObject.CheckProperty(Aliases.browser.pageDashboard.headerRelatedMessages, "VisibleOnScreen", cmpEqual, false); This seems like it would be a very common use case so I assume I am just doing something wrong but not sure what..Solved368Views1like3Comments