-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
29 changed files
with
268 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
*** Settings *** | ||
Documentation Test suite for configuration keywords. | ||
... Keyword Test Case Names | ||
... Enable Caching Enable Caching | ||
... Disable Caching Disable Caching | ||
... Refresh Cache Refresh Cache | ||
... Is Cache Enabled Is Cache Enabled | ||
... | ||
Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE} | ||
|
||
*** Test Cases *** | ||
Is Cache Enabled | ||
${RESULT} Is Cache Enabled | ||
${IDENTIFIER} Get Uia Identifier | ||
IF '${IDENTIFIER}'=='UIA2' | ||
Should Be Equal ${TRUE} ${RESULT} | ||
ELSE | ||
Should Be Equal ${FALSE} ${RESULT} | ||
END | ||
|
||
Enable Caching | ||
Enable Caching | ||
${RESULT} Is Cache Enabled | ||
Should Be Equal ${TRUE} ${RESULT} | ||
|
||
Disable Caching | ||
Disable Caching | ||
${RESULT} Is Cache Enabled | ||
Should Be Equal ${FALSE} ${RESULT} | ||
|
||
Refresh Cache | ||
Fail TODO IMPLEMENT ME | ||
${IDENTIFIER} Get Uia Identifier | ||
Should Be Equal ${IDENTIFIER} ${UIA} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
from robotlibcore import keyword | ||
from FlaUILibrary.flaui.automation.uia import UIA | ||
|
||
|
||
class ConfigurationKeywords: | ||
""" | ||
Interface implementation from specific configuration keywords for robotframework-flaui controlling. | ||
""" | ||
|
||
def __init__(self, module: UIA): | ||
""" | ||
Constructor for configuration keywords. | ||
``module`` Automation framework module like UIA3 to handle element interaction. | ||
""" | ||
self._module = module | ||
|
||
@keyword | ||
def enable_caching(self): | ||
""" | ||
Enable caching from all desktop elements. All desktop elements will be tracked once. | ||
Examples: | ||
| Enable Caching | | ||
""" | ||
self._module.set_caching(True) | ||
|
||
@keyword | ||
def disable_caching(self): | ||
""" | ||
Disable caching from all desktop elements. Each call will update all desktop elements. | ||
Examples: | ||
| Disable Caching | | ||
""" | ||
self._module.set_caching(False) | ||
|
||
@keyword | ||
def refresh_cache(self): | ||
""" | ||
Refresh once cache from all desktop elements. | ||
Examples: | ||
| Refresh Cache | | ||
""" | ||
self._module.refresh_cache() | ||
|
||
@keyword | ||
def is_cache_enabled(self): | ||
""" | ||
Returns if cache is enabled True or not False. | ||
Examples: | ||
| ${RESULT} Is Cache Enabled | | ||
""" | ||
return self._module.is_cache_enabled() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
VERSION = "2.0.1" | ||
VERSION = "2.0.2" |