...
Action | Parameters | Example Usage | Param 1 : Valid date format | Example:
Sets the date format to dd,MM,yyyy Suppose you wishe to use the current date in the date format dd,MM,yyyy. All you need to do is, use the keyword setDateformat to set the date format to dd,MM,yyyy & then use keyword copycurrentDateTo to store the current date in a variable of your choice. The current date will be stored in the mentioned date format dd,MM,yyyy. Use the date stored in variable with appropriate keyword. | Param 1 : Valid date-time format | Example:
Sets the date-time format to dd/MM/yyyy::HH:mm:SS Suppose you wishe to use the current date-time in the date-time format dd/MM/yyyy::HH:mm:SS. All you need to do is, use the keyword setDateTimeformat to set the date-time format to dd/MM/yyyy::HH:mm:SS & then use keyword copycurrentDateTimeTo to store the current date-time in a variable of your choice. The current date-time will be stored in the mentioned date-time format dd/MM/yyyy::HH:mm:SS. Use the date-time stored in variable with appropriate keyword. | |||
---|---|---|---|---|---|---|---|---|---|
Example:
Restores the default date format mentioned in configuration settings. If you wish to use a certain date format only for a particular field and default format for the rest of the test case. Use the keyword setDateFormat for that field & then use restoreDefaultDateFormat later in the test case. | Example:
Restores the default date-time format mentioned in configuration settings. If you wish to use a certain date-time format only for a particular field and default format for the rest of the test case. Use the keyword setDateTimeFormat for that field & then use restoreDefaultDateTimeFormat later in the test case. | addDaysToDateAndStore
To add number of days to current date and store resultant for future use. | Param 1 : Number of days to be added to the date Enter the date in the format mentioned in Date Format set under Application configuration (default / user defined). | Example:
Adds 5 days to current date (if date not mentioned in param 3) and stores into bqVariable
Adds 5 days to mentioned date 04/01/20 and stores into bqVariable | |||||
addMonthToDateAndStore
To add number of months to current date and store resultant for future use. | Param 1 : Number of months to be added to the date | Example:
Adds 5 months to current date (if date not mentioned in param 3) and stores into bqVariable
Adds 5 months to mentioned date 04/01/20 and stores into bqVariable | |||||||
addYearToDateAndStore
To add number of years to current date and store resultant for future use. | Param 1 : Number of years to be added to the date | Example:
Adds 1 year to current date (if date not mentioned in param 3) and stores into bqVariable
Adds 1 year to mentioned date 04/01/20 and stores into bqVariable | |||||||
addPartToDateTimeAndStore
To store the value into variable (mentioned in Paramater 3) after adding value (mentioned in parameter 2) and into date (mentioned in parameter 4). | Param 1 : Part of the Date
| Example:
Stores into variable bqVariable after adding 20 days to current date-time (if Param 4, is not provided) as mentioned in the default date-time format (if not provided).
| |||||||
copyCurrentDateTo
To store the current date (default format will be used, the one mentioned in application configuration settings) to a variable for future use. | Param 1 : Variable name to store the date | Example:
Stores the current date to variable bqVariable | |||||||
copyCurrentDateTimeTo
To store the current date and time (default format will be used, the one mentioned in application configuration settings) to a variable for future use. | Param 1 : Variable name to store the date-time | Example:
Stores the current date with timestamp to variable bqVariable | |||||||
copyElementValueAsDateTime
To store the object (mentioned in objectName) value to a variable (mentioned in Parameter 1) as date-time, in format (mentioned in Parameter 2) for future use. If date-time format is not defined then format will be picked up from the application configuration settings. | Param 1 : Variable name to store the element value as date-time | Example:
Stores the object’s bqObject value to variable bqVariable as date-time in the mentioned format MM-dd-yyyy HH:mm:SS. | |||||||
copyElementValueAsDate
To store object (mentioned in objectName) value to a variable (mentioned in Parameter 1) as date, in format (mentioned in Parameter 2) for future use. If date format is not defined then format will be picked up from the application configuration settings. | Param 1 : Variable name to store the element value as date |
Stores the object’s bqObject value to variable bqVariable as date in the mentioned format MM-dd-yyyy. | |||||||
copyDateValueTo
To store static value to a variable as Date for future use. | Param 1 : Date to copy | Example:
To store 09/01/2012 in MM/dd/yyyy format from string “Founding date of Bqurious is 09/01/2012, California.” , using left boundary “Bqurious is” and right boundary , California in variable bqVariable as Date. | |||||||
restoreDefaultDateFormat
To restore default date format defined in application configuration settings. | Example:
Restores the default date format mentioned in configuration settings. If you wish to use a certain date format only for a particular field and default format for the rest of the test case. Use the keyword setDateFormat for that field & then use restoreDefaultDateFormat later in the test case. | ||||||||
restoreDefaultDateTimeFormat
To restore default date-time format defined in application configuration settings. | Example:
Restores the default date-time format mentioned in configuration settings. If you wish to use a certain date-time format only for a particular field and default format for the rest of the test case. Use the keyword setDateTimeFormat for that field & then use restoreDefaultDateTimeFormat later in the test case. | ||||||||
setDateFormat
To change the current date format of the application. Useful if user wants to use available actions of date with different date format. | Param 1 : Valid date format | Example:
Sets the date format to dd,MM,yyyy Suppose you wishe to use the current date in the date format dd,MM,yyyy. All you need to do is, use the keyword setDateformat to set the date format to dd,MM,yyyy & then use keyword copycurrentDateTo to store the current date in a variable of your choice. The current date will be stored in the mentioned date format dd,MM,yyyy. Use the date stored in variable with appropriate keyword. | |||||||
setDateTimeFormat
To change the current date-time format of the application. Useful if user wants to use available actions of date-time with different date-time format. | Param 1 : Valid date-time format | Example:
Sets the date-time format to dd/MM/yyyy::HH:mm:SS Suppose you wishe to use the current date-time in the date-time format dd/MM/yyyy::HH:mm:SS. All you need to do is, use the keyword setDateTimeformat to set the date-time format to dd/MM/yyyy::HH:mm:SS & then use keyword copycurrentDateTimeTo to store the current date-time in a variable of your choice. The current date-time will be stored in the mentioned date-time format dd/MM/yyyy::HH:mm:SS. Use the date-time stored in variable with appropriate keyword. | |||||||
verifyDate
To verify the value (mentioned in Parameter 1) is a valid date as per the format (mentioned in parameter 2). If test object (mentioned in bqObject) is provided then verify the value of object is valid date as per format. Precedence will be on object value. | Param 1 : Date value | Example:
Verifies value of bqObject is valid date as per format MM/dd/yy | |||||||
verifyDateTime
To verify the value (mentioned in Parameter 1) is valid date-time as per format (mentioned in parameter 2). If test object (mentioned in bqObject) is provided then verify the value of object is valid date-time as per format. Precedence will be on object value. | Param 1 : Date-time value | Example:
Verifies value of bqObject is valid date-time as per format MM/dd/yyyy HH:mm:SS copyDateValueTo
To store static value to a variable as Date for future use. | Param 1 : Date to copy | Example:
To store 09/01/2012 in MM/dd/yyyy format from string “Founding date of Bqurious is 09/01/2012, California.” , using left boundary “Bqurious is” and right boundary , California in variable bqVariable as Date. | Param 1 : Part of the Date
| Example:
Stores into variable bqVariable after adding 20 days to current date-time (if Param 4, is not provided) as mentioned in the default date-time format (if not provided). Info | |