Samples Index¶
Rapise includes several sample tests that you can freely 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¶
This sample is a simple web test that can be run on any browser.
Dynamics AX¶
This sample demonstrates using Rapise to test an installation of Microsoft Dynamics AX 2012 to perform basic ERP functions.
Dynamics CRM¶
This sample demonstrates using Rapise to test an installation of Microsoft Dynamics CRM to perform 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, and menu.
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, and menu.
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; it 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 and later.
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, list box, list view, and menu.
QtFramework¶
This 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, and combo box.
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, and menu.
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 data source to test Calculator.
UsingDLLHandlerManaged¶
This sample shows how to unit test managed DLLs. You'll see how to use the 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 or functions:
- eval(File.Include(...)): includes a file with utility functions.
- SeSRunJSScript(...): includes and executes an 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 test mobile devices running either Apple iOS or Android.
UsingRegistry¶
This sample demonstrates the usage of the Windows Registry. The registry is queried to determine the OS (XP/2003/Vista) and owner.
UsingReporting¶
This sample illustrates various reporting features:
- Regular reporting (Tester.Assert, Tester.Message)
- Custom attributes (Tester.SetReportAttribute, Tester.ResetReportAttribute)
- Stacked attributes (Tester.PushReportAttribute, Tester.PopReportAttribute)
- Nested Tests (Tester.BeginTest, Tester.EndTest)
- Inserting Links, Text, and Images into the report (tags parameter, SeSReportText, SeSReportLink, SeSReportImage)
UsingSelenium¶
This sample shows 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 a SOAP web service.