We can create a function file for Cucumber. This can be done using the following steps -
Step1- Click on the File menu in Eclipse. Then select the New option. Next click on "Other"
Step 2- Click on the Maven project from the Maven folder. Then click "Next".
Step 3- Continue with the next steps.
Step 4- Select the maven-archetype-quickstart template. Then click "Next".
Step5− Add GroupId as Automation and Artifact Id as Cucumber and continue.
Step6− Cucumber should be used to create a project-type project structure. Cucumber related scripts should be written in the src/test/java folder.
Step6− Create a new package named features in the src/test/java folder.
Step8− Enter the file name, for example, use the extension .feature to log in. Then click "Finish".
Step10− A file named Login.feature should be created in the feature package.
The above is the detailed content of How to create Cucumber's properties file in Java?. For more information, please follow other related articles on the PHP Chinese website!