MarketSquare / remoteswinglibrary

RemoteSwingLibrary
Apache License 2.0
31 stars 39 forks source link

Error while using start application keyword in RemoteSwingLibrary with robotframework #114

Open Padmesh624 opened 9 months ago

Padmesh624 commented 9 months ago

Hi , I want to automate the jnlp application. I using windows 11 machine. And remoteswinglibrary-2.3.2.jar . I added this jar path in environment variable as PYTHONPATH. I am not able to start the application using start application keyword. Below error is coming. How to start the application. Also tell the steps in setting the environment, so i can check my previous steps. I am using pycharm IDE. I added the jar in project structure. Expecting the quick response. Thanks in advance !

Python version - 3.12.1 RemoteSwingLibrary-2.3.2 jnlp application java version - 1.8.351

C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\RemoteSwingLibrary.py:284: SyntaxWarning: invalid escape sequence '$' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\RemoteSwingLibrary.py:286: SyntaxWarning: invalid escape sequence '$' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\RemoteSwingLibrary.py:284: SyntaxWarning: invalid escape sequence '$' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\RemoteSwingLibrary.py:286: SyntaxWarning: invalid escape sequence '$' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:233: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:240: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:252: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:358: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:388: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:390: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:391: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:392: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:394: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:395: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:396: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:405: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:233: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:240: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:252: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:358: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:388: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:390: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:391: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:392: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:394: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:395: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:396: SyntaxWarning: invalid escape sequence '' C:\Users\padmeshp\Downloads\remoteswinglibrary-2.3.2.jar\swinglibrary.py:405: SyntaxWarning: invalid escape sequence '' [ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'system_exit' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec' [ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'start_application' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec' [ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'application_started' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec' [ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'switch_to_application' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec' [ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'ensure_application_should_close' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec' [ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'log_java_system_properties' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec' [ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'set_java_tool_options' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec' [ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'reinitiate' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec'

loginTest

Launch Application | FAIL | No keyword with name 'start application' found.

cadam commented 9 months ago

Also happens to me.. does this jar supports python 3.12?

cadam commented 9 months ago

Also happens to me.. does this jar supports python 3.12?

I got the project localy and changed the method name to getfullargspec (as in https://github.com/grpc/grpc/pull/29963/commits/56fd184b8db962a95574142aa2a8cf80df51bf6b) and repacked in a new jar, all good