Skip to content

Samples Index

Rapise includes several sample tests that you are free to read, modify, copy and use.  You can open the tests from the Start Page.

Sample tests are located in:

RapiseDataDirectory\Samples

Unless otherwise specified, the RapiseDataDirectory will be:

C:\Users\Public\Documents\Rapise

The sample tests are described below.

ActiveX

These samples demonstrate the testing of Microsoft ActiveX / COM controls used in Visual Basic applications including the MSComCtl library. The samples include the Microsoft FlexGrid Control, MS Common Toolbar Control, Microsoft Tabbed Dialog Control, TabStrip, and Microsoft Windows Common Controls 6.0 [MSCOMCTL.OCX].

AnalogRecorder

This sample demonstrates Analog Recording.

CrossBrowser

Simple web test you can run on any browser.

Dynamics AX

This sample demonstrates using Rapise to test an installation of Microsoft Dynamics AX 2012 to perform some basic ERP functions.

Dynamics CRM

This sample demonstrates using Rapise to test an installation of Microsoft Dynamics CRM to perform some basic contact management functions.

FarPoint

This sample script demonstrates using the FarPoint library to test the FarPoint SpreadSheet Control.

Java

This sample tests a Java AWT/SWING application. This sample demonstrates the capabilities of the Java library. The application under test contains various standard GUI controls, such as: button, edit, tree, combo box, menu, etc.

Java SWT

This sample tests a Java SWT/RCP application. This sample demonstrates the capabilities of the SWT and UIAutomation libraries. The application under test contains various standard GUI controls, such as: button, edit, tree, combo box, menu, etc.

jQuery-UI

This sample illustrates using the jQuery HTML DOM extension library that allows you to record/playback test scripts against web applications using widgets from the jQuery Javascript library framework.

Library Information System

CreateNewBook, EditExistingBook, CreateNewAuthor, EditExistingAuthor

These tests can be used to test the sample library information system web application hosted at http://www.libraryinformationsystem.org. This is the same sample application used by SpiraTest and illustrates how you can use SpiraTest to manage and execute automated Rapise tests. A copy of these tests is also available in new installations of SpiraTest v3.2+.

To see these tests on the Start Page press the Fetch button at the top of the samples list.

Managed

This sample tests a .NET 2.0 application. This sample demonstrates the capabilities of the Managed library. The application under test contains various standard GUI controls, such as: button, edit, tree, combo box, grid, listbox, listview, menu, etc.

QtFramework

TThis sample tests a sample QT Framework cross-platform application. This sample demonstrates the capabilities of the QtFramework library. The application under test contains various standard Qt widgets, such as: button, edit, tree, combo box, etc.

Silverlight

This sample tests a Silverlight web application. This sample demonstrates the capabilities of the UIAutomation library. The application under test contains various standard GUI controls, such as: button, edit, tree, combo box, menu, etc.

SimulatedObject

This sample opens MS Paint and draws on its canvas. It uses Simulated Objects and several related methods: DoMouseMove(X,Y), DoLButtonDown(), DoLButtonUp(), and DoSendKeys(text).

SampleATM

This sample tests an MFC application. You will also learn how to organize your test script in modular form, how to launch the AUT from your test script and how to execute various actions on GUI controls.

UsingDatabase

This example shows how you can use a relational (SQL) database to create Data-Driven tests.  This script reads test case data from a spreadsheet ADO datasource to test Calculator.

UsingDLLHandlerManaged

This sample shows how to unit test managed DLLs. You'll see how to use methods CreateClassInstance() and InvokeMember().

UsingDLLHandlerUnManaged

This sample shows how to unit test unmanaged DLL code. You'll learn how to register (UserWrap.Register) and execute (UserWrap.ShellExecute) a function.

UsingImageCheckPoint

This example shows how to create image checkpoints.

UsingInclude

This sample demonstrates two ways to include external files/functions:

  1. eval(File.Include(...)): include a file with utility functions.
  2. SeSRunJSScript(...): include and execute external function with its own object map.

UsingMSAccess, UsingMSExcel, UsingMSWord

These samples demonstrate how you can work with Microsoft Word, Excel, and Access from scripts. You'll learn how to test applications that expose a COM interface.

UsingMobile

These samples demonstrate how to do the testing of mobile devices running either Apple iOS or Android.

UsingRegistry

This sample demonstrates usage of the Windows registry. The registry is queried to determine the OS (XP/2003/Vista, etc) and owner.

UsingReporting

This sample illustrates various reporting features:

  1. Regular reporting (Tester.Assert, Tester.Message)
  2. Custom attributes (Tester.SetReportAttribute, Tester.ResetReportAttribute)
  3. Stacked attributes (Tester.PushReportAttribute, Tester.PopReportAttribute)
  4. Nested Tests (Tester.BeginTest, Tester.EndTest)
  5. Inserting Links, Text and Images into the report (tags parameter, SeSReportText, SeSReportLink, SeSReportImage)

UsingSelenium

This sample how you can use Rapise to write Selenium WebDriver based web application tests using the raw Selenium WebDriver API.

UsingSpreadSheet

This example shows how you can use Excel spreadsheets to create Data-Driven tests.  This script reads test case data from an XLS spreadsheet to test Calculator.

UsingXML

This sample demonstrates how to read, modify and write XML files.

WebServicesREST

This sample demonstrates how you can use the Rapise Web-Services module to write and execute automated web service tests against an HTTP RESTful web service.

WebServicesSOAP

This sample demonstrates how you can use the Rapise Web-Services module to write and execute automated web service tests against an SOAP web service.