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.10KViews18likes5Commentsrun cucumber selenium tests in gitlab-ci
Hi I have a selenium cucumber project with some tests. The tests worked and the chromeDriver had launch when I run the -mvn clean compile test in my IDE. I created this .gitlab-ci.yml in my project's root: image: markhobson/maven-chrome:jdk-11 stages: - build - test variables: MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" cache: paths: - .m2/repository/ - target/ build: stage: build script: - mvn $MAVEN_OPTS clean package - mvn compile test: stage: test script: - mvn test When I run the pipeline, I face this error in the console: Unable to load browser: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '4.0.0-beta-1', revision: '9c03156c2b' System info: host: 'runner-fa6cab46-project-25183469-concurrent-0', ip: '172.17.0.4', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.78-coreos', java.version: '11.0.10' Driver info: org.openqa.selenium.chrome.ChromeDriver What can I do for running the tests?8.9KViews0likes16CommentsHow to pass parameters between steps in Cucumber with JS?
Hi guys, I have a small issue with Cucumber and I'm new to it, I have the scenarios below: Scenario: 005 I can checkout successfully when entering valid information at required fields When I enter first name into field First Name Scenario: 006.... And Order Information displays first name correctly I had entered value in the first scenario and I want to pass that value into the 2nd scenario but don't know how6.2KViews0likes1CommentBDD feature in Test Complete
Hi All, Recently I was going through Test Complete documentation and found this link ==> https://support.smartbear.com/articles/testcomplete/bdd-testing-with-testcomplete/ Have anybody tried this BDD feature from Test Complete? What are the advantage and limitations of this feature in Test Complete? Thanks, Palani1.5KViews0likes3CommentsUnable to invoke global hooks for cucumber java
I have a test project that is cucumber java based. I have 3 packages under src/test/java -> featureFiles, stepDefinitions, globalHooks. When I run my entire test suite via Gradle task or JUnit runner, it seems the hooks never gets invokes unless I move them into stepDefintions. Any advice on how this can be fixed? Hooks I'm using are "@BeforeAll,@Before,@Afterand@AfterAll"1.5KViews0likes0CommentsHiptest-publisher error No tests imported
Hello! I'm facing this problem while trying to push the results of the tests to cucumber studio. I'm using cucumber-java. The tests run and pass, but after the command : hiptest-publisher --config-file hiptest-publisher.conf --push target/surefire-reports/TEST-RunTests.xml --test-run-id 604247 --push-format junit this error is shown [v] No tests imported Possible causes for the lack of imported tests: * Did you run the following command before executing your tests? hiptest-publisher --config=hiptest-publisher.conf --test-run-id=345241 --without=actionwords * Did you specify the correct push format? Use push_format=<format> in your config file or option --push-format=<format> in the command line Available formats are: cucumber-json, junit, nunit, robot, tap This is my hiptest-publisher.conf : not_recursive = false split_scenarios = false with_folders = true keep_filenames = false keep_foldernames = false empty_folders = false leafless_export = false no_parent_folder_tags = false with_dataset_names = false language = cucumber output_directory = './features' framework = java site = https://studio.cucumber.io step_definitions_output_directory = './features/step_definitions' actionwords_output_directory = './features/step_definitions' overriden_templates = './templates' I tried the steps fromhttps://community.smartbear.com/t5/CucumberStudio/Does-CucumberStudio-integrates-with-Serenity-BDD/m-p/203124#M5 and https://community.smartbear.com/t5/CucumberStudio/Push-result-status-on-CucumberStudio/m-p/203123but the same error shows.1.4KViews0likes0CommentsComparing differences between CucumberStudio and Cucumber for JIRA
Hi, I'm currently looking at CucumberStudio and Cucumber for JIRA as potential tools to introduce to our teams and would like to know the following: 1) What are the functional differences between ‘CucumberStudio’ and ‘Cucumber for JIRA’? Is it simply the former is its own independent application while the latter is a jira plugin? 2) Do both maintain synchronisation between feature files <-> git or only one of them? how does it work exactly and are there any limitations? 3) What new issues types does ‘Cucumber for JIRA’ introduce into JIRA? Appreciate your assistance, thanks.1.3KViews0likes0CommentsHow to stop a scenario in scenario outlines when a step fail in cucumbe js?
In the scenario outline, I would like to skip steps when a step fails in a scenario and to continue on the following scenario. for example : Examples: |param 1| |scenario 1| |scenario 2| |scenario 3| If a step fails in scenario 1, I would like to continue directly to scenario 2 and not executing all the following steps in scenario 1 after the step fails. Thanks for the answers!1.3KViews0likes5CommentsJava+Cucumber SOAPUI testing generates incorrect report
Hi, Im executing SoapUI testsuite on Cucumber. Test sute has two test cases. One positive and other negative test case. When the feature file is executed to run the tet suite, cucumber generates incorrect report below 1 Scenarios (1 failed) 3 Steps (1 failed, 2 passed) It is reporting only for the failes test case but not for the passed. How do I make SoapUITestCaseRunner execute the sam scenario twice once for each test case. Any help is greatly aapreciated. Thanks, Ravi1.2KViews1like3CommentsHow to get extend report for scenarios which run parallel in a grid
Hi , Currently I am using extentreports 4.0.9 and able to get report after execution of a scenario/feature . But when I run these scenarios in a grid ( in my remote machine I am running these scenarios in grid for regression ) am not able to get theextent report . Is there any way to get the extend report for the scenarios running parallel in a grid . and also send automatic mail after every scenario execution ( this is also not happening in my case ) . Please guide me through this1.1KViews0likes0Comments