assigning second row of data to the first row of header names using excel data in sikuli
Hi Raiman,
Trying to reading excel data in sikuli which I can.
But I would like to assign the data from second row to the first row which is not accepting.
Here in the below example first row values in the excel are testfile, outfile, firtstpages, otherpages, source and second row onwards
a4, AO1,d1,d1,auto
a3,AO2,d3,d3,bypass
When I do below way it is working, but I don't want to enter column cell increment for each parameter, instead is there a way to keep the first row constant and only passing data from second row to first row parameters
#print testcase
testfile=
outputfile=
firstpages=
otherpages=
source=
Please see my below steps
workbook = xlrd1.open_
worksheet = workbook.
num_rows = worksheet.nrows - 1
num_cells = worksheet.ncols - 1
curr_row = 0
header_row = curr_row
curr_row = 1
while curr_row <= num_rows:
row = worksheet.
print 'Row:', curr_row
'''
outputfile=
firstpages=
otherpages=
source=
'''
cell=0
while cell <= num_cells:
#worksheet.
a=worksheet.
b=worksheet.
print a
print b
print "worksheet.
a=b
cell += 1
with the above steps getting error message "syntax error as "no viable alternative at input value"
So please guide us how can I assign the data from second row to first row.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask AKR for more information if necessary.