Reputation: 121
I have scripts written in java, Cucumber gherkin (intellij IDE) .
I would want to revamp it to store all input value in separate parameter file.
So that I can easily replace configurable value at that specific parameter file.
Is that best approach?
How does cucumber handle it, any additional library needed?
Upvotes: 1
Views: 436
Reputation: 5908
You can add qaf-cucumber dependency that will enable this feature you are looking for. It also will add support to resource management for different environment as well as examples from external data-providers. Provided user.name
and user.password
in properties you can use it in step as below:
Given user login with '${user.name}' and '${user.password}'
Your property file (or xml file) will have following properties
user.name=testUser
encrypted.user.password=encriptedpassword
Upvotes: 1