Contributions
Re: Python Arrays
Thank you all for the response. Could you please suggest a way to convert a list into python array so when we pass the variable to the java classes the variable is considered as a string array. I imported numpy libraries in the site packages folder of test complete and added the below code. Our Code: sys.path.insert(0, "C:\\Program Files (x86)\\SmartBear\\TestComplete 14\\x64\\Bin\\Extensions\\Python\\Python38\\Lib\\site-packages") import numpy as np a = ["one', "two", "three", "four"] arr = np.array(a) Log.Message(arr) Log.Message(arr) is not printing anything in the logs and also when I pass it to the java classes it is throwing an error below which is pointing to the line import numpy. Error Msg: Access violation at address 00007FFC0C763CF9 in module '_multiarray_umath.cp38-win_amd64.pyd'.645Views0likes1CommentPython 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?711Views1like6CommentsHo to use multple tags in session creator command line
I tried giving this way..Invalid command line. The test 'Scenarios|@E2E_Test|@xxx_E2E_Test|@xxx_E2E_Test|@xxx_E2E_TEST' was not found in the project 'xxxxx'. Am trying to run multiple tags/tests which are under scenarios.Solved801Views0likes2Comments