Maybe it is better to move "Edit" and all variables you use in test case to DataProvider? Extending or changing tools would be easier