SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    SQA Knight
    Join Date
    May 2006
    Location
    Playa Del Rey, California, United States
    Posts
    2,596
    Post Thanks / Like
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Running RFT from ant.

    I'm trying to write a simple ant task for launching and RFT test, with the hopes of incorporating it into a CI build system in the future. Right now I'm having trouble launching my script. It seems to launch RFT, but later hits a Class not found error when it tries to access the 3rd party report library. I have hit located in my basedir/libs folder. Here's what I have so far.


    <property name="rational.jar" value="C:\Program Files (x86)\IBM\SDP\FunctionalTester\bin\rational_ft.jar "/>
    <property name="rft.jvm.path" value="C:\Program Files (x86)\IBM\SDP\jdk\"/>
    <target name="RunTestLauncher">
    <java jar="${rational.jar}"
    jvm="${rft.jvm.path}/bin/java"
    fork="true">

    <classpath>
    <pathelement location="${basedir}/libs"/>
    </classpath>

    <arg line='-datastore "${basedir}/debug/bin"'/>
    <arg line='-rt.bring_up_logviewer "false"'/>
    <arg line='-rt.interactive "false"'/>
    <arg line='-playback "driverscript.TestLauncher"'/>
    </java>
    </target>

    Currently i get the following error:

    Exception occurred during playback of script http://driverscript.TestLauncher [RationalTestScriptError on line 28 of script driverscript.TestLauncher: http://java.lang.NoClassDefFoundError] - some.third.party.libs.Class..
    David Lai
    SDET / Consultant
    LinkedIn profile

  2. #2
    SQA Knight
    Join Date
    May 2006
    Location
    Playa Del Rey, California, United States
    Posts
    2,596
    Post Thanks / Like
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Running RFT from ant.

    I found a workaround by copying the 3rd party lib I was using to the C:\ProgramData\IBM\RFT\customization folder. But this is not idea as I would like to keep the entire setup contained in the project.
    David Lai
    SDET / Consultant
    LinkedIn profile

  3. #3
    SQA Knight
    Join Date
    May 2006
    Location
    Playa Del Rey, California, United States
    Posts
    2,596
    Post Thanks / Like
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Running RFT from ant.

    Ok, figured it out. Change the Java's 'jar' property to classpath, then add className property to specify running rft as the main class.

    <java classpath="${rational.jar};${third.party.lib.path} " jvm="${rft.jvm.path}/bin/java" fork="true" classname="com.rational.test.ft.rational_ft">
    David Lai
    SDET / Consultant
    LinkedIn profile

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:49 AM.

Copyright BetaSoft Inc.