simhadrx
2 years agoNew Contributor
Python Arrays
In TestComplete, I am using JavaClasses to access some of the java methods from a generic library for our tests. Parameters for one of the java method is to pass a string array. May I know how could I declare a string array in python? I see we can achieve it by numPy but may I know the process of how to install numpy, and the version that supports python smartbear.Please find the code below:
a = ["one', "two", "three", "four"]
Log.Message(str(a))
When I pass this Str(a) to the JavaClasses as a string array, It is throwing an error "COMException: Type mismatch"
Is there any other way to declare a string array in python test complete version 14.90 and pass it to java classes?