Desktop application operations – Page 6 – SoliteraTA

SoliteraTA

Desktop application operations

select dropdown option {string} for dropdown {string} in desktop application

Desktop step-Definition select dropdown option {string} for dropdown {string} in desktop application Keyword Given, When, And, Then Description select dropdown option in desktop application Declaration Code Element Application Test Data Then select dropdown option “” for dropdown “numberFormatingDropDown” in desktop application numberFormatingDropDown XPATH //*[@AutomationId=”NumberFormatGallery”][@Name=”Number Format”]/Button[@Name=”Open”] NILL A B NumberFormat Accounting Remarks The Windows Application Driver (WinAppDriver) installed on your machine. You can download it from the  WinAppDriver v1.2.1. A windows machine with the desktop application you want to test installed. Inspect.exe should be present on your system to inspect the element of desktop application under test (Inspect .exe is a part of Microsoft SDK). Default winAppDriver location: C:Program Files (x86)Windows Application Driver Restriction Element and application file should be in xml format. Table of contents Keyword Description Declaration Remarks Restriction

select dropdown option {string} for dropdown {string} in desktop application Read More »

clear the input element {string} of desktop application

Desktop step-Definition clear the input element {string} of desktop application Keyword Given, When, And, Then Description clear the input element of desktop application Declaration Code Element Application Test Data Then clear the input element “FormulaBar” of desktop application FormulaBar NAME Formula Bar NILL NILL Remarks The Windows Application Driver (WinAppDriver) installed on your machine. You can download it from the  WinAppDriver v1.2.1. A windows machine with the desktop application you want to test installed. Inspect.exe should be present on your system to inspect the element of desktop application under test (Inspect .exe is a part of Microsoft SDK). Default winAppDriver location: C:Program Files (x86)Windows Application Driver Restriction Element and application file should be in xml format. Table of contents Keyword Description Declaration Remarks Restriction

clear the input element {string} of desktop application Read More »

click on dropdown {string} and select element {string} in desktop application

Desktop step-Definition click on dropdown {string} and select element {string} in desktop application Keyword Given, When, And, Then Description click on dropdown and then select the specified element in the desktop application. Declaration Code Element Application Test Data Then click on dropdown “numberFormatingDropDown” and select element “accountingFormating” in desktop application numberFormatingDropDown XPATH //*[@AutomationId=”NumberFormatGallery”][@Name=”Number Format”]/Button[@Name=”Open”] accountingFormating NAME Accounting NILL NILL Remarks The Windows Application Driver (WinAppDriver) installed on your machine. You can download it from the  WinAppDriver v1.2.1. A windows machine with the desktop application you want to test installed. Inspect.exe should be present on your system to inspect the element of desktop application under test (Inspect .exe is a part of Microsoft SDK). Default winAppDriver location: C:Program Files (x86)Windows Application Driver Restriction Element and application file should be in xml format. Table of contents Keyword Description Declaration Remarks Restriction

click on dropdown {string} and select element {string} in desktop application Read More »

terminate the desktop application using command prompt {string}

Desktop step-Definition terminate the desktop application using command prompt {string} Keyword Given, When, And, Then Description Terminate the desktop application using command prompt, will close all the instances and windows of that particular application. Declaration Code Element Application Test Data Then terminate the desktop application using command prompt “EXCEL.EXE” NILL NILL NILL Remarks Application name should be a valid application name Restriction Element and application file should be in xml format. Application must be existed in your system. Table of contents Keyword Description Declaration Remarks Restriction

terminate the desktop application using command prompt {string} Read More »

switch focus to window with window title “String Value” for max “String Value”

Desktop step-Definition switch focus to window with window title “String Value” for max “String Value” Keyword Given, When, And, Then Description Will switch focus to some other window using window Title of that window for max time Declaration Code Element Application Test Data When switch focus to window with window title “Notepad” for max “20” NILL NILL NILL Remarks The Windows Application Driver (WinAppDriver) installed on your machine. You can download it from the  WinAppDriver v1.2.1. A windows machine with the desktop application you want to test installed. Inspect.exe should be present on your system to inspect the element of desktop application under test (Inspect .exe is a part of Microsoft SDK). Default winAppDriver location: C:Program Files (x86)Windows Application Driver Restriction Element and application file should be in xml format. Table of contents Keyword Description Declaration Remarks Restriction

switch focus to window with window title “String Value” for max “String Value” Read More »

enter random text of length “String Value” from desktop window and store as “Var_Name”

Desktop step-Definition enter random text of length “String Value” from desktop window and store as “Var_Name” Keyword Given, When, And, Then Description To enter a random variable and save it as a variable Declaration Code Element Application Test Data When enter random text of length “6” from desktop window and store as “FirstName” NILL NILL NILL Remarks This step allows generating random text of a specific length from the desktop window and storing it as a variable. Restriction The specified “String Value” must represent a valid length (integer) for the random text. The desktop window should be accessible and in focus. Table of contents Keyword Description Declaration Remarks Restriction

enter random text of length “String Value” from desktop window and store as “Var_Name” Read More »

wait until element “element_name” loads in desktop application for max “String Value” seconds

Desktop step-Definition wait until element “element_name” loads in desktop application for max “String Value” seconds Keyword Given, When, And, Then Description wait until the given time Declaration Code Element Application Test Data When wait until element “InputField” loads in desktop application for max “120” seconds ” InputField ID Input ” NILL NILL Remarks This step waits for the specified element, represented by “element_name,” to load in the desktop application within the maximum time specified by “String Value” (in seconds). Restriction Ensure that “element_name” is a valid and unique identifier for the element you want to wait for Table of contents Keyword Description Declaration Remarks Restriction

wait until element “element_name” loads in desktop application for max “String Value” seconds Read More »

combine {string} testdata with {string} testdata and save it as {string} for desktop application

Desktop step-Definition combine {string} testdata with {string} testdata and save it as {string} for desktop application Keyword Given, When, And, Then Description combine the given text with testdata and save it Declaration Code Element Application Test Data When combine “FirstName” with “Wick” and store as “FullName” in desktop window NILL NILL NILL Remarks Combining strings can be useful for constructing dynamic text or performing comparisons. Restriction Verify that the “String Value” variables contain the expected content before combining them. First string value contain text and in second string value you can directly pass the text. Table of contents Keyword Description Declaration Remarks Restriction

combine {string} testdata with {string} testdata and save it as {string} for desktop application Read More »

switch focus to window with className “String Value” for max “String Value”

Desktop step-Definition switch focus to window with className “String Value” for max “String Value” Keyword Given, When, And, Then Description Will switch focus to some other window using className of that window for max time Declaration Code Element Application Test Data When switch focus to window with className “”Microsoft.UI.Xaml.Controls.MenuBarItem”” for max “30” NILL NILL NILL Remarks The Windows Application Driver (WinAppDriver) installed on your machine. You can download it from the  WinAppDriver v1.2.1. A windows machine with the desktop application you want to test installed. Inspect.exe should be present on your system to inspect the element of desktop application under test (Inspect .exe is a part of Microsoft SDK). Default winAppDriver location: C:Program Files (x86)Windows Application Driver Restriction Element and application file should be in xml format. Table of contents Keyword Description Declaration Remarks Restriction

switch focus to window with className “String Value” for max “String Value” Read More »

Solitera may collect certain information by automated means, such as cookies and web beacons, when a user visits our website. A “cookie” is a small piece of data that a website can send to your browser, which may then be stored on your system. learn more