Skip to content
You're viewing the v2 docs. Looking for v1?Go to v1 docs
Docs
Testsigma
Popular questions
↑↓ to navigate↵ to selectesc to close
Book a demo

Create a Windows test case

Testsigma tests Windows desktop applications through 2 project types. Windows (Lite) captures elements with the Test Recorder and suits applications built on the modern Windows frameworks. Windows (Advanced) uses the Element Recorder or a UFT One object repository, and reaches Oracle, Java, SAP, Insight, terminal emulators, and legacy software that Lite cannot.

The project type is set when you create the application and cannot be changed afterwards, so choose before you start.

Project typeCovers
Windows (Lite)Universal Windows Platform, Windows Forms, Windows Presentation Foundation, Classic Win32
Windows (Advanced)Oracle, Java, SAP GUI, SAP UI5, Insight, Terminal Emulator, UIA-based applications, legacy Windows software

Windows (Lite) needs the Testsigma Agent set up and Developer Mode enabled on the Windows machine.

Windows (Advanced) needs Testsigma Terminal installed, the WinTest Automation folder in the Testsigma Agent directory, and Developer Mode enabled.

The flow is the same throughout: capture the elements, then build steps against them. What changes is how the elements arrive. Running the test case is the same for every route, and is covered below.

A Lite test case is built from elements captured beforehand, so this comes first. The Test Recorder takes them one at a time from the running application.

  1. Go to Create Tests > Elements and click Record.
  2. In the Record Elements overlay, select Local Test Machine, enter the App path, and click Record.
  3. Wait for the application to load fully.
  4. Click the element you want to capture.
  5. Check the Name, Screen Name, Element Type, and Value in the Create Element section.
  6. Click Create.
  7. Repeat for every element you need, then stop the recorder to close the session.

The Record Elements overlay, with the connected machine and the desktop app path

The recorder streaming the application, with Create Element filled in from the clicked control

The captured elements appear under Create Tests > Elements and can be reused across test cases.

  1. Go to Create Tests > Test Cases and click Create Test Case.
  2. Build the steps on the Test Case Details page from the built-in NLPs and the elements you captured.
  1. Click Run on the Test Case Details page.

  2. In the Ad-Hoc Run overlay, select the Local Test Machine, set any Additional settings, and click Run Now.

Copilot works on any Advanced technology. It runs the test case on the Windows machine and pauses where you tell it to, so you can inspect the application and record more steps without leaving the session.

  1. Click Copilot in the action panel on the Test Case Details page.

  2. Set Set Initial Debug Point and Execute from Step in the Copilot overlay, and configure the additional settings if needed.

  3. Click Launch. Execution starts on the Windows test machine, and the Copilot panel opens beside the step results.

  4. When execution pauses at a debug point or on a failure, inspect the application and use the execution controls.

  5. Click Rec to record more steps by performing actions in the application.

  6. Click Resume to continue the run.

Resume continues from the next step rather than restarting, and Rec records additional steps into the test case during the session. Pause, Step Over, Skip Over, and Restart Execution are also available. See Copilot.

Every SAP element supports these 7 actions: SetFocus, GetId, GetText, SetText, GetToolTip, GetName, and IsEnable.

Each element type adds its own on top.

Element typeAdditional actions
ButtonClick
CalendarGetDate, SetDateRange, setDate
CheckBoxSet, IsChecked
ComboBoxSelect, SelectKey
EditFieldsetCursorPosition, GetDisplayedText, GetMaxLength, IsRequired, IsNumerical
EditorDoubleClick, Select, SetUnprotectedTextPart
LabelGetMaxLength, IsNumerical, setCursorPosition
MenubarSelect
OKCodeNone beyond the 7 common actions
StatusBarGetMessageNumber, GetMessageId, IsMessageAsPopup
TabControlGetSelectedTab, Select
TableSelectCell, SelectRow, SelectRowRange, SelectColumn, SelectAllColumns, DeselectRow, DeselectRowRange, DeselectColumn, ActivateCell, IsValidRow, GetLength, GetTitle, Click, PressSettingsButton, OpenPossibleEntries
ToolbarPressButton, PressContextButton, SelectMenuItem, SelectMenuItemById
TreeViewActivateNode, GetSelectedItem, GetSelectedNodePath, OpenContextMenu, OpenHeaderContextMenu
WindowClose, Maximize, Resize, Restore, SendVKey, TabBackward, TabForward

Importing an updated TSRx file can leave elements, test cases, and step groups pointing at something that no longer matches. Testsigma flags them rather than letting the next run fail.

Errors surface in 2 places, each with a View All filter that narrows the list to the impacted items:

  • On Create Tests > Elements, an impacted element carries a warning
  • On Create Tests > Test Cases, an impacted test case shows a red underline on the element that no longer matches

To fix one:

  1. Open the impacted test case.

  2. Hover over the highlighted step to read the error.

  3. Hover over the element and click View/Edit element to open Element details, which names the impacted elements.

  4. Replace them with new elements, or disable or remove the step.

Developer Mode is off on the Windows machine. Turn it on under Settings > Privacy & security > For developers, and click Yes.

If Developer Mode is already on, check the executable path. A wrong .exe path stops the recorder the same way.

Was this page helpful?