Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Padmesh624 opened this issue Feb 4, 2024 · 2 comments

Comments

@Padmesh624
Copy link

Padmesh624 commented Feb 4, 2024

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
Copy link

cadam commented Feb 12, 2024

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

@cadam
Copy link

cadam commented Feb 15, 2024

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 grpc/grpc@56fd184) and repacked in a new jar, all good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants