I have a long code with switch statement and want to add new column within the case, but it should not effect other existing feature files.
Then I edit "person" details
|Name |Age |Price|Total|New column|
|xx |xxx|xxx|xxxx|xxx|
@Then("^I edit \"([^\"]*)\" details$")
switch (Name) {
case "Other":
try {
for(int i=0;i<data.size(); i++)
{ xx.xxx((data.get(i).get("age"));
XX.XXX((data.get(i).get("name"));
\\new column
xx.xxx((data.get(i).get("column header"));
\\but it should not effect other feature files
}
}
Case 2:
Case 3:
Case 4:..