BDD integration in TestComplete
I like the BDD principles and was investigating it's potential application combined with TestComplete. Read this, this, thisand this article on it. Personally I have come to the conclusion that BDD has definitely potential but the frameworks currently investigated (Lettuce, Cucumber) require way to much fragile configuration (settings project folders name, test names, etc, etc) to be able to use this effectively in Contiuous Delivery / Continuous Integration alike approaches. In practise you end up maintaining the configuration files, editing connection / integration scripts to keep 'alive' the integration between Cucumber/Lettuce and TestComplete. Therefore, I would go for a BDD framework within TestComplete (or another product from SmartBear) which can guaranty integrity of BDD features/specifications/test-steps on the one hand, and the actual tests/validations (wheter these are scripts or Keyword tests) on the other hand. I would like to see this implemented in either TestComplete itself (sort of like currently Manual Testing (and the conversion to automated tests) is supported (but this is going to be depreciated unfortunately but that's another subject), or in a seperate tool which would then be required to be very well integrated with TC (such as like sharing variables, parameters, etc). When supported in TestComplete itself it could be placed in "advanced node" in a project, for example. And this module would be able to read (import) .feature files like the GIVEN/WHEN/THEN , Gherkin language support. After importing the test/QA engineer would do his/her work to 'knot' the features and the tests together in the framework. By keeping this all in one tool would prevent ending up in constantly updating settings like updating configuration files, (re)define directories if projects are moved, etc. That's exactly what's NOT needed in CI/CD environments.10KViews18likes5CommentsHow to add test execution result with statuses of steps from API
Hello, i am working to integrate my c# and MSTest solution to cucumber studio, we are using BDD format scenarios/tests and need to add test execution results with status for each step, but as you see from the screenshot, there is no such support for it... can you help me with that?Solved6.8KViews0likes8CommentsThe Secrets of Successful Collaboration - BDD
Hi our BDD TestComplete users, I want to share with you a great webinar presented by Seb Rose,developer, trainer, coach and author of "Discovery - Explore behavior using examples". Seb reveals the secrets of successful collaboration in BDD. >> Request the webinar here What do you think about this approach? How does the testing process set up in your organization at the moment?Solved3.5KViews2likes5CommentsDetermine when no liscense is available using COM (python)
I am using a modified version of the script I found here to run TestComplete and TestExecute, related code follows: from win32com.client import Dispatch import pywintypes ... try: self.test_complete = Dispatch("TestExecute.TestExecuteApplication") except pywintypes.com_error: try: self.test_complete = Dispatch("TestComplete.TestCompleteApplication") except pywintypes.com_error: sys.exit("TestComplete/TestExecute not found") However I have an issue when there are no avaiable licenses. After calling Dispatch a dialog pops up (image below) and the Dispatch call blocks. This breaks all the automation I've been trying to do with TC/TE, and I'm looking for a way to determine before calling the Dispatch that no liscenses are avaiable. ThanksSolved2.9KViews0likes7CommentsBDD Step Reuse
Hi, Anyone have any ideas or suggestions for reusing 2 BDD steps that differ only in their keyword? Given I log in as John Smith When I log in as John Smith Would really love this to be either a single step (can I wildcard the Given or When keywords?!) or two steps but one step calls the other: Given ("I log in as John Smith", function () { // login code here }); When ("I log in as John Smith", function () { // call the Given here, as it already has the necessary code implemented }); Some BDD libraries also offer a generic 'Step' keyword which matches any step type, but I don't believe TestComplete supports it. Any help/suggestions greatly appreciated! Trying our best to prevent massive code bloat.Solved2.8KViews0likes5CommentsBDD - Enhance step definition generation
For Cucumber steps, TestComplete doesn't generate step definition with Keyword And. It only generates steps with Given, When, & Then Keywords. This causes code duplicity. Module 1: Scenario: Check and Open app Given I have app installed on my machine And I install DB on SQL Server for "IM" And I should open app with "IM" database as "default" user Module2: Scenario: Prerequisite for app Given I have app installed on my machine And I install DB on SQL Server for "CF" Then I install Application Server on my machine "CF" with "WorkflowFeature" And I should open app with "CF" database as "default" user In the above 2 steps are the same And I should open app with "IM" database as "default" user And I should open app with "CF" database as "default" user and should have only one step definition. But TestComplete generates 2 steps definitions, one with Given And other with Then. Cucumber, in general, doesn't take keywords in consideration while doing the step matching but in TestComplete it does. This is causing the problem and creating a lot of duplicate code. We are looking for solution where TestComplete uses Cucumbers basic feature and do not consider Keywords while doing step matching and generates step definitions with all the keywords.We are looking for solution where TestComplete uses Cucumbers basic feature and do not consider Keywords while doing step matching and generates step definitions with all the keywords.1.9KViews4likes3CommentsTestComplete Best Practices
Hi folks, I was wondering if any of you have Best Practices that you follow for TestComplete and testing in general. Such as the Hierarchy or Logical Grouping of your folders, (Project_Suite > Project > Sub Project etc), and Regression testing, Name Mapping, Scripting, Keyword Tests, DDT, BDD, Version Control (SVN, Git) and anything else you might have created over time for Best Practices. We're basically creating a QA/QC dept. from the ground up and are looking for the voices of experience...and reason. Thank you in advance for all of your help.Solved1.8KViews0likes2CommentsFilter on tag of scenario outline example
Hello guys, A (hopefully) quick question for you: I am trying to use the BDDHooks file to print the time needed for running 1 scenario into an excel file. This is all working perfectly but the problem is I am using a couple of scenario outlines with different examples and I split the examples into different blocks to all give them their own tag (@smoke and@happyUnhappy eg). Now my goal is to only print the timing of the one example with the tag '@smoke' but I cannot seem to find a way to filter by example tag. I know there's this pagehttps://support.smartbear.com/testcomplete/docs/bdd/tags.htmlwhich explains how to get all tags of a certain feature or scenario but there's none to get the tags from a scenario outline. I only seem to be able to retrieve the tags for the entire outline and not for 1 example. eg; I only need to save the time for the example with@smoke on top: @smoke Examples: |a|b|c| |1|2|3| @happyUnhappe Examples: |d|e|f| |4|5|6| I hope you guys understand and you can help me in my search 🙂 Thanks!Solved1.8KViews1like3Comments