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.10KViews18likes5CommentsBDD - 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.9KViews4likes3CommentsThe 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.5KViews2likes5CommentsFilter 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