@dvanherbergen @KCT527 , i some help from the fine lads who created these Forms Library , i am testing for a POC if this is a viable path for Oracle forms testing i am running on the lastest master build .
Win7 machine
Python 2.7.13
RIDE 1.5.2.1 running on Python 2.7.13.
CLASSPATH set to
C:\Program Files (x86)\Java\jdk1.8.0_121;C:\Program Files (x86)\Java\jre1.8.0_121;C:\Users\bernard.tan\robot\Libraries\formslibrary-0.9.8.jar;C:\Users\bernard.tan\robot\Libraries\swinglibrary-1.9.6.jar
PYTHONPATH set to
C:\Program Files (x86)\Java\jdk1.8.0_121;C:\Program Files (x86)\Java\jre1.8.0_121;C:\Users\bernard.tan\robot\Libraries\formslibrary-0.9.8.jar;C:\Users\bernard.tan\robot\Libraries\swinglibrary-1.9.6.jar
PATH
C:\Python27;C:\Python27\Lib*;C:\Python27\Scripts;C:\Users\bernard.tan\robot\Libraries\formslibrary-0.9.8.jar;C:\Users\bernard.tan\robot\Libraries\formslibrary-0.9.8.xml;C:\Users\bernard.tan\robot\Libraries\swinglibrary-1.9.6.jar
IDE PYCHARM and RIDE simultaneously
Test Case
`*** Settings ***
Force Tags example
Library FormsLibrary
*** Variables ***
#${WEBSTART DIR} ${CURDIR}\JWS_SP
*** Test Cases ***
Webstart Test
[Timeout] 180
#Log Java System Properties
#Set Java Tool Options
Start Application Oracle javaws -verbose ${CURDIR}${/}test17_run.jnlp
*** Keywords ***
Login
Set Field Username XXX
Set Field Next To Label Password XXX
Set Field Next To Label Database @XXX`
Upon running Jnlp started
Picked up JAVA_TOOL_OPTIONS: -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n -javaagent:"C:\Users\bernard.tan\robot\Libraries\formslibrary-0.9.8.jar"=127.0.0.1:58447
Picked up _JAVA_OPTIONS: -Djava.security.policy="c:\users\bernard.tan\appdata\local\temp\grant_all_mprwvl.policy" -Drobot.output_dir="C:\Users\bernard.tan\robot\blahhh"
Listening for transport dt_socket at address: 8000
Starting formslib JavaAgent...
![2017-04-28_14h14_32](https://cloud.githubusercontent.com/assets/26596330/25516476/690ade6c-2c1d-11e7-8390-bc88742d13f4.png
moving on ......
This JNLP file is based on Oracle12c and it is residing on a network shared folder.
- On Pycharm the "Library FormsLibrary" are detected but Keywords aren't detected & keyword definition not found , i am not sure what is wrong on this front. the jar are clean, tested , validated , packaged and installed.
- On Ride , the same. Keyword isnt registered.
20170428 16:07:51.368 : INFO : connecting to started application at 127.0.0.1:63540
20170428 16:07:52.603 : INFO : connected to started application at 127.0.0.1:63540
20170428 16:07:52.603 : INFO : ('starting process ', u'javaws -verbose C:\Users\bernard.tan\robot\xxxxxxxxxxxxx\test17_run.jnlp')
20170428 16:07:52.603 : INFO : Messages by 'FormsLibrary registration server thread'
20170428 16:08:02.667 : INFO : Changing context to main desktop window.
20170428 16:08:02.667 : FAIL : org.netbeans.jemmy.TimeoutExpiredException: Wait Username loaded
Does the spec xml need to be in the PYTHONPATH?
Based on the extended SwingLibrary does a swinglibrary.jar need to be in the classpath as well?
its hard to find examples for this library and information is scattered everywhere.
Seeking assistance on this and i appreciate the assistance given.
Do let me know if this is lacking in any information
Bern