Step Defination – Page 24 – SoliteraTA

SoliteraTA

Step Defination

hover over desktop window element {string}

Desktop step-Definition hover over desktop window element {string} Keyword Given, When, And, Then Description Will hover the mouse to the element present in the desktop window Declaration Code Element Application Test Data When hover over desktop window element “Inputfield” ” InputField ID Input ” NILL NILL Remarks Hovering the mouse can trigger certain actions or reveal additional information. Restriction Ensure that the application responds correctly to mouse hover events. Table of contents Keyword Description Declaration Remarks Restriction

hover over desktop window element {string} 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 »

hover over desktop window element {string}

Desktop step-Definition hover over desktop window element {string} Keyword Given, When, And, Then Description Will hover the mouse to the element present in the desktop window Declaration Code Element Application Test Data Then hover over desktop window element “InputField” ” InputField ID Input ” NILL NILL Remarks This step definition hovers the mouse over an element with the name “element_name” in the desktop window. Restriction The element with the name “element_name” should be accessible and hoverable in the desktop window. Table of contents Keyword Description Declaration Remarks Restriction

hover over desktop window element {string} Read More »

hover and click on desktop window element {string}

Desktop step-Definition hover and click on desktop window element {string} Keyword Given, When, And, Then Description hover the mouse to the element present in the desktop window and click on it Declaration Code Element Application Test Data When hover and click on desktop window element “InputField” ” InputField ID Input ” NILL NILL Remarks This step definition hovers the mouse over an element with the name “element_name” in the desktop window, clicks on it, and sends the specified value to given desktop window element. Restriction The element with the name “element_name” should be accessible and hoverable, and the target desktop window element should be accessible and interactable. Table of contents Keyword Description Declaration Remarks Restriction

hover and click on desktop window element {string} Read More »

type text “String Value” to input field “element_name” in desktop window

Desktop step-Definition type text “String Value” to input field “element_name” in desktop window Keyword Given, When, And, Then Description Type the given text into input field Declaration Code Element Application Test Data When type text “Course” to input field “InputField” in desktop window ” InputField ID Input ” NILL NILL Remarks This step definition types the specified text into an input field with the name “element_name” in the desktop window. Restriction The input field with the name “element_name” should be accessible and interactable in the desktop window. Table of contents Keyword Description Declaration Remarks Restriction

type text “String Value” to input field “element_name” in desktop window Read More »

copy the text from the element “element_name” and paste in the element “element_name” in the desktop window

Desktop step-Definition copy the text from the element “element_name” and paste in the element “element_name” in the desktop window Keyword Given, When, And, Then Description Copy the text from one element and paste the text into second element Declaration Code Element Application Test Data When copy the text from the element “InputField” and paste in the element “UseremailField” in the desktop window ” InputField ID Input UseremailField XPATH //input[@id=”email”] ” NILL NILL Remarks This step definition copies the text from one element with the name “element_name” and pastes it into another element with the same name in the desktop window. Restriction Both elements with the name “element_name” should be accessible and interactable, and they should support text copying and pasting. Table of contents Keyword Description Declaration Remarks Restriction

copy the text from the element “element_name” and paste in the element “element_name” in the desktop window Read More »

click on action element “element_name” in the desktop window

Desktop step-Definition click on action element “element_name” in the desktop window Keyword Given, When, And, Then Description Will click on an action element in the desktop window Declaration Code Element Application Test Data When click on action element “InputField” in the desktop window ” InputField ID Input ” NILL NILL Remarks This step definition clicks on an action element with the name “element_name” in the desktop window. Restriction The action element with the name “element_name” should be accessible and interactable in the desktop window. Table of contents Keyword Description Declaration Remarks Restriction

click on action element “element_name” in the desktop window 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