Forum Discussion
baxatob
Community Hero
Ok.
test_case_container = DDT.ExcelDriver("C:\\TestCases.xls", "Sheet1") def get_test_suite(test_case_container): tests_to_run = [] # creating an empty list
while not test_case_container.EOF(): if test_case_container.Value["ExecutionFlag(Y/N)"] == "Y": tests_to_run.append(test_case_container.Value["TCID"])
test_case_container.Next() return tests_to_run
get_test_suite() will return a list of strings, where each string is a name of your test case marked with "Y" flag.
Related Content
- 12 years ago
- 10 months ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago