Hiptest-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.4KViews0likes0CommentsCucumber BDD + Serenity - Writing user defined methods
I am learning and using Cucumber BDD, with Serenity. I am writing a global library which will have re-usable methods. These methods are accessible from all classes/java files. I am struggling to understand how to access Webdriver object. Or, if webdriver not needed, can I directly access "element" which comes with selenium?? But the below syntax is throwing error, as "element" is not correct. 1. Should I pass "driver" as parameter for every Global method 2. I access this method from Pages. Should I pass "driver" as parameter. If so, what is the correct way to pass "driver" object to the method below. public class GlobalMethods { public void clickLinkWithText(String text){ System.out.println("Entered into clicklink with text >> " + text); element(By.xpath("//a[text()='"+text+"']")).click(); } }893Views0likes0CommentsAdd necessary library files during runtime when using gradle
Hi, We are using Cucumber in our development process in building a service in AWS. We are using DynamoDb and when we are running tests locally we are using a local instance of DynamoDb. To do this we need to include in the classpath certain library files. We have manged to do this for the test task of gradle but not for the cucumber task Given that these files are in a folder (build/dyanamodb-local) in our project, is there a way to include them in the classpath of the cucumber task?1KViews0likes1Comment