Samples Index

Top  Previous  Next

SmarteStudio includes several sample tests that you are free to read, modify, copy and use.  They are located in: SmarteStudioDirectory\Samples.  Unless you specified otherwise, SmarteStudioDirectory should be:

C:\Program Files\SmarteSoft\SmarteStudio.

 

The sample tests are described below.

 

AnalogRecorder

This sample demonstrates Analog Recording.

 

CrossBrowser

A simple recorded test is modified to run on both Firefox and Internet Explorer.  Read the Cross Browser Testing HowTo for more details.

 

DotNet20

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

 

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.

 

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.

 

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).

 

SmarteATM

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.

 

UsingCustomStrings

This sample demonstrates how to integrate SmarteStudio tests with other tools using Custom Strings. TestFinish() is used to analyze and save test results. For more details, see: Custom Strings.

 

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(g_helper.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.

 

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)

 

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.