Forum Stats

  • 3,727,656 Users
  • 2,245,433 Discussions
  • 7,852,906 Comments

Discussions

Run OATS scripts using Jenkins

4eb41942-d19b-41ba-8797-60fcf091297e
edited September 2020 in QA/Testing

Can we run OATS scripts from Jenkins

Best Answer

  • Deepu Muraleedharan
    Deepu Muraleedharan Member Posts: 468 Silver Badge
    edited September 2020 Accepted Answer

    Hi,

    Create a free style jenkins job with build Execute Batch Command and use cmd way of OATS script execution.

    cd C:\OracleATS\openScript

    call runscript.bat " script path to jwg file "

    Thanks,

    Deepu M

Answers

  • Deepu Muraleedharan
    Deepu Muraleedharan Member Posts: 468 Silver Badge
    edited September 2020 Accepted Answer

    Hi,

    Create a free style jenkins job with build Execute Batch Command and use cmd way of OATS script execution.

    cd C:\OracleATS\openScript

    call runscript.bat " script path to jwg file "

    Thanks,

    Deepu M

  • Hi ,

    While running the OATS script(Batch Command mode) through Jenkins jobs . I am getting below issue

    01:14:04,706 INFO  [1] Initialized script service "oracle.oats.scripting.modules.applet.api.AppletService"
    01:14:04,714 INFO  [1] Initialized function library "lib.oracle.oats.scripting.ebs.EBSLibrary" for alias EBSLibrary
    01:14:04,727 INFO  [1] Initialized function library "lib.ebsqafwk.WEBLABELLIB" for alias WEBLABELLIB
    01:14:04,731 INFO  [1] Initialized function library "lib.ebsqafwk.WEBTABLEOBJ" for alias WEBTABLEOBJ
    01:14:04,732 INFO  [1] Initialized function library "lib.ebsqafwk.GENLIB" for alias GENLIB
    01:14:04,732 WARN  [JwgRepositoryService] No repository path found, using default. repository=E:\jenkins\workspace\ebsqa-folder\test\CORP_AutoScripts
    01:14:04,915 INFO  [1] Initializing VU 1 for script MASTERDRIVE
    01:14:07,125 WARN  [InstallerManager] FormsFT dynamic enabling finished, summary information:
    1 Installed JRE(s) found: [1.8.0_261 | C:\Program Files (x86)\Java\jre1.8.0_261]
    0 JRE(s) dynamic enabled
    1 JRE(s) static enabled: [1.8.0_261 | C:\Program Files (x86)\Java\jre1.8.0_261]
    01:16:07,133 ERROR [PlayBackHandler] oracle.oats.scripting.modules.webdom.common.api.exception.BrowserHelperException: Cannot get a connection from helper after 120 seconds.
    01:16:09,295 ERROR [1] Error in section Initialize at line (script.java:33). Cannot get a connection from helper after 120 seconds.
    oracle.oats.scripting.modules.browser.api.utilities.exceptions.BrowserException: Cannot get a connection from helper after 120 seconds.
    

    Thanks in advance !!

  • Deepu Muraleedharan
    Deepu Muraleedharan Member Posts: 468 Silver Badge

    Hi Sai,

    Try restarting or reinstalling Helper Service in your node machine

    Thanks,

    Deepu M

  • Hi Deepu,

    Thanks a lot !!

    I have try by restarting or re -installing the Helper Service in my machine

    Step follow to restart the helper service

    -> Navigate to here C:\OracleATS\helperService\bin and Started the RunHelperService.bat( Admin)

    Step follow to re -installing the helper service

    -> Navigate to here C:\OracleATS\helperService\bin and uninstalled the helperServices a, after that I installed the helperServices again and started the HelperServices

    After that I have trigger the Jenkins Job , But Still I am getting the Same issue

      [PlayBackHandler] oracle.oats.scripting.modules.webdom.common.api.exception.BrowserHelperException: Cannot get a connection from helper after 120 seconds.
    Error in section Initialize at line (script.java:33). Cannot get a connection from helper after 120 seconds.
    oracle.oats.scripting.modules.browser.api.utilities.exceptions.BrowserException: Cannot get a connection from helper after 120 seconds
    

    Please guide me here , Thanks in advance!!


    Regards,

    Sai swaroop.

  • Deepu Muraleedharan
    Deepu Muraleedharan Member Posts: 468 Silver Badge

    Are you able to run script from Openscript in same machine

    Thanks, DeepuM

  • Yes , I am able to run script from my machine .

    Regards,

    Sai Swaroop.

  • Deepu Muraleedharan
    Deepu Muraleedharan Member Posts: 468 Silver Badge

    Stop jenkins service and run slave-agent.jnlp as administrator in node machine

    Thanks,

    DeepuM

Sign In or Register to comment.