Step Defination – Page 18 – SoliteraTA

SoliteraTA

Step Defination

if desktop element {string} is found then click on it else do nothing

Desktop step-Definition if desktop element {string} is found then click on it else do nothing Keyword Given, When, And, Then Description check for the first element, if first element is found then do nothing. Declaration Code Element Application Test Data Then if desktop element “BlankWorkbook” is found then click on it else do nothing BlankWorkbook NAME Blank workbook NILL NILL Remarks NILL Restriction Ensure that “element_name” is a valid and unique identifier for the element you want to click on. Make sure the element is visible and clickable before attempting the click action. Table of contents Keyword Description Declaration Remarks Restriction

if desktop element {string} is found then click on it else do nothing Read More »

if element {string} is not found on desktop window then click on element {string}

Desktop step-Definition if element {string} is not found on desktop window then click on element {string} Keyword Given, When, And, Then Description check for the given element, if element is not found then click on the specific element Declaration Code Element Application Test Data Then if element “A1_Cell” is not found on desktop window then click on element “BlankWorkbook” A1_Cell NAME A1 BlankWorkbook NAME Blank workbook NILL NILL Remarks This step performs a click action on the element specified by “element_name” within the desktop window. Restriction Ensure that “element_name” is a valid and unique identifier for the element you want to click on. Make sure the element is visible and clickable before attempting the click action. Table of contents Keyword Description Declaration Remarks Restriction

if element {string} is not found on desktop window then click on element {string} Read More »

click on current pointer location in desktop window

Desktop step-Definition click on current pointer location in desktop window Keyword Given, When, And, Then Description click on the current pointer location in the desktop window  Declaration Code Element Application Test Data Then click on current pointer location in desktop window NILL NILL NILL Remarks This step performs a click action on the current pointer location within the desktop window. Restriction The current desktop window should be in active position. Table of contents Keyword Description Declaration Remarks Restriction

click on current pointer location in desktop window Read More »

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 »

get past date of “<testdata_name>” hours from now and save as “<testdata_name>” variable in format “<testdata_name>”

All Step Definition get past date of {int} hours from now and save as {string} variable in format {string} Keyword Given, When, And, Then Description Will get past date which will come before mentioned hours from now and store it in a variable Declaration Code Element Application Test Data when get past date of “48” hours from now and save as “RandomPastDate” variable in format “dd-MM-yyyy” NILL NILL NILL Browser Support Google Chrome Firefox Edge Remarks The “String Value” that is used through test data file should be in angular brackets We can use any variable name (+int) for future and -int for past 0 for today  format supported: ddMMyyyy – 13042023 (13th April 2023) dd-MM-yyyy – 13-04-2023 MM/dd/yyyy – 04/13/2023 yyyy/MM/dd – 2023/04/13 dd MMM yyyy – 13 Apr 2023 dd MMMM yyyy – 13 April 2023 E, dd MMM yyyy – Thu, 13 Apr 2023 EEEE, dd MMMM yyyy – Thursday, 13 April 2023″ Restriction Element and application file should be in xml format. Table of contents Keyword Description Declaration Browser Support Remarks Restriction

get past date of “<testdata_name>” hours from now and save as “<testdata_name>” variable in format “<testdata_name>” Read More »

get future date of “<testdata_name>” hours from now and save as “<testdata_name>” variable in format “<testdata_name>”

All Step Definition get future date of {int} hours from now and save as {string} variable in format {string} Keyword Given, When, And, Then Description Will get future date which will come after mentioned hours from now and store it in a variable Declaration Code Element Application Test Data when get future date of “48” hours from now and save as “RandomFutureDate” variable in format “dd-MM-yyyy” NILL NILL NILL Browser Support Google Chrome Firefox Edge Remarks The “String Value” that is used through test data file should be in angular brackets We can use any variable name (+int) for future and -int for past 0 for today  format supported: ddMMyyyy – 13042023 (13th April 2023) dd-MM-yyyy – 13-04-2023 MM/dd/yyyy – 04/13/2023 yyyy/MM/dd – 2023/04/13 dd MMM yyyy – 13 Apr 2023 dd MMMM yyyy – 13 April 2023 E, dd MMM yyyy – Thu, 13 Apr 2023 EEEE, dd MMMM yyyy – Thursday, 13 April 2023″ Restriction Element and application file should be in xml format. Table of contents Keyword Description Declaration Browser Support Remarks Restriction

get future date of “<testdata_name>” hours from now and save as “<testdata_name>” variable in format “<testdata_name>” 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