Skip to content

Commit f05d19c

Browse files
committed
Hot fixed add missing test data row keywords
1 parent 93b1151 commit f05d19c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ExcelDataDriver/ExcelTestDataRow/ExcelTestDataRow.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ def get_test_data_property(self, property_name):
4949
except:
5050
raise Exception('Can\'t find property name '+property_name+' under test data row index '+str(self.get_row_no()))
5151

52+
def set_test_data_property(self, property_name, property_value):
53+
try:
54+
self.excel_row[self.column_indexes[property_name.lower().strip()] - 1].value = property_value
55+
except:
56+
raise Exception(
57+
'Can\'t set property name ' + property_name + ' under test data row index ' + str(self.get_row_no()))
58+
5259
def get_excel_results(self):
5360
update_data = [cell.value for cell in self.excel_row]
5461
update_data[self.column_indexes[MANDATORY_TEST_DATA_COLUMN['status']] - 1] = self.status

ExcelDataDriver/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from ExcelDataDriver.Config.CaptureScreenShotOption import CaptureScreenShotOption
4141

4242

43-
__version__ = '1.2.3'
43+
__version__ = '1.2.4'
4444

4545

4646
class ExcelDataDriver:

0 commit comments

Comments
 (0)