Hello Everybody,
I am trying to migrate RFT test scripts to Selenium compatible
scripts.
I trying to find a way to convert RFT scripts into some standard
format that selenium can understand or any general format in which we
can migrate it to run it from Selenium.
I have tried searching open source tool but not got any tool of any
help.
Will give a brief about a problem facing:
In RFT scripts, RFT uses click(atPoint(149,4)) function with some
preceded functions for eg:
[selectForAnyMonthcomboBox().click(atPoint(141,4));]
Now, if i want to convert into compatible selenium script, the ClickAt
funtion of selenium needs some locator to locate the element as on X,Y
co-ordinates.
Now, as of there is no connection between this two script. So, is
there any one who knows some work around or faced some similar issue
to deal with this problem.
Any little help will be great help to our group
For your more understanding, the sample RFT scripts looks like :
import resources.Script1Helper;
import com.rational.test.ft.*;
import com.rational.test.ft.object.interfaces.*;
import com.rational.test.ft.object.interfaces.SAP.*;
import com.rational.test.ft.object.interfaces.siebel.*;
import com.rational.test.ft.script.*;
import com.rational.test.ft.value.*;
import com.rational.test.ft.vp.*;
public class Script1 extends Script1Helper
{
public void testMain(Object[] args)
{
/* Window: firefox.exe: Cruise Deals, Discount Cruises, and Cruise
Vacations – Carnival Cruise Lines - Mozilla Firefox
*/
cruiseDealsDiscountCruisesAndC(ANY,MAY_EXIT).click(CLOSE_BUTTON);
startApp("
http://www.carnival.com/");
selectForAnyMonthcomboBox().click(atPoint(141,4));
earlySaverwin().click(atPoint(48,215));
selectForAnyDestinationcomboBo().click(atPoint(140,9));
newtocruisinglink().click(atPoint(87,22));
selectForAnyDeparturePortcombo().click(atPoint(145,7));
selectForAnyMonthcomboBox().click(atPoint(101,0));
selectForAnyCruiseLengthcomboB().click(atPoint(144,5));
cruiseDealsDiscountCruisesAndC2().click(atPoint(278,620));
cruiseDealsDiscountCruisesAndC2().click(atPoint(1014,365));
searchbutton().click(atPoint(32,10));
// Window: firefox.exe: Mozilla Firefox
detailslink().click(atPoint(51,13));
selectlink().click(atPoint(69,16));
selectTheNumberOfTravelerscomb().click(atPoint(92,13));
linklink().click(atPoint(4,12));
selectTheNumberOfTravelerscomb().click(atPoint(90,17));
linklink().click(atPoint(11,10));
selectTheNumberOfTravelerscomb().click(atPoint(93,17));
linklink().click(atPoint(10,2));
linklink2().click(atPoint(68,14));
linklink2().click(atPoint(64,13));
linklink2().click(atPoint(59,14));
}
}