Other Operation – SoliteraTA

SoliteraTA

Other Operation

do not take screen shot for desktop application

Desktop step-Definition do not take screen shot for desktop application Keyword Given, When, And, Then Description Will not take screen shot for rest of test cases until they are enabled by the other step def to take ss, use this in context menu or dropdowns or whenever things get closed unpredictably. Declaration Code Element Application Test Data Then do not take screen shot for desktop application NILL NILL NILL Remarks Capturing screenshots can be useful for debugging and reporting purposes. Restriction  The desktop window should be accessible and in focus. Table of contents Keyword Description Declaration Remarks Restriction

do not take screen shot for desktop application Read More »

take screen shot for desktop application

Desktop step-Definition take screen shot for desktop application Keyword Given, When, And, Then Description Will start taking ss again, after they have been disabled by other step def, use this in context menu or dropdowns or wherever things get closed unpredictably. Declaration Code Element Application Test Data Then take screen shot for desktop application NILL NILL NILL Remarks Capturing screenshots can be useful for debugging and reporting purposes. Restriction  The desktop window should be accessible and in focus. Table of contents Keyword Description Declaration Remarks Restriction

take screen shot for desktop application Read More »

check timer for desktop application is within {string} milliseconds

Desktop step-Definition check timer for desktop application is within {string} milliseconds Keyword Given, When, And, Then Description After stopping the timer will check if the given value is inside the elapsed time or not. Declaration Code Element Application Test Data Then check timer for desktop application is within “15000” milliseconds ” InputField XPATH //input[@id=”Input”] ” NILL NILL Remarks NILL Restriction The desktop window should be accessible and in focus. The timer must be start before using this step def. Table of contents Keyword Description Declaration Remarks Restriction

check timer for desktop application is within {string} milliseconds Read More »

stop timer for desktop application

Desktop step-Definition stop timer for desktop application Keyword Given, When, And, Then Description Stop the already started timer Declaration Code Element Application Test Data Then stop timer for desktop application NILL NILL NILL Remarks NILL Restriction The desktop window should be accessible and in focus. The timer must be start before using this step def Table of contents Keyword Description Declaration Remarks Restriction

stop timer for desktop application Read More »

get NativeWindowHandle from desktop application of element {string} and store as {string}

Desktop step-Definition get NativeWindowHandle from desktop application of element {string} and store as {string} Keyword Given, When, And, Then Description Will get the native window handle of the given element, try to pass the top element so that It can be used to switch to that window later on. Declaration Code Element Application Test Data Then get NativeWindowHandle from desktop application of element “InputField” and store as “ProgramFiles” ” InputField XPATH //input[@id=”Input”] ” NILL NILL Remarks This step is used to switch on the native window of the desktop application by using their top element. Restriction Element and application file should be in xml format.  The desktop window should be accessible and in focus. Ensure that “element_name” is a valid and unique identifier. Table of contents Keyword Description Declaration Remarks Restriction

get NativeWindowHandle from desktop application of element {string} and store as {string} Read More »

change desktop default timeout to {string} seconds

Desktop step-Definition change desktop default timeout to {string} seconds Keyword Given, When, And, Then Description change the desktop default timeout to a given number of seconds Declaration Code Element Application Test Data Then change desktop default timeout to “30” seconds NILL NILL NILL Remarks NILL Restriction he 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

change desktop default timeout to {string} seconds Read More »

copy value of property {string} for element {string} to variable {string}

Desktop step-Definition copy value of property {string} for element {string} to variable {string} Keyword Given, When, And, Then Description Will copy the value of a particular property of an element and store that inside a variable. Declaration Code Element Application Test Data Then copy value of property “AutomationId” for element “InputField” to variable “PropertyValue” ” InputField ID Input ” NILL NILL Remarks Inspect.exe should be present on your system to inspect the element and know the element property of desktop application under test (Inspect .exe is a part of Microsoft SDK). Restriction Element and application file should be in xml format. Ensure that “element_name” is a valid and unique identifier for the element you want to double-click on. Make sure the element is visible and clickable before attempting the double-click action. Table of contents Keyword Description Declaration Remarks Restriction

copy value of property {string} for element {string} to variable {string} Read More »

copy value of property {string} for element {string} to clipboard

Desktop step-Definition copy value of property {string} for element {string} to clipboard Keyword Given, When, And, Then Description Will copy the value of a particular property of an element and add that text to clipboard Declaration Code Element Application Test Data Then copy value of property “AutomationId” for element “InputField” to clipboard ” InputField ID Input ” NILL NILL Remarks Inspect.exe should be present on your system to inspect the element and know the element property of desktop application under test (Inspect .exe is a part of Microsoft SDK). Restriction Element and application file should be in xml format. Ensure that “element_name” is a valid and unique identifier for the element you want to double-click on. Make sure the element is visible and clickable before attempting the double-click action. Table of contents Keyword Description Declaration Remarks Restriction

copy value of property {string} for element {string} to clipboard Read More »

replace ?changeHere? text with {string} in desktop element value of name {string}

Desktop step-Definition replace ?changeHere? text with {string} in desktop element value of name {string} Keyword Given, When, And, Then Description Will replace the text of the element value with a string in the desktop Declaration Code Element Application Test Data Then replace ?changeHere? text with text “StoryRandomName” in element value of name “NewStoryName” ” NewStoryName XPATH //span[contains(text(),”?changeHere?”)] ” NILL NILL Remarks In this step you can change a specific text of a element with user defined text. Restriction Ensure that “element_name” is a valid and unique identifier for the element, you want to replace the text. Make sure the element is visible and text is readable before attempting any action. The desktop window should be accessible and in focus. Table of contents Keyword Description Declaration Remarks Restriction

replace ?changeHere? text with {string} in desktop element value of name {string} 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 »

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