Code Snippet : Invoke "CLICK" programatically in Rational Functional Tester.
How to invoke a click() action programatically in Rational Functional Tester(RFT) Say we are able to highlight the control so RFT is able to find the control and knows it's location , but the click() fails for any reason , then we can try programatically invoking a click as shown below. Just call the method and pass it the GuiTestObject you want to click void clickIt(GuiTestObject gui) { //let's first try to click the usual way try { gui.click(); }catch(Throwable t) { //okay failed..try programtically now... [More]
|
Fixing Rational Functional Tester library dependencies on Linux
IBM Rational Functional Tester (RFT) is an automated functional testing and regression testing tool. This software provides automated testing capabilities for functional, regression, GUI, and data-driven testing. RFT is supported on Windows and Linux platforms as eclipse workbench. To install and use RFT in Linux platform user may encounter a few missing library dependencies which can be identified and sorted out by deploying those dependencies in the system. This article focuses on how users can identify these dependencies and fix them.... [More]
Tags:  functional rhel 86010 7 tester lib 14.04 16.04 rational library linux rft ubuntu |
Handling issue with Html Text Field
Issue - Rational Functional Tester (RFT) not entering/setting the text in the correct field Symptoms: It appears like RFT is not able to enter text into a textbox / Edit box . Or It appears like the text is getting entered in the wrong field. Or It appears like the whole page gets "Selected" ( like Ctrl+A happened on the page) but nothing gets entered. Cause: Setting text in a text/edit field is a three step process. 1. Find the text/edit ... [More]
Tags:  rft settext password |
Rational Functional Tester - Using CallScript() to call script from a different project
How do I call a script from a different RFT project. RFT provides the callScript() api to call script from within the same project. In case we wan to call a script from another project we can do it this way getProjectByLocation("<project path").callScript("<ScriptName>"); eg: getProjectByLocation("C:\\RFTWorkspaces\\TestTemp2\\ProjectOne").callScript("MyScript"); // java code .. not applicable for ... [More]
Tags:  rft callscript |
Handling Security warning Dialog through scripting
While testing a secured webpage (https://) on Mozilla Firefox browser with RFT we may come across the following dialog The following code snippet shows how to find click the continue button to dismiss this one. //Call this method once the dialog is present on the screen. void dismissSecurityDialog() { DomainTestObject[] domains = getDomains (); for (DomainTestObject d: domains) { if (d.getName().toString().equalsIgnoreCase( "Java" )) {... [More]
|
Rational Test Workbench - Parameter Passing between RTW Tests (Mobile & Web UI Tests)
IBM® Rational® Test Workbench provides comprehensive automation solution for Mobile and Web Applications. User can create different mobile & web ui tests as per their requirements. To automate some automation scenarios, user might need to pass parameter from one test to another test. In this blog, we would learn how parameter passing works between RTW (Rational Test Workbench) tests. There may be various scenarios which can be achieved by this approach, e.g. User gets some confirmation id in one test and same confirmation id is... [More]
Tags:  passing test parameter workbench functional worklight automation argument mtww web ui rtwec compound rtw mobile variable rational rtwm data rtwmte |
Rational Test Workbench 8.6 - Executing Mobile & Web UI tests through command line
IBM Rational Test Workbench 8.6 offers test automation solution for Mobile and Web Applications on Android & iOS platforms. It also offers automation solution for Web Applications on Windows & Linux desktop platforms on Firefox, Chrome and Internet Explorer browsers. Rational Test Workbench inherits its core functionalities from Rational Performance Tester and Command line execution is on the same guidelines as used by Rational Performance Tester. Help doc reference for the same can be found in following link -... [More]
Tags:  mobile test rtwm interface rational ui rtwec automation cli functional rtw rtwmte web compound line workbench mtww command rpt |
Rational Functional Tester - How to call C# Code through RFT VB Script
This can be done with two simple steps(*) Add the class library that you intend to call from the RFT VB.Net Script. , to the "Customization Folder" of RFT. You can get the location of this customization folder from the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Rational Software\Rational Test\8\Rational FT Customization Directory In RFT Script use the code from the above C# class Library. Example: Here is the C# class with a public... [More]
Tags:  script external vb c# library rft |
Rational Functional Tester - Failed to Enable the Browser (Internet explorer)
We may get the following error : "Failed to enable the browser . The browser location is <Path to Internet Explorer>" While trying to enable Internet Explorer from the "Configure ->Enable environment For Testing" wizard. Solution First of all the current user must have admin privileges in order to enable Internet explorer. Some times even though we log in as admin we still get "Failed to enable the browser " error , and that is... [More]
|
Running multiple tests in Parallel with RQM 5.0 Command line Adapter
We have often heard from the users and customers that they would like to do lot more things with command line adapter. Lot more things in the same amount of time :-) They would like to configure long running tests with the command line adapter and initiate those in parallel and gather results in RQM. So, with Rational Quality Manager 5.0 ( currently in RC1) users can now use Command line adapter to run multiple tests in parallel. You will need to use the latest bits of the command line adapter (in case you were using an earlier version of... [More]
|
RFT Playback on Java applications is slow when enabled Chrome is up
RFT ( Rational Functional Tester) users, using RFT 8.3 and above and having Chrome browser enabled and up and running in their environment , report a common issue of slow playback of their scripts on JAVA AUT ( Application Under Test). This post targets to provide a solution to the above stated problem. The below flag has been introduced with RFT 8.5.0.1 rational.test.ft.shortenprocesstimeout This flag can be used to improve the performance. Solution steps: 1) Install/Upgrade to RFT 8.5.0.1 or above 2) Close the browsers... [More]
Tags:  functional tester playback slow rational rft |
RFT Playback for find based scripts is slow on Chrome and Mozilla Firefox
RFT ( Rational Functional Tester) users, using find API in their RFT Scripts against Chrome or Mozilla Firefox browser, report a common issue of slow playback of their scripts . This post targets to provide a solution to the above stated problem. The below flag has been introduced with RFT 8.5.1.1 rational.test.ft.html.use.scriptfindwithxpath This flag can be used to improve the performance. Solution steps: 1) Install/Upgrade to RFT 8.5.1.1 or above 2) Close the browsers and any AUT enabled by RFT 3) Close RFT. 4)... [More]
Tags:  playback chrome ff rft rational performance find slow functional firefox |
Rational Functional Tester for Visual Studio can not load external library
IBM Rational Functional Tester (RFT) throws the following error when running a script that uses an external Visual Studio library (Class Library) compiled with .Net Runtime > 2.0 . Error: exception_name = System.IO.FileNotFoundException exception_message = Could not load file or assembly "***", Version=x.y.z, Culture=neutral, PublicKeyToken=null or one of its dependencies. The system cannot find the file specified. This post targets to provide a solution to the above stated problem. Suppose you have a Class Library built with... [More]
Tags:  external studio rational compile library functional .net visual reference tester playback assembly rft load class filenotfoundexception runtime |
Testing Flex 3.6 application with RFT
Introduction: Objective is to test a Flex 3.6 application with RFT . All we have is an SWF file for my application ( myapplication.swf , and no source code) however in RFT's "Configure Application for Testing" wizard while adding a flex application there is no option for Flex SDK 3.6. Solution: First take the file buildapplicationwithFlex35adaptor64bit.bat from the FunctionalTester/Flex directory of RFT and make a copy of it and name it... [More]
|
Mobile testing using Rational Test Workbench
Mobile testing is a way by which application software developed for hand held mobile devices is tested for its functionality, usability and consistency. Mobile devices have witnessed a phenomenal growth in the past few years. There are a billion device combinations. we need to find a solution to test them and automate for future use. The mobile testing capabilities of IBM® Rational® Test Workbench automate the creation, execution, and analysis of functional tests for native, web, and hybrid applications on Android and iOS devices. The... [More]
Tags:  workbench mobile rtw test rational testing |