July 2023 – SoliteraTA

SoliteraTA

July 2023

invoke Application in Mobile Device “applicationVar_name”

Mobile Step Definition invoke Application in Mobile Device “applicationVar_name” Keyword Given, When, And, Then Description Will invoke the selected mobile application Declaration Code Element Application Test Data Then invoke Application in Mobile Device “App_config” NILL App_config mobile_application Android UiAutomator2 E:/mobileTestApp/Instagram Lite.apk true true NILL Remarks The “applicationVar_name” that is used through application configuration file should be in double quotes. Restriction “applicationVar_name” should be corresponds to a valid configuration.The application should be already installed on the mobile device. Table of contents Keyword Description Declaration Remarks Restriction

invoke Application in Mobile Device “applicationVar_name” Read More »

I Open the chrome browser in android device with “applicationVar_name” configuration

Mobile Step Definition I Open the chrome browser in android device with “applicationVar_name” configuration Keyword Given, When, And, Then Description Will Open chrome in mobile device Declaration Code Element Application Test Data Given I Open the chrome browser in android device with “App_config” configuration NILL App_config mobile_application Android UiAutomator2 E:/mobileTestApp/Instagram Lite.apk true true NILL Remarks The “applicationVar_name” that is used through application configuration file should be in double quotes. Restriction “applicationVar_name” should be corresponds to a valid configuration. Chrome browser should be already installed on the mobile device. Table of contents Keyword Description Declaration Remarks Restriction

I Open the chrome browser in android device with “applicationVar_name” configuration Read More »

verify “String Value” css property value equals “String Value” for element “element_name” for desktop window

Desktop step-Definition verify “String Value” css property value equals “String Value” for element “element_name” for desktop window Keyword Given, When, And, Then Description Verify the CSS property value of the specified element in the desktop window is equal to the provided value. Declaration Code Element Application Test Data When verify “background-color” css property value equals “Blue” for element “InputField” for desktop window ” InputField ID Input ” NILL NILL Remarks This step verifies that the specified CSS property of the element with the name “element_name” in the desktop window has the expected value. Restriction The element with the name “element_name” should be accessible and have the specified CSS property. The “String Value” should be a valid CSS property name, and the expected value should match the actual value. Table of contents Keyword Description Declaration Remarks Restriction

verify “String Value” css property value equals “String Value” for element “element_name” for desktop window 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 »

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 »

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