Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8481949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:41:55+00:00 2026-06-10T19:41:55+00:00

How can a Rational Functional Tester script figure out under which version of RFT

  • 0

How can a Rational Functional Tester script figure out under which version of RFT it executes/was built with?

I digged through the documentation, and the closest I found was

com.rational.test.ft.script.ScriptUtilities.getOperatingSystemVersion() 

which returns OS version info, which might be close, but still not what Daddy is looking for ;O

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:41:56+00:00Added an answer on June 10, 2026 at 7:41 pm

    I didn’t find anything in the APIs or in the Windows registry.

    The only way I can think of is to create a custom method and include it in you helper class.
    You can find the versione in the file C:\IBM\SDP\FunctionalTester\properties\version\IBM_Rational_Functional_Tester.*.*.swtag, change the path to match your installation.

    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FilenameFilter;
    import java.io.IOException;
    
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    
    private final static String RFTVersionFolder = "C:\\IBM\\SDP\\FunctionalTester\\properties\\version";
    
    public static String getRFTVersionWithXML() {
            File versionFolder = new File(RFTVersionFolder);
            File[] versionFile = versionFolder.listFiles( new FilenameFilter() {
                    public boolean accept(File dir, String name) {
                        return (name.endsWith(".swtag"));
                    } } );
    
            Document versionDocument = null;
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    
            try {
                DocumentBuilder builder = factory.newDocumentBuilder();
                versionDocument = builder.parse(new FileInputStream(versionFile[0]));
            } catch (SAXParseException spe) {
                spe.printStackTrace();
            } catch (SAXException sxe) {
                sxe.printStackTrace();
            } catch (ParserConfigurationException pce) {
                pce.printStackTrace();
            } catch (IOException ioe) {
                ioe.printStackTrace();
            }
    
            Node versionNode = versionDocument.getElementsByTagName("ProductVersion").item(0);
    
            return versionNode.getTextContent();
        }
    

    This is a quite expensive method, because it istantiates a DocumentBuilder for XML parsing.
    As an alternative, load the file content as a String and parse it with a RegExp,
    use this matching pattern: [0-9]\.[0-9]\.[0-9]

    public static String getRFTVersionWithRegexp() {
        File versionFolder = new File(RFTVersionFolder);
        File[] versionFile = versionFolder.listFiles( new FilenameFilter() {
            public boolean accept(File dir, String name) {
                return (name.endsWith(".swtag"));
            } } );
    
        byte[] buffer = null;
        FileInputStream fin;
        try {
            fin = new FileInputStream(versionFile[0]);
            buffer = new byte[(int) versionFile[0].length()];
            new DataInputStream(fin).readFully(buffer);
            fin.close();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException ioe) {
            ioe.printStackTrace();
        } 
        String versionFileContent = new String(buffer);
        String version = null;
        Regex r = new Regex("[0-9]\\.[0-9]\\.[0-9]", Regex.MATCH_NORMAL);
        if (r.matches(versionFileContent))
            version = r.getMatch();
    
        return version;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We user svn at work and now we are introducing RFT (Rational Functional Tester).
I'm fairly new to Rational Functional Tester (Java) but I have one large blank.
Using Rational Functional Tester, I need to verify the tooltip objects created in .net.
I want to do this, yet I can't. Here is my scenario and rational.
What can be rational for below output ? null elements are treated differently by
I'm extremely new to rational tools. I have a script recorded and its ready
I compile the FFmpeg under the armv5, it can work well on Android NDK
What would be the most rational, cross-browser compatible way to create an element which
My company has recently switched from using Perforce to Rational ClearCase for version control.
Can someone please explain this to me? x = Rational(3/4) * 8 => (0/1)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.