Solved
Forum Discussion
pavanmac
Contributor
Can anyone help me with this:
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["TCID"] == "1138":
tests_to_run.append(test_case_container.Value["Ctrl_ID"])
test_case_container.Next()
return tests_to_run
def testd():
test_case_container = DDT.ExcelDriver("C:\\Users\\admin\\Desktop\\xyz.xlsx", "TC_Nav", True)
A = [get_test_suite(test_case_container)]
Log.Message(str(A))
I want to fetch the value of 1st ctrl_ID.. Then next ctrl_id
I have the table attached.
baxatob
8 years agoCommunity Hero
... while not test_case_container.EOF(): if test_case_container.Value["TCID"] == "Ctrl_ID": Log.Message(test_case_container.Value["TC1138"] ...
But this is still not optimal way, imho.
I suggest to use:
Related Content
Recent Discussions
- 8 hours agoashly