Webinar

September 16, 2021 12:00 PM EDT
Automation for insurance carriers & brokersSeptember 16, 2021 12:00 PM EDT
Learn how utilizing a digital workforce can help your employees focus on their main priority - the clients!

Boot Time In Seconds From Epoch

Get machine boot time

return:boot time in seconds from Epoch

Examples

*** Tasks ***
${epoch}  Boot Time In Seconds From Epoch

Get Boot Time

Get computer boot time in seconds from Epoch or in datetime string.

Arguments

Argument Type Default value Description
as_datetimeboolFalse
datetime_formatstr%Y-%m-%d %H:%M:%S
param as_datetime:
 if True returns datetime string, otherwise seconds, defaults to False
param datetime_format:
 datetime string format, defaults to "%Y-%m-%d %H:%M:%S"
return:seconds from Epoch or datetime string

Examples

*** Tasks ***
${boottime}  Get Boot Time
${boottime}  Get Boot Time   as_datetime=True
${boottime}  Get Boot Time   as_datetime=True  datetime_format=%d.%m.%Y

Get Machine Name

Get machine name

return:machine name as string

Examples

*** Tasks ***
${machine}  Get Machine Name

Get Memory Stats

Get computer memory stats and return those in bytes or in humanized memory format.

Arguments

Argument Type Default value Description
humanizedboolTrue

Get computer memory stats and return those in bytes or in humanized memory format.

param humanized:
 if False returns memory information in bytes, defaults to True
return:memory information in dictionary format

Examples

*** Tasks ***
&{mem}     Get Memory Stats
&{mem}     Get Memory Stats   humanized=False

Get Username

Get username of logged in user

return:username as string

Examples

*** Tasks ***
${user}  Get Username

Kill Process

Kill process by name

Arguments

Argument Type Default value Description
process_namestrnull
param process_name:
 name of the process
return:True if succeeds False if not

Examples

*** Tasks ***
${process}  Process Exists  calc  strict=False
${status}   Kill Process    ${process.name()}

Kill Process By Pid

Kill process by pid

Arguments

Argument Type Default value Description
pidintnull
param pid:process identifier

Examples

*** Tasks ***
${process}  Process Exists  calc  strict=False
${status}   Kill Process By PID   ${process.pid}

Process Exists

Check if process exists by its name

Arguments

Argument Type Default value Description
process_namestrnull
strictboolTrue
param process_name:
 search for this process
param strict:defines how match is made, default True which means that process name needs to be exact match and False does inclusive matching
return:process instance or False

Examples

*** Tasks ***
${process}  Process Exists  calc
${process}  Process Exists  calc  strict=False

Process Id Exists

Check if process exists by its id

Arguments

Argument Type Default value Description
pidintnull
param pid:process identifier
return:process instance or False

Examples

*** Tasks ***
${process}  Process ID Exists  4567
Run Keyword If   ${process}  Log  Process exists

Put System To Sleep

Puts system to sleep mode

Examples

*** Tasks ***
Put System To Sleep