KB458 How to start Rapise Launcher on Windows Boot
Windows may reboot because of various reasons. If you use a machine to run Rapise tests on regular basis than you want Rapise Launcher to be started automatically after system reboot. The most reliable method that works with any Windows edition is to use Task Scheduler.
KB457 How to organize custom code in User.js
Every test has a User.js file and it is a place to put custom code and functions. This code must follow a few rules.
KB453 Working Directory of a Test and Relative Paths
When Rapise starts execution of a test it sets working directory. If a test refers to a file using a relative path then the absolute path is calculated using the working directory.
KB448 How to create a Rapise web object from XPath
In some cases it may be convenient to construct Rapise Objects dynamically rather than capture in advance with record/learn. In Web tests you can do it via Navigator.Find.
KB446 Getting browser console logs
In some cases it may be useful to analyze browser-side logs. For example, if you are using Navigator.ExecJS action.
KB444 How to get title of a window
In this short topic we describe how to get the value of a window title. The way depends on the application type.
KB443 Closing application under test from Rapise
There are different techniques one can use to close the application being tested from Rapise. The method to choose may depend on the application type.
KB442 Troubleshooting Rapise Install
If you install Rapise on non-vanilla system, e.g. old workstation with a lot of other software, especially with anti-virus and development tools, it may end-up in a state when some components are not registered successfully and some files are blocked. In this article we describe symptoms and ways to cure.
KB439 Troubleshooting Rapise Uninstall
In the unlikely case of unsuccessful deinstallation of Rapise (e.g. if computer power switched off during deinstallation, or Windows Installer process terminated) there is a way to manually fix the system and complete interrupted deinstallation process.. Automatic uninstall may no longer properly work and leave files in Program Files folder.
KB436 Handling Toast Messages
The toast message is like an alert box that is only shown for a couple of seconds when something happens (i.e. when the user clicks on a button, submits a form, etc.). This article describes how to deal with toast messages in Rapise.
KB434 How to Send Special Keys to Selenium Targets
Sometimes you need to press Tab, Return, Backspace to the web page. Here is how you may do it through WebDriver.
KB433 Using Extra Columns in RVL to add Report Attributes
You may use extra RVL columns for your own purposes. In the simple case for storing additional information (notes, links). In more advanced cases extra columns may affect script behavior: add report attributes, control screenshots, control custom actions, assign variable values etc. Here we provide live example of one of such use-cases.
KB432 Writing data to an Excel spreadsheet
KB431 Multiple Object Locators
Sometimes object location is unstable. The same object may be identified by different location path or XPath depending on application version or state.
KB430 How To Pass Shift+Control+F12 or Shift+Control+F11 from Rapise
Global.DoSendKeys is a way to to that, but there is also a little trick required to make it happen.
KB429 How to deal with dynamic window titles
Desktop applications may use window titles to show important information to a user. In some cases the title contains subject of a displayed entity or time. Since Rapise uses window title while searching for an object during playback - the search may fail. This complication may be resolved if you replace recorded windows title with a regular expression.
KB428 How to relearn an object
If an object can not be found at playback and it is obvious that object location has changed because of application update (differs from the case when location is dynamic!) then the best way to fix the test is simply relearn the object.
KB427 How to master a dynamic locator with RVL
There are situations when object location attribute depends on the object data and it is not possible to record/learn all such objects in advance. In this case it may be convenient to calculate object location at playback time using
SetLocatorOpts actions of the RVL global object.
KB422 How to save/load DOM tree in Web Spy
Better to see something once than to hear about it a thousand times. If a Web element can not be found on the page using given XPATH expression and you do not know why - you have an option to save the DOM tree of the page and ask someone else with Rapise for assistance. Here is how.
KB421 How to save type information for UI control in Rapise Spy
Rapise supports many standard UI controls out-of-the-box. And there are even more custom UI controls that are not supported. This is why Rapise has a well-defined way of adding extensions. To add support for a custom control first it makes sense to Spy on it. If you are dealing with Managed or Java applications you can Save Type Information for the control and also save UI tree structure/properties to a file. Send this information to Rapise team to get an advice on how to add support for the new control.
KB420 Firefox 64 Compatibility
Once you have your Firefox updated to version 64 Rapise may have problems connecting to it. Here is a quick workaround until new release of Rapise addressing the problem shows up.
KB418 Is it Possible to Automate an iOS Web App using Rapise?
Yes, in general, Rapise can automate most web applications using mobile Safari running on iOS (either on a real or simulated device). However there are some limitations.
KB417 How to manipulate browser cookies using Selenium API in Rapise
If you run Rapise tests via Selenium WeDriver you may need to manipulate browser cookies. Learn how from this post.
KB416 WPF Calendar and DatePicker
It is tricky do deal with WPF calendar control. Here we introduce a number of supplementatry functions to copy in your project and use to modify and read Calendar and DatePicker data.
KB415 Is it Possible to Automate an iOS App Store App using Rapise?
We often get asked this question: "We have Rapise and want to automate a native iOS app that is available on the application store", can we do it?
KB412 How to ensure that a Fast Tab is expanded and scrolled into view in Dynamics AX
Many views in Dynamics AX have several collapsible panes: General, Addresses, Contact information, etc. They are also known as Fast Tabs. Learn how to ensure that a Fast Tab is expanded and scrolled into view before entering data into the fields in this tab. Requires Rapise 5.7+
KB411 If recording of actions in Dynamics AX or Dynamics NAV does not work
More and more computers are equipped with High DPI displays. Though high resolution looks beautiful it may bring some issues. One of them is broken recording in Rapise.
KB408 How to upgrade Rapise to a newer version
Rapise is evolving product and we release new versions of it from time to time. If you plan to upgrade your copy of Rapise follow these simple steps.
KB407 How to emulate keyboard and mouse via Selenium API in Rapise
Though Rapise can execute it's native recorded tests via WebDriver - some users prefer to write their tests in pure Selenium API. In this post we describe how to perform complex mouse and keyboard sequences via Selenium API in Rapise tests.
KB406 Rapise Start Page Layout Does Not Display Correctly
Sometimes when you first install and open Rapise, the Start Page does not display correctly. This article explains the cause and solution to fix the issue.
KB396 Mapping Spira Requirements to Test Steps in Bulk Using Excel and Rapise
Of the unique needs of a requirements and test management system when working in the Defense industry, specifically when designing, building, and testing mission systems, is the ability to link individual test steps to the requirements. Since v5 of SpiraTest, this has been possible inside the Spira user interface, however many customers have been looking for a way to map test steps to requirements in bulk using Excel.
KB395 How to configure Mobile Profile to automatically grant Android application permissions on install
When Appium installs an application at the beginning of a test session - Android may ask for permissions (e.g. access to media files, camera, etc.). Until such prompt is dismissed - Main activity is not launched. It prevents the test from proceeding. Learn how to configure the Mobile Profile to automatically grant required permissions on install.
KB394 How to use specific version of Chromedriver with Appium
In Mobile Spy of Rapise when switching from NATIVE_APP to WEBVIEW context you may see an error message: Chrome version must be >= 55.0.2883.0 From this article you will learn how to fix this.
KB393 DoClick() vs DoClick(x,y)
When doing mouse click from Rapise it is sometimes need to use offset coordinates. You will learn: 1. When explicit coordinates are needed 2. How to determine them
KB391 Creating a Purchase Order in Dynamics AX
Learn how to break down a long scenario into manageable pieces in RVL. Creating a purchase order in Dynamics AX takes many steps: start PO process, enter basic details, fill order lines, approve, receive, invoice. In RVL you can create separate sheets to implement stages of a complex test.
KB387 Display Intellisense for ActiveX and .NET Objects
Sometimes when you are using Rapise, you have to use external ActiveX or .NET objects to perform specific actions. You can get Rapise to display intellisense for those objects.
KB383 RPA Features of Rapise
Robotic Process Automation (RPA) is well suited for processes that are clearly defined, repeatable and rules based. With Rapise you can create software robots that can do boring repetitive tasks and free employee time for more creative work. Below you will find a brief description of RPA tasks that Rapise can do.
KB382 Android Testing Hints
Most complex part in Mobile testing is connecting to a simulator or device. In this article we describe steps necessary to configure the testing environment. Note: In brackets we specify versions of software components we used at the time of writing this article.
KB381 iOS Testing Hints
Most complex part in Mobile testing is connecting to a simulator or device. In this article we describe steps necessary to configure the testing environment. Note: In brackets we specify versions of software components we used at the time of writing this article.
KB380 How to insert an RVL step into Manual Test
Sometimes it makes sense to automate certain steps of a Manual Test. If you prefer to implement automatic steps in RVL then include the AUTO helper function into your test.
KB379 Processing registration Emails
Common scenario: register a user and receive registration confirmation link by email. The most painless way for doing it.
KB378 RPA - importing data into Dynamics AX
If anything can be automated - it will be automated. You can use Rapise to automate day-to-day processes within a company to free your employees for more creative and productive job. Imagine you have data from third-party system in Excel file and you want to import it into Dynamics AX instance. You have a choice either to develop a software program that does the import via Dynamics AX API or you can create an automation script in Rapise.
KB377 How to find an object in the object tree
A test may contain a lot of objects. If you want to locate an object in the object tree you may use the filter box.
KB376 What is object Location?
When you record a test Rapise captures UI elements with which you interact and adds them as objects to the Object Tree of a test. Each object has a Type (Button, Text, Label, Tree, Grid, ...) and Location. Rapise uses Location attribute of an object to find it in the application during test execution.
KB375 How to check that Rapise can find an object on screen
When you execute a recorded test, sometimes, Rapise may not find some object on screen and display Object is not found error message in the report. If you see that the object is visible you can check if Rapise can find it or not without running the test.
KB374 RPA - importing data into Dynamics NAV
If anything can be automated - it will be automated. You can use Rapise to automate day-to-day processes within a company to free your employees for more creative and productive job. Imagine you have data from third-party system in Excel file and you want to import it into Dynamics NAV instance. You have a choice either to develop a software program that does the import via Dynamics NAV API or you can create an automation script in Rapise.
KB372 How to save content of a table/grid into a spreadsheet file
If you need to make a copy of data in a Table/Grid object - you may simply save it to Excel file with a single function call.
KB371 Sample Spira-Friendly Framework with Multiple RVLs and Common Library
Working example of test framework designed to maximize flexibility and get the most from Rapise productivity features.
KB367 Storing Values Across Test Cases and Sessions in Rapise
Sometimes test set requires a value passing through the sequence of test cases. Good example is User ID assigned during sign it and then used in subsequent test cases. Another use case is when test case requires some input value that should always be unique.
KB366 How to ensure that a Fast Tab is expanded and scrolled into view in Dynamics NAV
Many views in Dynamics NAV have several collapsible panes: General, Lines, Invoice Details, etc. They are also known as Fast Tabs. Learn how to ensure that a Fast Tab is expanded and scrolled into view before entering data into the fields in this tab. Requires Rapise 5.7+
KB364 How to ensure that web element is visible before interacting with it?
Sometimes an element on a web page may be invisible because it is out of a viewport. Real user scrolls a page vertically and horizontally to reach such an element. How to achieve same behavior with Rapise?
KB363 How to define a profile for Web Application in Rapise
Each web application is unique in terms of assigning attributes to elements and this complicates the process of generating XPath locators. Some applications assign dynamic IDs to elements, some use ARIA attributes and some do not, some values of class attribute have meaning related to element position and some just used for styling . There are also cases when an app contains hidden DOM layers which stack on top of each other. So usage of same set of attributes for generating XPath is not efficient and may lead to weak locators that break after application reloading or slight modification. To cope with these problems Rapise introduces Web App Profile. It is a simple JSON file of a defined structure that instructs Rapise how to build XPath for elements in a particular application. From this article you will learn how to define a profile for your web application.
KB362 How to automate testing of Unified Service Desk for Microsoft Dynamics 365
Unified Service Desk (USD) is a hybrid application. It is a windows desktop application with embedded browser components. Follow this guide to setup a test automation framework for USD.
KB361 Text Validation Does Not Always Fire on Angular4 Application
Sometimes when you are testing an application written in Angular 4, the text box will not accept a value that is correct during playback (e.g. zip code is not in the right format) when you use DoSetText to set the value.
KB360 Overriding Rapise Settings from SpiraTest
Sometimes you want to override certain Rapise settings (e.g. the Command Interval) from within SpiraTest. For example you might to run one test set more slowly than other test sets because the environment is slower. This article explains how you can easily pass settings values from SpiraTest to Rapise.
KB359 How to Install the Chrome and Firefox Extensions Offline
By default, when you want to use Rapise to record and playback web tests using either Chrome or Firerfox, you simply go to the appropriate web browser "store" and install the extension directly from the store. However sometimes you are testing web applications on a machine with no Internet Connectivity.
KB358 Hot to disable "Chrome is being controlled by automated test software" message
When you run a test with Selenium - Chrome profile the browser is launched with a warning message below the address bar. It can be disabled.
KB357 Data-driven testing with spreadsheets and RVL
KB354 How to override an action for an object type
Rapise supports many types of objects in Web, Mobile and Desktop applications. And each object has a set of actions that can be applied to it. You may want to override behavior of existing action or add a new one. Learn how from this article.
KB353 Rapise Doesn't Launch Because of Missing Windows Fonts
If you don't have some of the standard Window fonts installed (e.g. Courier New), when you try and launch Rapise, it will fail to open correctly. This article provides information on the problem and solution.
KB352 Converting Recorded Steps into Functions/Scenarios
KB351 How to automatically enter user credentials into Windows Security dialog on Windows 10
Some test scenarios require running processes as different user or entering user credentials into Internet Explorer security prompt. Rapise can enter user credentials into Windows Security dialog on Windows 10 automatically.
KB349 Recording tips for Dynamics NAV 2017 Web Client and Dynamics 365 Business Central
Dynamics 365 Business Central is a successor of Dynamics NAV 2017 Web Client. Both solutions were built by Microsoft using same technology though they have a few differences. Rapise includes a library DomDynamicsNAV which makes test recording and playback of Dynamics NAV web clients a pleasant thing. From this post you will learn basics of recording a reliable test for these solutions as well as test playback troubleshooting methods. We'll use Dynamics 365 Business Central as system under test.
KB347 How to record entering of data into Dynamics NAV tables
Follow these simple rules to record entering of data into Dynamics NAV grids. For example, entering of new order lines into a Sales Order.
KB344 Doing a SubString on a Database Value in Rapise
When you try and do a substring on a value returned from a database, you may get an error about the object not supporting the property.
KB343 How to scroll Dynamics NAV table vertically and horizontally
Rapise 5.7+ performs scrolling automatically before clicking on a cell. Also there is DoScroll action that does explicit scrolling. In Rapise 5.6 and below use this simple function to scroll your Dynamics NAV table left, right, up, bottom.
KB341 Jumping to the Definition of a User Function
When you have a user defined function in Rapise, you sometimes want to jump to it.
KB340 How to Do a Nested Loop with Rapise Visual Language (RVL)
KB339 Where Does Rapise Log Errors?
Sometimes when you are using Rapise, you see an error on the screen, or something doesn't work as expected. In that case, our support team will need a copy of the log file that is likely to contain the error message. This article explains how to get that log file.
KB338 Dealing with Unexpected Popup Objects
Some applications show unexpected popup windows. This could be feature announcements, update reminders, license expiration reminders, alerts, internal messengers and so on. Here we are going to show a solution for this problem.
KB336 Ways to deal with flaky tests
When you do UI test automation and create a big enough test coverage the probability of having curtain portion of flaky tests increases. In many cases there is no reasonable way in terms of time and resources to mitigate all flakiness from the test coverage. In some cases even a flaky test may still be useful.
KB335 What is UI Test Automation Framework?
At Inflectra we think that UI Test Automation Framework is a set of tools with specific features that enables QA teams to develop and run tests, and effectively analyze test execution results.
KB334 How to launch a browser in private mode?
In some cases it makes sense to launch a browser in private mode to ensure exact same conditions every time you run a test. This helps to cope with such things as remembered accounts or pending sessions not disconnected by a previous test. Learn how to properly adjust browser profiles from this article.
KB333 Installing Rapise Browser Extensions without Internet Access
Normally you can install the add-ons for Chrome and Firefox directly from the brower's app store (just search for Rapise). This is the easiest option, and avoids the need to run the browsers in developer mode.
KB331 How to Check if Rapise Can Test My Delphi Application
In order for Rapise to be able to test a thick-client desktop application written using Delphi, it needs to support Microsoft Active Accessibility (MSAA), as described in this article - http://edn.embarcadero.com/article/33642 This article demonstrates how to check your application to see if it supports MSAA.
KB330 Compare two SpreadSheets in Rapise
Sometimes you need to compare two tables. Here we introduce a function to compare two spreadsheets.
KB328 Using Rapise Mobile with Browserstack
BrowserStack supports automated browser testing via Selenium and Appium on real iOS and Android devices. Learn how to configure Rapise to connect to Browserstack via Appium.
KB326 Windows Scripting Host Crashes When Playing Back Rapise RVL Script after Windows 10 Update
Unfortunately, Windows10 has a nasty habit of frequently updating itself and then breaking existing applications. We found that the February 14th, 2018 Windows10 update corrupted the Excel device driver that Rapise uses to access the RVL test script spreadsheet during playback.
KB325 Running nightly tests with RapiseLauncher on VM with RDP
It is common to use UI tests with RDP connected to remote VM. By default this works only while RDP window is open and client is connected. On disconnect remote session gets locked and UI becomes unavaliable for the test. This topic covers a workaround.
KB324 List Files from Folder in RVL
Sometimes it is required to have list of files from some folder. Here we demonstrate how to get this list and how to iterate through it in RVL.
KB323 How to launch a web browser in Rapise with a specific size
Sometimes when recording a test against a mobile responsive web site, it is useful to be able to record on the local browser (before playing it back against a cloud service such as SauceLabs, Browserstack, etc.). However you want to always record using a specific browser window size.
KB322 How to run cross-browser tests on BrowserStack?
BrowserStack enables testing of your website for cross browser compatibility on real browsers. Instant access to multiple desktop and mobile browsers. Learn how to configure Selenium profiles in Rapise to enable connection to BrowserStack services. Requires Rapise 5.3+
KB320 Using RVL Loop to generate sequence of file names
We show how to do data generation for test scenario using RVL Variable loop in Rapise. This sample shows how to produce a sequence of filenames: FILE1.txt, FILE2.txt, FILE3.txt and so on.
KB318 Troubleshooting the "The Pipe is being Closed" Error during Rapise Installation
Sometimes when you try and install Rapise, you will see the error message "The Pipe is Being Closed", this article provides some solutions for this message.
KB317 Read external Excel spreadsheet in RVL
Attaching to external .XLS spreadsheet in RVL may be easily done in RVL by use of Range type of the Map.
KB314 How to start Dynamics NAV client
Check that Dynamics NAV client is installed on a machine and launch it if it is not started yet with this simple function.
KB313 Testing Visualforce components in Salesforce
Visualforce is the component-based user interface framework for the Force.com platform. Visualforce components can be tested with Rapise just like default Salesforce interface.
KB312 Accessing DOM elements by Attributes in RVL
It is possible to access such objects form RVL using one of the methods shown in this article.
KB310 Custom Attributes for XPath Generation in the Rapise Web Spy
Sometimes web applications use custom DOM attributes for internal purposes. XPath locators containing those attributes are sometimes more stable and resilient. Rapise contains features intended to simplify utilization of such attributes.
KB308 How to include file with common function in test
KB307 How to Check if Rapise can Test my Qt Application
In order for Rapise to be able to test a thick-client desktop application written using Qt, it needs to support Microsoft Active Accessibility (MSAA), as described in this article - http://doc.qt.io/qt-5/accessible-qwidget.html This article demonstrates how to check your application to see if it supports MSAA.
KB305 How to run a program as a different user
Sometimes a test needs to run a process as a different user (not the logged in user executing Rapise). It is not possible to use runas command for this purpose because it forces a user to type a password manually. From this short article you will learn how to reach the goal.
KB304 Using Global.DoEncrypt and Global.DoDecrypt to Hide Passwords
Sometimes passwords need to stay secure. Here are simple steps on how to hide some information in Rapise. Here we will demonstrate usage of Global.DoDecrypt and Global.DoEncrypt available since Rapise 5.4.
KB303 How to run CMD shell commands
In some cases a test needs to run a Windows shell command (e.g. dir, ipconfig, gpresult) and capture/parse output. Learn how to do this in Rapise from this short article.
KB302 About Rapise ImageFinder
Sometimes the goal is to find specific image on the screen. It may be special symbol, map pointer or an icon. This topic contains ImageFinder and sample test demonstrating its capabilities.
KB301 Ways to slow down test execution
There are several types of delays one can use to slow down test execution. Implicit Explicit fixed Explicit with timeout
KB300 Running Rapise GUI Tests with Jenkins
Recommended approach is to use SpiraTest and RapiseLauncher designed for this task. In some cases it is not an option and we need to execute a test directly.
KB299 Installing Rapise on PC without Internet Access
In general Rapise installs on disconnected PC without problems. However, if PC contains old version of windows without most recent root certificates then installer may fail due to inability to check application authenticode certificate. This topic explains a workaround.
KB294 How to Measure Operation Performance in Rapise
Sometimes we need to track the time taken by an operation. This KB contains suggested approach for Rapise and working sample.
KB293 How to store Rapise tests in Git and run them with SpiraTeam
In some cases it is convenient to store tests in the same Git repository where source code of an application under test is located. For example, if you are using Visual Studio Team Services. From this article you will learn how to execute Rapise tests stored in a Git repository with SpiraTeam and leverage the power of SpiraTeam reporting and analysis features.
KB292 Dynamics NAV Support in Rapise
In this guide we describe how to master tests for Dynamics NAV application using Rapise. Rapise provides a complete automated testing solution that can handle all of your technologies in one environment. With support for web, mobile and desktop applications and a wide variety of third-party component libraries. Microsoft Dynamics NAV is an enterprise resource planning (ERP) software suite for midsize organizations. The system offers specialized functionality for manufacturing, distribution, government, retail, and other industries.
KB291 How to Enable/Disable screenshots during script execution
Sometimes we need to disable screenshots for a while (during some long loop) or when doing some specific operations. Here we show how to do it.
KB290 How to create Spira-friendly Test Set with shared functions and files
The notion of the integrated test framework usually implies common functions and shared data between tests. Here we provide sample configuration making sharing Spira-friendly.
KB289 How Object Recognition Works in Rapise
This article contains of overview of object recognition by UI automation tools in general and its implementation in Rapise in particular.
KB288 Search by Name, Text, XPath or Attribute on the Web Page
It is common task to search for an element by its text. In some cases it is the fastest way to find one. This approach works in web browsers and selenium targets.
KB285 Using bytext and byname Locators in WinForms
byname and bytext is an universal feature common for Web, UI Automation and WinForms (Managed) targets. Here we consider WinForms (.NET) desktop applications.
KB284 Model-Based UI Testing
Model-based testing is widely used for a long time for testing software systems. Typical application fields include telecommunication protocols, embedded software, server software, automotive and reactive systems. What about model-based testing of desktop, web and mobile GUI applications?
KB283 Using bytext and byname locators in UI Automation
byname and bytext simplify finding objects by text or by name.
KB282 Elastic XPATH Expressions
When working on UI test automation for a web application a test engineer has to deal with XPATH expressions. They are used to locate UI elements during test execution. It is very important to use such XPATH expressions that do not break when developers update the application. Good XPATH expressions which still find required elements after UI modification can be referred to as resilient or elastic. In this article we'll consider several examples of elastic XPATH expressions.
KB281 How to get the most out of code complete feature in Rapise
KB280 How to specify Selenium or Appium capabilities which are not available through Rapise UI?
From this article you will learn how to pass additional parameters to Selenium or Appium target, even if they can not be specified in a profile. This recipe can be also used to override parameters of a profile right from a test code. Requires Rapise 5.3+
KB279 How to run cross-browser and mobile tests on Sauce Labs?
Sauce Labs allows users to run tests in the cloud on different combinations of browser and OS versions as well as mobile devices and emulators. Learn how to configure Selenium and Mobile profiles in Rapise to enable connection to Sauce Labs services. Requires Rapise 5.3+
KB278 How to run a cross-browser test on a mobile device?
Let's assume you have a cross-browser test which was created on desktop and can be successfully executed on any desktop browser (Chrome, Firefox, Internet Explorer, Safari). You want to execute this test on your mobile devices or emulators. Learn how from this article. Requires Rapise 5.3+
KB277 Tips & Tricks for Rapise and Dynamics 365 for Sales
Essential information to get started with testing Dynamics 365 for Sales.
KB276 How to upgrade Chrome browser on Android emulator
Appium requires certain version of Chrome to work with. Even Android 7.0 is shipped with Chrome 51 and this is too old version. From this article you will learn how to upgrade Chrome on your Android emulator.
KB275 JSON in Rapise
This topic describes how to read and write JSON data in Rapise
KB274 Using Rapise Mobile with a Cloud Device Farm
Rapise connects to mobile devices (iOS and Android) using the standard Appium mobile device testing API (similar to Selenium WebDriver for web browsers). This articles describes how you can use Rapise to connect to a mobile device farm using the Appium mobile device profiles inside Rapise.
KB273 Rapise Tips, Tricks & Workarounds when Testing Dynamics AX 2012
During the evaluation of Rapise 5.2 for Microsoft Dynamics AX testing, a customer collected the following tips and tricks from our support team (thanks Maxime!).
KB272 Microsoft Dynamics Solutions - Which One Do You Have?
As described in a recent article, Microsoft Dynamics has been going through major changes in the past year, there are now many different products that all bear the 'Microsoft Dynamics' brand, including older legacy tools such as Dynamics AX, NAV, GP, SL and CRM and the new Dynamics 365 platform which has different modules (Sales, Operations, etc.). This article helps you know which tool you have when you need help from our Rapise support team.
KB271 Headless Chrome Testing
Headless Chrome on Windows is introduced in version 60 . Learn how to configure Rapise to run cross-browser tests using non-GUI mode of Chrome. It works same way as with PhantomJS.
KB270 Using Object ID as RVL ParamValue
Sometimes Object ID used as a parameter to the function or object Action (such as Global.DoWaitFor(objId) ). RVL contains special feature intended to make pick-up of object from the list easier.
KB269 Different Ways of Slowing Down Rapise to Handle Slow Applications
We often get requests for ways to slow down the playback speed of Rapise so that the application under test (AUT) has time to respond. This article describes the different ways and provides suggestions as to when you should use each one.
KB268 How to automate Drag&Drop from Windows Explorer into Google Drive
Modern technologies allow to drag&drop files into a browser window to upload them to a server. Such a feature works for example in Chrome browser in Google Drive and Photo applications. In this howto post we'll show how to automate drag&drop of files from Windows Explorer to Google Drive opened in Chrome.
KB266 How to integrate Rapise and Elasticsearch
Rapise is a test automation platform for desktop, web and mobile applications. It is designed for building automated and manual end-to-end UI tests and fits any TestOps infrastructure. Elasticsearch is a distributed, RESTful search and analytics engine capable of solving a growing number of use cases. As the heart of the Elastic Stack, it centrally stores your data so you can discover the expected and uncover the unexpected. From this article you will learn how to integrate Rapise and Elasticsearch together.
KB264 How to integrate Rapise with Jasmine BDD Framework
Jasmine is a behavior-driven development framework. If you want to test UI with Rapise in a behavior-driven way learn how to tie Rapise and Jasmine together.
KB263 How to fix IE 11 recording/playback on Windows 64-bit
Symptoms: When new recording is started Rapise always opens new IE window Spy does not show DOM tree During playback no object is found
KB262 Debugging Rapise DOM libraries in Chrome using VS Code
Rapise can be extended with DOM libraries to add support for custom UI controls used in modern web applications. Many of such applications work in Chrome browser. So there may be a need to debug Rapise code embedded into Chrome via Rapise Extension for Chrome. Most powerful and easy way to do this is to add VS Code into the equation. From this article you will learn how to tie Rapise, Chrome and VS Code together.
KB260 Handling Auth prompt in Rapise
Some web site show Auth prompt when entering some area. The prompt is rendered differently by different browser. Here we show how to bypass the prompt in automation scripts.
KB259 How I added support for JPopupMenu automation in 1-hour
Example of adding support for Java UI control in Rapise.
KB257 Using Rapise Visual Language (RVL) 5.1 with Multiple Sheets
With the release of the new Rapise Visual Language (RVL), there have been some questions about how to use it to organize tests, subtests and multiple sheets. For example: I see that I can create multiple sheets. How does Rapise handle multiple sheets? Does it run each in order or can they be run separately? Is it possible to call a test in RVL from another test in RVL? In other worlds, how can I create subtests and scenarios using RVL?
KB248 Rapise Recording/Playback Throw Error Due to ANSICON application conflict
A customer of ours was using Rapise on a computer that was also running the ANSICON application. This changed some of the settings in the Windows registry that affected the Windows command-line parser. This article explains how to clean up the command-line to allow both applications to work correctly together.
This is a short sample demonstrating how one can format a date
KB243 Changing REST Headers When Web Service Testing
When performing web service testing using Rapise you may need to change the HTTP headers being sent with the request. This article provides suggestions on the different ways of doing this.
Sometimes it is convenient to store function names in strings and use those strings to call actual functions. The article describes two ways of how you can do this in Rapise.
KB235 Magic Tricks of the Triple Click
This article shows how to select paragraph of text using various types of mouse activities. Also it demonstrates use of clipboard Global.DoTrim function. Working example is attached.
KB233 Suppressing Text in Rapise Logs for Sensitive Data
A customer had a question - is there a way to suppress the DoSetText or DoSendkeys methods from sending their text to the logs. They didn't want users to see this text in the Rapise (and SpiraTest) logs because they contained sensitive information (e.g. passwords).
KB232 Rapise Tip - How to Handle a Webpage that Displays an Alert when You Navigate Away
One of our users had a webpage with a form. When it was submitted partially filled, the page came back (after being processed on the backend) with some errors about incomplete form. If the user tried to navigate away from this page via a link (or close the page/browser tab) he was prompted with browser's standard "Are you sure you want to leave this page?" dialog. He needed a way for Rapise to handle this popup when recording and playing back the web test.
KB231 Adobe Flash / Flex / AIR Support in Rapise
Rapise 4.0 supports the testing of Adobe AIR Flex applications using the Adobe Integrated Runtime (AIR). Rapise can test applications using a wide variety of different Flex controls and supports testing both Flex 3 and Flex 4 applications.Rapise 4.0 supports the testing of Adobe Flex applications that are executed by the Adobe Flash Player inside the Internet Explorer, Mozilla Firefox or Google Chrome web browsers. Rapise can test applications using a wide variety of different Flex controls and supports testing both Flex 3 and Flex 4 applications.[We have depreciated support for testing Adobe Flex/Flash applications in Rapise 5.0 and later, so this article is provided for use by existing customers]
KB230 Unusual case where Rapise Cannot Click on Hyperlinks in IE
We have found an occasional situation where Rapise is not able to click on hyperlinks ( tags) when you playback a test on IE. The same test works fine on other computers and on other browsers on the same computer.
KB228 Web Object Not Found in IE when Object has 0px Size
We had a customer with a problem related to having
KB227 Executing a Windows .BAT Batch File from Rapise
Sometimes you need to run a Windows batch file (.BAT) from Rapise. Unlike an executable, you cannot simply use Global.DoLaunch() to execute it since it's not actually an application. This article provides the code you need to use.
KB224 Testing Popup Windows using Internet Explorer
When you are testing a web application that has popup windows (where the popup is a whole new browser window) you will need to make a slight change to the test script to enable it to playback successfully in Internet Explorer (no change is needed for Chrome or Firefox).
KB223 Troubleshooting Java Swing/AWT Testing
When you are testing a Java application using either Swing or AWT you may run into some issues due to the environment. This article collects some of these common cases and provides the recommended solutions.
KB221 Where do I get the Microsoft Script Debugger
When you install Rapise onto a computer that does not have Visual Studio or the Microsoft Script Debugger installed you will get a message to install the debugger. This article provides the download link to the necessary debugger.
KB218 Testing Adobe AIR Applications on Mobile Devices
We have had a couple of questions about whether Rapise can test Adobe AIR based applications running on mobile devices using platforms such as Android. This article provides some background and also describes the support Rapise has.
KB219 What to do When Rapise Doesn't Display the Web Page DOM?
Sometimes when testing certain web applications instead of the browser DOM tree appearing you will see strange results such as "Node0" appearing. This is caused by the application using nested frames with potentially different security origins. This article describes some of the common issues and describes the solution.
KB217 Rapise - Cannot Find AllLibraries.json file during Recording/Playback
When recording or playing back a test script on a new PC you may get an error message that Rapise cannot find the path to "AllLibraries.json".This article provides instructions on how to fix the issue.
KB216 Testing Multiple Web Browser Tabs at Once in Chrome
Sometimes you have a web test where you need to test the contents of two browser tabs at the same time in Google Chrome. For example you may have an application which opens up a second browser tab and you want to test that changes in the second tab show up correctly in the first tab. This article describes how to perform this kind of testing.
KB215 Fixing the 'Method Not Found' error when using Appium for Mobile Testing in Rapise
If you receive the following error message when performing Mobile device testing with Rapise, this article provides the necessary solution:Method not found:'OpenQA.Selenium.RemoteCommandInfoRepositoryOpenQA.Selenium.RemoteCommandInfoRepository.get_Instance()'.
KB209 Testing Web Applications that use SVG
One of the more challenging types of web application is that with uses embedded SVG (Scaleable Vector Graphics) in additional to HTML DOM elements. This article describes how to use Rapise to write automated testing scripts for such applications.
KB205 Rapise 3.x / 4.0 Does not Connect to Chrome x64 Bit
When you try and connect to the 64-bit version of the Google Chrome web browser using Rapise 4.0 (or earlier) you may get the error 'Connection to Chrome Failed!'. This issue has been fixed in the Rapise 4.1 release, but for those customers using Rapise 4.0 or earlier, this article provides two solutions.
KB204 Working with WPF and UIAutomation Structures
It is a common situation that desktop applications written using Microsoft Windows Presentation Framework (WPF) will have complex layouts including tabs, splitters and panels having custom grids and tables inside. This article provides help in dealing with such situations, including how to dynamically find items.
KB202 Reading the Details of Files on the Windows File System
In the KB62 article - Accessing Files using Rapise we explain how to access the names, versions and locations of files on the Windows file system. One customer asked - can we verify any file details other than version. This article provides sample code for accessing other information.
KB203 Accessing the Windows Registry using Rapise
Sometimes when testing local/desktop applications you need to access the Windows registry to verify that keys exist or that keys have specific values. For example you may be testing that a DLL was successfully registered. This article provides information on the 'UsingRegistry' sample that comes with Rapise.
KB201 Error attaching to Excel spreadsheet when using Rapise 4.0 with MS-Excel 64-bit
When you are using the global Rapise Spreadsheet object on a system running the 64-bit version of MS-Office, you may get an error attaching to the spreadsheet. This article describes the cause of the issue and provides a solution and workaround.
KB200 Testing MS-Word With Rapise
We had some customers that were looking to record some tests against Microsoft Word 2010. When testing against MS-Word 2010 there are actually two parts to the application:There is the application ribbon (the menus, navigation, etc.)There is the MS-Word text window where your content is actually displayedThis article provides some strategies for dealing with both areas.
KB194 When recording with Chrome, Rapise does not record actions within frames
When creating web tests with Chrome, objects within cross-frames are not recognized by the Rapise Web Spy and recorder. This article gives a solution.
KB193 Using Rapise to test websites that contain frames
If the website under test contains frames, that presents some challenges to test automation. This article gives tips for success and explains the current limitations.
KB192 Different XPath Options in Rapise 4.0
When testing complex data-driven web applications using Rapise, it is helpful to understand the different ways that Rapise can automatically learn the objects. Rapise can learn an object using either XPATH or CSS. In the case of XPATH there are several strategies that Rapise can use to make the testing more robust. This article describes these strategies and provides some suggestions about which one is the best to use for different scenarios.
KB191 WebSpy Attribute Filtering
The v4.0 release of Rapise adds enhanced attribute filtering to the Web Spy as well as different options for creating XPath queries automatically. This article explains why you would want to use these features and how they can make the testing of complex data-driven web applications much easier.
KB185 Using Global.DoLoadObjects to Use Rapise Objects from External File
One of the challenges using an automated testing tool is to organize things in a way that it is logical enough to find something quickly, structured enough to avoid duplication and simple enough to maintain and upgrade. This statement is also true for Rapise objects. A common requirement is to deal with the same objects within a flow of different test cases. For instance, if an application has “Log In” functionality then many, many tests will require logging-in and logging-out. Each test will have this object in its own object tree. However this causes trouble if a change in the application affects the recognition of the Log In object. All of the test cases will need to be updated. In such situations it is much more convenient to have the “Log In” objects placed into their own file and re-used by other tests.
KB186 Global.DoWaitFor vs Global.DoWaitForProperty
The most commonly used synchronization option to make Rapise wait until the application under test (AUT) is ready is the Global .DoSleep(milliseconds) function. However having just a sleep may cause an unnecessary delay because we have to consider the maximum wait interval and it may be much less on average. Rapise includes some additional synchronization options for more fine grained control of the test case flow.
KB187 Using CheckObjectExists(xpathOrObjId) to See if Web Object Exists on Page
This articles describes how you can use the Navigator.CheckObjectExists(...) function to see if a web page exists and how it differs from the Global.DoWaitFor / DoWaitForProperty functions that are described in another article.
KB184 What is the purpose of the Tester.EndTest() Function?
The Tester.EndTest() function in Rapise is describes as: Marks end of a currently executed test. Calculates test results and performs finalization of test execution. We have found that some of our customers have been confused as what the purpose of this function is.
KB183 Desktop Application Testing - Choosing the Right Library
Suppose we have a situation that a thick-client (desktop) application under test (AUT) is based on a technology that is too old or not completely supported by Rapise. Rapise has a number of libraries for different types of apps. Usually Rapise finds the correct libraries using its auto-detection, but sometimes an application is unusual and the auto-detection fails.
KB182 How to automate the testing of TinyMCE Rich Text Boxes using Rapise
KB181 Dynamically constructing the .rest file URLs to test REST APIs
Sometimes when using Rapise to test REST web services, you want to be able to dynamically change the base URL of the web service yet still use the same URL template and method information. This article describes a process for achieving this.
KB177 Web testing - Dynamically Switching the Browser in the Same Test
Sometimes you have a test that you want to run on Chrome, Firefox, and IE in the same script. Normally you write a browser-agnostic test and then have SpiraTest simply call Rapise with different browser names as a parameter and then you have the same test executed multiple times. However suppose you want to have a single test that by itself can run on all the necessary browsers. This article addresses this case.
KB176 Measuring browser performance with Rapise
How do you get the exact time that Rapise takes to load a page? Now, the reports summary shows the overall execution time but if you have pause times between steps then these times are added to the total time of that a page took to display. Customers have asked if Rapise has some kind of function that will allow them to see only the transaction time between pages without the pause times. Does Rapise have something like that? This article provides a solution to these cases.
KB175 Using Rapise to populate data in an Excel Spreadsheet
The built-in Spreadsheet object in Rapise makes it easy to read data from an MS-Excel spreadsheet. What happens if you want to write data back to the Excel sheet?
KB172 Dynamically changing object locators for Web applications
Sometimes you want to dynamically change the XPATH or CSS used in a specific object from within the test script itself. This article explains the process for doing this.
KB168 Customizing the Rapise Reports
By default, the reports displayed within Rapise report back each test activity and assert statement as a line in the report with all of the activities and events being displayed in a single flat list regardless of whether they happen inside the main Test() function or a sub-function. This articles explains how you can extend the reporting.
KB166 Using Rapise 3.1 to test a web page with a multi-select list
When you have a multi-select list in a web application, you may need to check which items are selected, or to check whether or not a particular item is selected. This article illustrates how to do that.
KB164 Calling Rapise DoX functions without reporting result
When you use a DoX command in Rapise to perform a specific command (e.g. DoDOMChildrenCount() to get a number of object's DOM children), in the report an extra step -- assert -- is created during test execution. Sometimes you want to be able to call a function 'quietly' without it affecting the report.
KB163 Accessing the Computed Style Properties of an HTML DOM Object
KB161 Certain Hyperlinks won't click during playback with Internet Explorer (IE)
Sometimes when you record a test script using IE and then play it back, some of the clicks on hyperlinks will not playback correctly. Rapise will list them as Passed, but the click won't actually be performed.
KB160 Rapise cannot connect to Firefox immediately after Firefox updates
If you try and connect to Firefox with Rapise immediately after Firefox has updated, you may see the following error message: Microsoft JScript runtime error: 'Navigator.GetBrowserHWND()' is null or not an object
KB159 Fixing 'Unable to cast object of type 'System.DBNull' to type 'System.String'' errors in Spira v4.x
Sometimes when you are saving Rapise test scripts into some early versions of Spira v4.2.x.x (e.g. Spira v126.96.36.199 - v188.8.131.52) you can start getting these errors on the Test Case details page. You may also get the error for other reasons in earlier versions of Spira v4.x.
KB158 Accessing the Spira v4.2 REST API to get test cases in a release
This article describes the process and provides an example for accessing the Spira v4.2 REST API to get a filtered list of test cases in a release.
KB146 How to Use Sub-Tests and Common Objects with REST Web Service Tests
It is often useful to have a common set of code libraries and objects that can be reused amongst multiple tests. With Rapise this can be done by creating a common test and then including it into the other actual tests. However due to the way REST web service tests are stored, there are some slight changes needed to handle REST services. This articles describes the process.
KB143 Rapise Won't Record Steps or Display Reports
If you are running Rapise and you suddenly start to find that none of your recordings get saved and the reports are not displaying during execution it may be due to the fact that you have saved your Rapise test folder onto a Network Share.
KB142 Scripts created with Rapise 2.1 or earlier no longer playing back correctly in Rapise 2.2 or later
In Rapise 2.2, "DoClick" behavior was changed, so we don't do a click but rather just position the mouse over the control and do API-level "click" event. However we provided a way to enable backward compatibility.
KB141 Testing Silverlight Applications
When testing Silverlight applications, you may find that Rapise fails to recognize the objects in the Silverlight app using the UIAutomation library. When using the Rapise Spy Tool, the whole app is identified as a single window. The objects such as a dropdown, buttons etc. inside the silverlight app are not individually recognized.
KB139 Disabling the generation of comments during Recording
By default Rapise records user actions with a line commented out for each action. This articles describes how you can disable this behavior if you just want the script lines recorded on their own.
KB138 My Actions are Not Recorded
By design Rapise tries to record user activity on the highest possible level. This makes recorded actions more readable and universal (often several lower-level user actions are combined)Rapise uses a heuristics to distinguish meaningful activity from low level actions. In some cases this leads to a result that some user activity is not automatically recorded (for example, a mouse click before entering text in a box). There is a broad range of available UI platforms and libraries. The variety of graphical widgets makes user interface robust and beautiful. Rapise tries to recognize as much objects as possible. However this range is growing and there are always widgets that are not being recorded.
KB137 Anti-Virus Software and Test Automation
Anti-virus software is very sensitive to test automation tools. This is normal, because test automation tools usually do API, keyboard and mouse hooking to be able to record and playback user actions.
KB136 How are Global Functions stored and recalled?
We need to call many common functions from a common library frequently.
KB134 Why is My Flex application recorded as mouse clicks?
A Flex application requires some instrumentation to be ready for testing. By default Flash player has security restrictions preventing Rapise from accessing the application contents. Please, check the this help topic to learn more about Adobe Flex testing.
KB133 The Recorder asks for a Library. Which should I choose?
In most cases "Auto" is the best choice. Manual selection of libraries may be needed in more advanced scenarios and is intended for experienced users.
KB132 Does Rapise work with Windows UAC?
If you are using Rapise on Windows Vista or Windows 7 it is not necessary to disable the Windows User Account Control (UAC) to use Rapise. Unlike some other automated testing tools on market, you can use Rapise with UAC enabled.
KB131 Executing Under a VM or Remote Desktop
Sometimes you need to test an application running on a VM or remote computer using Remote Desktop (RDP) rather than a physical terminal. This guide explains how to ensure that Rapise is able to correctly fire events on the application under test.
KB130 Waiting Until Application Ready
Sometimes you need to synchronize the test script so that it waits for a specific application event (change for status message or wait for some specific value). This guide explains how to ensure that Rapise waits for the appropriate condition.
KB124 Reading an Object's State
Sometimes it is necessary to examine the state of an object. For example, determine if Toggle Button is pressed or not, Radio/Check Button is checked or not, etc. This guide describes a couple of different ways of achieving this.
KB123 About Highlighting (Flash Command) Rectangles
Rapise has a choice of visual effects it can use when highlighting a control being learned during the recording process. This guide describes the different modes.
KB121 Choosing Object Type Manually
Sometimes Rapise will incorrectly recognize a GUI component. This guide outlines how you can manually change the object type captured during recording.
KB120 Capture Screenshots During Playback
When playing back a test it is useful to be able to capture the screen as its current state so that the cause of any test failures can be more easily deduced.
KB119 Working with Right-Click Context Menus
The context menu control is not natively supported by Rapise, but one can use a simple workaround.
KB118 Working with Selectable Lists
The behavior of list and combobox controls in GUI applications sometimes require additional attention. This guide explains the different types of combobox controls and best practices for testing them in Rapise.
KB115 Recording Web Menus
Many web sites have dynamic site menus. This guide outlines the best practices for recording events associated with such dynamic site menus.
KB114 My Actions are Not Recorded
By design Rapise tries to record user activity on the highest possible level. This makes recorded actions more readable and universal. However that sometimes means that certain actions that a user performs won't be automatically picked up. This guide explains ways to handle situations when a specific user activity is not recorded.
KB113 Recording Mouse Activity
This guide describes the different types of mouse events and how they are recorded in Rapise.
KB112 Re-Using Test Logic
It is common for test scenarios to share similar pieces of functionality. A good example of such sharing is login logic. This guide outlines ways in which you can share such logic to avoid having repeated code in your tests.
KB116 Working with HTML XPath
When testing web applications you will often need to use XPath to query the browser DOM for elements based on the scenario under test. This guide explains how you can use XPath queries with Rapise to make your browser testing more flexible and adaptive to changes on the screen.
KB117 Working with HTML Tables containing Dynamic Data
Many web sites use HTML tables to display lists of tabular data. When testing such applications you will often need to dynamically search for items in the table to verify that the application under test performed correctly. This guide outlines best practices for accessing data held in HTML tables.
KB122 Change Object Value or Text
This guide describes the different ways that you can change the value of text label of an object.
KB125 Analog Recording
Sometimes the application under test doesn't contain any learnable objects. In that case you may need to use the fallback of Analog Recording. This guide describes how you perform analog recording.
KB126 Simulated Objects
This guide describes what simulated objects are and when they should be used.
KB127 Passing Test Parameters
There are many different ways of passing test parameters to Rapise from an external system. This guide describes the different ways of passing parameter values to Rapise.
KB128 Creating a Set of Tests to Run in Rapise
This guide describes how you manage groups of Rapise tests together in situations where you are not using SpiraTest test sets.
KB129 Using Dynamic Linked Library (DLLs) in Test Scripts
KB135 How does Rapise detect if a dialog is already open?
There are several ways to find if something is already on the screen, this article explains some of the options.
KB111 Analog Testing when the Machine does not have the Break Key
When using Rapise for analog testing you need to use the key sequence CTRL+BREAK to start and stop the analog recorder. However some machines (particularly smaller laptops) do not have a BREAK or PAUSE (often the same function as BREAK) key. This article describes some solutiomns
KB109 Using DoDOMChildrenCount and DoDOMQueryXPath to inspect child HTML elements
Often you want to be able to query for the child elements on a web page that are dynamically created and therefore not good candidates for LEARNing individually. This article explains how you can use the dynamic XPATH methods of Rapise to accomplish this task.
KB105 After installing Windows Update KB3025390 Rapise No Longer Connects to IE
An old (December 9th, 2014) security update for Microsoft Windows and Internet Explorer (KB3025390) broke the support in IE for 'out-of-process' code execution. This effectively prevented an automated testing application such as Rapise from automating Internet Explorer (IE) applications. This was subsequently fixed by Microsoft on February 10th, 2015 with the KB 3021952 update.
KB102 How to Get Rapise Trace Logging Information
When using Rapise, it is often useful to see how Rapise is identifying objects in the Application Under Test (AUT) and if necessary find out why Rapise is not able to locate a specific object. This article outlines how to increase the logging level in Rapise.
KB101 Automating HTML File Upload Boxes
Sometimes you have to automate the uploading of files using an HTML file upload control. This article explains how to record and playback such a script.
KB96 How to automate the testing of Rich Text Boxes using Rapise
When you have a rich text box in a web application, the process for recording a test and playing it back will be different to a standard HTML plain text box. This is because the browser actually uses a separate IFRAME and HTML document for the editable rich text box. This article explains the process for recording/playing back such a test.
KB89 Adding Support for Custom Flex Controls
By default the Rapise Flex library supports a wide variety of Flex controls which will be capable of testing the majority of application. However sometimes there will be an unknown objects which will be learnt as a generic object with FlexObject flavor. The article describes support for such custom Flex controls:
KB87 Using Rapise to Validate Display of Data Grid Data
One common requirement is to run a query in an application being tested and verify that the data on the screen matches the data in the application. This article explains the recommended process for doing this.
KB86 Choosing the Web Browser in Rapise from SpiraTest / SpiraTeam
When writing a web test in Rapise you will often want to run the same test script in all three web browsers (IE, Firefox and Chrome). You will want to be able to choose the Test Script from within Rapise when debugging the test and then from a Test Set in SpiraTest when you move the test into production. This article explains the process.
KB85 Sending Special Keys to the Current Application
You can use the Global.DoSendKeys('...'); command in Rapise to send keypresses to the current application. Sometimes you will want to send special control keys to the application (e.g. Page Down, or CTRL + Key). This article explains the way to do this.
KB83 Turning off Chome and Firefox Auto-Updating
When you are testing a web application against different environments, it can be useful disable to default browser auto-updating policies so that you have a stable testing environment. This articles describes how to disable the auto-updating policies of Google Chrome and Firefox.
KB79 A DLL required for this install to complete could not be run
If you run one of our installation packages (.msi) and receive the following message: A DLL required for this install to complete could not be run
KB78 Enabling Windows Installer (.msi) Trace Logging
Sometimes when installing our products you get error messages during the installation and it's necessary to provide Inflectra support personnel with detailed trace/logging information so that they can better support you. This article describes the steps necessary to enable Windows Installer (.msi) trace logging.
KB77 How to resolve WScript.CreateObject: Could not connect object errors
Sometimes when you install Rapise on a computer that had a previous version of Rapise installed, when you try to record and/or playback a test you get the following error message: C:\Program Files (x86)\Inflectra\Rapise\Engine\Player.js WScript.CreateObject: Could not connect object. This article describes the steps to correct the error.
KB68 Accessing Clipboard in Rapise
Sometimes when automating a test, you need to access the local Windows clipboard. This article describes how to access the Windows clipboard programmatically.
KB65 Testing Win32 applications to verify that controls change display state
Sometimes you may have a button (or other control) that can have a different appearance depending on the different focus statuses.For example, the default status without focus is a grey image, whereas when the mouse hovering over it becomes blue. Then when the mouse left button is held down on the button (and not released), the image changes to a red image.Finally, when the button is activated using the tab key to tab into the button and the mouse is somewhere else, it has a fourth color. This article discusses solutions for how to test these kinds of situation
KB63 Getting the State of a Win32 object using Rapise
Sometimes you need to be able to test the state of a specific Win32 object in Rapise to see if it is enabled, disabled, is activated, etc. This sample illustrates how to get the numeric and textual value of the object's state.
KB62 Accessing Files and I/O functions using Rapise
Sometimes using Rapise you need to access files on the Windows filesystem, either for testing purposes, or to object test data stored in a flat CSV, TSV or text file. This sample illustrates how you can access the File System using Rapise and the Windows FileSystemObject (http://msdn.microsoft.com/en-us/library/aa242706(v=vs.60).aspx).
KB59 Using Simulated Objects
Simulated objects are found by looking at the parameters of the object (x number of pixels from the top of the window, y number of pixels from the left of the window, etc). One common question that has arisen is - during playback, does Rapise take into account screen resolution? If the resolution on the computer you run it on is different from the one it records on the location of the object will change relative to the number of pixels. So on the computer you record it on the top parameter might be 200 but on a different resolution it might be 180. Would Rapise recognize that the resolution is different and adjust for that?
Sometimes if you have installed a program that associates itself with the .js file extension, you will see the following error when you try and record/play a Rapise test: Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved. Input Error: There is no script engine for file extension ".js".
KB57 Accessing Child Objects in a Java AWT/Swing application
This article describes how to access child objects of a Learned Java AWT/Swing object when using the Rapise Java library. Sometimes when you Learn a top-level object, you want to be able to programmatically query the object to locate the child objects that are visible in the Java SPY.
KB56 Accessing child components of a WPF / Silverlight ListBox
When you have a WPF or Silverlight application that has a list box (or other control that supports templates such as a Tree) that has an item template that contains sub-controls, you may need to access the individual controls rather than just the entire list item. This article outlines the approach for doing this.
KB50 Dynamically changing object locators for WPF/Silverlight applications
Sometimes you will have controls in a WPF or Silverlight application which use dynamic lists. Depending on certain settings, the widgets in the list will appear in different places. This means that a Learned Rapise object which works fine if its in the original ListBox location position is then played-back when it's displayed in another position, it will be ListBox or . Unlike the XPath option with web testing, Rapise doesn't currently allow regular expressions (Regex) in locators stored inside the objects.js file. This article describes a way around the problem:
KB47 Executing a process and checking if it's still running
If you use the Global.DoLaunch(...) command to launch a Windows console application, it will return a process ID. This article provides some sample code for executing a console application and checking to make sure that the process is not still running.
KB40 Extending RapiseLauncher inactivity timeout
When executing Rapise scripts from SpiraTest using RapiseLauncher there is a 10-minute inactivity timeout. If your scripts have periods of inactivity that last longer than 10 minutes, you may need to extend the default timeout. This article describes the steps for doing this.
KB39 Executing SQL Database Queries from Rapise
Sometimes when you are running Rapise tests you need to run direct database queries to prepare the data in the test application, or you need to make queries against the database to verify that some user interactions left the data in a specific state. The sample script below illustrates how you can call database queries directly from the Rapise scripting editor:
KB38 Selecting Browser for Test
This article describes how to playback a test in a different browser from the one it was recorded in.
KB32 Unable to record/play a Java applet using Rapise inside a web browser
Sometimes you have the situation where you can record/play a Java application using Rapise having correctly installed the Java bridge and set the JAVA_HOME environment variable correctly, but applets running inside a web browser do not work. This article provides some suggested solutions
KB28 Detecting the presence of an object in Rapise
Often you need to be able to check for the presence of an object and then depending on whether the object is visible perform one of two possible sets of operations. This article explains the recommended way of doing this in Rapise 1.5.
KB27 Using Rapise to extract test data from an Excelsheet
Often you want to be able to parameterize your Rapise tests to have a common set of test functions that can use different combinations of test data. You can use a MS-Excel spreadsheet to store the test data and use Rapise to read out the matching values. This articles provides a sample for doing this.
KB26 Passing Parameters to a Rapise script through the command line
This article describes the syntax for passing parameters from the Windows 32-bit command-line to a Rapise script. Note that you need to make sure that you're using the 32-bit command line on a 64-bit machine. I.e. follow the instructions in this KB article - https://www.inflectra.com/Support/KnowledgeBase/KB17.aspx
KB25 Using Global.DoInvokeTest() to pass parameters between tests
Sometimes you want a test script to be able to call another sub-test as part of its operation. You can do this using the Global.DoInvokeTest('path to test', [parameters]); function. This articles provides a more detailed example for doing this. The high-level information can be found on our website at: https://www.inflectra.com/Rapise/Guides.aspx?feature=Passing-Test-Parameters
KB24 How to handle Windows/Objects that have names that change
When using Rapise to record test scripts against Windows, Java, Flex, or other thick client applications that have windows or objects whose names may change in between test runs, you will usually need to make changes to either the test script or the learned objects so that they can match correctly. This article outlines some suggested techniques for recording/playing back scripts against such applications.
KB18 How Do I Ensure No Other Browser Windows Open
When running a test you will often want to make sure there are no other browser windows open. This is commonly done either at the start or end of the test. This article describes how you do this.
KB19 How to successfully include and use common functions and objects
It is often useful to have a common set of code libraries and objects that can be reused amongst multiple tests. With Rapise this can be done by creating a common test and then including it into the other actual tests. This article describes the process
KB17 Running a Rapise script from the command-line on a 64-bit machine
If you try and run a Rapise script from the command-line on a 64-bit machine you may get the following error message: cmd . exe cscript "C:\Program Files (x86)\Inflectra\Rapise\Engine\SeSExecutor.js" "C:\Users\myuser\Documents\My Rapise Tests\MyTest1\MyTest1.sstest" Results in CScript Error: Execution of the Windows Script Host failed. (0x80020102)
KB13 Test-Scripts suddenly moving/clicking at false locations
If you have your browser zoom set to a value that is not 100% when recording or playing back scripts it will affect the playback reliability. Specifically Rapise will click/move at/to false locations in the test browser.You need to set your browser zoom to 100% before doing any playback/recording activities.
KB11 How do I change the URL of the website being tested in Rapise.
We are in the process of adding a new testing server that we would like to be able to run automation scripts against. I just wanted to see if there is a process documented for converting scripts and objects to point to a different web address?
KB8 Recording Infragistics Applications with Rapise Throws Error
If you try and record a test script in Rapise using just the 'Infragistics' library you will get the following error message: C:\Program Files (x86)\Inflectra\Rapise\Engine\Recorder.js(285, 3) Microsoft JScript runtime error: 'ManagedObjectSelectableBehavior_OnMouseEvent' is undefined