Does CucumberStudio integrates with Serenity-BDD?
The answer is "Yes, it does!" Actuallygiven that feature filescould begeneratedthroughSerenity-BDD, it integrates withCucumberStudio. At this time, the JSON report format generatedviaSerenity-BDDis not supported byCucumberStudio.Soyou can only push the XML report file(s). To do it,you should overridehiptest-publisher templates in order to transpose the UIDs in your .XML test results file(s) without frictions. If for example, you get this output after pushing your test results file: [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 To solve this issue, you should overridehiptest-publishertemplatesby following these steps: 1. Updatethehiptest-publisherconfig file parameters by adding this: overriden_templates = './templates' 2. Then create directories from your project locally to get this path: ./templates/gherkin /my_overridden_template.hbs 3.Copy and paste the content of_scenario.hbstemplateand integrate it in the right directory like this: ./templates/gherkin/_scenario.hbs 4.Copy and paste the content ofdataset.hbstemplateand integrate it in the right directory like this: ./templates/gherkin/dataset.hbs 5. Change them in order toremove the extra colon afteruid. This way will allowthe reflection of UIDs in the XML report file(s), for both templates here:_scenario.hbsanddataset.hbs 6. Hereis aquickguide for handlebars andCucumberStudiopublisher:https://github.com/hiptest/hiptest-publisher/blob/master/docs/handlebars.md Hope this helps 😃1.8KViews1like0CommentsPush result status on CucumberStudio
Hi folks! Some CucumberStudiousers executethehiptest-publishercommand linetopush the generated testresults file(s) toCucumberStudiotest run and itdoesn’twork,sono tests are imported inCucumberStudioandthe statuses are not updated. In general, the problem is caused by the missing of UIDs in the test results of the file(s). Let’s summarize together thehandling! Fromyour test run,clickon "Automate" option: In the openmodal, you'll see thereare 3suggested command lines. The first oneallowsthehiptest-publisherinstallationthrough Ruby on your machine or CI/CD, the second one is to update your tests and fetch UIDs, and the last oneis dedicated to pushthetest results file(s)after selecting the right report format. Let’s push the test results file(s) toCucumberStudioby following the steps: 1. Update your tests and fetch UIDs,extractonly your featureswithoutoverriddentheActionwordsfile,via this command line: hiptest-publisher --config-file <path to your config file> --test-run-id <your test run ID> --without=actionwords The UIDs allow our system to match the existing tests inthereport file(s)and those in yourCucumberStudiotest run. 2. Runthetests to generate your report file andautomaticallytranspose the UIDs in yourreport files. 3. After selecting your report format, execute thelastcommandline to push your test results file, with: hiptest-publisher --config-file <path to your config file> --push <path to your results file> --test-run-id <your test run ID> --push-format cucumber-json Here are some resources aboutautomationinCucumberStudio: Set up your CI/CD tool:https://cucumber.io/tools/cucumberstudio/ci-in-5-minutes-flat/ Documentation:https://support.smartbear.com/cucumberstudio/docs/automation/index.html Hope this helps!1.9KViews1like0Comments