Print Page | Close Window

Identifying java objects using RFT

Printed From: One Stop Testing
Category: Types Of Software Testing @ OneStopTesting
Forum Name: Functional Testing @ OneStopTesting
Forum Discription: Discuss All that is need to be known about Functional Software Testing and its Tools.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=6336
Printed Date: 13Dec2024 at 11:30pm


Topic: Identifying java objects using RFT
Posted By: shailendra11
Subject: Identifying java objects using RFT
Date Posted: 10Feb2009 at 2:38am
Hi all,
 
I am using RFT for a java application testing. This application is invoked by running a .bat file. In the applicaion config setting if I add this application as a .bat application then the RFT is not identifying the objects. Please provide me the solution if anyone have faces this kind of problem.
 
Thanks and Regards,


-------------
Shailendra



Replies:
Posted By: cprasenjit26
Date Posted: 15May2009 at 5:06am
RFT uses Java and VB.NET as its scripting languages. Verification points in RFT can be created during recording using . Another important feature of RFT is object map. Understanding object map and how it.  RFT comes with a regular expression evaluator tool to help you identify regular expressions you need.
 
http://softwareqatestings.com - Software testing tutorial


Posted By: gmontaltog
Date Posted: 05Aug2009 at 1:40am
I use RFT to test a custmized eclipse+CDT IDE, and it actually starts from a .bat file with no issues.
 
this is what you need to do...
 
(1)
- menu "Configure->Configure application for testing";
- in the "Configure application for testing" dialog click in the "Add" button and set the wizard's fields as follows:
 
kind of application: Executable or Batch file
Select executable....: <path to your .bat file>
 
it will create an "Application" entry in the "Configure application for testing" dialog.
 
- take care that "Working dir" and "Path" both point to the same directory where the .bat is located, that should be the same path where the java application is.
 
(2)
- menu "Configure->Enable Environments for testing";
- in the "Enable Environments for testing" dialog enable the Java Environment that you are going to use to run your application.
 
if you are testing an Eclipse-based app, go in the "Eclipse Platforms" tab and fill the "Path" in order to make it point to the executable directory (that should be the same of the .bat file) and then click on "Enable".
 
please note that, for recognizing an eclipse application, RFT will look for a file named "startup.jar" located in that path: since it is not used any more by recent eclipse versions, you may fool it by creating a file (even an empty text file will do) and then renaming it "startup.jar" ;-)
 
that's all, hope it works for you too!
 
 



Print Page | Close Window