Accessing a list of strings (created in a python script) from a keyword test
Please forgive me since this may be a newbie question. I've tried to check the documentation and consulted "the Google" and I haven't been able to locate an answer. I am generating a list of strings within a python script that I then want to pass back to a keyword test. I can work with the list within scripts, but I would like to understand how to get it back into a keyword test for use.
So basically,
versionList = []
...
s = logFile.Readline()
versionList.append(s)
...
return versionList
I've been trying LastResult and I defined the local variable in the keyword test as an object, but on return the object doesn't contain anything. I suspect that I am just missing a step or two. Any help or pointers to documentation links would be greatly appreciated.
Hopefully the screenshot below can give you an idea of what I am trying. I attempted to return the array list in strArr.
Thanks,
Dale.
I'm guessing that there is something that I am doing wrong because on the keyword test side the object doesn't show anything. It doesn't indicate that it knows anything about the methods of the list, etc.
I had tried turning it into a comma separated string and that worked. But I had certainly missed usage of aqString.GetListItem so that would do the trick. If you have any insight concerning what I might be doing wrong as far as "connecting" the object that would be great. Should I use "accept as solution" for this, because it certainly should work?
I appeciate the help from you and baxatob!