25.1 System Keywords

Action Keywords

HandleExpectedPopup

This keyword handles specified popup once during the execution using TAB and ENTER keys combination.

It takes WindowTitle, Number Of Tabs & WaitTime as input parameter.

For example, you want to remove or handle the popup present on window then you can use this keyword.

Input Arguments

Output

Example

If you want to Handle the popup, here is how you will use this keyword.

HandleExpectedPopup

Error conditions

KeyPress

This keyword is used to send keystrokes to the active application window.

It takes Key, No. of repetition as input parameter.

For example, you want to press a key from keyboard then you can use this keyword.

Input Arguments

Output

Example

If you want to press a key, here is how you will use this keyword

KeyPress

Error conditions

KillProcess

This keyword kills the specified Process. It takes the process name (notepad.exe) as input parameter.

For example, you want to kill the process.

Input Arguments

Output

Example

If you want to kill the process, here is how you will use this keyword

KillProcess

Error conditions

SendString

This keyword is used to send string to the active application window. It takes KeyName as input parameter.

For example, you want to sendString.

Input Arguments

Output

Example

If you want to Send a key (in String), here is how you will use this keyword

SendString

Note: Please provide the String name in Curly Braces.

Error conditions

Assertion Keywords

CompareString

This keyword is used to compare the two strings whether they are equal or not.

It returns True if the two strings are equal. It takes String1 & String2 as input parameter.

For example, you want to verify the CompareString

Input Arguments

Output

Example

If you want to compare the two strings, this is how you will use this keyword.

CompareString

IsEqual

This keyword is used to verify whether the given Values are Equal or not.

It returns True if the two given Integers are Equal. It takes String1 & String2 as input parameter.

For example, you want to verify the IsEqual.

Input Arguments

Output

Example

If you want to verify that both the operands value are equal or not.

IsEqual

IsGreater

This keyword is used to verify whether the First Operand Value is Greater than the second One. It returns True if First specified integer value is greater than second one. It takes String1 & String2 as input parameter.

For example, you want to verify the IsGreater.

Input Arguments

Output

Example

If you want to verify that the first operand value is greater than the second one, here is how you will use this keyword.

IsGreater

IsNotEqual

This keyword verifies that the specified Operands are not equal. It returns true if the given strings are not equal. It takes String1 & String2 as input parameter.

For example, you want to verify the IsNotEqual.

Input Arguments

Output

Example

If you want to verify that the first operand value is not equal to the second operand value, here is how you will use this keyword.

IsNotEqual

IsSmaller

This keyword verifies that the first string value is smaller than the second one or not.

It is mostly used in situations where you want to verify that the first value present in string is smaller or not.

For example, you want to verify the IsSmaller.

Input Arguments

Output

Example

If you want to verify that the first operand is smaller as compared to the second one, here is how you will use this keyword.

IsSmaller

StringContains

This keyword verifies the sub String into the Specified String. It is mostly used in situations where you want to verify that the sub string is the part of string or not.

For example, you want to verify the sub string.

Input Arguments

Output

Example

If you want to verify that the sub string is the part of string or not, here is how you will use this keyword.

StringContains

VerifyValueInProcedure

This keyword is used to validate the value returned in the result when a procedure is executed. It takes Value, Procedure Name, Parameter  Name, Parameter Value as data input arguments.

Input Arguments

Output

Example

Let us consider the Following Procedure in MySQL

If you want to validate the value returned in the result when a procedure is executed, you can do so by using VerifyValueInProcedure keyword as follows:

VerifyValueInProcedure

Common Error conditions

VerifyValueInRecordSet

This keyword is used to match the specified value with actual value available in database. It takes a value and database query as data input arguments.

Input Arguments

Output

Example

Consider the screenshot above of a table, if you want to validate the value in the Record Set, you can do so by using VerifyValueInRecordSet keyword as follows:

VerifyValueInRecordSet

Common Error conditions

Clipboard Keywords

CopyToClipBoard

This keyword copies data to clipboard. It takes CopyString as input parameter. It is mostly used in situations where you want to copy some data from opkey and paste it to a text file (example: notepad, word, etc).

Input Arguments

Output

Example

If you use this keyword and give the value in CopyString and then execute it. When execution is complete, open notepad (or Word, etc.) and paste it. It will paste the string given in data input argument of the keyword.

Error conditions

Conversion Keywords

ConvertToBoolean

This keyword converts the Input value to boolean. It takes input value as input parameter.

It is mostly used in situations where you want to convert value into Boolean.

Input Arguments

Output

Example

Here, you can use this keyword to convert String (or Integer or Boolean or Double) value of DataType into Boolean and the output will be True/False.

Error conditions

ConvertToDateTime

This keyword converts the string of specified format to DateTime. It takes SourceString & SourceFormat as input parameter. This keyword is mostly used in situations where you want to convert value into DateTime.

Input Arguments

Output

If the value provided is correct then the output will be in Date Time format otherwise it will display no value.

Example

Here, you can use this keyword to convert String value of DataType into DateTime format and the output will be in Date Time.

Error conditions

ConvertToDouble

This keyword converts the Input value to double. It takes Input Value & Precision as input parameter.

It is mostly used in situations where you want to convert value in Double, ie. in decimal format.

Input Arguments

Output

If the value provided is correct then the output will be in Double otherwise it will display no value.

Example

Here, you can use this keyword to convert Integer value of DataType into Double and the output will be in Decimal format.

Error conditions

ConvertToInteger

This keyword converts the Input value to integer. It takes Input Value & RoundOff as input parameter.

It is mostly used in situations where you want to convert value in Integer.

Input Arguments

Output

If the value provided is correct then the output will be in Integer otherwise it will display no value.

Example

Here, you can use this keyword to convert Integer (or Double) value of DataType into Integer and the output will be in Integer format.

Error conditions

ConvertToString

This keyword converts the Input value to string. It takes Input Value as input parameter.

It is mostly used in situations where you want to convert value in String.

Input Arguments

Output

If the value provided is correct then the output will be String.

Example

Here, you can use this keyword to convert String (or Integer or Boolean or Double) value of DataType into String and the output will be in String format.

Note: No error condition available for this keyword.

Database Keywords

ConnectDatabase

This keyword is used  to Connect to a Database. It takes database Driver Name and connection string as data input arguments.

Input Arguments

Output

Example

If you want to connect to a database , you can do so by using ConnectDataBase keyword as follows:

ConnectDataBase

Common Error conditions

DisconnectDatabase

This keyword is used to disconnect from a Database. It does not take any input arguments.

Input Arguments

Output

Example

If you want to disconnect from a DataBase, you can do so by using Disconnect DataBase keyword. Before using  Disconnect DataBase keyword, It is mandatory to successfully connect to the DataBase.

Common Error conditions

ExecuteQuery

This keyword is used to execute a Database query. It takes Query as Data Input Argument.

Input Arguments

Output

Example

If you want to execute a DataBase Query, you can do so by using ExecuteQuery keyword as follows:

ExecuteQuery

Common Error conditions

FetchAllRecordsFromDatabase

This keyword is used to fetch a @:@:@:@ separated recordset database. It takes database Query as data input argument.

Input Arguments

Output

Example

If you want to fetch a @:@:@:@ separated recordset database, you can do so by using FetchAllRecordsFromDataBase keyword as follows:

FetchAllRecordsFromDatabase

Common Error conditions

FetchRecordSetFromDatabase

This keyword is used to fetch a #:#:#:# separated recordset database. It takes database Query as data input argument.

Input Arguments

Output

Example

If you want to fetch a #:#:#:# separated recordset database, you can do so by using FetchRecordSetFromDataBase keyword as follows:

FetchRecordSetFromDataBase

Common Error conditions

FetchValueFromDatabase

This keyword is used to fetch a single value from database. It takes Query as Data Input Argument.

Input Arguments

Output

Example

If you want to fetch to fetch a single value from database, you can do so by using FetchValueFromDataBase keyword as follows:

FetchValueFromDatabase

Common Error conditions

FetchValueFromProcedure

This keyword is used to fetch single value from a procedure. It takes Procedure Name, Param Name, Param Value as data Input Arguments.

Input Arguments

Output

True

If the keyword passes successfully

False

If an error is there

Example

Let us consider the Following Procedure in MySQL

1.jpg

If you want to to fetch single value from a procedure, you can do so by using FetchValueFromProcedure keyword as follows:

FetchValueFromProcedure

Common Error conditions

GetColumnCountOfRecordSet

This keyword is used to fetch the number of columns of a recordset. It takes Query as Data Input Argument.

Input Arguments

Output

Example

If you want to fetch the number of columns of a recordset, you can do so by using GetColumnCountOfRecordSet keyword as follows:

GetColumnCountOfRecordSet

Common Error conditions

GetRowCountOfRecordSet

This keyword is used to fetch the number of rows of a recordset. It takes Query as Data Input Argument.

Input Arguments

Output

Example

If you want to fetch the number of rows of a recordset, you can do so by using GetRowCountOfRecordSet keyword as follows:

GetRowCountofRecordSet

Common Error conditions

UpdateDatabase

This keyword is used to execute update query in database. It takes a query as data input argument.

Input Arguments

Output

Example

If you want to update query in database, you can do so by using UpdateDataBase keyword as follows:

UpdateDatabase

Common Error conditions

Date Time Keywords

ConvertTimeToTimeZone

This keyword converts the time from source to destination time zone with respect to time of our local system.

It is used in situations where you want to convert the time from source time zone to destination time zone and your working system is being configured in different time zone.

For Example: you want to change time from “India Standard Time”, to “US Eastern Standard Time”, you can use this keyword.

Output

Example

In the example above, if you want to get the time of  US and your local system is configured in Indian time zone, then provide  data input arguments.

Select source time from “SourceTime” argument, provide “SourceTimeZone” as “India Time Zone” and provide “DestinationTimeZone” as  “US Eastern Standard Time”.

It will provide time of according to destination time zone in output. here is how you will use this keyword  “ConvertTimeToTimeZone”.

Note: Source time will be time of your system, and for getting name of time zones you can go to this link” https://technet.microsoft.com/en-us/library/cc749073(v=ws.10).aspx.

Error conditions

GetTimeAtTimeZone

This keyword provides the time of specified time zone with respect to time of our local system. It is used in situations where you want to get the time of different time zone and your working system is being configured in different time zone.

For Example: your working system is configured in “India Standard Time”, but you want to see time in “US Eastern Standard Time”.

Output

Example

In the example above, if you want to get the time of  US, then provide it in data input argument“timezone” as “US Eastern Standard Time” and it will provide time of specified time zone. here is how you will use this keyword  “GetTimeAtTimeZone”.

Note: Source time will be time of your system, and for getting name of time zones you can go to this link” https://technet.microsoft.com/en-us/library/cc749073(v=ws.10).aspx .

Error conditions

Date Time Keywords

AddDateTime

This keyword is used to add a specific amount of days, months, year, hours, mins and seconds in a given date value.

Input Arguments

Output

Positive Condition

Error conditions

Don’t Provide Input Argument

ConvertDateTimeFormat

This keyword converts a dateTime value according to some specified format.

Input Arguments

Output

Positive Condition

Message: Argument Data Missing

DateTimeDifference

This keyword returns the date difference in total days.

Input Arguments

Output

Positive Condition

Error conditions

Provide Valid String and Invalid Format

Provide FirstDate, SecondDate but don’t Provide Format

Don’t Provide Input Argument

GetCurrentDateTime

This keyword is used to get Current Date Time of the system. It used in such a condition when user want to get current day Date Time.

Input Arguments

Output

Positive Condition

GetDayOfWeek

This Keyword is used to get the current week day number. It uses date on the basis of Date it gives the week number.

Input Arguments

Output

Example

If user use this keyword on 14 of Feb then it gives the output as 2 and if user use this keyword on 15 of Feb then it gives the output as 3.

Positive Condition

IsDate

This Keyword verifies that given format is date or not. It is used in such a condition where user want to verify provided date is date format or not.

Input Arguments

Output

Positive Condition

Error conditions

Provide Valid String and Invalid Format

Not Provide Input Argument

SubtractDateTime

This keyword is used to Subtract Date Time a specific amount of days, months, year, hours, mins and secs in a given date value.

Input Arguments

Output

Positive Condition

Error conditions

Don’t Provide Input Argument

File Handling Keywords

AppendTextToFile

This keyword appends specified text to the given File. It used in such condition where user want to add Specific Text in file.

Input Arguments

Output

Positive Condition

Error conditions

Don’t Provide FilePath or TextToAppend

Provide File path which does not exist.

CheckFileExists

This keyword is used to check whether the file exists or not.

Input Arguments

Output

Positive Condition

Error conditions

Provide File path which does not Exist.

CopyFile

This Keyword is used to copy file from source to destination. It is in such a condition where user want to copy file from one location to another location.

Input Arguments

Output

Positive Condition

Error conditions

Don’t Provide Input Argument

Provide Destination Directory Path and Destination File Name which is not Exist.

CreateFile

This keyword is used to Create a File at the given Path.

It is used when you want to create any File at any location and it takes the Directory Path, Filename and Overwrite (Y/N).

Input Arguments

Output

Example

If we want to Create any file at any particular location like in D: in folder Create folder then use the Keyword Create File and give valid path in DirectoryPath, Specify name of File in FileName from which name you want to create file and if want Overwrite any File then select checkbox or deselect checkbox.

Createfile

Error conditions

DeleteFile

This keyword is used to Delete a File from a location. This keyword is used when you want to delete any File from any location. It takes values in FilePath and deleteFilePermanently. If select deleteFilePermanently i.e. True then it will delete file permanently and if do not select deleteFilePermanently  i.e. false then it will not delete file permanently.

File path can be provided as static value or through Global variable and Attachment in Input Argument.

Input Arguments

Output

Example

If we want to Delete any file from any particular location like in D: from folder “Create folder” then use the Keyword Delete File and give valid path in DirectoryPath and select check box in deletefilepermanently.

DeleteFile

Error conditions

GetCellValueFromExcel

This keyword is used to get the cell value of an excel file. It is used when you want to get cell value of an excel file. It takes ExcelFilepath, sheetName, rowNumber and columnNumber as input parameter. The File path should contain filename with .xls/.xlsx extension.

File path can be provided as static value or through Global variable and Attachment in Input Argument.

Input Arguments

Output

Example

If we want to get cell value from any particular Excel file “excel.xlsx” which is in folder Aishwarya in C: use this keyword as shown-

GetCellvaluefromExcel

Error conditions

GetFileExtension

This keyword is used to fetch the extension of any specified File. It is used when you want to get the file extension of any file and it takes Path of the specified file with extension as input parameter. File path can be provided as static value or through Global variable and Attachment in Input Argument.

Input Arguments

Output

Example

If we want to get file extension of File test.html from C: then use the keyword GetFileExtension.

GetFileExtension

It will get the Output “.html” i.e. extension of test.html file.

Error conditions

GetFileName

This keyword is used to fetch the file name with extension of any specified File. It is used when you want to get the name of any file with extension and it takes Path of the specified file.

File path can be provided as static value or through Global variable and Attachment in Input Argument.

Input Arguments

Output

Example

If we want to get filename with extension of File test.html from C: then use the keyword GetFileName

GetFileName

It will get the Output “test.html” i.e. filename with extension of “test.html” file.

Error conditions

GetFileNameWithoutExtension

This keyword is used to fetch the file name without extension of any specified File. It is used when you want to get the name of any file without extension and it takes Path of the specified file.

File path can be provided as static value or through Global variable and Attachment in Input Argument.

Input Arguments

Output

Example

If we want to get filename of File test.html from C: then use the keyword GetFileNamewithoutExtension.

GetFileNamewithoutExtension

It will get the Output “test” i.e. filename of “test.html” file.

Error conditions

GetFilePath

This keyword is used to fetch the path of the specified File. This keyword is used when you want to get the path of any file and it takes the specified file. File path can be provided as static value or through Global variable and Attachment in Input Argument.

Input Arguments

Output

Example

If we want to get the Path of File OpKey.txt from C: then use the keyword as shown-

GetFilePath

It will return the Output “C:UsersabcAppDataLocalAttachmentsOpKey.txt” i.e. file path of “OpKey.txt” file.

Error conditions

GetFileSize

This keyword is used to fetch the file size of any specified File. It is used when you want to get the size of any file and it takes Path of the specified file. File path can be provided as static value or through Global variable and Attachment in Input Argument.

Input Arguments

Output

Example

If we want to Get Size of File test.html from C: then use the keyword as shown-

GetFileSize

It will get the Output “563KB” i.e. file size of “test.html” file.

Error conditions

GetValueFromCSV

This keyword is used to get value from a CSV file. It is used when you want to get value of any CSV file. It takes CSVFilepath, rowNumber and columnNumber as input parameter. The File path should contain filename with .csv extension.

File path can be provided as static value or through Global variable and Attachment in Input Argument.

Input Arguments

Output

Example

If we want to get value from any particular CSV file “._FL_insurance_sample.csv” which is in Folder ‘aishwarya’ in C: then use keyword as shown-

GetvaluefromCSV

Error conditions

ReadTextFile

This keyword is used to read a given file (File path should contain the file name with .txt file extension). It takes FilePath as data input argument.

Input Arguments

Output

Example

This keyword is mostly used in situations where you want to read text written in the given text file.

Common Error conditions

RenameFile

This keyword is used to rename a specified file. It takes FilePath and NewFileName as data input arguments.

Input Arguments

Output

Example

This keyword is mostly used in situations where you want to read text written in the given text file.

Common Error conditions

SearchTextInFile

This keyword is used for searching a particular text written on the selected file. It takes FilePath, SearchString and IgnoreCase (T/F) as input parameters.

Input Arguments

Output

Example

For example, you want to search a text “opkey” in a file on filepath “D:EXECUTION TEST FILEText file.txt” of your PC. Then you can use this keyword for searching it.

1.jpg
2.jpg

Error conditions

SetCellValueToExcel

This keyword sets the value in a given excel file where starting row and column indexes are “1”. It takes “ExcelFilePath”, “Sheetname”, “rownumber”, “columnnumber” and “Value to set” as input parameters. Using this keyword you can set value to “.xls” or “.xlsx” extension type files only.

Input Arguments

Output

Example

For example, you want to set a cell value (say “opkey”) to an excel file at runtime, then here is how you can use this keyword in your testcase.

Error conditions

SetValueToCSV

This keyword is used for updating value in a CSV file where the starting row and column indexes are “1”. It takes “CSVFilePath”, “rownumber”, “columnnumber” and “Value to set” as input parameters. Using this keyword you can set value to “.csv” extension type files.

Input Arguments

Output

Example

For example, you want to set a value (say “opkey”) to a CSV file at runtime, then here is how you can use this keyword for the same.

Error conditions

Function Keywords

CustomizeObject

This keyword is used to update/customize the properties of the specified object so that execution can be performed on the object even when properties are changed. It takes Property1, Value1, IsRegEx1, Property2, Value2, IsRegEx2, etc.

This keyword is used to update the object properties. It takes object input argument and data input argument.

Input Arguments

This keyword does not require any Object Input argument.

Output

True

If keyword passes successfully

False

If there is an error

Example

If you want to get the cell value of the specified Shared Global DR, here is how you will use this keyword-

  • Add CustomizeObject.
  • Map Object.
  • Provide Data Input Argument (Property1, Value1 & IsRegEx1) values.
  • Similarly, provide Data Input Argument values for other object properties to be customized.

Error conditions

GetAllErrorsInSuite

This keyword is used to generate a status file for all errors occurred while executing a suite. It takes DirectoryPath and Snap (T/F) as input parameters. As this is a system keyword, there is no need for any plugin to be selected while executing this keyword.

Input Arguments

Output

Example

For example, you want to set a value (say “opkey”) to a CSV file at runtime, then here is how you can use this keyword for the same.

Error conditions

GetElementsCountByXpath

This keyword is used to count the a particular element from the specified XML. It takes FilePath or XML & Xpath as data input argument.

Input Arguments

This keyword does not require any Object Input argument.

Output

Example

If you want to get the cell value of the specified Shared Global DR, here is how you will use this keyword-

  • Add GetElementsCountByXpath.
  • Provide Data Input Argument (FilePath or XML & Xpath) values.

Error conditions

GetExecutionStatus

This keyword is used for generating a status file for all suite steps at runtime. It takes Directory Path as input parameter. This keyword is mostly used when user needs an execution status for a suite.

Input Arguments

Output

Example

For example, you want to generate a status file for the all the suite steps at runtime, then you can use this keyword for the same.

Error conditions

GetScreenHeight

This keyword is used to retrieve the height of the Screen at runtime. This keyword does not need any input arguments.

Input Arguments

Output

Example

For example, you want to get the height of screen at runtime, then here is how you can use this keyword for the same.

GetScreenWidth

This keyword is used to retrieve the width of Screen at runtime. It does not need any input arguments.

Input Arguments

Output

Example

For example, you want to get the height of screen at runtime, then here is how you can use this keyword for the same.

GeSystemIPAddresst

This keyword is used to retrieve the current IP Address of the system at runtime. It does not need any input arguments.

Input Arguments

Output

Example

For example, you want to find your system’s IP Address at runtime, then here is how you can use this keyword for the same.

GetValueFromJson

This keyword is used to retrieve the parsed value of Json. User need to provide the Json value and its path as input parameter.

NOTE: This keyword can be tested through another way i.e. Rest services of Service Repository.

Input Arguments

Output

Example

In the above example, if you want to fetch the value of city from above specified Json data “city” : “Nara” then provide Json path: “$.address.city” in this way you use this keyword.

GetValueFromJson

Error conditions

GetValueFromXpath

This keyword is used to is used to retrieve the value from given xml xpath i.e. an xml file should have a file path. In this keyword, it takes three input parameters i.e. file path or xml file, Xpath and delimitby.

It is mostly used in situations where you need to get the value of Xpath from xml file. In this keyword user can provide the file path of XML with its extension or he can directly give the XML in data input argument then he needs to provide the Xpath of XML path.

NOTE 1: DelimitedBy” it’s an optional part and it is used to get two or more than two values from Xpath and values can be separated by anything like comma( , ), semi-colon (: ), etc..

NOTE 2: There is another way to use this keyword i.e. through Service Repository by adding Soap Services.

Input Arguments:

Output:

Example

This keyword is used to get the value from given xml xpath i.e. an xml file should have a file path. In this keyword, it takes three input parameters i.e. file path or xml file, Xpath and delimitby.

It is mostly used in situations where you need to get the value of Xpath from xml file. In this keyword user can provide the file path of XML with its extension or he can directly give the XML in data input argument then he needs to provide the Xpath of XML path.

NOTE 1: “DelimitedBy” it’s an optional part and it is used to get two or more than two values from Xpath and values can be separated by anything like comma( , ), semi-colon (: ), etc..

NOTE 2: There is another way to use this keyword i.e. through Service Repository by adding Soap Services.

https://lh3.googleusercontent.com/PNawdpkAR_ETXvmQE8mamK7LhY5QsEpx-VBaCGPPNVA6VXZtRyxpvWiXOUVXsR1GDeSIAEPPGfa6BogvvEzf4sA_NdWS6TLUzcEI-BHOHAzAhcUzASo_JB_80yXnu1zq1RmscrAG

In the above example, if you want to fetch the xpath value then provide this XML and give Xpath i.e. “Prompt” and value is provided in its output in this way he can use this keyword.

GetValueFromXpath

Error conditions

In the above example, if you want to fetch the xpath value then provide this XML and give Xpath i.e. “Prompt” and value is provided in its output in this way he can use this keyword.

GetValueFromXpath

Error conditions

In the above example, if you want to fetch the xpath value then provide this XML and give Xpath i.e. “Prompt” and value is provided in its output in this way he can use this keyword.

GetValueFromXpath

Error conditions

Global Scope Keywords

ResetORToOriginal

This keyword is used to go back to the original Object Repository and neutralizes the effect of previously executed SetOR for all subsequent steps generated after ResetORtoOriginal keyword. It takes no data input argument.

Input Arguments

Output

There are no negative scenarios for this keyword. It gives execution result as Pass when we execute a Test Case having a Test Step (ResetORtoOriginal).

Example

This keyword is mostly used in situations where you want to test multilingual websites.

Common Error conditions

There are no negative Scenarios for this keyword.

RestoreStepTimeOut

This keyword is used to restore the default step timeout. It is called before set step timeout keyword. It does not require any input argument.

Input Arguments:

Output:

Example:

If user want to restore it default timeout, then use this keyword.

RestoreStepTimeOut:

NOTE: There is no error conditions for this keyword.

SetGlobalVariableValue

This keyword is used to set the global variable value at runtime.

Input Arguments

Output

Example

If you want to set Global variable value “Mozilla Firefox” of Open browser as “Chrome” then use this keyword as shown- SetGlobalVariableValue

SetGlobalvariablevalue

Error conditions

NOTE:

If user want to sets the global variable value at runtime then, open any browser (along with specified URL of your web application) and use this keyword “SetGlobalVariableValue” and provide the variablename and variablevalue.

SetOR

This keyword is used to test a multilingual website. It sets a dynamic OR. All subsequent steps will use the specified OR instead of one associated during design time of a particular flow. It doesn’t take any object input argument. It takes OR File Path as data input argument.

Input Arguments

Output

Example

This keyword is mostly used in situations where you want to test multilingual websites.

Common Error conditions

SetStepTimeOut

This keyword is used to set the step timeout for the particular execution or step at run time. It is mostly used in situations where you need to set the step timeout time in seconds for the particular execution at run time. It takes time in seconds as data input argument.

Input Arguments:

Output:

Example:

If user want to sets the timeout for a particular step or for execution then he can use this keyword and provide the time in seconds.

SetStepTimeOut

Error conditions

NOTE

If user want to set the step timeout for any particular step or execution then, open any browser (along with specified URL of your web application) and use this keyword “SetStepTimeOut”.

Mathematical Operation Keywords

EvaluateExpression

This keyword is used to evaluate/calculate the given expression which is provided by the user in the input parameter. With the help of this keyword user can perform multiple calculations at a time.

It is mostly used in situations where you need to evaluate your given expression which takes integer values and operators as input argument and then it provides the result in its output.

NOTE: This keyword does not require any object argument. It only takes integer values and operator to calculate the expression.

Input Arguments:

Output:

Example:

C:UsersAbhiAppDataLocalMicrosoftWindowsINetCacheContent.Wordevaluate.jpg

In the above example, if user want to evaluate any expression, then he needs to provide the integer values and the operator (i.e. Addition, Subtraction, Division & Multiplication) then he can use this keyword.

EvaluateExpression

Error conditions:

GetRandomNumber

This keyword is used to fetch any random number between the two integers i.e. provide minimum and maximum value in data input argument.

NOTE: This keyword does not requires any object. It only takes integer values.

Input Arguments:

Output:

Example:

If user want to fetch any random number between the min i.e. “500” and max i.e. “1000” then in output it gives the value then he can use this keyword.

GetRandomNumber

Error conditions:

RoundOff

This keyword is used to round off the integer value up to given decimal place which is provided by the user in its input argument.

NOTE: This keyword does not require any object. It takes integer value (with decimal point) and digit value (up to which decimal place it is to be round off) as input argument.

Input Arguments:

Output:

Example:

If user provide the value i.e. “1.56985” and the digit it provide “3” then it will “Roundoff” the value up to 3 decimal place i.e. “1.57” in the output in this way he can use this keyword.

RoundOff

Error conditions:

Process Keywords

GetStatusOfWindowsService

This keyword returns the status of specified Window Service. For example, you made a window service through visual studio and you want to get the status of that service. In this case, you can use this keyword. It takes Service Name as input parameter.

Input Arguments

This keyword does not require any Object Input argument.

Output

Example

Here is how you can see all window services

If you want to get the status of a window service, here is how you will use this keyword-

  • Add GetStatusOfWindowService keyword
  • Run to get the status of your window service

Error conditions

GetSystemProperty

This keyword returns the value of specified environment variable (User and System). It takes variable name as input parameter. To see how you can view environment variable, please follow this link – https://www.java.com/en/download/help/path.xml

Input Arguments

This keyword does not require any Object Input argument.

Output

Example

If you want to get the value of specified system environment, here is how you will use this keyword-

  • Add GetSystemProperty keyword
  • Run to get the status of your window service

Error conditions

RunCommand

This keyword executes the given command on command prompt and provides the result. It takes command as data input argument.

Input Arguments

Output

Example

This keyword is mostly used in situations when you want to execute a command on command prompt. The command provided in data input argument, will get executed.

Common Error conditions

Runtime Keywords

ResetGenericPluginToDefault

This keyword is used after a SetGenericPlugin keyword to reset the system to use the default generic plugin. It takes no input arguments.

Input Arguments

Output

Example

This keyword is mostly used in situations where you want to switch to the previous plugin with which execution started.

Common Error conditions

This keyword never fails.

SetGenericPlugin

This keyword sets a plugin, different from the chosen plugin at run-wizard to execute the generic keywords. It takes Plugin as data Input Arguments.

For SetGenericPlugin Keyword:

Input Arguments

Output

Example

If you want to set a plugin “Selenium WebDriver” which is different from what is chosen at run-wizard to execute the generic keywords, you can do so by using SetGenericPlugin keyword as follows:

SetGenericPlugin

Common Error conditions

Service Keywords

RestartWindowsService

This keyword is used to restart the specified Windows Service. It takes Servicename and TimeoutInSeconds as data input parameter.

Input Arguments

Output

Example

This keyword is mostly used in situations when you want to restart a particular Windows service.

Common Error conditions

StartWindowsService

This keyword starts the specified Window Service. For example, your window service is getting stopped during certain action and you want to get the that service started. In this case, you can use this keyword. This keyword takes Service Name and Timeout as input parameter.

*Note – Providing Timeout is not mandatory.

Input Arguments

This keyword does not require any Object Input.

Output

Example

Here is how you can see all window services

If you want to start a window service, here is how you will use this keyword –

  • Add StartWindowService keyword
  • Run to get the start your window service

Error conditions

StopWindowsService

This keyword is used to stop the specified Windows Service. It takes Servicename and Timeout in Seconds as data input parameter.

Input Arguments

Output

Example

This keyword is mostly used in situations where you want to stop any particular Windows service.

Common Error conditions

String Function Keywords

CountOfSubString

GetCurrentTimeZone

GetStringLength

IndexOf

IsBoolean

IsDouble

IsInteger

LeftTrim

RemoveDelimiter

ReplaceSubString

RightTrim

Split

StringConcat

SubString

ToLower

ToUpper

Trim

Article

No items found.