Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97762

I have a long code with switch statement and want to add new column within the case, but it should not effect other featurefiles

$
0
0

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:.. 

Viewing all articles
Browse latest Browse all 97762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>